buildgrid-ui 1.15.7 → 1.15.8
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/buildgrid-ui.es.js +2762 -2603
- package/dist/buildgrid-ui.umd.js +58 -48
- package/dist/components/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/buildgrid-ui.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(N,C){typeof exports=="object"&&typeof module<"u"?C(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],C):(N=typeof globalThis<"u"?globalThis:N||self,C(N.BuildgridUI={},N.React,N.ReactDOM))})(this,function(N,C,ar){"use strict";function ci(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=ci(C),sr=ci(ar);var ir={exports:{}},
|
|
1
|
+
(function(N,C){typeof exports=="object"&&typeof module<"u"?C(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],C):(N=typeof globalThis<"u"?globalThis:N||self,C(N.BuildgridUI={},N.React,N.ReactDOM))})(this,function(N,C,ar){"use strict";function ci(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=ci(C),sr=ci(ar);var ir={exports:{}},kn={};/**
|
|
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 ui;function
|
|
9
|
+
*/var ui;function pg(){if(ui)return kn;ui=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var l in o)l!=="key"&&(a[l]=o[l])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:a}}return kn.Fragment=t,kn.jsx=n,kn.jsxs=n,kn}var Pn={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,67 +14,67 @@
|
|
|
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 di;function
|
|
17
|
+
*/var di;function hg(){return di||(di=1,process.env.NODE_ENV!=="production"&&function(){function e(j){if(j==null)return null;if(typeof j=="function")return j.$$typeof===$?null:j.displayName||j.name||null;if(typeof j=="string")return j;switch(j){case g:return"Fragment";case y:return"Profiler";case b:return"StrictMode";case k:return"Suspense";case M:return"SuspenseList";case _:return"Activity"}if(typeof j=="object")switch(typeof j.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),j.$$typeof){case v:return"Portal";case x:return(j.displayName||"Context")+".Provider";case w:return(j._context.displayName||"Context")+".Consumer";case S:var Y=j.render;return j=j.displayName,j||(j=Y.displayName||Y.name||"",j=j!==""?"ForwardRef("+j+")":"ForwardRef"),j;case E:return Y=j.displayName||null,Y!==null?Y:e(j.type)||"Memo";case P:Y=j._payload,j=j._init;try{return e(j(Y))}catch{}}return null}function t(j){return""+j}function n(j){try{t(j);var Y=!1}catch{Y=!0}if(Y){Y=console;var T=Y.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&j[Symbol.toStringTag]||j.constructor.name||"Object";return T.call(Y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(j)}}function r(j){if(j===g)return"<>";if(typeof j=="object"&&j!==null&&j.$$typeof===P)return"<...>";try{var Y=e(j);return Y?"<"+Y+">":"<...>"}catch{return"<...>"}}function o(){var j=H.A;return j===null?null:j.getOwner()}function a(){return Error("react-stack-top-frame")}function s(j){if(q.call(j,"key")){var Y=Object.getOwnPropertyDescriptor(j,"key").get;if(Y&&Y.isReactWarning)return!1}return j.key!==void 0}function l(j,Y){function T(){te||(te=!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)",Y))}T.isReactWarning=!0,Object.defineProperty(j,"key",{get:T,configurable:!0})}function c(){var j=e(this.type);return V[j]||(V[j]=!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.")),j=this.props.ref,j!==void 0?j:null}function d(j,Y,T,D,L,F,ee,I){return T=F.ref,j={$$typeof:p,type:j,key:Y,props:F,_owner:L},(T!==void 0?T:null)!==null?Object.defineProperty(j,"ref",{enumerable:!1,get:c}):Object.defineProperty(j,"ref",{enumerable:!1,value:null}),j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(j,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(j,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ee}),Object.defineProperty(j,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:I}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j}function f(j,Y,T,D,L,F,ee,I){var K=Y.children;if(K!==void 0)if(D)if(W(K)){for(D=0;D<K.length;D++)m(K[D]);Object.freeze&&Object.freeze(K)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(K);if(q.call(Y,"key")){K=e(j);var Q=Object.keys(Y).filter(function(oe){return oe!=="key"});D=0<Q.length?"{key: someKey, "+Q.join(": ..., ")+": ...}":"{key: someKey}",O[K+D]||(Q=0<Q.length?"{"+Q.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,D,K,Q,K),O[K+D]=!0)}if(K=null,T!==void 0&&(n(T),K=""+T),s(Y)&&(n(Y.key),K=""+Y.key),"key"in Y){T={};for(var ne in Y)ne!=="key"&&(T[ne]=Y[ne])}else T=Y;return K&&l(T,typeof M=="function"?M.displayName||M.name||"Unknown":M),d(M,K,F,L,o(),T,ee,A)}function m(M){typeof M=="object"&&M!==null&&M.$$typeof===p&&M._store&&(M._store.validated=1)}var h=C,p=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),x=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),H=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,W=Array.isArray,U=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(M){return M()}};var te,V={},X=h["react-stack-bottom-frame"].bind(h,a)(),R=U(r(a)),O={};kn.Fragment=g,kn.jsx=function(M,Y,T,D,L){var F=1e4>H.recentlyCreatedOwnerStacks++;return f(M,Y,T,!1,D,L,F?Error("react-stack-top-frame"):X,F?U(r(M)):R)},kn.jsxs=function(M,Y,T,D,L){var F=1e4>H.recentlyCreatedOwnerStacks++;return f(M,Y,T,!0,D,L,F?Error("react-stack-top-frame"):X,F?U(r(M)):R)}}()),kn}var fi;function pg(){return fi||(fi=1,process.env.NODE_ENV==="production"?ir.exports=fg():ir.exports=mg()),ir.exports}var i=pg();function mi(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=mi(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Fo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=mi(e))&&(r&&(r+=" "),r+=t);return r}const Bo="-",hg=e=>{const t=vg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(Bo);return l[0]===""&&l.length!==1&&l.shift(),pi(l,t)||gg(s)},getConflictingClassGroupIds:(s,l)=>{const c=n[s]||[];return l&&r[s]?[...c,...r[s]]:c}}},pi=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?pi(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Bo);return(s=t.validators.find(({validator:l})=>l(a)))==null?void 0:s.classGroupId},hi=/^\[(.+)\]$/,gg=e=>{if(hi.test(e)){const t=hi.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},vg=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)zo(n[o],r,o,t);return r},zo=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:gi(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(bg(o)){zo(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{zo(s,gi(t,a),n,r)})})},gi=(e,t)=>{let n=e;return t.split(Bo).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},bg=e=>e.isThemeGetter,wg=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)}}},Vo="!",Wo=":",yg=Wo.length,xg=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,l=0,c=0,d;for(let v=0;v<o.length;v++){let g=o[v];if(s===0&&l===0){if(g===Wo){a.push(o.slice(c,v)),c=v+yg;continue}if(g==="/"){d=v;continue}}g==="["?s++:g==="]"?s--:g==="("?l++:g===")"&&l--}const f=a.length===0?o:o.substring(c),m=Cg(f),h=m!==f,p=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:p}};if(t){const o=t+Wo,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},Cg=e=>e.endsWith(Vo)?e.substring(0,e.length-1):e.startsWith(Vo)?e.substring(1):e,Ng=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},Sg=e=>({cache:wg(e.cacheSize),parseClassName:xg(e),sortModifiers:Ng(e),...hg(e)}),Eg=/\s+/,kg=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],l=e.trim().split(Eg);let c="";for(let d=l.length-1;d>=0;d-=1){const f=l[d],{isExternal:m,modifiers:h,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:g}=n(f);if(m){c=f+(c.length>0?" "+c:c);continue}let b=!!g,y=r(b?v.substring(0,g):v);if(!y){if(!b){c=f+(c.length>0?" "+c:c);continue}if(y=r(v),!y){c=f+(c.length>0?" "+c:c);continue}b=!1}const w=a(h).join(":"),x=p?w+Vo:w,S=x+y;if(s.includes(S))continue;s.push(S);const k=o(y,b);for(let j=0;j<k.length;++j){const E=k[j];s.push(x+E)}c=f+(c.length>0?" "+c:c)}return c};function Pg(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=vi(t))&&(r&&(r+=" "),r+=n);return r}const vi=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=vi(e[r]))&&(n&&(n+=" "),n+=t);return n};function Tg(e,...t){let n,r,o,a=s;function s(c){const d=t.reduce((f,m)=>m(f),e());return n=Sg(d),r=n.cache.get,o=n.cache.set,a=l,l(c)}function l(c){const d=r(c);if(d)return d;const f=kg(c,n);return o(c,f),f}return function(){return a(Pg.apply(null,arguments))}}const Ne=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},bi=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wi=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Mg=/^\d+\/\d+$/,jg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_g=/\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$/,Ag=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ig=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Rg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xt=e=>Mg.test(e),le=e=>!!e&&!Number.isNaN(Number(e)),ht=e=>!!e&&Number.isInteger(Number(e)),Ho=e=>e.endsWith("%")&&le(e.slice(0,-1)),lt=e=>jg.test(e),Dg=()=>!0,Og=e=>_g.test(e)&&!Ag.test(e),yi=()=>!1,$g=e=>Ig.test(e),Lg=e=>Rg.test(e),Fg=e=>!Z(e)&&!J(e),Bg=e=>Qt(e,Ei,yi),Z=e=>bi.test(e),$t=e=>Qt(e,ki,Og),Go=e=>Qt(e,Gg,le),xi=e=>Qt(e,Ni,yi),zg=e=>Qt(e,Si,Lg),lr=e=>Qt(e,Pi,$g),J=e=>wi.test(e),Pn=e=>Zt(e,ki),Vg=e=>Zt(e,Ug),Ci=e=>Zt(e,Ni),Wg=e=>Zt(e,Ei),Hg=e=>Zt(e,Si),cr=e=>Zt(e,Pi,!0),Qt=(e,t,n)=>{const r=bi.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Zt=(e,t,n=!1)=>{const r=wi.exec(e);return r?r[1]?t(r[1]):n:!1},Ni=e=>e==="position"||e==="percentage",Si=e=>e==="image"||e==="url",Ei=e=>e==="length"||e==="size"||e==="bg-size",ki=e=>e==="length",Gg=e=>e==="number",Ug=e=>e==="family-name",Pi=e=>e==="shadow",Yg=Tg(()=>{const e=Ne("color"),t=Ne("font"),n=Ne("text"),r=Ne("font-weight"),o=Ne("tracking"),a=Ne("leading"),s=Ne("breakpoint"),l=Ne("container"),c=Ne("spacing"),d=Ne("radius"),f=Ne("shadow"),m=Ne("inset-shadow"),h=Ne("text-shadow"),p=Ne("drop-shadow"),v=Ne("blur"),g=Ne("perspective"),b=Ne("aspect"),y=Ne("ease"),w=Ne("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...S(),J,Z],j=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],P=()=>[J,Z,c],_=()=>[Xt,"full","auto",...P()],$=()=>[ht,"none","subgrid",J,Z],H=()=>["auto",{span:["full",ht,J,Z]},ht,J,Z],q=()=>[ht,"auto",J,Z],W=()=>["auto","min","max","fr",J,Z],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...P()],X=()=>[Xt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],R=()=>[e,J,Z],O=()=>[...S(),Ci,xi,{position:[J,Z]}],M=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",Wg,Bg,{size:[J,Z]}],T=()=>[Ho,Pn,$t],D=()=>["","none","full",d,J,Z],L=()=>["",le,Pn,$t],F=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>[le,Ho,Ci,xi],K=()=>["","none",v,J,Z],Q=()=>["none",le,J,Z],ne=()=>["none",le,J,Z],oe=()=>[le,J,Z],ie=()=>[Xt,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[lt],breakpoint:[lt],color:[Dg],container:[lt],"drop-shadow":[lt],ease:["in","out","in-out"],font:[Fg],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[lt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[lt],shadow:[lt],spacing:["px",le],text:[lt],"text-shadow":[lt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Xt,Z,J,b]}],container:["container"],columns:[{columns:[le,Z,J,l]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[ht,"auto",J,Z]}],basis:[{basis:[Xt,"full","auto",l,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[le,Xt,"auto","initial","none",Z]}],grow:[{grow:["",le,J,Z]}],shrink:[{shrink:["",le,J,Z]}],order:[{order:[ht,"first","last","none",J,Z]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:H()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:H()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],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"],size:[{size:X()}],w:[{w:[l,"screen",...X()]}],"min-w":[{"min-w":[l,"screen","none",...X()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,Pn,$t]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,J,Go]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ho,Z]}],"font-family":[{font:[Vg,Z,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,J,Z]}],"line-clamp":[{"line-clamp":[le,"none",J,Go]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",J,Z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",J,Z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:[le,"from-font","auto",J,$t]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[le,"auto",J,Z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J,Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J,Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ht,J,Z],radial:["",J,Z],conic:[ht,J,Z]},Hg,zg]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...F(),"hidden","none"]}],"divide-style":[{divide:[...F(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...F(),"none","hidden"]}],"outline-offset":[{"outline-offset":[le,J,Z]}],"outline-w":[{outline:["",le,Pn,$t]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",f,cr,lr]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",m,cr,lr]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[le,$t]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",h,cr,lr]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[le,J,Z]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[le]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[J,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[le]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",J,Z]}],filter:[{filter:["","none",J,Z]}],blur:[{blur:K()}],brightness:[{brightness:[le,J,Z]}],contrast:[{contrast:[le,J,Z]}],"drop-shadow":[{"drop-shadow":["","none",p,cr,lr]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",le,J,Z]}],"hue-rotate":[{"hue-rotate":[le,J,Z]}],invert:[{invert:["",le,J,Z]}],saturate:[{saturate:[le,J,Z]}],sepia:[{sepia:["",le,J,Z]}],"backdrop-filter":[{"backdrop-filter":["","none",J,Z]}],"backdrop-blur":[{"backdrop-blur":K()}],"backdrop-brightness":[{"backdrop-brightness":[le,J,Z]}],"backdrop-contrast":[{"backdrop-contrast":[le,J,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",le,J,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[le,J,Z]}],"backdrop-invert":[{"backdrop-invert":["",le,J,Z]}],"backdrop-opacity":[{"backdrop-opacity":[le,J,Z]}],"backdrop-saturate":[{"backdrop-saturate":[le,J,Z]}],"backdrop-sepia":[{"backdrop-sepia":["",le,J,Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",J,Z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[le,"initial",J,Z]}],ease:[{ease:["linear","initial",y,J,Z]}],delay:[{delay:[le,J,Z]}],animate:[{animate:["none",w,J,Z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,J,Z]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:oe()}],"skew-x":[{"skew-x":oe()}],"skew-y":[{"skew-y":oe()}],transform:[{transform:[J,Z,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J,Z]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J,Z]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[le,Pn,$t,Go]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function I(...e){return Yg(Fo(e))}const Kg={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"}},qg=(e,t,n)=>{let r;const o=Kg[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Jt(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Xg={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Qg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zg={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Jg={date:Jt({formats:Xg,defaultWidth:"full"}),time:Jt({formats:Qg,defaultWidth:"full"}),dateTime:Jt({formats:Zg,defaultWidth:"full"})},ev={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tv=(e,t,n,r)=>ev[e];function Ze(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):s;o=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const nv={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},rv={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ov={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"]},av={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"]},sv={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"}},iv={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"}},lv={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:Ze({values:nv,defaultWidth:"wide"}),quarter:Ze({values:rv,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ze({values:ov,defaultWidth:"wide"}),day:Ze({values:av,defaultWidth:"wide"}),dayPeriod:Ze({values:sv,defaultWidth:"wide",formattingValues:iv,defaultFormattingWidth:"wide"})};function Je(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?uv(l,m=>m.test(s)):cv(l,m=>m.test(s));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const f=t.slice(s.length);return{value:d,rest:f}}}function cv(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function uv(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Ti(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const l=t.slice(o.length);return{value:s,rest:l}}}const dv=/^(\d+)(th|st|nd|rd)?/i,fv=/\d+/i,mv={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},pv={any:[/^b/i,/^(a|c)/i]},hv={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},gv={any:[/1/i,/2/i,/3/i,/4/i]},vv={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},bv={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]},wv={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},yv={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]},xv={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},Cv={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}},Nv={ordinalNumber:Ti({matchPattern:dv,parsePattern:fv,valueCallback:e=>parseInt(e,10)}),era:Je({matchPatterns:mv,defaultMatchWidth:"wide",parsePatterns:pv,defaultParseWidth:"any"}),quarter:Je({matchPatterns:hv,defaultMatchWidth:"wide",parsePatterns:gv,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Je({matchPatterns:vv,defaultMatchWidth:"wide",parsePatterns:bv,defaultParseWidth:"any"}),day:Je({matchPatterns:wv,defaultMatchWidth:"wide",parsePatterns:yv,defaultParseWidth:"any"}),dayPeriod:Je({matchPatterns:xv,defaultMatchWidth:"any",parsePatterns:Cv,defaultParseWidth:"any"})},Uo={code:"en-US",formatDistance:qg,formatLong:Jg,formatRelative:tv,localize:lv,match:Nv,options:{weekStartsOn:0,firstWeekContainsDate:1}};let Sv={};function ur(){return Sv}const Mi=6048e5,Ev=864e5,ji=Symbol.for("constructDateFrom");function Ve(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ji in e?e[ji](t):e instanceof Date?new e.constructor(t):new Date(t)}function Me(e,t){return Ve(t||e,e)}function _i(e){const t=Me(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 kv(e,...t){const n=Ve.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Ai(e,t){const n=Me(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Pv(e,t,n){const[r,o]=kv(n==null?void 0:n.in,e,t),a=Ai(r),s=Ai(o),l=+a-_i(a),c=+s-_i(s);return Math.round((l-c)/Ev)}function Tv(e,t){const n=Me(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Mv(e,t){const n=Me(e,t==null?void 0:t.in);return Pv(n,Tv(n))+1}function Tn(e,t){var l,c,d,f;const n=ur(),r=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,o=Me(e,t==null?void 0:t.in),a=o.getDay(),s=(a<r?7:0)+a-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function dr(e,t){return Tn(e,{...t,weekStartsOn:1})}function Ii(e,t){const n=Me(e,t==null?void 0:t.in),r=n.getFullYear(),o=Ve(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=dr(o),s=Ve(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const l=dr(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function jv(e,t){const n=Ii(e,t),r=Ve(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),dr(r)}function _v(e,t){const n=Me(e,t==null?void 0:t.in),r=+dr(n)-+jv(n);return Math.round(r/Mi)+1}function Ri(e,t){var f,m,h,p;const n=Me(e,t==null?void 0:t.in),r=n.getFullYear(),o=ur(),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??((p=(h=o.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,s=Ve((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const l=Tn(s,t),c=Ve((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const d=Tn(c,t);return+n>=+l?r+1:+n>=+d?r:r-1}function Av(e,t){var l,c,d,f;const n=ur(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,o=Ri(e,t),a=Ve((t==null?void 0:t.in)||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Tn(a,t)}function Iv(e,t){const n=Me(e,t==null?void 0:t.in),r=+Tn(n,t)-+Av(n,t);return Math.round(r/Mi)+1}function de(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const gt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return de(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):de(n+1,2)},d(e,t){return de(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return de(e.getHours()%12||12,t.length)},H(e,t){return de(e.getHours(),t.length)},m(e,t){return de(e.getMinutes(),t.length)},s(e,t){return de(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return de(o,t.length)}},en={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Di={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 gt.y(e,t)},Y:function(e,t,n,r){const o=Ri(e,r),a=o>0?o:1-o;if(t==="YY"){const s=a%100;return de(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):de(a,t.length)},R:function(e,t){const n=Ii(e);return de(n,t.length)},u:function(e,t){const n=e.getFullYear();return de(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return de(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return de(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return gt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return de(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Iv(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):de(o,t.length)},I:function(e,t,n){const r=_v(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):de(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):gt.d(e,t)},D:function(e,t,n){const r=Mv(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):de(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return de(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return de(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return de(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=en.noon:r===0?o=en.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=en.evening:r>=12?o=en.afternoon:r>=4?o=en.morning:o=en.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 gt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):gt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):de(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):de(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):gt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):gt.s(e,t)},S:function(e,t){return gt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return $i(r);case"XXXX":case"XX":return Lt(r);case"XXXXX":case"XXX":default:return Lt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return $i(r);case"xxxx":case"xx":return Lt(r);case"xxxxx":case"xxx":default:return Lt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Oi(r,":");case"OOOO":default:return"GMT"+Lt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Oi(r,":");case"zzzz":default:return"GMT"+Lt(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return de(r,t.length)},T:function(e,t,n){return de(+e,t.length)}};function Oi(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+de(a,2)}function $i(e,t){return e%60===0?(e>0?"-":"+")+de(Math.abs(e)/60,2):Lt(e,t)}function Lt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=de(Math.trunc(r/60),2),a=de(r%60,2);return n+o+t+a}const Li=(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"})}},Fi=(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"})}},Rv={p:Fi,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Li(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}}",Li(r,t)).replace("{{time}}",Fi(o,t))}},Dv=/^D+$/,Ov=/^Y+$/,$v=["D","DD","YY","YYYY"];function Lv(e){return Dv.test(e)}function Fv(e){return Ov.test(e)}function Bv(e,t,n){const r=zv(e,t,n);if(console.warn(r),$v.includes(e))throw new RangeError(r)}function zv(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`}function Vv(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Wv(e){return!(!Vv(e)&&typeof e!="number"||isNaN(+Me(e)))}const Hv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Gv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Uv=/^'([^]*?)'?$/,Yv=/''/g,Kv=/[a-zA-Z]/;function Yo(e,t,n){var f,m,h,p,v,g,b,y;const r=ur(),o=(n==null?void 0:n.locale)??r.locale??Uo,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??((p=(h=r.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((g=(v=n==null?void 0:n.locale)==null?void 0:v.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((y=(b=r.locale)==null?void 0:b.options)==null?void 0:y.weekStartsOn)??0,l=Me(e,n==null?void 0:n.in);if(!Wv(l))throw new RangeError("Invalid time value");let c=t.match(Gv).map(w=>{const x=w[0];if(x==="p"||x==="P"){const S=Rv[x];return S(w,o.formatLong)}return w}).join("").match(Hv).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const x=w[0];if(x==="'")return{isToken:!1,value:qv(w)};if(Di[x])return{isToken:!0,value:w};if(x.match(Kv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:w}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const d={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return c.map(w=>{if(!w.isToken)return w.value;const x=w.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Fv(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Lv(x))&&Bv(x,t,String(e));const S=Di[x[0]];return S(l,x,o.localize,d)}).join("")}function qv(e){const t=e.match(Uv);return t?t[1].replace(Yv,"'"):e}function Bi(e,t,n){const r=Me(e,n==null?void 0:n.in);if(isNaN(t))return Ve(e,NaN);if(!t)return r;const o=r.getDate(),a=Ve(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const s=a.getDate();return o>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}function Xv(e,t){const n=Me(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Qv(e,t){const n=Me(e,t==null?void 0:t.in),r=n.getFullYear(),o=n.getMonth(),a=Ve(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Zv(e,t,n){return Bi(e,-1,n)}function Jv(e,t){const n=ob(t);return"formatToParts"in n?tb(n,e):nb(n,e)}const eb={year:0,month:1,day:2,hour:3,minute:4,second:5};function tb(e,t){try{const n=e.formatToParts(t),r=[];for(let o=0;o<n.length;o++){const a=eb[n[o].type];a!==void 0&&(r[a]=parseInt(n[o].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function nb(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const Ko={},zi=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),rb=zi==="06/25/2014, 00:00:00"||zi==="06/25/2014 00:00:00";function ob(e){return Ko[e]||(Ko[e]=rb?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Ko[e]}function Vi(e,t,n,r,o,a,s){const l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,a,s),l}const Wi=36e5,ab=6e4,qo={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Hi(e,t,n){if(!e)return 0;let r=qo.timezoneZ.exec(e);if(r)return 0;let o,a;if(r=qo.timezoneHH.exec(e),r)return o=parseInt(r[1],10),Gi(o)?-(o*Wi):NaN;if(r=qo.timezoneHHMM.exec(e),r){o=parseInt(r[2],10);const s=parseInt(r[3],10);return Gi(o,s)?(a=Math.abs(o)*Wi+s*ab,r[1]==="+"?-a:a):NaN}if(lb(e)){t=new Date(t||Date.now());const s=n?t:sb(t),l=Xo(s,e);return-(n?l:ib(t,l,e))}return NaN}function sb(e){return Vi(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Xo(e,t){const n=Jv(e,t),r=Vi(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let o=e.getTime();const a=o%1e3;return o-=a>=0?a:1e3+a,r-o}function ib(e,t,n){let o=e.getTime()-t;const a=Xo(new Date(o),n);if(t===a)return t;o-=a-t;const s=Xo(new Date(o),n);return a===s?a:Math.max(a,s)}function Gi(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const Ui={};function lb(e){if(Ui[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),Ui[e]=!0,!0}catch{return!1}}function Yi(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const cb=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Qo=36e5,Ki=6e4,ub=2,Pe={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:cb};function db(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?ub:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=fb(e),{year:o,restDateString:a}=mb(r.date,n),s=pb(a,o);if(s===null||isNaN(s.getTime()))return new Date(NaN);if(s){const l=s.getTime();let c=0,d;if(r.time&&(c=hb(r.time),c===null||isNaN(c)))return new Date(NaN);if(r.timeZone||t.timeZone){if(d=Hi(r.timeZone||t.timeZone,new Date(l+c)),isNaN(d))return new Date(NaN)}else d=Yi(new Date(l+c)),d=Yi(new Date(l+c+d));return new Date(l+c+d)}else return new Date(NaN)}function fb(e){const t={};let n=Pe.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=Pe.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const o=Pe.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function mb(e,t){if(e){const n=Pe.YYY[t],r=Pe.YYYYY[t];let o=Pe.YYYY.exec(e)||r.exec(e);if(o){const a=o[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(o=Pe.YY.exec(e)||n.exec(e),o){const a=o[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}}return{year:null}}function pb(e,t){if(t===null)return null;let n,r,o;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let a=Pe.MM.exec(e);if(a)return n=new Date(0),r=parseInt(a[1],10)-1,Qi(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(a=Pe.DDD.exec(e),a){n=new Date(0);const s=parseInt(a[1],10);return bb(t,s)?(n.setUTCFullYear(t,0,s),n):new Date(NaN)}if(a=Pe.MMDD.exec(e),a){n=new Date(0),r=parseInt(a[1],10)-1;const s=parseInt(a[2],10);return Qi(t,r,s)?(n.setUTCFullYear(t,r,s),n):new Date(NaN)}if(a=Pe.Www.exec(e),a)return o=parseInt(a[1],10)-1,Zi(o)?qi(t,o):new Date(NaN);if(a=Pe.WwwD.exec(e),a){o=parseInt(a[1],10)-1;const s=parseInt(a[2],10)-1;return Zi(o,s)?qi(t,o,s):new Date(NaN)}return null}function hb(e){let t,n,r=Pe.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),Zo(t)?t%24*Qo:NaN;if(r=Pe.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),Zo(t,n)?t%24*Qo+n*Ki:NaN;if(r=Pe.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const o=parseFloat(r[3].replace(",","."));return Zo(t,n,o)?t%24*Qo+n*Ki+o*1e3:NaN}return null}function qi(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}const gb=[31,28,31,30,31,30,31,31,30,31,30,31],vb=[31,29,31,30,31,30,31,31,30,31,30,31];function Xi(e){return e%400===0||e%4===0&&e%100!==0}function Qi(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=Xi(e);if(r&&n>vb[t]||!r&&n>gb[t])return!1}return!0}function bb(e,t){if(t<1)return!1;const n=Xi(e);return!(n&&t>366||!n&&t>365)}function Zi(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function Zo(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}function wb(e,t,n){e=db(e,n);const r=Hi(t,e,!0),o=new Date(e.getTime()-r),a=new Date(0);return a.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),a.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),a}const yb=(e,t="pt-BR",n="BRL")=>new Intl.NumberFormat(t,{style:"currency",currency:n,minimumFractionDigits:2}).format(e),Jo=(e,t=2)=>{for(e=e.toString();e.length<t;)e="0"+e;return e},xb=e=>{if(!e)return"";const t=wb(new Date(e.seconds?e.seconds*1e3:e),"America/Sao_Paulo");return[Jo(t.getUTCDate(),2),Jo(t.getUTCMonth()+1,2),t.getUTCFullYear()].join("/")},Cb=e=>new Intl.DateTimeFormat("pt-BR",{year:"2-digit",month:"short"}).format(e),Nb=e=>new Intl.DateTimeFormat("pt-BR",{day:"2-digit",month:"2-digit"}).format(e),Sb=e=>new Intl.DateTimeFormat("pt-BR",{year:"2-digit",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(new Date(e)),Eb=e=>new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(e),kb=e=>new Intl.DateTimeFormat("pt-BR",{dateStyle:"long"}).format(e),Pb=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long",weekday:"long"}).format(new Date(e)),Tb=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long",weekday:"long",year:"numeric"}).format(new Date(e)),Mb=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long"}).format(new Date(e)),jb=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{dateStyle:"long"}).format(typeof e=="string"?new Date(e):e),_b=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{dateStyle:"short"}).format(e),Ab=e=>e.slice(0,7),Ib=(e,t="pt-BR")=>e.toLocaleDateString(t,{weekday:"short",day:"2-digit",month:"2-digit"});function ea(e,t){const n={...t};for(const r in e)e.hasOwnProperty(r)&&(typeof e[r]=="object"&&e[r]!==null&&!Array.isArray(e[r])&&typeof t[r]=="object"&&t[r]!==null&&!Array.isArray(t[r])?n[r]=ea(e[r],t[r]):n[r]=e[r]);return n}const Ie=e=>e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase():"",ta=e=>e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replaceAll(" ","").toLowerCase():"",Ji=(e,t)=>ta(e).includes(ta(t)),Rb=(e,t)=>Ie(e)<Ie(t)?-1:Ie(e)>Ie(t)?1:0,Db=(e,t)=>Ie(e.name)<Ie(t.name)?-1:Ie(e.name)>Ie(t.name)?1:0,Ob=(e,t,n)=>e[n]<t[n]?-1:e[n]>t[n]?1:0,$b=(e,t,n)=>e[n]>t[n]?-1:e[n]<t[n]?1:0,Lb=(e,t,n,r)=>Ie(e[n][r])<Ie(t[n][r])?-1:Ie(e[n][r])>Ie(t[n][r])?1:0,Fb=e=>e.charAt(0).toUpperCase()+e.slice(1),el=(e,t)=>e.replace(/{{\s*(\w+)\s*}}/g,(n,r)=>t[r]!==void 0?String(t[r]):""),Bb=({children:e,className:t,...n})=>i.jsx("div",{className:I("grid w-full auto-rows-[22rem] grid-cols-3 gap-4",t),...n,children:e}),zb=({children:e,className:t,...n})=>i.jsx("div",{className:I("group relative col-span-3 flex flex-col justify-between overflow-hidden rounded-xl","bg-white [box-shadow:0_0_0_1px_rgba(0,0,0,.03),0_2px_4px_rgba(0,0,0,.05),0_12px_24px_rgba(0,0,0,.05)]","transform-gpu dark:bg-black dark:[border:1px_solid_rgba(255,255,255,.1)] dark:[box-shadow:0_-20px_80px_-20px_#ffffff1f_inset]",t),...n,children:e});function tl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function et(...e){return t=>{let n=!1;const r=e.map(o=>{const a=tl(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():tl(e[o],null)}}}}function re(...e){return u.useCallback(et(...e),e)}function vt(e){const t=Wb(e),n=u.forwardRef((r,o)=>{const{children:a,...s}=r,l=u.Children.toArray(a),c=l.find(Hb);if(c){const d=c.props.children,f=l.map(m=>m===c?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:m);return i.jsx(t,{...s,ref:o,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return i.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Vb=vt("Slot");function Wb(e){const t=u.forwardRef((n,r)=>{const{children:o,...a}=n;if(u.isValidElement(o)){const s=Ub(o),l=Gb(a,o.props);return o.type!==u.Fragment&&(l.ref=r?et(r,s):s),u.cloneElement(o,l)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var nl=Symbol("radix.slottable");function rl(e){const t=({children:n})=>i.jsx(i.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=nl,t}function Hb(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nl}function Gb(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]=(...l)=>{const c=a(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Ub(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)}const ol=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Yb=e=>{if(e==="true")return!0;if(e==="false")return!1;const t=Number(e);return Number.isNaN(t)?e:t},Kb=e=>{const t=function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return Fo(a)};return{compose:function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return Object.assign(c=>{const d=Object.fromEntries(Object.entries(c||{}).filter(f=>{let[m]=f;return!["class","className"].includes(m)}));return t(a.map(f=>f(d)),c==null?void 0:c.class,c==null?void 0:c.className)},{variants:a.reduce((c,d)=>{let{variants:f}=d;for(const m in f)c[m]=[...new Set([...c[m]??[],...f[m]??[]])];return c},{})})},cva:o=>{const{variants:a,defaultVariants:s}=o??{};return Object.assign(c=>{var d;if(a==null)return t(o==null?void 0:o.base,c==null?void 0:c.class,c==null?void 0:c.className);const f=Object.keys(a).map(p=>{const v=c==null?void 0:c[p],g=s==null?void 0:s[p],b=ol(v)||ol(g);return a[p][b]}),m={...s,...c&&Object.entries(c).reduce((p,v)=>{let[g,b]=v;return b!==void 0&&Object.assign(p,{[g]:b}),p},{})},h=o==null||(d=o.compoundVariants)===null||d===void 0?void 0:d.reduce((p,v)=>{let{class:g,className:b,...y}=v;return Object.entries(y).every(w=>{let[x,S]=w;const k=m[x];return Array.isArray(S)?S.includes(k):k===S})?[...p,g,b]:p},[]);return t(o==null?void 0:o.base,f,h,c==null?void 0:c.class,c==null?void 0:c.className)},{variants:a?Object.fromEntries(Object.entries(a).filter(c=>{let[d]=c;return!d.startsWith("$")}).map(c=>{let[d,f]=c;return[d,Object.keys(f).map(m=>Yb(m))]})):{}})},cx:t}},{cva:al}=Kb(),na={base:["inline-flex items-center justify-center gap-2 whitespace-nowrap hover:cursor-pointer","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:{sm:"h-8 px-3 text-xs",md:"h-9 px-4 py-2",lg:"h-10 px-8",xl:"h-12 px-10 text-xl",icon:"h-9 w-9"},rounded:{true:"rounded-full"}},defaultVariants:{variant:"default",size:"md",rounded:!1}},fr=al(na),fe=u.forwardRef(({className:e,variant:t="default",size:n="md",rounded:r=!1,isLoading:o=!1,asChild:a=!1,theme:s=na,...l},c)=>{const d=a?Vb:"button",f=ea(s,na),m=al(f);return i.jsxs(d,{className:I(m({variant:t,size:n,rounded:r,className:e})),ref:c,...l,disabled:o||l.disabled,children:[o&&i.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","data-testid":"loader-svg",children:[i.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),i.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"})]}),l.children]})});fe.displayName="Button";const mr=u.forwardRef(({className:e,...t},n)=>i.jsx("div",{className:"relative w-full overflow-auto",children:i.jsx("table",{ref:n,className:I("w-full caption-bottom text-sm",e),...t})}));mr.displayName="Table";const pr=u.forwardRef(({className:e,...t},n)=>i.jsx("thead",{ref:n,className:I("[&_tr]:border-b",e),...t}));pr.displayName="TableHeader";const hr=u.forwardRef(({className:e,...t},n)=>i.jsx("tbody",{ref:n,className:I("[&_tr:last-child]:border-0",e),...t}));hr.displayName="TableBody";const sl=u.forwardRef(({className:e,...t},n)=>i.jsx("tfoot",{ref:n,className:I("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));sl.displayName="TableFooter";const tn=u.forwardRef(({className:e,...t},n)=>i.jsx("tr",{ref:n,className:I("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));tn.displayName="TableRow";const Mn=u.forwardRef(({className:e,...t},n)=>i.jsx("th",{ref:n,className:I("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}));Mn.displayName="TableHead";const nn=u.forwardRef(({className:e,...t},n)=>i.jsx("td",{ref:n,className:I("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));nn.displayName="TableCell";const il=u.forwardRef(({className:e,...t},n)=>i.jsx("caption",{ref:n,className:I("mt-4 text-sm text-muted-foreground",e),...t}));il.displayName="TableCaption";/**
|
|
22
|
+
<%s key={someKey} {...props} />`,D,K,Q,K),O[K+D]=!0)}if(K=null,T!==void 0&&(n(T),K=""+T),s(Y)&&(n(Y.key),K=""+Y.key),"key"in Y){T={};for(var ne in Y)ne!=="key"&&(T[ne]=Y[ne])}else T=Y;return K&&l(T,typeof j=="function"?j.displayName||j.name||"Unknown":j),d(j,K,F,L,o(),T,ee,I)}function m(j){typeof j=="object"&&j!==null&&j.$$typeof===p&&j._store&&(j._store.validated=1)}var h=C,p=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),x=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),H=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,W=Array.isArray,U=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(j){return j()}};var te,V={},X=h["react-stack-bottom-frame"].bind(h,a)(),R=U(r(a)),O={};Pn.Fragment=g,Pn.jsx=function(j,Y,T,D,L){var F=1e4>H.recentlyCreatedOwnerStacks++;return f(j,Y,T,!1,D,L,F?Error("react-stack-top-frame"):X,F?U(r(j)):R)},Pn.jsxs=function(j,Y,T,D,L){var F=1e4>H.recentlyCreatedOwnerStacks++;return f(j,Y,T,!0,D,L,F?Error("react-stack-top-frame"):X,F?U(r(j)):R)}}()),Pn}var fi;function gg(){return fi||(fi=1,process.env.NODE_ENV==="production"?ir.exports=pg():ir.exports=hg()),ir.exports}var i=gg();function mi(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=mi(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Fo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=mi(e))&&(r&&(r+=" "),r+=t);return r}const Bo="-",vg=e=>{const t=wg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(Bo);return l[0]===""&&l.length!==1&&l.shift(),pi(l,t)||bg(s)},getConflictingClassGroupIds:(s,l)=>{const c=n[s]||[];return l&&r[s]?[...c,...r[s]]:c}}},pi=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?pi(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Bo);return(s=t.validators.find(({validator:l})=>l(a)))==null?void 0:s.classGroupId},hi=/^\[(.+)\]$/,bg=e=>{if(hi.test(e)){const t=hi.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},wg=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)zo(n[o],r,o,t);return r},zo=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:gi(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(yg(o)){zo(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{zo(s,gi(t,a),n,r)})})},gi=(e,t)=>{let n=e;return t.split(Bo).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},yg=e=>e.isThemeGetter,xg=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)}}},Vo="!",Wo=":",Cg=Wo.length,Ng=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,l=0,c=0,d;for(let v=0;v<o.length;v++){let g=o[v];if(s===0&&l===0){if(g===Wo){a.push(o.slice(c,v)),c=v+Cg;continue}if(g==="/"){d=v;continue}}g==="["?s++:g==="]"?s--:g==="("?l++:g===")"&&l--}const f=a.length===0?o:o.substring(c),m=Sg(f),h=m!==f,p=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:p}};if(t){const o=t+Wo,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},Sg=e=>e.endsWith(Vo)?e.substring(0,e.length-1):e.startsWith(Vo)?e.substring(1):e,Eg=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},kg=e=>({cache:xg(e.cacheSize),parseClassName:Ng(e),sortModifiers:Eg(e),...vg(e)}),Pg=/\s+/,Tg=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],l=e.trim().split(Pg);let c="";for(let d=l.length-1;d>=0;d-=1){const f=l[d],{isExternal:m,modifiers:h,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:g}=n(f);if(m){c=f+(c.length>0?" "+c:c);continue}let b=!!g,y=r(b?v.substring(0,g):v);if(!y){if(!b){c=f+(c.length>0?" "+c:c);continue}if(y=r(v),!y){c=f+(c.length>0?" "+c:c);continue}b=!1}const w=a(h).join(":"),x=p?w+Vo:w,S=x+y;if(s.includes(S))continue;s.push(S);const k=o(y,b);for(let M=0;M<k.length;++M){const E=k[M];s.push(x+E)}c=f+(c.length>0?" "+c:c)}return c};function Mg(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=vi(t))&&(r&&(r+=" "),r+=n);return r}const vi=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=vi(e[r]))&&(n&&(n+=" "),n+=t);return n};function jg(e,...t){let n,r,o,a=s;function s(c){const d=t.reduce((f,m)=>m(f),e());return n=kg(d),r=n.cache.get,o=n.cache.set,a=l,l(c)}function l(c){const d=r(c);if(d)return d;const f=Tg(c,n);return o(c,f),f}return function(){return a(Mg.apply(null,arguments))}}const Ne=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},bi=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wi=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_g=/^\d+\/\d+$/,Ag=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ig=/\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$/,Rg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Dg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Og=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xt=e=>_g.test(e),le=e=>!!e&&!Number.isNaN(Number(e)),ht=e=>!!e&&Number.isInteger(Number(e)),Ho=e=>e.endsWith("%")&&le(e.slice(0,-1)),lt=e=>Ag.test(e),$g=()=>!0,Lg=e=>Ig.test(e)&&!Rg.test(e),yi=()=>!1,Fg=e=>Dg.test(e),Bg=e=>Og.test(e),zg=e=>!Z(e)&&!J(e),Vg=e=>Qt(e,Ei,yi),Z=e=>bi.test(e),$t=e=>Qt(e,ki,Lg),Go=e=>Qt(e,Yg,le),xi=e=>Qt(e,Ni,yi),Wg=e=>Qt(e,Si,Bg),lr=e=>Qt(e,Pi,Fg),J=e=>wi.test(e),Tn=e=>Zt(e,ki),Hg=e=>Zt(e,Kg),Ci=e=>Zt(e,Ni),Gg=e=>Zt(e,Ei),Ug=e=>Zt(e,Si),cr=e=>Zt(e,Pi,!0),Qt=(e,t,n)=>{const r=bi.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Zt=(e,t,n=!1)=>{const r=wi.exec(e);return r?r[1]?t(r[1]):n:!1},Ni=e=>e==="position"||e==="percentage",Si=e=>e==="image"||e==="url",Ei=e=>e==="length"||e==="size"||e==="bg-size",ki=e=>e==="length",Yg=e=>e==="number",Kg=e=>e==="family-name",Pi=e=>e==="shadow",qg=jg(()=>{const e=Ne("color"),t=Ne("font"),n=Ne("text"),r=Ne("font-weight"),o=Ne("tracking"),a=Ne("leading"),s=Ne("breakpoint"),l=Ne("container"),c=Ne("spacing"),d=Ne("radius"),f=Ne("shadow"),m=Ne("inset-shadow"),h=Ne("text-shadow"),p=Ne("drop-shadow"),v=Ne("blur"),g=Ne("perspective"),b=Ne("aspect"),y=Ne("ease"),w=Ne("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...S(),J,Z],M=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],P=()=>[J,Z,c],_=()=>[Xt,"full","auto",...P()],$=()=>[ht,"none","subgrid",J,Z],H=()=>["auto",{span:["full",ht,J,Z]},ht,J,Z],q=()=>[ht,"auto",J,Z],W=()=>["auto","min","max","fr",J,Z],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...P()],X=()=>[Xt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],R=()=>[e,J,Z],O=()=>[...S(),Ci,xi,{position:[J,Z]}],j=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",Gg,Vg,{size:[J,Z]}],T=()=>[Ho,Tn,$t],D=()=>["","none","full",d,J,Z],L=()=>["",le,Tn,$t],F=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[le,Ho,Ci,xi],K=()=>["","none",v,J,Z],Q=()=>["none",le,J,Z],ne=()=>["none",le,J,Z],oe=()=>[le,J,Z],ie=()=>[Xt,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[lt],breakpoint:[lt],color:[$g],container:[lt],"drop-shadow":[lt],ease:["in","out","in-out"],font:[zg],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[lt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[lt],shadow:[lt],spacing:["px",le],text:[lt],"text-shadow":[lt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Xt,Z,J,b]}],container:["container"],columns:[{columns:[le,Z,J,l]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[ht,"auto",J,Z]}],basis:[{basis:[Xt,"full","auto",l,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[le,Xt,"auto","initial","none",Z]}],grow:[{grow:["",le,J,Z]}],shrink:[{shrink:["",le,J,Z]}],order:[{order:[ht,"first","last","none",J,Z]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:H()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:H()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],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"],size:[{size:X()}],w:[{w:[l,"screen",...X()]}],"min-w":[{"min-w":[l,"screen","none",...X()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,Tn,$t]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,J,Go]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ho,Z]}],"font-family":[{font:[Hg,Z,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,J,Z]}],"line-clamp":[{"line-clamp":[le,"none",J,Go]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",J,Z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",J,Z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:[le,"from-font","auto",J,$t]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[le,"auto",J,Z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J,Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J,Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ht,J,Z],radial:["",J,Z],conic:[ht,J,Z]},Ug,Wg]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...F(),"hidden","none"]}],"divide-style":[{divide:[...F(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...F(),"none","hidden"]}],"outline-offset":[{"outline-offset":[le,J,Z]}],"outline-w":[{outline:["",le,Tn,$t]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",f,cr,lr]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",m,cr,lr]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[le,$t]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",h,cr,lr]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[le,J,Z]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[le]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[J,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[le]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",J,Z]}],filter:[{filter:["","none",J,Z]}],blur:[{blur:K()}],brightness:[{brightness:[le,J,Z]}],contrast:[{contrast:[le,J,Z]}],"drop-shadow":[{"drop-shadow":["","none",p,cr,lr]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",le,J,Z]}],"hue-rotate":[{"hue-rotate":[le,J,Z]}],invert:[{invert:["",le,J,Z]}],saturate:[{saturate:[le,J,Z]}],sepia:[{sepia:["",le,J,Z]}],"backdrop-filter":[{"backdrop-filter":["","none",J,Z]}],"backdrop-blur":[{"backdrop-blur":K()}],"backdrop-brightness":[{"backdrop-brightness":[le,J,Z]}],"backdrop-contrast":[{"backdrop-contrast":[le,J,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",le,J,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[le,J,Z]}],"backdrop-invert":[{"backdrop-invert":["",le,J,Z]}],"backdrop-opacity":[{"backdrop-opacity":[le,J,Z]}],"backdrop-saturate":[{"backdrop-saturate":[le,J,Z]}],"backdrop-sepia":[{"backdrop-sepia":["",le,J,Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",J,Z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[le,"initial",J,Z]}],ease:[{ease:["linear","initial",y,J,Z]}],delay:[{delay:[le,J,Z]}],animate:[{animate:["none",w,J,Z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,J,Z]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:oe()}],"skew-x":[{"skew-x":oe()}],"skew-y":[{"skew-y":oe()}],transform:[{transform:[J,Z,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J,Z]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J,Z]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[le,Tn,$t,Go]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function A(...e){return qg(Fo(e))}const Xg={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"}},Qg=(e,t,n)=>{let r;const o=Xg[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Jt(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Zg={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Jg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ev={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},tv={date:Jt({formats:Zg,defaultWidth:"full"}),time:Jt({formats:Jg,defaultWidth:"full"}),dateTime:Jt({formats:ev,defaultWidth:"full"})},nv={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},rv=(e,t,n,r)=>nv[e];function Ze(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):s;o=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const ov={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},av={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},sv={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"]},iv={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"]},lv={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"}},cv={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"}},uv={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:Ze({values:ov,defaultWidth:"wide"}),quarter:Ze({values:av,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ze({values:sv,defaultWidth:"wide"}),day:Ze({values:iv,defaultWidth:"wide"}),dayPeriod:Ze({values:lv,defaultWidth:"wide",formattingValues:cv,defaultFormattingWidth:"wide"})};function Je(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?fv(l,m=>m.test(s)):dv(l,m=>m.test(s));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const f=t.slice(s.length);return{value:d,rest:f}}}function dv(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function fv(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Ti(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const l=t.slice(o.length);return{value:s,rest:l}}}const mv=/^(\d+)(th|st|nd|rd)?/i,pv=/\d+/i,hv={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},gv={any:[/^b/i,/^(a|c)/i]},vv={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},bv={any:[/1/i,/2/i,/3/i,/4/i]},wv={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},yv={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]},xv={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},Cv={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]},Nv={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},Sv={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}},Ev={ordinalNumber:Ti({matchPattern:mv,parsePattern:pv,valueCallback:e=>parseInt(e,10)}),era:Je({matchPatterns:hv,defaultMatchWidth:"wide",parsePatterns:gv,defaultParseWidth:"any"}),quarter:Je({matchPatterns:vv,defaultMatchWidth:"wide",parsePatterns:bv,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Je({matchPatterns:wv,defaultMatchWidth:"wide",parsePatterns:yv,defaultParseWidth:"any"}),day:Je({matchPatterns:xv,defaultMatchWidth:"wide",parsePatterns:Cv,defaultParseWidth:"any"}),dayPeriod:Je({matchPatterns:Nv,defaultMatchWidth:"any",parsePatterns:Sv,defaultParseWidth:"any"})},Uo={code:"en-US",formatDistance:Qg,formatLong:tv,formatRelative:rv,localize:uv,match:Ev,options:{weekStartsOn:0,firstWeekContainsDate:1}};let kv={};function ur(){return kv}const Mi=6048e5,Pv=864e5,ji=Symbol.for("constructDateFrom");function Ve(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ji in e?e[ji](t):e instanceof Date?new e.constructor(t):new Date(t)}function Me(e,t){return Ve(t||e,e)}function _i(e){const t=Me(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 Tv(e,...t){const n=Ve.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Ai(e,t){const n=Me(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Mv(e,t,n){const[r,o]=Tv(n==null?void 0:n.in,e,t),a=Ai(r),s=Ai(o),l=+a-_i(a),c=+s-_i(s);return Math.round((l-c)/Pv)}function jv(e,t){const n=Me(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function _v(e,t){const n=Me(e,t==null?void 0:t.in);return Mv(n,jv(n))+1}function Mn(e,t){var l,c,d,f;const n=ur(),r=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,o=Me(e,t==null?void 0:t.in),a=o.getDay(),s=(a<r?7:0)+a-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function dr(e,t){return Mn(e,{...t,weekStartsOn:1})}function Ii(e,t){const n=Me(e,t==null?void 0:t.in),r=n.getFullYear(),o=Ve(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=dr(o),s=Ve(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const l=dr(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function Av(e,t){const n=Ii(e,t),r=Ve(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),dr(r)}function Iv(e,t){const n=Me(e,t==null?void 0:t.in),r=+dr(n)-+Av(n);return Math.round(r/Mi)+1}function Ri(e,t){var f,m,h,p;const n=Me(e,t==null?void 0:t.in),r=n.getFullYear(),o=ur(),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??((p=(h=o.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,s=Ve((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const l=Mn(s,t),c=Ve((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const d=Mn(c,t);return+n>=+l?r+1:+n>=+d?r:r-1}function Rv(e,t){var l,c,d,f;const n=ur(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,o=Ri(e,t),a=Ve((t==null?void 0:t.in)||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Mn(a,t)}function Dv(e,t){const n=Me(e,t==null?void 0:t.in),r=+Mn(n,t)-+Rv(n,t);return Math.round(r/Mi)+1}function fe(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const gt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return fe(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):fe(n+1,2)},d(e,t){return fe(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 fe(e.getHours()%12||12,t.length)},H(e,t){return fe(e.getHours(),t.length)},m(e,t){return fe(e.getMinutes(),t.length)},s(e,t){return fe(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return fe(o,t.length)}},en={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Di={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 gt.y(e,t)},Y:function(e,t,n,r){const o=Ri(e,r),a=o>0?o:1-o;if(t==="YY"){const s=a%100;return fe(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):fe(a,t.length)},R:function(e,t){const n=Ii(e);return fe(n,t.length)},u:function(e,t){const n=e.getFullYear();return fe(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 fe(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 fe(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 gt.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 fe(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=Dv(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):fe(o,t.length)},I:function(e,t,n){const r=Iv(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):fe(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):gt.d(e,t)},D:function(e,t,n){const r=_v(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):fe(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 fe(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 fe(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 fe(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=en.noon:r===0?o=en.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=en.evening:r>=12?o=en.afternoon:r>=4?o=en.morning:o=en.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 gt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):gt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):fe(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):fe(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):gt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):gt.s(e,t)},S:function(e,t){return gt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return $i(r);case"XXXX":case"XX":return Lt(r);case"XXXXX":case"XXX":default:return Lt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return $i(r);case"xxxx":case"xx":return Lt(r);case"xxxxx":case"xxx":default:return Lt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Oi(r,":");case"OOOO":default:return"GMT"+Lt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Oi(r,":");case"zzzz":default:return"GMT"+Lt(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return fe(r,t.length)},T:function(e,t,n){return fe(+e,t.length)}};function Oi(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+fe(a,2)}function $i(e,t){return e%60===0?(e>0?"-":"+")+fe(Math.abs(e)/60,2):Lt(e,t)}function Lt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=fe(Math.trunc(r/60),2),a=fe(r%60,2);return n+o+t+a}const Li=(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"})}},Fi=(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"})}},Ov={p:Fi,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Li(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}}",Li(r,t)).replace("{{time}}",Fi(o,t))}},$v=/^D+$/,Lv=/^Y+$/,Fv=["D","DD","YY","YYYY"];function Bv(e){return $v.test(e)}function zv(e){return Lv.test(e)}function Vv(e,t,n){const r=Wv(e,t,n);if(console.warn(r),Fv.includes(e))throw new RangeError(r)}function Wv(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`}function Hv(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Gv(e){return!(!Hv(e)&&typeof e!="number"||isNaN(+Me(e)))}const Uv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Yv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Kv=/^'([^]*?)'?$/,qv=/''/g,Xv=/[a-zA-Z]/;function Yo(e,t,n){var f,m,h,p,v,g,b,y;const r=ur(),o=(n==null?void 0:n.locale)??r.locale??Uo,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??((p=(h=r.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((g=(v=n==null?void 0:n.locale)==null?void 0:v.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((y=(b=r.locale)==null?void 0:b.options)==null?void 0:y.weekStartsOn)??0,l=Me(e,n==null?void 0:n.in);if(!Gv(l))throw new RangeError("Invalid time value");let c=t.match(Yv).map(w=>{const x=w[0];if(x==="p"||x==="P"){const S=Ov[x];return S(w,o.formatLong)}return w}).join("").match(Uv).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const x=w[0];if(x==="'")return{isToken:!1,value:Qv(w)};if(Di[x])return{isToken:!0,value:w};if(x.match(Xv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:w}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const d={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return c.map(w=>{if(!w.isToken)return w.value;const x=w.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&zv(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Bv(x))&&Vv(x,t,String(e));const S=Di[x[0]];return S(l,x,o.localize,d)}).join("")}function Qv(e){const t=e.match(Kv);return t?t[1].replace(qv,"'"):e}function Bi(e,t,n){const r=Me(e,n==null?void 0:n.in);if(isNaN(t))return Ve(e,NaN);if(!t)return r;const o=r.getDate(),a=Ve(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const s=a.getDate();return o>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}function Zv(e,t){const n=Me(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Jv(e,t){const n=Me(e,t==null?void 0:t.in),r=n.getFullYear(),o=n.getMonth(),a=Ve(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function eb(e,t,n){return Bi(e,-1,n)}function tb(e,t){const n=sb(t);return"formatToParts"in n?rb(n,e):ob(n,e)}const nb={year:0,month:1,day:2,hour:3,minute:4,second:5};function rb(e,t){try{const n=e.formatToParts(t),r=[];for(let o=0;o<n.length;o++){const a=nb[n[o].type];a!==void 0&&(r[a]=parseInt(n[o].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function ob(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const Ko={},zi=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),ab=zi==="06/25/2014, 00:00:00"||zi==="06/25/2014 00:00:00";function sb(e){return Ko[e]||(Ko[e]=ab?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Ko[e]}function Vi(e,t,n,r,o,a,s){const l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,a,s),l}const Wi=36e5,ib=6e4,qo={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Hi(e,t,n){if(!e)return 0;let r=qo.timezoneZ.exec(e);if(r)return 0;let o,a;if(r=qo.timezoneHH.exec(e),r)return o=parseInt(r[1],10),Gi(o)?-(o*Wi):NaN;if(r=qo.timezoneHHMM.exec(e),r){o=parseInt(r[2],10);const s=parseInt(r[3],10);return Gi(o,s)?(a=Math.abs(o)*Wi+s*ib,r[1]==="+"?-a:a):NaN}if(ub(e)){t=new Date(t||Date.now());const s=n?t:lb(t),l=Xo(s,e);return-(n?l:cb(t,l,e))}return NaN}function lb(e){return Vi(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Xo(e,t){const n=tb(e,t),r=Vi(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let o=e.getTime();const a=o%1e3;return o-=a>=0?a:1e3+a,r-o}function cb(e,t,n){let o=e.getTime()-t;const a=Xo(new Date(o),n);if(t===a)return t;o-=a-t;const s=Xo(new Date(o),n);return a===s?a:Math.max(a,s)}function Gi(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const Ui={};function ub(e){if(Ui[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),Ui[e]=!0,!0}catch{return!1}}function Yi(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const db=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Qo=36e5,Ki=6e4,fb=2,Pe={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:db};function mb(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?fb:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=pb(e),{year:o,restDateString:a}=hb(r.date,n),s=gb(a,o);if(s===null||isNaN(s.getTime()))return new Date(NaN);if(s){const l=s.getTime();let c=0,d;if(r.time&&(c=vb(r.time),c===null||isNaN(c)))return new Date(NaN);if(r.timeZone||t.timeZone){if(d=Hi(r.timeZone||t.timeZone,new Date(l+c)),isNaN(d))return new Date(NaN)}else d=Yi(new Date(l+c)),d=Yi(new Date(l+c+d));return new Date(l+c+d)}else return new Date(NaN)}function pb(e){const t={};let n=Pe.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=Pe.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const o=Pe.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function hb(e,t){if(e){const n=Pe.YYY[t],r=Pe.YYYYY[t];let o=Pe.YYYY.exec(e)||r.exec(e);if(o){const a=o[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(o=Pe.YY.exec(e)||n.exec(e),o){const a=o[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}}return{year:null}}function gb(e,t){if(t===null)return null;let n,r,o;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let a=Pe.MM.exec(e);if(a)return n=new Date(0),r=parseInt(a[1],10)-1,Qi(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(a=Pe.DDD.exec(e),a){n=new Date(0);const s=parseInt(a[1],10);return yb(t,s)?(n.setUTCFullYear(t,0,s),n):new Date(NaN)}if(a=Pe.MMDD.exec(e),a){n=new Date(0),r=parseInt(a[1],10)-1;const s=parseInt(a[2],10);return Qi(t,r,s)?(n.setUTCFullYear(t,r,s),n):new Date(NaN)}if(a=Pe.Www.exec(e),a)return o=parseInt(a[1],10)-1,Zi(o)?qi(t,o):new Date(NaN);if(a=Pe.WwwD.exec(e),a){o=parseInt(a[1],10)-1;const s=parseInt(a[2],10)-1;return Zi(o,s)?qi(t,o,s):new Date(NaN)}return null}function vb(e){let t,n,r=Pe.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),Zo(t)?t%24*Qo:NaN;if(r=Pe.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),Zo(t,n)?t%24*Qo+n*Ki:NaN;if(r=Pe.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const o=parseFloat(r[3].replace(",","."));return Zo(t,n,o)?t%24*Qo+n*Ki+o*1e3:NaN}return null}function qi(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}const bb=[31,28,31,30,31,30,31,31,30,31,30,31],wb=[31,29,31,30,31,30,31,31,30,31,30,31];function Xi(e){return e%400===0||e%4===0&&e%100!==0}function Qi(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=Xi(e);if(r&&n>wb[t]||!r&&n>bb[t])return!1}return!0}function yb(e,t){if(t<1)return!1;const n=Xi(e);return!(n&&t>366||!n&&t>365)}function Zi(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function Zo(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}function xb(e,t,n){e=mb(e,n);const r=Hi(t,e,!0),o=new Date(e.getTime()-r),a=new Date(0);return a.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),a.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),a}const Cb=(e,t="pt-BR",n="BRL")=>new Intl.NumberFormat(t,{style:"currency",currency:n,minimumFractionDigits:2}).format(e),Jo=(e,t=2)=>{for(e=e.toString();e.length<t;)e="0"+e;return e},Nb=e=>{if(!e)return"";const t=xb(new Date(e.seconds?e.seconds*1e3:e),"America/Sao_Paulo");return[Jo(t.getUTCDate(),2),Jo(t.getUTCMonth()+1,2),t.getUTCFullYear()].join("/")},Sb=e=>new Intl.DateTimeFormat("pt-BR",{year:"2-digit",month:"short"}).format(e),Eb=e=>new Intl.DateTimeFormat("pt-BR",{day:"2-digit",month:"2-digit"}).format(e),kb=e=>new Intl.DateTimeFormat("pt-BR",{year:"2-digit",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(new Date(e)),Pb=e=>new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(e),Tb=e=>new Intl.DateTimeFormat("pt-BR",{dateStyle:"long"}).format(e),Mb=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long",weekday:"long"}).format(new Date(e)),jb=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long",weekday:"long",year:"numeric"}).format(new Date(e)),_b=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long"}).format(new Date(e)),Ab=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{dateStyle:"long"}).format(typeof e=="string"?new Date(e):e),Ib=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{dateStyle:"short"}).format(e),Rb=e=>e.slice(0,7),Db=(e,t="pt-BR")=>e.toLocaleDateString(t,{weekday:"short",day:"2-digit",month:"2-digit"});function ea(e,t){const n={...t};for(const r in e)e.hasOwnProperty(r)&&(typeof e[r]=="object"&&e[r]!==null&&!Array.isArray(e[r])&&typeof t[r]=="object"&&t[r]!==null&&!Array.isArray(t[r])?n[r]=ea(e[r],t[r]):n[r]=e[r]);return n}const Ie=e=>e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase():"",ta=e=>e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replaceAll(" ","").toLowerCase():"",Ji=(e,t)=>ta(e).includes(ta(t)),Ob=(e,t)=>Ie(e)<Ie(t)?-1:Ie(e)>Ie(t)?1:0,$b=(e,t)=>Ie(e.name)<Ie(t.name)?-1:Ie(e.name)>Ie(t.name)?1:0,Lb=(e,t,n)=>e[n]<t[n]?-1:e[n]>t[n]?1:0,Fb=(e,t,n)=>e[n]>t[n]?-1:e[n]<t[n]?1:0,Bb=(e,t,n,r)=>Ie(e[n][r])<Ie(t[n][r])?-1:Ie(e[n][r])>Ie(t[n][r])?1:0,zb=e=>e.charAt(0).toUpperCase()+e.slice(1),el=(e,t)=>e.replace(/{{\s*(\w+)\s*}}/g,(n,r)=>t[r]!==void 0?String(t[r]):""),Vb=({children:e,className:t,...n})=>i.jsx("div",{className:A("grid w-full auto-rows-[22rem] grid-cols-3 gap-4",t),...n,children:e}),Wb=({children:e,className:t,...n})=>i.jsx("div",{className:A("group relative col-span-3 flex flex-col justify-between overflow-hidden rounded-xl","bg-white [box-shadow:0_0_0_1px_rgba(0,0,0,.03),0_2px_4px_rgba(0,0,0,.05),0_12px_24px_rgba(0,0,0,.05)]","transform-gpu dark:bg-black dark:[border:1px_solid_rgba(255,255,255,.1)] dark:[box-shadow:0_-20px_80px_-20px_#ffffff1f_inset]",t),...n,children:e});function tl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function et(...e){return t=>{let n=!1;const r=e.map(o=>{const a=tl(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():tl(e[o],null)}}}}function re(...e){return u.useCallback(et(...e),e)}function vt(e){const t=Gb(e),n=u.forwardRef((r,o)=>{const{children:a,...s}=r,l=u.Children.toArray(a),c=l.find(Ub);if(c){const d=c.props.children,f=l.map(m=>m===c?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:m);return i.jsx(t,{...s,ref:o,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return i.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Hb=vt("Slot");function Gb(e){const t=u.forwardRef((n,r)=>{const{children:o,...a}=n;if(u.isValidElement(o)){const s=Kb(o),l=Yb(a,o.props);return o.type!==u.Fragment&&(l.ref=r?et(r,s):s),u.cloneElement(o,l)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var nl=Symbol("radix.slottable");function rl(e){const t=({children:n})=>i.jsx(i.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=nl,t}function Ub(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nl}function Yb(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]=(...l)=>{const c=a(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Kb(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)}const ol=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,qb=e=>{if(e==="true")return!0;if(e==="false")return!1;const t=Number(e);return Number.isNaN(t)?e:t},Xb=e=>{const t=function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return Fo(a)};return{compose:function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return Object.assign(c=>{const d=Object.fromEntries(Object.entries(c||{}).filter(f=>{let[m]=f;return!["class","className"].includes(m)}));return t(a.map(f=>f(d)),c==null?void 0:c.class,c==null?void 0:c.className)},{variants:a.reduce((c,d)=>{let{variants:f}=d;for(const m in f)c[m]=[...new Set([...c[m]??[],...f[m]??[]])];return c},{})})},cva:o=>{const{variants:a,defaultVariants:s}=o??{};return Object.assign(c=>{var d;if(a==null)return t(o==null?void 0:o.base,c==null?void 0:c.class,c==null?void 0:c.className);const f=Object.keys(a).map(p=>{const v=c==null?void 0:c[p],g=s==null?void 0:s[p],b=ol(v)||ol(g);return a[p][b]}),m={...s,...c&&Object.entries(c).reduce((p,v)=>{let[g,b]=v;return b!==void 0&&Object.assign(p,{[g]:b}),p},{})},h=o==null||(d=o.compoundVariants)===null||d===void 0?void 0:d.reduce((p,v)=>{let{class:g,className:b,...y}=v;return Object.entries(y).every(w=>{let[x,S]=w;const k=m[x];return Array.isArray(S)?S.includes(k):k===S})?[...p,g,b]:p},[]);return t(o==null?void 0:o.base,f,h,c==null?void 0:c.class,c==null?void 0:c.className)},{variants:a?Object.fromEntries(Object.entries(a).filter(c=>{let[d]=c;return!d.startsWith("$")}).map(c=>{let[d,f]=c;return[d,Object.keys(f).map(m=>qb(m))]})):{}})},cx:t}},{cva:al}=Xb(),na={base:["inline-flex items-center justify-center gap-2 whitespace-nowrap hover:cursor-pointer","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:{sm:"h-8 px-3 text-xs",md:"h-9 px-4 py-2",lg:"h-10 px-8",xl:"h-12 px-10 text-xl",icon:"h-9 w-9"},rounded:{true:"rounded-full"}},defaultVariants:{variant:"default",size:"md",rounded:!1}},fr=al(na),de=u.forwardRef(({className:e,variant:t="default",size:n="md",rounded:r=!1,isLoading:o=!1,asChild:a=!1,theme:s=na,...l},c)=>{const d=a?Hb:"button",f=ea(s,na),m=al(f);return i.jsxs(d,{className:A(m({variant:t,size:n,rounded:r,className:e})),ref:c,...l,disabled:o||l.disabled,children:[o&&i.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","data-testid":"loader-svg",children:[i.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),i.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"})]}),l.children]})});de.displayName="Button";const mr=u.forwardRef(({className:e,...t},n)=>i.jsx("div",{className:"relative w-full overflow-auto",children:i.jsx("table",{ref:n,className:A("w-full caption-bottom text-sm",e),...t})}));mr.displayName="Table";const pr=u.forwardRef(({className:e,...t},n)=>i.jsx("thead",{ref:n,className:A("[&_tr]:border-b",e),...t}));pr.displayName="TableHeader";const hr=u.forwardRef(({className:e,...t},n)=>i.jsx("tbody",{ref:n,className:A("[&_tr:last-child]:border-0",e),...t}));hr.displayName="TableBody";const sl=u.forwardRef(({className:e,...t},n)=>i.jsx("tfoot",{ref:n,className:A("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));sl.displayName="TableFooter";const tn=u.forwardRef(({className:e,...t},n)=>i.jsx("tr",{ref:n,className:A("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));tn.displayName="TableRow";const jn=u.forwardRef(({className:e,...t},n)=>i.jsx("th",{ref:n,className:A("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}));jn.displayName="TableHead";const nn=u.forwardRef(({className:e,...t},n)=>i.jsx("td",{ref:n,className:A("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));nn.displayName="TableCell";const il=u.forwardRef(({className:e,...t},n)=>i.jsx("caption",{ref:n,className:A("mt-4 text-sm text-muted-foreground",e),...t}));il.displayName="TableCaption";/**
|
|
23
23
|
* @license lucide-react v0.535.0 - ISC
|
|
24
24
|
*
|
|
25
25
|
* This source code is licensed under the ISC license.
|
|
26
26
|
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/const
|
|
27
|
+
*/const Qb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Zb=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),ll=e=>{const t=Zb(e);return t.charAt(0).toUpperCase()+t.slice(1)},cl=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Jb=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
28
28
|
* @license lucide-react v0.535.0 - ISC
|
|
29
29
|
*
|
|
30
30
|
* This source code is licensed under the ISC license.
|
|
31
31
|
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/var
|
|
32
|
+
*/var ew={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
33
33
|
* @license lucide-react v0.535.0 - ISC
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the ISC license.
|
|
36
36
|
* See the LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/const
|
|
37
|
+
*/const tw=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...l},c)=>C.createElement("svg",{ref:c,...ew,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:cl("lucide",o),...!a&&!Jb(l)&&{"aria-hidden":"true"},...l},[...s.map(([d,f])=>C.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
|
|
38
38
|
* @license lucide-react v0.535.0 - ISC
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the ISC license.
|
|
41
41
|
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/const ce=(e,t)=>{const n=C.forwardRef(({className:r,...o},a)=>C.createElement(
|
|
42
|
+
*/const ce=(e,t)=>{const n=C.forwardRef(({className:r,...o},a)=>C.createElement(tw,{ref:a,iconNode:t,className:cl(`lucide-${Qb(ll(e))}`,`lucide-${e}`,r),...o}));return n.displayName=ll(e),n};/**
|
|
43
43
|
* @license lucide-react v0.535.0 - ISC
|
|
44
44
|
*
|
|
45
45
|
* This source code is licensed under the ISC license.
|
|
46
46
|
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/const
|
|
47
|
+
*/const nw=ce("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
|
|
48
48
|
* @license lucide-react v0.535.0 - ISC
|
|
49
49
|
*
|
|
50
50
|
* This source code is licensed under the ISC license.
|
|
51
51
|
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/const
|
|
52
|
+
*/const rw=ce("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
53
53
|
* @license lucide-react v0.535.0 - ISC
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the ISC license.
|
|
56
56
|
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/const
|
|
57
|
+
*/const ow=ce("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
58
58
|
* @license lucide-react v0.535.0 - ISC
|
|
59
59
|
*
|
|
60
60
|
* This source code is licensed under the ISC license.
|
|
61
61
|
* See the LICENSE file in the root directory of this source tree.
|
|
62
|
-
*/const
|
|
62
|
+
*/const aw=ce("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/**
|
|
63
63
|
* @license lucide-react v0.535.0 - ISC
|
|
64
64
|
*
|
|
65
65
|
* This source code is licensed under the ISC license.
|
|
66
66
|
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/const
|
|
67
|
+
*/const sw=ce("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
|
|
68
68
|
* @license lucide-react v0.535.0 - ISC
|
|
69
69
|
*
|
|
70
70
|
* This source code is licensed under the ISC license.
|
|
71
71
|
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/const
|
|
72
|
+
*/const iw=ce("bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);/**
|
|
73
73
|
* @license lucide-react v0.535.0 - ISC
|
|
74
74
|
*
|
|
75
75
|
* This source code is licensed under the ISC license.
|
|
76
76
|
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/const
|
|
77
|
+
*/const _n=ce("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
78
78
|
* @license lucide-react v0.535.0 - ISC
|
|
79
79
|
*
|
|
80
80
|
* This source code is licensed under the ISC license.
|
|
@@ -89,12 +89,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
89
89
|
*
|
|
90
90
|
* This source code is licensed under the ISC license.
|
|
91
91
|
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
-
*/const
|
|
92
|
+
*/const An=ce("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
93
93
|
* @license lucide-react v0.535.0 - ISC
|
|
94
94
|
*
|
|
95
95
|
* This source code is licensed under the ISC license.
|
|
96
96
|
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
-
*/const
|
|
97
|
+
*/const lw=ce("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
98
98
|
* @license lucide-react v0.535.0 - ISC
|
|
99
99
|
*
|
|
100
100
|
* This source code is licensed under the ISC license.
|
|
@@ -109,7 +109,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
109
109
|
*
|
|
110
110
|
* This source code is licensed under the ISC license.
|
|
111
111
|
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/const
|
|
112
|
+
*/const cw=ce("circle-off",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.35 2.69A10 10 0 0 1 21.3 15.65",key:"1pfsoa"}],["path",{d:"M19.08 19.08A10 10 0 1 1 4.92 4.92",key:"1ablyi"}]]);/**
|
|
113
113
|
* @license lucide-react v0.535.0 - ISC
|
|
114
114
|
*
|
|
115
115
|
* This source code is licensed under the ISC license.
|
|
@@ -129,32 +129,32 @@ React keys must be passed directly to JSX without using spread:
|
|
|
129
129
|
*
|
|
130
130
|
* This source code is licensed under the ISC license.
|
|
131
131
|
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
-
*/const
|
|
132
|
+
*/const uw=ce("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"}]]);/**
|
|
133
133
|
* @license lucide-react v0.535.0 - ISC
|
|
134
134
|
*
|
|
135
135
|
* This source code is licensed under the ISC license.
|
|
136
136
|
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
-
*/const
|
|
137
|
+
*/const dw=ce("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
138
138
|
* @license lucide-react v0.535.0 - ISC
|
|
139
139
|
*
|
|
140
140
|
* This source code is licensed under the ISC license.
|
|
141
141
|
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
-
*/const
|
|
142
|
+
*/const fw=ce("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"}]]);/**
|
|
143
143
|
* @license lucide-react v0.535.0 - ISC
|
|
144
144
|
*
|
|
145
145
|
* This source code is licensed under the ISC license.
|
|
146
146
|
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
-
*/const
|
|
147
|
+
*/const mw=ce("file-down",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);/**
|
|
148
148
|
* @license lucide-react v0.535.0 - ISC
|
|
149
149
|
*
|
|
150
150
|
* This source code is licensed under the ISC license.
|
|
151
151
|
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
-
*/const
|
|
152
|
+
*/const pw=ce("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]);/**
|
|
153
153
|
* @license lucide-react v0.535.0 - ISC
|
|
154
154
|
*
|
|
155
155
|
* This source code is licensed under the ISC license.
|
|
156
156
|
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
-
*/const
|
|
157
|
+
*/const hw=ce("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
158
158
|
* @license lucide-react v0.535.0 - ISC
|
|
159
159
|
*
|
|
160
160
|
* This source code is licensed under the ISC license.
|
|
@@ -164,32 +164,42 @@ React keys must be passed directly to JSX without using spread:
|
|
|
164
164
|
*
|
|
165
165
|
* This source code is licensed under the ISC license.
|
|
166
166
|
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
-
*/const
|
|
167
|
+
*/const gw=ce("italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/**
|
|
168
168
|
* @license lucide-react v0.535.0 - ISC
|
|
169
169
|
*
|
|
170
170
|
* This source code is licensed under the ISC license.
|
|
171
171
|
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
-
*/const
|
|
172
|
+
*/const vw=ce("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
|
|
173
173
|
* @license lucide-react v0.535.0 - ISC
|
|
174
174
|
*
|
|
175
175
|
* This source code is licensed under the ISC license.
|
|
176
176
|
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
-
*/const
|
|
177
|
+
*/const bw=ce("list-ordered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/**
|
|
178
178
|
* @license lucide-react v0.535.0 - ISC
|
|
179
179
|
*
|
|
180
180
|
* This source code is licensed under the ISC license.
|
|
181
181
|
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
-
*/const
|
|
182
|
+
*/const ww=ce("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
|
|
183
183
|
* @license lucide-react v0.535.0 - ISC
|
|
184
184
|
*
|
|
185
185
|
* This source code is licensed under the ISC license.
|
|
186
186
|
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
-
*/const
|
|
187
|
+
*/const yw=ce("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
188
188
|
* @license lucide-react v0.535.0 - ISC
|
|
189
189
|
*
|
|
190
190
|
* This source code is licensed under the ISC license.
|
|
191
191
|
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
-
*/const
|
|
192
|
+
*/const xw=ce("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
193
|
+
* @license lucide-react v0.535.0 - ISC
|
|
194
|
+
*
|
|
195
|
+
* This source code is licensed under the ISC license.
|
|
196
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
+
*/const Cw=ce("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
198
|
+
* @license lucide-react v0.535.0 - ISC
|
|
199
|
+
*
|
|
200
|
+
* This source code is licensed under the ISC license.
|
|
201
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
+
*/const Nw=ce("quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
|
|
193
203
|
* @license lucide-react v0.535.0 - ISC
|
|
194
204
|
*
|
|
195
205
|
* This source code is licensed under the ISC license.
|
|
@@ -199,23 +209,23 @@ React keys must be passed directly to JSX without using spread:
|
|
|
199
209
|
*
|
|
200
210
|
* This source code is licensed under the ISC license.
|
|
201
211
|
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
-
*/const
|
|
212
|
+
*/const Sw=ce("sliders-horizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
|
|
203
213
|
* @license lucide-react v0.535.0 - ISC
|
|
204
214
|
*
|
|
205
215
|
* This source code is licensed under the ISC license.
|
|
206
216
|
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
-
*/const
|
|
217
|
+
*/const Ew=ce("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
208
218
|
* @license lucide-react v0.535.0 - ISC
|
|
209
219
|
*
|
|
210
220
|
* This source code is licensed under the ISC license.
|
|
211
221
|
* See the LICENSE file in the root directory of this source tree.
|
|
212
|
-
*/const
|
|
222
|
+
*/const kw=ce("underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]);/**
|
|
213
223
|
* @license lucide-react v0.535.0 - ISC
|
|
214
224
|
*
|
|
215
225
|
* This source code is licensed under the ISC license.
|
|
216
226
|
* See the LICENSE file in the root directory of this source tree.
|
|
217
|
-
*/const ct=ce("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),hl=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,gl=Fo,Ft=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return gl(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const f=n==null?void 0:n[d],m=a==null?void 0:a[d];if(f===null)return null;const h=hl(f)||hl(m);return o[d][h]}),l=n&&Object.entries(n).reduce((d,f)=>{let[m,h]=f;return h===void 0||(d[m]=h),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:m,className:h,...p}=f;return Object.entries(p).every(v=>{let[g,b]=v;return Array.isArray(b)?b.includes({...a,...l}[g]):{...a,...l}[g]===b})?[...d,m,h]:d},[]);return gl(e,s,c,n==null?void 0:n.class,n==null?void 0:n.className)},vl=Ft("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 on({className:e,variant:t,...n}){return i.jsx("div",{className:I(vl({variant:t}),e),...n})}function Nw({searchTerm:e,activeFilters:t,sortState:n,filters:r,columns:o,onClearSearch:a,onClearFilter:s,onClearSort:l}){var d;return Object.values(t).filter(f=>f&&f!=="all").length>0||e.trim().length>0||n.field!==null?i.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.trim()&&i.jsxs(on,{variant:"secondary",className:"gap-1",children:["Search: ",e,i.jsx(ct,{className:"h-3 w-3 cursor-pointer hover:text-destructive",onClick:a})]}),Object.entries(t).map(([f,m])=>{if(!m||m==="all")return null;const h=r.find(v=>String(v.field)===f),p=h==null?void 0:h.options.find(v=>v.value===m);return i.jsxs(on,{variant:"secondary",className:"gap-1",children:[h==null?void 0:h.label,": ",(p==null?void 0:p.label)||m,i.jsx(ct,{className:"h-3 w-3 cursor-pointer hover:text-destructive",onClick:()=>s(f)})]},f)}),n.field&&i.jsxs(on,{variant:"secondary",className:"gap-1",children:["Sort:"," ",((d=o.find(f=>String(f.key)===n.field))==null?void 0:d.title)||n.field," ",n.direction==="asc"?"↑":"↓",i.jsx(ct,{className:"h-3 w-3 cursor-pointer hover:text-destructive",onClick:l})]})]}):null}function B(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Sw(e,t){const n=u.createContext(t),r=a=>{const{children:s,...l}=a,c=u.useMemo(()=>l,Object.values(l));return i.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(a){const s=u.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function be(e,t=[]){let n=[];function r(a,s){const l=u.createContext(s),c=n.length;n=[...n,s];const d=m=>{var y;const{scope:h,children:p,...v}=m,g=((y=h==null?void 0:h[e])==null?void 0:y[c])||l,b=u.useMemo(()=>v,Object.values(v));return i.jsx(g.Provider,{value:b,children:p})};d.displayName=a+"Provider";function f(m,h){var g;const p=((g=h==null?void 0:h[e])==null?void 0:g[c])||l,v=u.useContext(p);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=n.map(s=>u.createContext(s));return function(l){const c=(l==null?void 0:l[e])||a;return u.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Ew(o,...t)]}function Ew(...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((l,{useScope:c,scopeName:d})=>{const m=c(a)[`__scope${d}`];return{...l,...m}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var ge=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},kw=u[" useInsertionEffect ".trim().toString()]||ge;function ye({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=Pw({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const m=f.current;m!==l&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,r])}const d=u.useCallback(f=>{var m;if(l){const h=Tw(f)?f(e):f;h!==e&&((m=s.current)==null||m.call(s,h))}else a(f)},[l,e,a,s]);return[c,d]}function Pw({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),a=u.useRef(t);return kw(()=>{a.current=t},[t]),u.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function Tw(e){return typeof e=="function"}var Mw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=Mw.reduce((e,t)=>{const n=vt(`Primitive.${t}`),r=u.forwardRef((o,a)=>{const{asChild:s,...l}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(c,{...l,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function vr(e,t){e&&sr.flushSync(()=>e.dispatchEvent(t))}function an(e){const t=e+"CollectionProvider",[n,r]=be(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:b,children:y}=g,w=C.useRef(null),x=C.useRef(new Map).current;return i.jsx(o,{scope:b,itemMap:x,collectionRef:w,children:y})};s.displayName=t;const l=e+"CollectionSlot",c=vt(l),d=C.forwardRef((g,b)=>{const{scope:y,children:w}=g,x=a(l,y),S=re(b,x.collectionRef);return i.jsx(c,{ref:S,children:w})});d.displayName=l;const f=e+"CollectionItemSlot",m="data-radix-collection-item",h=vt(f),p=C.forwardRef((g,b)=>{const{scope:y,children:w,...x}=g,S=C.useRef(null),k=re(b,S),j=a(f,y);return C.useEffect(()=>(j.itemMap.set(S,{ref:S,...x}),()=>void j.itemMap.delete(S))),i.jsx(h,{[m]:"",ref:k,children:w})});p.displayName=f;function v(g){const b=a(e+"CollectionConsumer",g);return C.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${m}]`));return Array.from(b.itemMap.values()).sort((j,E)=>x.indexOf(j.ref.current)-x.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:d,ItemSlot:p},v,r]}var jw=u.createContext(void 0);function bt(e){const t=u.useContext(jw);return e||t||"ltr"}function Se(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function _w(e,t=globalThis==null?void 0:globalThis.document){const n=Se(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Aw="DismissableLayer",aa="dismissableLayer.update",Iw="dismissableLayer.pointerDownOutside",Rw="dismissableLayer.focusOutside",bl,wl=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bt=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,d=u.useContext(wl),[f,m]=u.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=u.useState({}),v=re(t,E=>m(E)),g=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),w=f?g.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,S=w>=y,k=$w(E=>{const P=E.target,_=[...d.branches].some($=>$.contains(P));!S||_||(o==null||o(E),s==null||s(E),E.defaultPrevented||l==null||l())},h),j=Lw(E=>{const P=E.target;[...d.branches].some($=>$.contains(P))||(a==null||a(E),s==null||s(E),E.defaultPrevented||l==null||l())},h);return _w(E=>{w===d.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},h),u.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(bl=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),yl(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=bl)}},[f,h,n,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),yl())},[f,d]),u.useEffect(()=>{const E=()=>p({});return document.addEventListener(aa,E),()=>document.removeEventListener(aa,E)},[]),i.jsx(z.div,{...c,ref:v,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,j.onFocusCapture),onBlurCapture:B(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,k.onPointerDownCapture)})});Bt.displayName=Aw;var Dw="DismissableLayerBranch",Ow=u.forwardRef((e,t)=>{const n=u.useContext(wl),r=u.useRef(null),o=re(t,r);return u.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),i.jsx(z.div,{...e,ref:o})});Ow.displayName=Dw;function $w(e,t=globalThis==null?void 0:globalThis.document){const n=Se(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let c=function(){xl(Iw,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Lw(e,t=globalThis==null?void 0:globalThis.document){const n=Se(e),r=u.useRef(!1);return u.useEffect(()=>{const o=a=>{a.target&&!r.current&&xl(Rw,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 yl(){const e=new CustomEvent(aa);document.dispatchEvent(e)}function xl(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?vr(o,a):o.dispatchEvent(a)}var sa=0;function br(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Cl()),document.body.insertAdjacentElement("beforeend",e[1]??Cl()),sa++,()=>{sa===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),sa--}},[])}function Cl(){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 ia="focusScope.autoFocusOnMount",la="focusScope.autoFocusOnUnmount",Nl={bubbles:!1,cancelable:!0},Fw="FocusScope",An=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[l,c]=u.useState(null),d=Se(o),f=Se(a),m=u.useRef(null),h=re(t,g=>c(g)),p=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let g=function(x){if(p.paused||!l)return;const S=x.target;l.contains(S)?m.current=S:wt(m.current,{select:!0})},b=function(x){if(p.paused||!l)return;const S=x.relatedTarget;S!==null&&(l.contains(S)||wt(m.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const k of x)k.removedNodes.length>0&&wt(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const w=new MutationObserver(y);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),w.disconnect()}}},[r,l,p.paused]),u.useEffect(()=>{if(l){kl.add(p);const g=document.activeElement;if(!l.contains(g)){const y=new CustomEvent(ia,Nl);l.addEventListener(ia,d),l.dispatchEvent(y),y.defaultPrevented||(Bw(Gw(Sl(l)),{select:!0}),document.activeElement===g&&wt(l))}return()=>{l.removeEventListener(ia,d),setTimeout(()=>{const y=new CustomEvent(la,Nl);l.addEventListener(la,f),l.dispatchEvent(y),y.defaultPrevented||wt(g??document.body,{select:!0}),l.removeEventListener(la,f),kl.remove(p)},0)}}},[l,d,f,p]);const v=u.useCallback(g=>{if(!n&&!r||p.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const w=g.currentTarget,[x,S]=zw(w);x&&S?!g.shiftKey&&y===S?(g.preventDefault(),n&&wt(x,{select:!0})):g.shiftKey&&y===x&&(g.preventDefault(),n&&wt(S,{select:!0})):y===w&&g.preventDefault()}},[n,r,p.paused]);return i.jsx(z.div,{tabIndex:-1,...s,ref:h,onKeyDown:v})});An.displayName=Fw;function Bw(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(wt(r,{select:t}),document.activeElement!==n)return}function zw(e){const t=Sl(e),n=El(t,e),r=El(t.reverse(),e);return[n,r]}function Sl(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 El(e,t){for(const n of e)if(!Vw(n,{upTo:t}))return n}function Vw(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 Ww(e){return e instanceof HTMLInputElement&&"select"in e}function wt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ww(e)&&t&&e.select()}}var kl=Hw();function Hw(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Pl(e,t),e.unshift(t)},remove(t){var n;e=Pl(e,t),(n=e[0])==null||n.resume()}}}function Pl(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Gw(e){return e.filter(t=>t.tagName!=="A")}var Uw=u[" useId ".trim().toString()]||(()=>{}),Yw=0;function pe(e){const[t,n]=u.useState(Uw());return ge(()=>{n(r=>r??String(Yw++))},[e]),t?`radix-${t}`:""}const Kw=["top","right","bottom","left"],yt=Math.min,Re=Math.max,wr=Math.round,yr=Math.floor,tt=e=>({x:e,y:e}),qw={left:"right",right:"left",bottom:"top",top:"bottom"},Xw={start:"end",end:"start"};function ca(e,t,n){return Re(e,yt(t,n))}function ut(e,t){return typeof e=="function"?e(t):e}function dt(e){return e.split("-")[0]}function sn(e){return e.split("-")[1]}function ua(e){return e==="x"?"y":"x"}function da(e){return e==="y"?"height":"width"}const Qw=new Set(["top","bottom"]);function nt(e){return Qw.has(dt(e))?"y":"x"}function fa(e){return ua(nt(e))}function Zw(e,t,n){n===void 0&&(n=!1);const r=sn(e),o=fa(e),a=da(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=xr(s)),[s,xr(s)]}function Jw(e){const t=xr(e);return[ma(e),t,ma(t)]}function ma(e){return e.replace(/start|end/g,t=>Xw[t])}const Tl=["left","right"],Ml=["right","left"],ey=["top","bottom"],ty=["bottom","top"];function ny(e,t,n){switch(e){case"top":case"bottom":return n?t?Ml:Tl:t?Tl:Ml;case"left":case"right":return t?ey:ty;default:return[]}}function ry(e,t,n,r){const o=sn(e);let a=ny(dt(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(ma)))),a}function xr(e){return e.replace(/left|right|bottom|top/g,t=>qw[t])}function oy(e){return{top:0,right:0,bottom:0,left:0,...e}}function jl(e){return typeof e!="number"?oy(e):{top:e,right:e,bottom:e,left:e}}function Cr(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 _l(e,t,n){let{reference:r,floating:o}=e;const a=nt(t),s=fa(t),l=da(s),c=dt(t),d=a==="y",f=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,h=r[l]/2-o[l]/2;let p;switch(c){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:m};break;case"left":p={x:r.x-o.width,y:m};break;default:p={x:r.x,y:r.y}}switch(sn(t)){case"start":p[s]-=h*(n&&d?-1:1);break;case"end":p[s]+=h*(n&&d?-1:1);break}return p}const ay=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:m}=_l(d,r,c),h=r,p={},v=0;for(let g=0;g<l.length;g++){const{name:b,fn:y}=l[g],{x:w,y:x,data:S,reset:k}=await y({x:f,y:m,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:d,platform:s,elements:{reference:e,floating:t}});f=w??f,m=x??m,p={...p,[b]:{...p[b],...S}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(d=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:m}=_l(d,h,c)),g=-1)}return{x:f,y:m,placement:h,strategy:o,middlewareData:p}};async function In(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:h=!1,padding:p=0}=ut(t,e),v=jl(p),b=l[h?m==="floating"?"reference":"floating":m],y=Cr(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:d,rootBoundary:f,strategy:c})),w=m==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),S=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},k=Cr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:x,strategy:c}):w);return{top:(y.top-k.top+v.top)/S.y,bottom:(k.bottom-y.bottom+v.bottom)/S.y,left:(y.left-k.left+v.left)/S.x,right:(k.right-y.right+v.right)/S.x}}const sy=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:l,middlewareData:c}=t,{element:d,padding:f=0}=ut(e,t)||{};if(d==null)return{};const m=jl(f),h={x:n,y:r},p=fa(o),v=da(p),g=await s.getDimensions(d),b=p==="y",y=b?"top":"left",w=b?"bottom":"right",x=b?"clientHeight":"clientWidth",S=a.reference[v]+a.reference[p]-h[p]-a.floating[v],k=h[p]-a.reference[p],j=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let E=j?j[x]:0;(!E||!await(s.isElement==null?void 0:s.isElement(j)))&&(E=l.floating[x]||a.floating[v]);const P=S/2-k/2,_=E/2-g[v]/2-1,$=yt(m[y],_),H=yt(m[w],_),q=$,W=E-g[v]-H,U=E/2-g[v]/2+P,te=ca(q,U,W),V=!c.arrow&&sn(o)!=null&&U!==te&&a.reference[v]/2-(U<q?$:H)-g[v]/2<0,X=V?U<q?U-q:U-W:0;return{[p]:h[p]+X,data:{[p]:te,centerOffset:U-te-X,...V&&{alignmentOffset:X}},reset:V}}}),iy=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:l,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:g=!0,...b}=ut(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=dt(o),w=nt(l),x=dt(l)===l,S=await(c.isRTL==null?void 0:c.isRTL(d.floating)),k=h||(x||!g?[xr(l)]:Jw(l)),j=v!=="none";!h&&j&&k.push(...ry(l,g,v,S));const E=[l,...k],P=await In(t,b),_=[];let $=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&_.push(P[y]),m){const U=Zw(o,s,S);_.push(P[U[0]],P[U[1]])}if($=[...$,{placement:o,overflows:_}],!_.every(U=>U<=0)){var H,q;const U=(((H=a.flip)==null?void 0:H.index)||0)+1,te=E[U];if(te&&(!(m==="alignment"?w!==nt(te):!1)||$.every(R=>R.overflows[0]>0&&nt(R.placement)===w)))return{data:{index:U,overflows:$},reset:{placement:te}};let V=(q=$.filter(X=>X.overflows[0]<=0).sort((X,R)=>X.overflows[1]-R.overflows[1])[0])==null?void 0:q.placement;if(!V)switch(p){case"bestFit":{var W;const X=(W=$.filter(R=>{if(j){const O=nt(R.placement);return O===w||O==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(O=>O>0).reduce((O,M)=>O+M,0)]).sort((R,O)=>R[1]-O[1])[0])==null?void 0:W[0];X&&(V=X);break}case"initialPlacement":V=l;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function Al(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Il(e){return Kw.some(t=>e[t]>=0)}const ly=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ut(e,t);switch(r){case"referenceHidden":{const a=await In(t,{...o,elementContext:"reference"}),s=Al(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Il(s)}}}case"escaped":{const a=await In(t,{...o,altBoundary:!0}),s=Al(a,n.floating);return{data:{escapedOffsets:s,escaped:Il(s)}}}default:return{}}}}},Rl=new Set(["left","top"]);async function cy(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=dt(n),l=sn(n),c=nt(n)==="y",d=Rl.has(s)?-1:1,f=a&&c?-1:1,m=ut(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:v}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof v=="number"&&(p=l==="end"?v*-1:v),c?{x:p*f,y:h*d}:{x:h*d,y:p*f}}const uy=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:l}=t,c=await cy(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},dy=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:l={fn:b=>{let{x:y,y:w}=b;return{x:y,y:w}}},...c}=ut(e,t),d={x:n,y:r},f=await In(t,c),m=nt(dt(o)),h=ua(m);let p=d[h],v=d[m];if(a){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=p+f[b],x=p-f[y];p=ca(w,p,x)}if(s){const b=m==="y"?"top":"left",y=m==="y"?"bottom":"right",w=v+f[b],x=v-f[y];v=ca(w,v,x)}const g=l.fn({...t,[h]:p,[m]:v});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:a,[m]:s}}}}}},fy=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=ut(e,t),f={x:n,y:r},m=nt(o),h=ua(m);let p=f[h],v=f[m];const g=ut(l,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const x=h==="y"?"height":"width",S=a.reference[h]-a.floating[x]+b.mainAxis,k=a.reference[h]+a.reference[x]-b.mainAxis;p<S?p=S:p>k&&(p=k)}if(d){var y,w;const x=h==="y"?"width":"height",S=Rl.has(dt(o)),k=a.reference[m]-a.floating[x]+(S&&((y=s.offset)==null?void 0:y[m])||0)+(S?0:b.crossAxis),j=a.reference[m]+a.reference[x]+(S?0:((w=s.offset)==null?void 0:w[m])||0)-(S?b.crossAxis:0);v<k?v=k:v>j&&(v=j)}return{[h]:p,[m]:v}}}},my=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:l}=t,{apply:c=()=>{},...d}=ut(e,t),f=await In(t,d),m=dt(o),h=sn(o),p=nt(o)==="y",{width:v,height:g}=a.floating;let b,y;m==="top"||m==="bottom"?(b=m,y=h===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(y=m,b=h==="end"?"top":"bottom");const w=g-f.top-f.bottom,x=v-f.left-f.right,S=yt(g-f[b],w),k=yt(v-f[y],x),j=!t.middlewareData.shift;let E=S,P=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=w),j&&!h){const $=Re(f.left,0),H=Re(f.right,0),q=Re(f.top,0),W=Re(f.bottom,0);p?P=v-2*($!==0||H!==0?$+H:Re(f.left,f.right)):E=g-2*(q!==0||W!==0?q+W:Re(f.top,f.bottom))}await c({...t,availableWidth:P,availableHeight:E});const _=await s.getDimensions(l.floating);return v!==_.width||g!==_.height?{reset:{rects:!0}}:{}}}};function Nr(){return typeof window<"u"}function ln(e){return Dl(e)?(e.nodeName||"").toLowerCase():"#document"}function De(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rt(e){var t;return(t=(Dl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dl(e){return Nr()?e instanceof Node||e instanceof De(e).Node:!1}function We(e){return Nr()?e instanceof Element||e instanceof De(e).Element:!1}function ot(e){return Nr()?e instanceof HTMLElement||e instanceof De(e).HTMLElement:!1}function Ol(e){return!Nr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof De(e).ShadowRoot}const py=new Set(["inline","contents"]);function Rn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=He(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!py.has(o)}const hy=new Set(["table","td","th"]);function gy(e){return hy.has(ln(e))}const vy=[":popover-open",":modal"];function Sr(e){return vy.some(t=>{try{return e.matches(t)}catch{return!1}})}const by=["transform","translate","scale","rotate","perspective"],wy=["transform","translate","scale","rotate","perspective","filter"],yy=["paint","layout","strict","content"];function pa(e){const t=ha(),n=We(e)?He(e):e;return by.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||wy.some(r=>(n.willChange||"").includes(r))||yy.some(r=>(n.contain||"").includes(r))}function xy(e){let t=xt(e);for(;ot(t)&&!cn(t);){if(pa(t))return t;if(Sr(t))return null;t=xt(t)}return null}function ha(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Cy=new Set(["html","body","#document"]);function cn(e){return Cy.has(ln(e))}function He(e){return De(e).getComputedStyle(e)}function Er(e){return We(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xt(e){if(ln(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ol(e)&&e.host||rt(e);return Ol(t)?t.host:t}function $l(e){const t=xt(e);return cn(t)?e.ownerDocument?e.ownerDocument.body:e.body:ot(t)&&Rn(t)?t:$l(t)}function Dn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=$l(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=De(o);if(a){const l=ga(s);return t.concat(s,s.visualViewport||[],Rn(o)?o:[],l&&n?Dn(l):[])}return t.concat(o,Dn(o,[],n))}function ga(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ll(e){const t=He(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ot(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=wr(n)!==a||wr(r)!==s;return l&&(n=a,r=s),{width:n,height:r,$:l}}function va(e){return We(e)?e:e.contextElement}function un(e){const t=va(e);if(!ot(t))return tt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Ll(t);let s=(a?wr(n.width):n.width)/r,l=(a?wr(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Ny=tt(0);function Fl(e){const t=De(e);return!ha()||!t.visualViewport?Ny:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sy(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==De(e)?!1:t}function zt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=va(e);let s=tt(1);t&&(r?We(r)&&(s=un(r)):s=un(e));const l=Sy(a,n,r)?Fl(a):tt(0);let c=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,f=o.width/s.x,m=o.height/s.y;if(a){const h=De(a),p=r&&We(r)?De(r):r;let v=h,g=ga(v);for(;g&&r&&p!==v;){const b=un(g),y=g.getBoundingClientRect(),w=He(g),x=y.left+(g.clientLeft+parseFloat(w.paddingLeft))*b.x,S=y.top+(g.clientTop+parseFloat(w.paddingTop))*b.y;c*=b.x,d*=b.y,f*=b.x,m*=b.y,c+=x,d+=S,v=De(g),g=ga(v)}}return Cr({width:f,height:m,x:c,y:d})}function ba(e,t){const n=Er(e).scrollLeft;return t?t.left+n:zt(rt(e)).left+n}function Bl(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ba(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function Ey(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=rt(r),l=t?Sr(t.floating):!1;if(r===s||l&&a)return n;let c={scrollLeft:0,scrollTop:0},d=tt(1);const f=tt(0),m=ot(r);if((m||!m&&!a)&&((ln(r)!=="body"||Rn(s))&&(c=Er(r)),ot(r))){const p=zt(r);d=un(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}const h=s&&!m&&!a?Bl(s,c,!0):tt(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+h.x,y:n.y*d.y-c.scrollTop*d.y+f.y+h.y}}function ky(e){return Array.from(e.getClientRects())}function Py(e){const t=rt(e),n=Er(e),r=e.ownerDocument.body,o=Re(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Re(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ba(e);const l=-n.scrollTop;return He(r).direction==="rtl"&&(s+=Re(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:l}}function Ty(e,t){const n=De(e),r=rt(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;const d=ha();(!d||d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l,y:c}}const My=new Set(["absolute","fixed"]);function jy(e,t){const n=zt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=ot(e)?un(e):tt(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,c=o*a.x,d=r*a.y;return{width:s,height:l,x:c,y:d}}function zl(e,t,n){let r;if(t==="viewport")r=Ty(e,n);else if(t==="document")r=Py(rt(e));else if(We(t))r=jy(t,n);else{const o=Fl(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Cr(r)}function Vl(e,t){const n=xt(e);return n===t||!We(n)||cn(n)?!1:He(n).position==="fixed"||Vl(n,t)}function _y(e,t){const n=t.get(e);if(n)return n;let r=Dn(e,[],!1).filter(l=>We(l)&&ln(l)!=="body"),o=null;const a=He(e).position==="fixed";let s=a?xt(e):e;for(;We(s)&&!cn(s);){const l=He(s),c=pa(s);!c&&l.position==="fixed"&&(o=null),(a?!c&&!o:!c&&l.position==="static"&&!!o&&My.has(o.position)||Rn(s)&&!c&&Vl(e,s))?r=r.filter(f=>f!==s):o=l,s=xt(s)}return t.set(e,r),r}function Ay(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Sr(t)?[]:_y(t,this._c):[].concat(n),r],l=s[0],c=s.reduce((d,f)=>{const m=zl(t,f,o);return d.top=Re(m.top,d.top),d.right=yt(m.right,d.right),d.bottom=yt(m.bottom,d.bottom),d.left=Re(m.left,d.left),d},zl(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Iy(e){const{width:t,height:n}=Ll(e);return{width:t,height:n}}function Ry(e,t,n){const r=ot(t),o=rt(t),a=n==="fixed",s=zt(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const c=tt(0);function d(){c.x=ba(o)}if(r||!r&&!a)if((ln(t)!=="body"||Rn(o))&&(l=Er(t)),r){const p=zt(t,!0,a,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&d();a&&!r&&o&&d();const f=o&&!r&&!a?Bl(o,l):tt(0),m=s.left+l.scrollLeft-c.x-f.x,h=s.top+l.scrollTop-c.y-f.y;return{x:m,y:h,width:s.width,height:s.height}}function wa(e){return He(e).position==="static"}function Wl(e,t){if(!ot(e)||He(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return rt(e)===n&&(n=n.ownerDocument.body),n}function Hl(e,t){const n=De(e);if(Sr(e))return n;if(!ot(e)){let o=xt(e);for(;o&&!cn(o);){if(We(o)&&!wa(o))return o;o=xt(o)}return n}let r=Wl(e,t);for(;r&&gy(r)&&wa(r);)r=Wl(r,t);return r&&cn(r)&&wa(r)&&!pa(r)?n:r||xy(e)||n}const Dy=async function(e){const t=this.getOffsetParent||Hl,n=this.getDimensions,r=await n(e.floating);return{reference:Ry(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Oy(e){return He(e).direction==="rtl"}const $y={convertOffsetParentRelativeRectToViewportRelativeRect:Ey,getDocumentElement:rt,getClippingRect:Ay,getOffsetParent:Hl,getElementRects:Dy,getClientRects:ky,getDimensions:Iy,getScale:un,isElement:We,isRTL:Oy};function Gl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ly(e,t){let n=null,r;const o=rt(e);function a(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:f,top:m,width:h,height:p}=d;if(l||t(),!h||!p)return;const v=yr(m),g=yr(o.clientWidth-(f+h)),b=yr(o.clientHeight-(m+p)),y=yr(f),x={rootMargin:-v+"px "+-g+"px "+-b+"px "+-y+"px",threshold:Re(0,yt(1,c))||1};let S=!0;function k(j){const E=j[0].intersectionRatio;if(E!==c){if(!S)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!Gl(d,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(k,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,x)}n.observe(e)}return s(!0),a}function Fy(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=va(e),f=o||a?[...d?Dn(d):[],...Dn(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const m=d&&l?Ly(d,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(y=>{let[w]=y;w&&w.target===d&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),d&&!c&&p.observe(d),p.observe(t));let v,g=c?zt(e):null;c&&b();function b(){const y=zt(e);g&&!Gl(g,y)&&n(),g=y,v=requestAnimationFrame(b)}return n(),()=>{var y;f.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),m==null||m(),(y=p)==null||y.disconnect(),p=null,c&&cancelAnimationFrame(v)}}const By=uy,zy=dy,Vy=iy,Wy=my,Hy=ly,Ul=sy,Gy=fy,Uy=(e,t,n)=>{const r=new Map,o={platform:$y,...n},a={...o.platform,_c:r};return ay(e,t,{...o,platform:a})};var Yy=typeof document<"u",Ky=function(){},kr=Yy?C.useLayoutEffect:Ky;function Pr(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(!Pr(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)&&!Pr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Yl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kl(e,t){const n=Yl(e);return Math.round(t*n)/n}function ya(e){const t=u.useRef(e);return kr(()=>{t.current=e}),t}function qy(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[f,m]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=u.useState(r);Pr(h,r)||p(r);const[v,g]=u.useState(null),[b,y]=u.useState(null),w=u.useCallback(R=>{R!==j.current&&(j.current=R,g(R))},[]),x=u.useCallback(R=>{R!==E.current&&(E.current=R,y(R))},[]),S=a||v,k=s||b,j=u.useRef(null),E=u.useRef(null),P=u.useRef(f),_=c!=null,$=ya(c),H=ya(o),q=ya(d),W=u.useCallback(()=>{if(!j.current||!E.current)return;const R={placement:t,strategy:n,middleware:h};H.current&&(R.platform=H.current),Uy(j.current,E.current,R).then(O=>{const M={...O,isPositioned:q.current!==!1};U.current&&!Pr(P.current,M)&&(P.current=M,sr.flushSync(()=>{m(M)}))})},[h,t,n,H,q]);kr(()=>{d===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,m(R=>({...R,isPositioned:!1})))},[d]);const U=u.useRef(!1);kr(()=>(U.current=!0,()=>{U.current=!1}),[]),kr(()=>{if(S&&(j.current=S),k&&(E.current=k),S&&k){if($.current)return $.current(S,k,W);W()}},[S,k,W,$,_]);const te=u.useMemo(()=>({reference:j,floating:E,setReference:w,setFloating:x}),[w,x]),V=u.useMemo(()=>({reference:S,floating:k}),[S,k]),X=u.useMemo(()=>{const R={position:n,left:0,top:0};if(!V.floating)return R;const O=Kl(V.floating,f.x),M=Kl(V.floating,f.y);return l?{...R,transform:"translate("+O+"px, "+M+"px)",...Yl(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:M}},[n,l,V.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:W,refs:te,elements:V,floatingStyles:X}),[f,W,te,V,X])}const Xy=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?Ul({element:r.current,padding:o}).fn(n):{}:r?Ul({element:r,padding:o}).fn(n):{}}}},Qy=(e,t)=>({...By(e),options:[e,t]}),Zy=(e,t)=>({...zy(e),options:[e,t]}),Jy=(e,t)=>({...Gy(e),options:[e,t]}),ex=(e,t)=>({...Vy(e),options:[e,t]}),tx=(e,t)=>({...Wy(e),options:[e,t]}),nx=(e,t)=>({...Hy(e),options:[e,t]}),rx=(e,t)=>({...Xy(e),options:[e,t]});var ox="Arrow",ql=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return i.jsx(z.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});ql.displayName=ox;var ax=ql;function Tr(e){const[t,n]=u.useState(void 0);return ge(()=>{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,l;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;s=d.inlineSize,l=d.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var xa="Popper",[Xl,Ct]=be(xa),[sx,Ql]=Xl(xa),Zl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return i.jsx(sx,{scope:t,anchor:r,onAnchorChange:o,children:n})};Zl.displayName=xa;var Jl="PopperAnchor",ec=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Ql(Jl,n),s=u.useRef(null),l=re(t,s);return u.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:i.jsx(z.div,{...o,ref:l})});ec.displayName=Jl;var Ca="PopperContent",[ix,lx]=Xl(Ca),tc=u.forwardRef((e,t)=>{var A,K,Q,ne,oe,ie;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:v,...g}=e,b=Ql(Ca,n),[y,w]=u.useState(null),x=re(t,Ce=>w(Ce)),[S,k]=u.useState(null),j=Tr(S),E=(j==null?void 0:j.width)??0,P=(j==null?void 0:j.height)??0,_=r+(a!=="center"?"-"+a:""),$=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},H=Array.isArray(d)?d:[d],q=H.length>0,W={padding:$,boundary:H.filter(ux),altBoundary:q},{refs:U,floatingStyles:te,placement:V,isPositioned:X,middlewareData:R}=qy({strategy:"fixed",placement:_,whileElementsMounted:(...Ce)=>Fy(...Ce,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[Qy({mainAxis:o+P,alignmentAxis:s}),c&&Zy({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Jy():void 0,...W}),c&&ex({...W}),tx({...W,apply:({elements:Ce,rects:we,availableWidth:Be,availableHeight:$e})=>{const{width:Ee,height:ze}=we.reference,Te=Ce.floating.style;Te.setProperty("--radix-popper-available-width",`${Be}px`),Te.setProperty("--radix-popper-available-height",`${$e}px`),Te.setProperty("--radix-popper-anchor-width",`${Ee}px`),Te.setProperty("--radix-popper-anchor-height",`${ze}px`)}}),S&&rx({element:S,padding:l}),dx({arrowWidth:E,arrowHeight:P}),h&&nx({strategy:"referenceHidden",...W})]}),[O,M]=oc(V),Y=Se(v);ge(()=>{X&&(Y==null||Y())},[X,Y]);const T=(A=R.arrow)==null?void 0:A.x,D=(K=R.arrow)==null?void 0:K.y,L=((Q=R.arrow)==null?void 0:Q.centerOffset)!==0,[F,ee]=u.useState();return ge(()=>{y&&ee(window.getComputedStyle(y).zIndex)},[y]),i.jsx("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:X?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:F,"--radix-popper-transform-origin":[(ne=R.transformOrigin)==null?void 0:ne.x,(oe=R.transformOrigin)==null?void 0:oe.y].join(" "),...((ie=R.hide)==null?void 0:ie.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i.jsx(ix,{scope:n,placedSide:O,onArrowChange:k,arrowX:T,arrowY:D,shouldHideArrow:L,children:i.jsx(z.div,{"data-side":O,"data-align":M,...g,ref:x,style:{...g.style,animation:X?void 0:"none"}})})})});tc.displayName=Ca;var nc="PopperArrow",cx={top:"bottom",right:"left",bottom:"top",left:"right"},rc=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=lx(nc,r),s=cx[a.placedSide];return i.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:i.jsx(ax,{...o,ref:n,style:{...o.style,display:"block"}})})});rc.displayName=nc;function ux(e){return e!==null}var dx=e=>({name:"transformOrigin",options:e,fn(t){var b,y,w;const{placement:n,rects:r,middlewareData:o}=t,s=((b=o.arrow)==null?void 0:b.centerOffset)!==0,l=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[d,f]=oc(n),m={start:"0%",center:"50%",end:"100%"}[f],h=(((y=o.arrow)==null?void 0:y.x)??0)+l/2,p=(((w=o.arrow)==null?void 0:w.y)??0)+c/2;let v="",g="";return d==="bottom"?(v=s?m:`${h}px`,g=`${-c}px`):d==="top"?(v=s?m:`${h}px`,g=`${r.floating.height+c}px`):d==="right"?(v=`${-c}px`,g=s?m:`${p}px`):d==="left"&&(v=`${r.floating.width+c}px`,g=s?m:`${p}px`),{data:{x:v,y:g}}}});function oc(e){const[t,n="center"]=e.split("-");return[t,n]}var On=Zl,$n=ec,Mr=tc,jr=rc,fx="Portal",Ln=u.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,a]=u.useState(!1);ge(()=>a(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?ar.createPortal(i.jsx(z.div,{...r,ref:t}),s):null});Ln.displayName=fx;function mx(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var xe=e=>{const{present:t,children:n}=e,r=px(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),a=re(r.ref,hx(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:a}):null};xe.displayName="Presence";function px(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),a=u.useRef("none"),s=e?"mounted":"unmounted",[l,c]=mx(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=_r(r.current);a.current=l==="mounted"?d:"none"},[l]),ge(()=>{const d=r.current,f=o.current;if(f!==e){const h=a.current,p=_r(d);e?c("MOUNT"):p==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ge(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,m=p=>{const g=_r(r.current).includes(p.animationName);if(p.target===t&&g&&(c("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=p=>{p.target===t&&(a.current=_r(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:u.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function _r(e){return(e==null?void 0:e.animationName)||"none"}function hx(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 Na="rovingFocusGroup.onEntryFocus",gx={bubbles:!1,cancelable:!0},Fn="RovingFocusGroup",[Sa,ac,vx]=an(Fn),[bx,Nt]=be(Fn,[vx]),[wx,yx]=bx(Fn),sc=u.forwardRef((e,t)=>i.jsx(Sa.Provider,{scope:e.__scopeRovingFocusGroup,children:i.jsx(Sa.Slot,{scope:e.__scopeRovingFocusGroup,children:i.jsx(xx,{...e,ref:t})})}));sc.displayName=Fn;var xx=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...m}=e,h=u.useRef(null),p=re(t,h),v=bt(a),[g,b]=ye({prop:s,defaultProp:l??null,onChange:c,caller:Fn}),[y,w]=u.useState(!1),x=Se(d),S=ac(n),k=u.useRef(!1),[j,E]=u.useState(0);return u.useEffect(()=>{const P=h.current;if(P)return P.addEventListener(Na,x),()=>P.removeEventListener(Na,x)},[x]),i.jsx(wx,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:g,onItemFocus:u.useCallback(P=>b(P),[b]),onItemShiftTab:u.useCallback(()=>w(!0),[]),onFocusableItemAdd:u.useCallback(()=>E(P=>P+1),[]),onFocusableItemRemove:u.useCallback(()=>E(P=>P-1),[]),children:i.jsx(z.div,{tabIndex:y||j===0?-1:0,"data-orientation":r,...m,ref:p,style:{outline:"none",...e.style},onMouseDown:B(e.onMouseDown,()=>{k.current=!0}),onFocus:B(e.onFocus,P=>{const _=!k.current;if(P.target===P.currentTarget&&_&&!y){const $=new CustomEvent(Na,gx);if(P.currentTarget.dispatchEvent($),!$.defaultPrevented){const H=S().filter(V=>V.focusable),q=H.find(V=>V.active),W=H.find(V=>V.id===g),te=[q,W,...H].filter(Boolean).map(V=>V.ref.current);cc(te,f)}}k.current=!1}),onBlur:B(e.onBlur,()=>w(!1))})})}),ic="RovingFocusGroupItem",lc=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...l}=e,c=pe(),d=a||c,f=yx(ic,n),m=f.currentTabStopId===d,h=ac(n),{onFocusableItemAdd:p,onFocusableItemRemove:v,currentTabStopId:g}=f;return u.useEffect(()=>{if(r)return p(),()=>v()},[r,p,v]),i.jsx(Sa.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:i.jsx(z.span,{tabIndex:m?0:-1,"data-orientation":f.orientation,...l,ref:t,onMouseDown:B(e.onMouseDown,b=>{r?f.onItemFocus(d):b.preventDefault()}),onFocus:B(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:B(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){f.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=Sx(b,f.orientation,f.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let x=h().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const S=x.indexOf(b.currentTarget);x=f.loop?Ex(x,S+1):x.slice(S+1)}setTimeout(()=>cc(x))}}),children:typeof s=="function"?s({isCurrentTabStop:m,hasTabStop:g!=null}):s})})});lc.displayName=ic;var Cx={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Nx(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Sx(e,t,n){const r=Nx(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Cx[r]}function cc(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Ex(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ar=sc,Ir=lc,kx=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},dn=new WeakMap,Rr=new WeakMap,Dr={},Ea=0,uc=function(e){return e&&(e.host||uc(e.parentNode))},Px=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=uc(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})},Tx=function(e,t,n,r){var o=Px(t,Array.isArray(e)?e:[e]);Dr[n]||(Dr[n]=new WeakMap);var a=Dr[n],s=[],l=new Set,c=new Set(o),d=function(m){!m||l.has(m)||(l.add(m),d(m.parentNode))};o.forEach(d);var f=function(m){!m||c.has(m)||Array.prototype.forEach.call(m.children,function(h){if(l.has(h))f(h);else try{var p=h.getAttribute(r),v=p!==null&&p!=="false",g=(dn.get(h)||0)+1,b=(a.get(h)||0)+1;dn.set(h,g),a.set(h,b),s.push(h),g===1&&v&&Rr.set(h,!0),b===1&&h.setAttribute(n,"true"),v||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return f(t),l.clear(),Ea++,function(){s.forEach(function(m){var h=dn.get(m)-1,p=a.get(m)-1;dn.set(m,h),a.set(m,p),h||(Rr.has(m)||m.removeAttribute(r),Rr.delete(m)),p||m.removeAttribute(n)}),Ea--,Ea||(dn=new WeakMap,dn=new WeakMap,Rr=new WeakMap,Dr={})}},Or=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=kx(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Tx(r,o,n,"aria-hidden")):function(){return null}},at=function(){return at=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},at.apply(this,arguments)};function dc(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 Mx(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 $r="right-scroll-bar-position",Lr="width-before-scroll-bar",jx="with-scroll-bars-hidden",_x="--removed-body-scroll-bar-size";function ka(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ax(e,t){var n=C.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 Ix=typeof window<"u"?u.useLayoutEffect:u.useEffect,fc=new WeakMap;function Rx(e,t){var n=Ax(null,function(r){return e.forEach(function(o){return ka(o,r)})});return Ix(function(){var r=fc.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(l){a.has(l)||ka(l,null)}),a.forEach(function(l){o.has(l)||ka(l,s)})}fc.set(n,e)},[e]),n}function Dx(e){return e}function Ox(e,t){t===void 0&&(t=Dx);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(l){return l!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(l){return a(l)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var l=n;n=[],l.forEach(a),s=n}var c=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),n}}}};return o}function $x(e){e===void 0&&(e={});var t=Ox(null);return t.options=at({async:!0,ssr:!1},e),t}var mc=function(e){var t=e.sideCar,n=dc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,at({},n))};mc.isSideCarExport=!0;function Lx(e,t){return e.useMedium(t),mc}var pc=$x(),Pa=function(){},Fr=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:Pa,onWheelCapture:Pa,onTouchMoveCapture:Pa}),o=r[0],a=r[1],s=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,m=e.shards,h=e.sideCar,p=e.noRelative,v=e.noIsolation,g=e.inert,b=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,x=e.gapMode,S=dc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=h,j=Rx([n,t]),E=at(at({},S),o);return u.createElement(u.Fragment,null,f&&u.createElement(k,{sideCar:pc,removeScrollBar:d,shards:m,noRelative:p,noIsolation:v,inert:g,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:x}),s?u.cloneElement(u.Children.only(l),at(at({},E),{ref:j})):u.createElement(w,at({},E,{className:c,ref:j}),l))});Fr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Fr.classNames={fullWidth:Lr,zeroRight:$r};var Fx=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Bx(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Fx();return t&&e.setAttribute("nonce",t),e}function zx(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Vx(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Wx=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Bx())&&(zx(t,n),Vx(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Hx=function(){var e=Wx();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},hc=function(){var e=Hx(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Gx={left:0,top:0,right:0,gap:0},Ta=function(e){return parseInt(e||"",10)||0},Ux=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[Ta(n),Ta(r),Ta(o)]},Yx=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Gx;var t=Ux(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])}},Kx=hc(),fn="data-scroll-locked",qx=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
218
|
-
.`.concat(
|
|
227
|
+
*/const ct=ce("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),hl=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,gl=Fo,Ft=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return gl(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const f=n==null?void 0:n[d],m=a==null?void 0:a[d];if(f===null)return null;const h=hl(f)||hl(m);return o[d][h]}),l=n&&Object.entries(n).reduce((d,f)=>{let[m,h]=f;return h===void 0||(d[m]=h),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:m,className:h,...p}=f;return Object.entries(p).every(v=>{let[g,b]=v;return Array.isArray(b)?b.includes({...a,...l}[g]):{...a,...l}[g]===b})?[...d,m,h]:d},[]);return gl(e,s,c,n==null?void 0:n.class,n==null?void 0:n.className)},vl=Ft("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 on({className:e,variant:t,...n}){return i.jsx("div",{className:A(vl({variant:t}),e),...n})}function Pw({searchTerm:e,activeFilters:t,sortState:n,filters:r,columns:o,onClearSearch:a,onClearFilter:s,onClearSort:l}){var d;return Object.values(t).filter(f=>f&&f!=="all").length>0||e.trim().length>0||n.field!==null?i.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.trim()&&i.jsxs(on,{variant:"secondary",className:"gap-1",children:["Search: ",e,i.jsx(ct,{className:"h-3 w-3 cursor-pointer hover:text-destructive",onClick:a})]}),Object.entries(t).map(([f,m])=>{if(!m||m==="all")return null;const h=r.find(v=>String(v.field)===f),p=h==null?void 0:h.options.find(v=>v.value===m);return i.jsxs(on,{variant:"secondary",className:"gap-1",children:[h==null?void 0:h.label,": ",(p==null?void 0:p.label)||m,i.jsx(ct,{className:"h-3 w-3 cursor-pointer hover:text-destructive",onClick:()=>s(f)})]},f)}),n.field&&i.jsxs(on,{variant:"secondary",className:"gap-1",children:["Sort:"," ",((d=o.find(f=>String(f.key)===n.field))==null?void 0:d.title)||n.field," ",n.direction==="asc"?"↑":"↓",i.jsx(ct,{className:"h-3 w-3 cursor-pointer hover:text-destructive",onClick:l})]})]}):null}function B(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Tw(e,t){const n=u.createContext(t),r=a=>{const{children:s,...l}=a,c=u.useMemo(()=>l,Object.values(l));return i.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(a){const s=u.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function be(e,t=[]){let n=[];function r(a,s){const l=u.createContext(s),c=n.length;n=[...n,s];const d=m=>{var y;const{scope:h,children:p,...v}=m,g=((y=h==null?void 0:h[e])==null?void 0:y[c])||l,b=u.useMemo(()=>v,Object.values(v));return i.jsx(g.Provider,{value:b,children:p})};d.displayName=a+"Provider";function f(m,h){var g;const p=((g=h==null?void 0:h[e])==null?void 0:g[c])||l,v=u.useContext(p);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=n.map(s=>u.createContext(s));return function(l){const c=(l==null?void 0:l[e])||a;return u.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Mw(o,...t)]}function Mw(...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((l,{useScope:c,scopeName:d})=>{const m=c(a)[`__scope${d}`];return{...l,...m}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var ge=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},jw=u[" useInsertionEffect ".trim().toString()]||ge;function ye({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=_w({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const m=f.current;m!==l&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,r])}const d=u.useCallback(f=>{var m;if(l){const h=Aw(f)?f(e):f;h!==e&&((m=s.current)==null||m.call(s,h))}else a(f)},[l,e,a,s]);return[c,d]}function _w({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),a=u.useRef(t);return jw(()=>{a.current=t},[t]),u.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function Aw(e){return typeof e=="function"}var Iw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=Iw.reduce((e,t)=>{const n=vt(`Primitive.${t}`),r=u.forwardRef((o,a)=>{const{asChild:s,...l}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(c,{...l,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function vr(e,t){e&&sr.flushSync(()=>e.dispatchEvent(t))}function an(e){const t=e+"CollectionProvider",[n,r]=be(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:b,children:y}=g,w=C.useRef(null),x=C.useRef(new Map).current;return i.jsx(o,{scope:b,itemMap:x,collectionRef:w,children:y})};s.displayName=t;const l=e+"CollectionSlot",c=vt(l),d=C.forwardRef((g,b)=>{const{scope:y,children:w}=g,x=a(l,y),S=re(b,x.collectionRef);return i.jsx(c,{ref:S,children:w})});d.displayName=l;const f=e+"CollectionItemSlot",m="data-radix-collection-item",h=vt(f),p=C.forwardRef((g,b)=>{const{scope:y,children:w,...x}=g,S=C.useRef(null),k=re(b,S),M=a(f,y);return C.useEffect(()=>(M.itemMap.set(S,{ref:S,...x}),()=>void M.itemMap.delete(S))),i.jsx(h,{[m]:"",ref:k,children:w})});p.displayName=f;function v(g){const b=a(e+"CollectionConsumer",g);return C.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${m}]`));return Array.from(b.itemMap.values()).sort((M,E)=>x.indexOf(M.ref.current)-x.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:d,ItemSlot:p},v,r]}var Rw=u.createContext(void 0);function bt(e){const t=u.useContext(Rw);return e||t||"ltr"}function Se(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Dw(e,t=globalThis==null?void 0:globalThis.document){const n=Se(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Ow="DismissableLayer",aa="dismissableLayer.update",$w="dismissableLayer.pointerDownOutside",Lw="dismissableLayer.focusOutside",bl,wl=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bt=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,d=u.useContext(wl),[f,m]=u.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=u.useState({}),v=re(t,E=>m(E)),g=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),w=f?g.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,S=w>=y,k=zw(E=>{const P=E.target,_=[...d.branches].some($=>$.contains(P));!S||_||(o==null||o(E),s==null||s(E),E.defaultPrevented||l==null||l())},h),M=Vw(E=>{const P=E.target;[...d.branches].some($=>$.contains(P))||(a==null||a(E),s==null||s(E),E.defaultPrevented||l==null||l())},h);return Dw(E=>{w===d.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},h),u.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(bl=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),yl(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=bl)}},[f,h,n,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),yl())},[f,d]),u.useEffect(()=>{const E=()=>p({});return document.addEventListener(aa,E),()=>document.removeEventListener(aa,E)},[]),i.jsx(z.div,{...c,ref:v,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,M.onFocusCapture),onBlurCapture:B(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,k.onPointerDownCapture)})});Bt.displayName=Ow;var Fw="DismissableLayerBranch",Bw=u.forwardRef((e,t)=>{const n=u.useContext(wl),r=u.useRef(null),o=re(t,r);return u.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),i.jsx(z.div,{...e,ref:o})});Bw.displayName=Fw;function zw(e,t=globalThis==null?void 0:globalThis.document){const n=Se(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let c=function(){xl($w,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Vw(e,t=globalThis==null?void 0:globalThis.document){const n=Se(e),r=u.useRef(!1);return u.useEffect(()=>{const o=a=>{a.target&&!r.current&&xl(Lw,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 yl(){const e=new CustomEvent(aa);document.dispatchEvent(e)}function xl(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?vr(o,a):o.dispatchEvent(a)}var sa=0;function br(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Cl()),document.body.insertAdjacentElement("beforeend",e[1]??Cl()),sa++,()=>{sa===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),sa--}},[])}function Cl(){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 ia="focusScope.autoFocusOnMount",la="focusScope.autoFocusOnUnmount",Nl={bubbles:!1,cancelable:!0},Ww="FocusScope",In=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[l,c]=u.useState(null),d=Se(o),f=Se(a),m=u.useRef(null),h=re(t,g=>c(g)),p=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let g=function(x){if(p.paused||!l)return;const S=x.target;l.contains(S)?m.current=S:wt(m.current,{select:!0})},b=function(x){if(p.paused||!l)return;const S=x.relatedTarget;S!==null&&(l.contains(S)||wt(m.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const k of x)k.removedNodes.length>0&&wt(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const w=new MutationObserver(y);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),w.disconnect()}}},[r,l,p.paused]),u.useEffect(()=>{if(l){kl.add(p);const g=document.activeElement;if(!l.contains(g)){const y=new CustomEvent(ia,Nl);l.addEventListener(ia,d),l.dispatchEvent(y),y.defaultPrevented||(Hw(qw(Sl(l)),{select:!0}),document.activeElement===g&&wt(l))}return()=>{l.removeEventListener(ia,d),setTimeout(()=>{const y=new CustomEvent(la,Nl);l.addEventListener(la,f),l.dispatchEvent(y),y.defaultPrevented||wt(g??document.body,{select:!0}),l.removeEventListener(la,f),kl.remove(p)},0)}}},[l,d,f,p]);const v=u.useCallback(g=>{if(!n&&!r||p.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const w=g.currentTarget,[x,S]=Gw(w);x&&S?!g.shiftKey&&y===S?(g.preventDefault(),n&&wt(x,{select:!0})):g.shiftKey&&y===x&&(g.preventDefault(),n&&wt(S,{select:!0})):y===w&&g.preventDefault()}},[n,r,p.paused]);return i.jsx(z.div,{tabIndex:-1,...s,ref:h,onKeyDown:v})});In.displayName=Ww;function Hw(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(wt(r,{select:t}),document.activeElement!==n)return}function Gw(e){const t=Sl(e),n=El(t,e),r=El(t.reverse(),e);return[n,r]}function Sl(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 El(e,t){for(const n of e)if(!Uw(n,{upTo:t}))return n}function Uw(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 Yw(e){return e instanceof HTMLInputElement&&"select"in e}function wt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Yw(e)&&t&&e.select()}}var kl=Kw();function Kw(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Pl(e,t),e.unshift(t)},remove(t){var n;e=Pl(e,t),(n=e[0])==null||n.resume()}}}function Pl(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function qw(e){return e.filter(t=>t.tagName!=="A")}var Xw=u[" useId ".trim().toString()]||(()=>{}),Qw=0;function pe(e){const[t,n]=u.useState(Xw());return ge(()=>{n(r=>r??String(Qw++))},[e]),t?`radix-${t}`:""}const Zw=["top","right","bottom","left"],yt=Math.min,Re=Math.max,wr=Math.round,yr=Math.floor,tt=e=>({x:e,y:e}),Jw={left:"right",right:"left",bottom:"top",top:"bottom"},ey={start:"end",end:"start"};function ca(e,t,n){return Re(e,yt(t,n))}function ut(e,t){return typeof e=="function"?e(t):e}function dt(e){return e.split("-")[0]}function sn(e){return e.split("-")[1]}function ua(e){return e==="x"?"y":"x"}function da(e){return e==="y"?"height":"width"}const ty=new Set(["top","bottom"]);function nt(e){return ty.has(dt(e))?"y":"x"}function fa(e){return ua(nt(e))}function ny(e,t,n){n===void 0&&(n=!1);const r=sn(e),o=fa(e),a=da(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=xr(s)),[s,xr(s)]}function ry(e){const t=xr(e);return[ma(e),t,ma(t)]}function ma(e){return e.replace(/start|end/g,t=>ey[t])}const Tl=["left","right"],Ml=["right","left"],oy=["top","bottom"],ay=["bottom","top"];function sy(e,t,n){switch(e){case"top":case"bottom":return n?t?Ml:Tl:t?Tl:Ml;case"left":case"right":return t?oy:ay;default:return[]}}function iy(e,t,n,r){const o=sn(e);let a=sy(dt(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(ma)))),a}function xr(e){return e.replace(/left|right|bottom|top/g,t=>Jw[t])}function ly(e){return{top:0,right:0,bottom:0,left:0,...e}}function jl(e){return typeof e!="number"?ly(e):{top:e,right:e,bottom:e,left:e}}function Cr(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 _l(e,t,n){let{reference:r,floating:o}=e;const a=nt(t),s=fa(t),l=da(s),c=dt(t),d=a==="y",f=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,h=r[l]/2-o[l]/2;let p;switch(c){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:m};break;case"left":p={x:r.x-o.width,y:m};break;default:p={x:r.x,y:r.y}}switch(sn(t)){case"start":p[s]-=h*(n&&d?-1:1);break;case"end":p[s]+=h*(n&&d?-1:1);break}return p}const cy=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:m}=_l(d,r,c),h=r,p={},v=0;for(let g=0;g<l.length;g++){const{name:b,fn:y}=l[g],{x:w,y:x,data:S,reset:k}=await y({x:f,y:m,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:d,platform:s,elements:{reference:e,floating:t}});f=w??f,m=x??m,p={...p,[b]:{...p[b],...S}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(d=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:m}=_l(d,h,c)),g=-1)}return{x:f,y:m,placement:h,strategy:o,middlewareData:p}};async function Rn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:h=!1,padding:p=0}=ut(t,e),v=jl(p),b=l[h?m==="floating"?"reference":"floating":m],y=Cr(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:d,rootBoundary:f,strategy:c})),w=m==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),S=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},k=Cr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:x,strategy:c}):w);return{top:(y.top-k.top+v.top)/S.y,bottom:(k.bottom-y.bottom+v.bottom)/S.y,left:(y.left-k.left+v.left)/S.x,right:(k.right-y.right+v.right)/S.x}}const uy=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:l,middlewareData:c}=t,{element:d,padding:f=0}=ut(e,t)||{};if(d==null)return{};const m=jl(f),h={x:n,y:r},p=fa(o),v=da(p),g=await s.getDimensions(d),b=p==="y",y=b?"top":"left",w=b?"bottom":"right",x=b?"clientHeight":"clientWidth",S=a.reference[v]+a.reference[p]-h[p]-a.floating[v],k=h[p]-a.reference[p],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let E=M?M[x]:0;(!E||!await(s.isElement==null?void 0:s.isElement(M)))&&(E=l.floating[x]||a.floating[v]);const P=S/2-k/2,_=E/2-g[v]/2-1,$=yt(m[y],_),H=yt(m[w],_),q=$,W=E-g[v]-H,U=E/2-g[v]/2+P,te=ca(q,U,W),V=!c.arrow&&sn(o)!=null&&U!==te&&a.reference[v]/2-(U<q?$:H)-g[v]/2<0,X=V?U<q?U-q:U-W:0;return{[p]:h[p]+X,data:{[p]:te,centerOffset:U-te-X,...V&&{alignmentOffset:X}},reset:V}}}),dy=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:l,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:g=!0,...b}=ut(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=dt(o),w=nt(l),x=dt(l)===l,S=await(c.isRTL==null?void 0:c.isRTL(d.floating)),k=h||(x||!g?[xr(l)]:ry(l)),M=v!=="none";!h&&M&&k.push(...iy(l,g,v,S));const E=[l,...k],P=await Rn(t,b),_=[];let $=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&_.push(P[y]),m){const U=ny(o,s,S);_.push(P[U[0]],P[U[1]])}if($=[...$,{placement:o,overflows:_}],!_.every(U=>U<=0)){var H,q;const U=(((H=a.flip)==null?void 0:H.index)||0)+1,te=E[U];if(te&&(!(m==="alignment"?w!==nt(te):!1)||$.every(R=>R.overflows[0]>0&&nt(R.placement)===w)))return{data:{index:U,overflows:$},reset:{placement:te}};let V=(q=$.filter(X=>X.overflows[0]<=0).sort((X,R)=>X.overflows[1]-R.overflows[1])[0])==null?void 0:q.placement;if(!V)switch(p){case"bestFit":{var W;const X=(W=$.filter(R=>{if(M){const O=nt(R.placement);return O===w||O==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(O=>O>0).reduce((O,j)=>O+j,0)]).sort((R,O)=>R[1]-O[1])[0])==null?void 0:W[0];X&&(V=X);break}case"initialPlacement":V=l;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function Al(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Il(e){return Zw.some(t=>e[t]>=0)}const fy=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ut(e,t);switch(r){case"referenceHidden":{const a=await Rn(t,{...o,elementContext:"reference"}),s=Al(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Il(s)}}}case"escaped":{const a=await Rn(t,{...o,altBoundary:!0}),s=Al(a,n.floating);return{data:{escapedOffsets:s,escaped:Il(s)}}}default:return{}}}}},Rl=new Set(["left","top"]);async function my(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=dt(n),l=sn(n),c=nt(n)==="y",d=Rl.has(s)?-1:1,f=a&&c?-1:1,m=ut(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:v}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof v=="number"&&(p=l==="end"?v*-1:v),c?{x:p*f,y:h*d}:{x:h*d,y:p*f}}const py=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:l}=t,c=await my(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},hy=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:l={fn:b=>{let{x:y,y:w}=b;return{x:y,y:w}}},...c}=ut(e,t),d={x:n,y:r},f=await Rn(t,c),m=nt(dt(o)),h=ua(m);let p=d[h],v=d[m];if(a){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=p+f[b],x=p-f[y];p=ca(w,p,x)}if(s){const b=m==="y"?"top":"left",y=m==="y"?"bottom":"right",w=v+f[b],x=v-f[y];v=ca(w,v,x)}const g=l.fn({...t,[h]:p,[m]:v});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:a,[m]:s}}}}}},gy=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=ut(e,t),f={x:n,y:r},m=nt(o),h=ua(m);let p=f[h],v=f[m];const g=ut(l,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const x=h==="y"?"height":"width",S=a.reference[h]-a.floating[x]+b.mainAxis,k=a.reference[h]+a.reference[x]-b.mainAxis;p<S?p=S:p>k&&(p=k)}if(d){var y,w;const x=h==="y"?"width":"height",S=Rl.has(dt(o)),k=a.reference[m]-a.floating[x]+(S&&((y=s.offset)==null?void 0:y[m])||0)+(S?0:b.crossAxis),M=a.reference[m]+a.reference[x]+(S?0:((w=s.offset)==null?void 0:w[m])||0)-(S?b.crossAxis:0);v<k?v=k:v>M&&(v=M)}return{[h]:p,[m]:v}}}},vy=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:l}=t,{apply:c=()=>{},...d}=ut(e,t),f=await Rn(t,d),m=dt(o),h=sn(o),p=nt(o)==="y",{width:v,height:g}=a.floating;let b,y;m==="top"||m==="bottom"?(b=m,y=h===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(y=m,b=h==="end"?"top":"bottom");const w=g-f.top-f.bottom,x=v-f.left-f.right,S=yt(g-f[b],w),k=yt(v-f[y],x),M=!t.middlewareData.shift;let E=S,P=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=w),M&&!h){const $=Re(f.left,0),H=Re(f.right,0),q=Re(f.top,0),W=Re(f.bottom,0);p?P=v-2*($!==0||H!==0?$+H:Re(f.left,f.right)):E=g-2*(q!==0||W!==0?q+W:Re(f.top,f.bottom))}await c({...t,availableWidth:P,availableHeight:E});const _=await s.getDimensions(l.floating);return v!==_.width||g!==_.height?{reset:{rects:!0}}:{}}}};function Nr(){return typeof window<"u"}function ln(e){return Dl(e)?(e.nodeName||"").toLowerCase():"#document"}function De(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rt(e){var t;return(t=(Dl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dl(e){return Nr()?e instanceof Node||e instanceof De(e).Node:!1}function We(e){return Nr()?e instanceof Element||e instanceof De(e).Element:!1}function ot(e){return Nr()?e instanceof HTMLElement||e instanceof De(e).HTMLElement:!1}function Ol(e){return!Nr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof De(e).ShadowRoot}const by=new Set(["inline","contents"]);function Dn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=He(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!by.has(o)}const wy=new Set(["table","td","th"]);function yy(e){return wy.has(ln(e))}const xy=[":popover-open",":modal"];function Sr(e){return xy.some(t=>{try{return e.matches(t)}catch{return!1}})}const Cy=["transform","translate","scale","rotate","perspective"],Ny=["transform","translate","scale","rotate","perspective","filter"],Sy=["paint","layout","strict","content"];function pa(e){const t=ha(),n=We(e)?He(e):e;return Cy.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Ny.some(r=>(n.willChange||"").includes(r))||Sy.some(r=>(n.contain||"").includes(r))}function Ey(e){let t=xt(e);for(;ot(t)&&!cn(t);){if(pa(t))return t;if(Sr(t))return null;t=xt(t)}return null}function ha(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ky=new Set(["html","body","#document"]);function cn(e){return ky.has(ln(e))}function He(e){return De(e).getComputedStyle(e)}function Er(e){return We(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xt(e){if(ln(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ol(e)&&e.host||rt(e);return Ol(t)?t.host:t}function $l(e){const t=xt(e);return cn(t)?e.ownerDocument?e.ownerDocument.body:e.body:ot(t)&&Dn(t)?t:$l(t)}function On(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=$l(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=De(o);if(a){const l=ga(s);return t.concat(s,s.visualViewport||[],Dn(o)?o:[],l&&n?On(l):[])}return t.concat(o,On(o,[],n))}function ga(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ll(e){const t=He(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ot(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=wr(n)!==a||wr(r)!==s;return l&&(n=a,r=s),{width:n,height:r,$:l}}function va(e){return We(e)?e:e.contextElement}function un(e){const t=va(e);if(!ot(t))return tt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Ll(t);let s=(a?wr(n.width):n.width)/r,l=(a?wr(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Py=tt(0);function Fl(e){const t=De(e);return!ha()||!t.visualViewport?Py:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ty(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==De(e)?!1:t}function zt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=va(e);let s=tt(1);t&&(r?We(r)&&(s=un(r)):s=un(e));const l=Ty(a,n,r)?Fl(a):tt(0);let c=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,f=o.width/s.x,m=o.height/s.y;if(a){const h=De(a),p=r&&We(r)?De(r):r;let v=h,g=ga(v);for(;g&&r&&p!==v;){const b=un(g),y=g.getBoundingClientRect(),w=He(g),x=y.left+(g.clientLeft+parseFloat(w.paddingLeft))*b.x,S=y.top+(g.clientTop+parseFloat(w.paddingTop))*b.y;c*=b.x,d*=b.y,f*=b.x,m*=b.y,c+=x,d+=S,v=De(g),g=ga(v)}}return Cr({width:f,height:m,x:c,y:d})}function ba(e,t){const n=Er(e).scrollLeft;return t?t.left+n:zt(rt(e)).left+n}function Bl(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ba(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function My(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=rt(r),l=t?Sr(t.floating):!1;if(r===s||l&&a)return n;let c={scrollLeft:0,scrollTop:0},d=tt(1);const f=tt(0),m=ot(r);if((m||!m&&!a)&&((ln(r)!=="body"||Dn(s))&&(c=Er(r)),ot(r))){const p=zt(r);d=un(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}const h=s&&!m&&!a?Bl(s,c,!0):tt(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+h.x,y:n.y*d.y-c.scrollTop*d.y+f.y+h.y}}function jy(e){return Array.from(e.getClientRects())}function _y(e){const t=rt(e),n=Er(e),r=e.ownerDocument.body,o=Re(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Re(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ba(e);const l=-n.scrollTop;return He(r).direction==="rtl"&&(s+=Re(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:l}}function Ay(e,t){const n=De(e),r=rt(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;const d=ha();(!d||d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l,y:c}}const Iy=new Set(["absolute","fixed"]);function Ry(e,t){const n=zt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=ot(e)?un(e):tt(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,c=o*a.x,d=r*a.y;return{width:s,height:l,x:c,y:d}}function zl(e,t,n){let r;if(t==="viewport")r=Ay(e,n);else if(t==="document")r=_y(rt(e));else if(We(t))r=Ry(t,n);else{const o=Fl(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Cr(r)}function Vl(e,t){const n=xt(e);return n===t||!We(n)||cn(n)?!1:He(n).position==="fixed"||Vl(n,t)}function Dy(e,t){const n=t.get(e);if(n)return n;let r=On(e,[],!1).filter(l=>We(l)&&ln(l)!=="body"),o=null;const a=He(e).position==="fixed";let s=a?xt(e):e;for(;We(s)&&!cn(s);){const l=He(s),c=pa(s);!c&&l.position==="fixed"&&(o=null),(a?!c&&!o:!c&&l.position==="static"&&!!o&&Iy.has(o.position)||Dn(s)&&!c&&Vl(e,s))?r=r.filter(f=>f!==s):o=l,s=xt(s)}return t.set(e,r),r}function Oy(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Sr(t)?[]:Dy(t,this._c):[].concat(n),r],l=s[0],c=s.reduce((d,f)=>{const m=zl(t,f,o);return d.top=Re(m.top,d.top),d.right=yt(m.right,d.right),d.bottom=yt(m.bottom,d.bottom),d.left=Re(m.left,d.left),d},zl(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function $y(e){const{width:t,height:n}=Ll(e);return{width:t,height:n}}function Ly(e,t,n){const r=ot(t),o=rt(t),a=n==="fixed",s=zt(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const c=tt(0);function d(){c.x=ba(o)}if(r||!r&&!a)if((ln(t)!=="body"||Dn(o))&&(l=Er(t)),r){const p=zt(t,!0,a,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&d();a&&!r&&o&&d();const f=o&&!r&&!a?Bl(o,l):tt(0),m=s.left+l.scrollLeft-c.x-f.x,h=s.top+l.scrollTop-c.y-f.y;return{x:m,y:h,width:s.width,height:s.height}}function wa(e){return He(e).position==="static"}function Wl(e,t){if(!ot(e)||He(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return rt(e)===n&&(n=n.ownerDocument.body),n}function Hl(e,t){const n=De(e);if(Sr(e))return n;if(!ot(e)){let o=xt(e);for(;o&&!cn(o);){if(We(o)&&!wa(o))return o;o=xt(o)}return n}let r=Wl(e,t);for(;r&&yy(r)&&wa(r);)r=Wl(r,t);return r&&cn(r)&&wa(r)&&!pa(r)?n:r||Ey(e)||n}const Fy=async function(e){const t=this.getOffsetParent||Hl,n=this.getDimensions,r=await n(e.floating);return{reference:Ly(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function By(e){return He(e).direction==="rtl"}const zy={convertOffsetParentRelativeRectToViewportRelativeRect:My,getDocumentElement:rt,getClippingRect:Oy,getOffsetParent:Hl,getElementRects:Fy,getClientRects:jy,getDimensions:$y,getScale:un,isElement:We,isRTL:By};function Gl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vy(e,t){let n=null,r;const o=rt(e);function a(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:f,top:m,width:h,height:p}=d;if(l||t(),!h||!p)return;const v=yr(m),g=yr(o.clientWidth-(f+h)),b=yr(o.clientHeight-(m+p)),y=yr(f),x={rootMargin:-v+"px "+-g+"px "+-b+"px "+-y+"px",threshold:Re(0,yt(1,c))||1};let S=!0;function k(M){const E=M[0].intersectionRatio;if(E!==c){if(!S)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!Gl(d,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(k,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,x)}n.observe(e)}return s(!0),a}function Wy(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=va(e),f=o||a?[...d?On(d):[],...On(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const m=d&&l?Vy(d,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(y=>{let[w]=y;w&&w.target===d&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),d&&!c&&p.observe(d),p.observe(t));let v,g=c?zt(e):null;c&&b();function b(){const y=zt(e);g&&!Gl(g,y)&&n(),g=y,v=requestAnimationFrame(b)}return n(),()=>{var y;f.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),m==null||m(),(y=p)==null||y.disconnect(),p=null,c&&cancelAnimationFrame(v)}}const Hy=py,Gy=hy,Uy=dy,Yy=vy,Ky=fy,Ul=uy,qy=gy,Xy=(e,t,n)=>{const r=new Map,o={platform:zy,...n},a={...o.platform,_c:r};return cy(e,t,{...o,platform:a})};var Qy=typeof document<"u",Zy=function(){},kr=Qy?C.useLayoutEffect:Zy;function Pr(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(!Pr(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)&&!Pr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Yl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kl(e,t){const n=Yl(e);return Math.round(t*n)/n}function ya(e){const t=u.useRef(e);return kr(()=>{t.current=e}),t}function Jy(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[f,m]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=u.useState(r);Pr(h,r)||p(r);const[v,g]=u.useState(null),[b,y]=u.useState(null),w=u.useCallback(R=>{R!==M.current&&(M.current=R,g(R))},[]),x=u.useCallback(R=>{R!==E.current&&(E.current=R,y(R))},[]),S=a||v,k=s||b,M=u.useRef(null),E=u.useRef(null),P=u.useRef(f),_=c!=null,$=ya(c),H=ya(o),q=ya(d),W=u.useCallback(()=>{if(!M.current||!E.current)return;const R={placement:t,strategy:n,middleware:h};H.current&&(R.platform=H.current),Xy(M.current,E.current,R).then(O=>{const j={...O,isPositioned:q.current!==!1};U.current&&!Pr(P.current,j)&&(P.current=j,sr.flushSync(()=>{m(j)}))})},[h,t,n,H,q]);kr(()=>{d===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,m(R=>({...R,isPositioned:!1})))},[d]);const U=u.useRef(!1);kr(()=>(U.current=!0,()=>{U.current=!1}),[]),kr(()=>{if(S&&(M.current=S),k&&(E.current=k),S&&k){if($.current)return $.current(S,k,W);W()}},[S,k,W,$,_]);const te=u.useMemo(()=>({reference:M,floating:E,setReference:w,setFloating:x}),[w,x]),V=u.useMemo(()=>({reference:S,floating:k}),[S,k]),X=u.useMemo(()=>{const R={position:n,left:0,top:0};if(!V.floating)return R;const O=Kl(V.floating,f.x),j=Kl(V.floating,f.y);return l?{...R,transform:"translate("+O+"px, "+j+"px)",...Yl(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:j}},[n,l,V.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:W,refs:te,elements:V,floatingStyles:X}),[f,W,te,V,X])}const ex=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?Ul({element:r.current,padding:o}).fn(n):{}:r?Ul({element:r,padding:o}).fn(n):{}}}},tx=(e,t)=>({...Hy(e),options:[e,t]}),nx=(e,t)=>({...Gy(e),options:[e,t]}),rx=(e,t)=>({...qy(e),options:[e,t]}),ox=(e,t)=>({...Uy(e),options:[e,t]}),ax=(e,t)=>({...Yy(e),options:[e,t]}),sx=(e,t)=>({...Ky(e),options:[e,t]}),ix=(e,t)=>({...ex(e),options:[e,t]});var lx="Arrow",ql=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return i.jsx(z.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});ql.displayName=lx;var cx=ql;function Tr(e){const[t,n]=u.useState(void 0);return ge(()=>{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,l;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;s=d.inlineSize,l=d.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var xa="Popper",[Xl,Ct]=be(xa),[ux,Ql]=Xl(xa),Zl=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return i.jsx(ux,{scope:t,anchor:r,onAnchorChange:o,children:n})};Zl.displayName=xa;var Jl="PopperAnchor",ec=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Ql(Jl,n),s=u.useRef(null),l=re(t,s);return u.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:i.jsx(z.div,{...o,ref:l})});ec.displayName=Jl;var Ca="PopperContent",[dx,fx]=Xl(Ca),tc=u.forwardRef((e,t)=>{var I,K,Q,ne,oe,ie;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:v,...g}=e,b=Ql(Ca,n),[y,w]=u.useState(null),x=re(t,Ce=>w(Ce)),[S,k]=u.useState(null),M=Tr(S),E=(M==null?void 0:M.width)??0,P=(M==null?void 0:M.height)??0,_=r+(a!=="center"?"-"+a:""),$=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},H=Array.isArray(d)?d:[d],q=H.length>0,W={padding:$,boundary:H.filter(px),altBoundary:q},{refs:U,floatingStyles:te,placement:V,isPositioned:X,middlewareData:R}=Jy({strategy:"fixed",placement:_,whileElementsMounted:(...Ce)=>Wy(...Ce,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[tx({mainAxis:o+P,alignmentAxis:s}),c&&nx({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?rx():void 0,...W}),c&&ox({...W}),ax({...W,apply:({elements:Ce,rects:we,availableWidth:Be,availableHeight:$e})=>{const{width:Ee,height:ze}=we.reference,Te=Ce.floating.style;Te.setProperty("--radix-popper-available-width",`${Be}px`),Te.setProperty("--radix-popper-available-height",`${$e}px`),Te.setProperty("--radix-popper-anchor-width",`${Ee}px`),Te.setProperty("--radix-popper-anchor-height",`${ze}px`)}}),S&&ix({element:S,padding:l}),hx({arrowWidth:E,arrowHeight:P}),h&&sx({strategy:"referenceHidden",...W})]}),[O,j]=oc(V),Y=Se(v);ge(()=>{X&&(Y==null||Y())},[X,Y]);const T=(I=R.arrow)==null?void 0:I.x,D=(K=R.arrow)==null?void 0:K.y,L=((Q=R.arrow)==null?void 0:Q.centerOffset)!==0,[F,ee]=u.useState();return ge(()=>{y&&ee(window.getComputedStyle(y).zIndex)},[y]),i.jsx("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:X?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:F,"--radix-popper-transform-origin":[(ne=R.transformOrigin)==null?void 0:ne.x,(oe=R.transformOrigin)==null?void 0:oe.y].join(" "),...((ie=R.hide)==null?void 0:ie.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i.jsx(dx,{scope:n,placedSide:O,onArrowChange:k,arrowX:T,arrowY:D,shouldHideArrow:L,children:i.jsx(z.div,{"data-side":O,"data-align":j,...g,ref:x,style:{...g.style,animation:X?void 0:"none"}})})})});tc.displayName=Ca;var nc="PopperArrow",mx={top:"bottom",right:"left",bottom:"top",left:"right"},rc=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=fx(nc,r),s=mx[a.placedSide];return i.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:i.jsx(cx,{...o,ref:n,style:{...o.style,display:"block"}})})});rc.displayName=nc;function px(e){return e!==null}var hx=e=>({name:"transformOrigin",options:e,fn(t){var b,y,w;const{placement:n,rects:r,middlewareData:o}=t,s=((b=o.arrow)==null?void 0:b.centerOffset)!==0,l=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[d,f]=oc(n),m={start:"0%",center:"50%",end:"100%"}[f],h=(((y=o.arrow)==null?void 0:y.x)??0)+l/2,p=(((w=o.arrow)==null?void 0:w.y)??0)+c/2;let v="",g="";return d==="bottom"?(v=s?m:`${h}px`,g=`${-c}px`):d==="top"?(v=s?m:`${h}px`,g=`${r.floating.height+c}px`):d==="right"?(v=`${-c}px`,g=s?m:`${p}px`):d==="left"&&(v=`${r.floating.width+c}px`,g=s?m:`${p}px`),{data:{x:v,y:g}}}});function oc(e){const[t,n="center"]=e.split("-");return[t,n]}var $n=Zl,Ln=ec,Mr=tc,jr=rc,gx="Portal",Fn=u.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,a]=u.useState(!1);ge(()=>a(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?ar.createPortal(i.jsx(z.div,{...r,ref:t}),s):null});Fn.displayName=gx;function vx(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var xe=e=>{const{present:t,children:n}=e,r=bx(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),a=re(r.ref,wx(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:a}):null};xe.displayName="Presence";function bx(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),a=u.useRef("none"),s=e?"mounted":"unmounted",[l,c]=vx(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=_r(r.current);a.current=l==="mounted"?d:"none"},[l]),ge(()=>{const d=r.current,f=o.current;if(f!==e){const h=a.current,p=_r(d);e?c("MOUNT"):p==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ge(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,m=p=>{const g=_r(r.current).includes(p.animationName);if(p.target===t&&g&&(c("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=p=>{p.target===t&&(a.current=_r(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:u.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function _r(e){return(e==null?void 0:e.animationName)||"none"}function wx(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 Na="rovingFocusGroup.onEntryFocus",yx={bubbles:!1,cancelable:!0},Bn="RovingFocusGroup",[Sa,ac,xx]=an(Bn),[Cx,Nt]=be(Bn,[xx]),[Nx,Sx]=Cx(Bn),sc=u.forwardRef((e,t)=>i.jsx(Sa.Provider,{scope:e.__scopeRovingFocusGroup,children:i.jsx(Sa.Slot,{scope:e.__scopeRovingFocusGroup,children:i.jsx(Ex,{...e,ref:t})})}));sc.displayName=Bn;var Ex=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...m}=e,h=u.useRef(null),p=re(t,h),v=bt(a),[g,b]=ye({prop:s,defaultProp:l??null,onChange:c,caller:Bn}),[y,w]=u.useState(!1),x=Se(d),S=ac(n),k=u.useRef(!1),[M,E]=u.useState(0);return u.useEffect(()=>{const P=h.current;if(P)return P.addEventListener(Na,x),()=>P.removeEventListener(Na,x)},[x]),i.jsx(Nx,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:g,onItemFocus:u.useCallback(P=>b(P),[b]),onItemShiftTab:u.useCallback(()=>w(!0),[]),onFocusableItemAdd:u.useCallback(()=>E(P=>P+1),[]),onFocusableItemRemove:u.useCallback(()=>E(P=>P-1),[]),children:i.jsx(z.div,{tabIndex:y||M===0?-1:0,"data-orientation":r,...m,ref:p,style:{outline:"none",...e.style},onMouseDown:B(e.onMouseDown,()=>{k.current=!0}),onFocus:B(e.onFocus,P=>{const _=!k.current;if(P.target===P.currentTarget&&_&&!y){const $=new CustomEvent(Na,yx);if(P.currentTarget.dispatchEvent($),!$.defaultPrevented){const H=S().filter(V=>V.focusable),q=H.find(V=>V.active),W=H.find(V=>V.id===g),te=[q,W,...H].filter(Boolean).map(V=>V.ref.current);cc(te,f)}}k.current=!1}),onBlur:B(e.onBlur,()=>w(!1))})})}),ic="RovingFocusGroupItem",lc=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...l}=e,c=pe(),d=a||c,f=Sx(ic,n),m=f.currentTabStopId===d,h=ac(n),{onFocusableItemAdd:p,onFocusableItemRemove:v,currentTabStopId:g}=f;return u.useEffect(()=>{if(r)return p(),()=>v()},[r,p,v]),i.jsx(Sa.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:i.jsx(z.span,{tabIndex:m?0:-1,"data-orientation":f.orientation,...l,ref:t,onMouseDown:B(e.onMouseDown,b=>{r?f.onItemFocus(d):b.preventDefault()}),onFocus:B(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:B(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){f.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=Tx(b,f.orientation,f.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let x=h().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const S=x.indexOf(b.currentTarget);x=f.loop?Mx(x,S+1):x.slice(S+1)}setTimeout(()=>cc(x))}}),children:typeof s=="function"?s({isCurrentTabStop:m,hasTabStop:g!=null}):s})})});lc.displayName=ic;var kx={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Px(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Tx(e,t,n){const r=Px(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return kx[r]}function cc(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Mx(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ar=sc,Ir=lc,jx=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},dn=new WeakMap,Rr=new WeakMap,Dr={},Ea=0,uc=function(e){return e&&(e.host||uc(e.parentNode))},_x=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=uc(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})},Ax=function(e,t,n,r){var o=_x(t,Array.isArray(e)?e:[e]);Dr[n]||(Dr[n]=new WeakMap);var a=Dr[n],s=[],l=new Set,c=new Set(o),d=function(m){!m||l.has(m)||(l.add(m),d(m.parentNode))};o.forEach(d);var f=function(m){!m||c.has(m)||Array.prototype.forEach.call(m.children,function(h){if(l.has(h))f(h);else try{var p=h.getAttribute(r),v=p!==null&&p!=="false",g=(dn.get(h)||0)+1,b=(a.get(h)||0)+1;dn.set(h,g),a.set(h,b),s.push(h),g===1&&v&&Rr.set(h,!0),b===1&&h.setAttribute(n,"true"),v||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return f(t),l.clear(),Ea++,function(){s.forEach(function(m){var h=dn.get(m)-1,p=a.get(m)-1;dn.set(m,h),a.set(m,p),h||(Rr.has(m)||m.removeAttribute(r),Rr.delete(m)),p||m.removeAttribute(n)}),Ea--,Ea||(dn=new WeakMap,dn=new WeakMap,Rr=new WeakMap,Dr={})}},Or=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=jx(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ax(r,o,n,"aria-hidden")):function(){return null}},at=function(){return at=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},at.apply(this,arguments)};function dc(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 Ix(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 $r="right-scroll-bar-position",Lr="width-before-scroll-bar",Rx="with-scroll-bars-hidden",Dx="--removed-body-scroll-bar-size";function ka(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ox(e,t){var n=C.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 $x=typeof window<"u"?u.useLayoutEffect:u.useEffect,fc=new WeakMap;function Lx(e,t){var n=Ox(null,function(r){return e.forEach(function(o){return ka(o,r)})});return $x(function(){var r=fc.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(l){a.has(l)||ka(l,null)}),a.forEach(function(l){o.has(l)||ka(l,s)})}fc.set(n,e)},[e]),n}function Fx(e){return e}function Bx(e,t){t===void 0&&(t=Fx);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(l){return l!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(l){return a(l)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var l=n;n=[],l.forEach(a),s=n}var c=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),n}}}};return o}function zx(e){e===void 0&&(e={});var t=Bx(null);return t.options=at({async:!0,ssr:!1},e),t}var mc=function(e){var t=e.sideCar,n=dc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,at({},n))};mc.isSideCarExport=!0;function Vx(e,t){return e.useMedium(t),mc}var pc=zx(),Pa=function(){},Fr=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:Pa,onWheelCapture:Pa,onTouchMoveCapture:Pa}),o=r[0],a=r[1],s=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,m=e.shards,h=e.sideCar,p=e.noRelative,v=e.noIsolation,g=e.inert,b=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,x=e.gapMode,S=dc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=h,M=Lx([n,t]),E=at(at({},S),o);return u.createElement(u.Fragment,null,f&&u.createElement(k,{sideCar:pc,removeScrollBar:d,shards:m,noRelative:p,noIsolation:v,inert:g,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:x}),s?u.cloneElement(u.Children.only(l),at(at({},E),{ref:M})):u.createElement(w,at({},E,{className:c,ref:M}),l))});Fr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Fr.classNames={fullWidth:Lr,zeroRight:$r};var Wx=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Hx(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wx();return t&&e.setAttribute("nonce",t),e}function Gx(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ux(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Yx=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Hx())&&(Gx(t,n),Ux(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Kx=function(){var e=Yx();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},hc=function(){var e=Kx(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},qx={left:0,top:0,right:0,gap:0},Ta=function(e){return parseInt(e||"",10)||0},Xx=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[Ta(n),Ta(r),Ta(o)]},Qx=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return qx;var t=Xx(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])}},Zx=hc(),fn="data-scroll-locked",Jx=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
228
|
+
.`.concat(Rx,` {
|
|
219
229
|
overflow: hidden `).concat(r,`;
|
|
220
230
|
padding-right: `).concat(l,"px ").concat(r,`;
|
|
221
231
|
}
|
|
@@ -249,23 +259,23 @@ React keys must be passed directly to JSX without using spread:
|
|
|
249
259
|
}
|
|
250
260
|
|
|
251
261
|
body[`).concat(fn,`] {
|
|
252
|
-
`).concat(
|
|
262
|
+
`).concat(Dx,": ").concat(l,`px;
|
|
253
263
|
}
|
|
254
|
-
`)},gc=function(){var e=parseInt(document.body.getAttribute(fn)||"0",10);return isFinite(e)?e:0},
|
|
264
|
+
`)},gc=function(){var e=parseInt(document.body.getAttribute(fn)||"0",10);return isFinite(e)?e:0},e0=function(){u.useEffect(function(){return document.body.setAttribute(fn,(gc()+1).toString()),function(){var e=gc()-1;e<=0?document.body.removeAttribute(fn):document.body.setAttribute(fn,e.toString())}},[])},t0=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;e0();var a=u.useMemo(function(){return Qx(o)},[o]);return u.createElement(Zx,{styles:Jx(a,!t,o,n?"":"!important")})},Ma=!1;if(typeof window<"u")try{var Br=Object.defineProperty({},"passive",{get:function(){return Ma=!0,!0}});window.addEventListener("test",Br,Br),window.removeEventListener("test",Br,Br)}catch{Ma=!1}var mn=Ma?{passive:!1}:!1,n0=function(e){return e.tagName==="TEXTAREA"},vc=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!n0(e)&&n[t]==="visible")},r0=function(e){return vc(e,"overflowY")},o0=function(e){return vc(e,"overflowX")},bc=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=wc(e,r);if(o){var a=yc(e,r),s=a[1],l=a[2];if(s>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},a0=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},s0=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},wc=function(e,t){return e==="v"?r0(t):o0(t)},yc=function(e,t){return e==="v"?a0(t):s0(t)},i0=function(e,t){return e==="h"&&t==="rtl"?-1:1},l0=function(e,t,n,r,o){var a=i0(e,window.getComputedStyle(t).direction),s=a*r,l=n.target,c=t.contains(l),d=!1,f=s>0,m=0,h=0;do{if(!l)break;var p=yc(e,l),v=p[0],g=p[1],b=p[2],y=g-b-a*v;(v||y)&&wc(e,l)&&(m+=y,h+=v);var w=l.parentNode;l=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(f&&Math.abs(m)<1||!f&&Math.abs(h)<1)&&(d=!0),d},zr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xc=function(e){return[e.deltaX,e.deltaY]},Cc=function(e){return e&&"current"in e?e.current:e},c0=function(e,t){return e[0]===t[0]&&e[1]===t[1]},u0=function(e){return`
|
|
255
265
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
256
266
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
257
|
-
`)},i0=0,pn=[];function l0(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(i0++)[0],a=u.useState(hc)[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Mx([e.lockRef.current],(e.shards||[]).map(Cc),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=u.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var y=zr(g),w=n.current,x="deltaX"in g?g.deltaX:w[0]-y[0],S="deltaY"in g?g.deltaY:w[1]-y[1],k,j=g.target,E=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in g&&E==="h"&&j.type==="range")return!1;var P=bc(E,j);if(!P)return!0;if(P?k=E:(k=E==="v"?"h":"v",P=bc(E,j)),!P)return!1;if(!r.current&&"changedTouches"in g&&(x||S)&&(r.current=k),!k)return!0;var _=r.current||k;return o0(_,b,g,_==="h"?x:S)},[]),c=u.useCallback(function(g){var b=g;if(!(!pn.length||pn[pn.length-1]!==a)){var y="deltaY"in b?xc(b):zr(b),w=t.current.filter(function(k){return k.name===b.type&&(k.target===b.target||b.target===k.shadowParent)&&a0(k.delta,y)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var x=(s.current.shards||[]).map(Cc).filter(Boolean).filter(function(k){return k.contains(b.target)}),S=x.length>0?l(b,x[0]):!s.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),d=u.useCallback(function(g,b,y,w){var x={name:g,delta:b,target:y,should:w,shadowParent:c0(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),f=u.useCallback(function(g){n.current=zr(g),r.current=void 0},[]),m=u.useCallback(function(g){d(g.type,xc(g),g.target,l(g,e.lockRef.current))},[]),h=u.useCallback(function(g){d(g.type,zr(g),g.target,l(g,e.lockRef.current))},[]);u.useEffect(function(){return pn.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:h}),document.addEventListener("wheel",c,mn),document.addEventListener("touchmove",c,mn),document.addEventListener("touchstart",f,mn),function(){pn=pn.filter(function(g){return g!==a}),document.removeEventListener("wheel",c,mn),document.removeEventListener("touchmove",c,mn),document.removeEventListener("touchstart",f,mn)}},[]);var p=e.removeScrollBar,v=e.inert;return u.createElement(u.Fragment,null,v?u.createElement(a,{styles:s0(o)}):null,p?u.createElement(Qx,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function c0(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const u0=Lx(pc,l0);var Bn=u.forwardRef(function(e,t){return u.createElement(Fr,at({},e,{ref:t,sideCar:u0}))});Bn.classNames=Fr.classNames;var ja=["Enter"," "],d0=["ArrowDown","PageUp","Home"],Nc=["ArrowUp","PageDown","End"],f0=[...d0,...Nc],m0={ltr:[...ja,"ArrowRight"],rtl:[...ja,"ArrowLeft"]},p0={ltr:["ArrowLeft"],rtl:["ArrowRight"]},zn="Menu",[Vn,h0,g0]=an(zn),[Vt,Sc]=be(zn,[g0,Ct,Nt]),Wn=Ct(),Ec=Nt(),[kc,St]=Vt(zn),[v0,Hn]=Vt(zn),Pc=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,l=Wn(t),[c,d]=u.useState(null),f=u.useRef(!1),m=Se(a),h=bt(o);return u.useEffect(()=>{const p=()=>{f.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>f.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),i.jsx(On,{...l,children:i.jsx(kc,{scope:t,open:n,onOpenChange:m,content:c,onContentChange:d,children:i.jsx(v0,{scope:t,onClose:u.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:f,dir:h,modal:s,children:r})})})};Pc.displayName=zn;var b0="MenuAnchor",_a=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Wn(n);return i.jsx($n,{...o,...r,ref:t})});_a.displayName=b0;var Aa="MenuPortal",[w0,Tc]=Vt(Aa,{forceMount:void 0}),Mc=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=St(Aa,t);return i.jsx(w0,{scope:t,forceMount:n,children:i.jsx(xe,{present:n||a.open,children:i.jsx(Ln,{asChild:!0,container:o,children:r})})})};Mc.displayName=Aa;var Le="MenuContent",[y0,Ia]=Vt(Le),jc=u.forwardRef((e,t)=>{const n=Tc(Le,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=St(Le,e.__scopeMenu),s=Hn(Le,e.__scopeMenu);return i.jsx(Vn.Provider,{scope:e.__scopeMenu,children:i.jsx(xe,{present:r||a.open,children:i.jsx(Vn.Slot,{scope:e.__scopeMenu,children:s.modal?i.jsx(x0,{...o,ref:t}):i.jsx(C0,{...o,ref:t})})})})}),x0=u.forwardRef((e,t)=>{const n=St(Le,e.__scopeMenu),r=u.useRef(null),o=re(t,r);return u.useEffect(()=>{const a=r.current;if(a)return Or(a)},[]),i.jsx(Ra,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:B(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),C0=u.forwardRef((e,t)=>{const n=St(Le,e.__scopeMenu);return i.jsx(Ra,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),N0=vt("MenuContent.ScrollLock"),Ra=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:h,onDismiss:p,disableOutsideScroll:v,...g}=e,b=St(Le,n),y=Hn(Le,n),w=Wn(n),x=Ec(n),S=h0(n),[k,j]=u.useState(null),E=u.useRef(null),P=re(t,E,b.onContentChange),_=u.useRef(0),$=u.useRef(""),H=u.useRef(0),q=u.useRef(null),W=u.useRef("right"),U=u.useRef(0),te=v?Bn:u.Fragment,V=v?{as:N0,allowPinchZoom:!0}:void 0,X=O=>{var A,K;const M=$.current+O,Y=S().filter(Q=>!Q.disabled),T=document.activeElement,D=(A=Y.find(Q=>Q.ref.current===T))==null?void 0:A.textValue,L=Y.map(Q=>Q.textValue),F=D0(L,M,D),ee=(K=Y.find(Q=>Q.textValue===F))==null?void 0:K.ref.current;(function Q(ne){$.current=ne,window.clearTimeout(_.current),ne!==""&&(_.current=window.setTimeout(()=>Q(""),1e3))})(M),ee&&setTimeout(()=>ee.focus())};u.useEffect(()=>()=>window.clearTimeout(_.current),[]),br();const R=u.useCallback(O=>{var Y,T;return W.current===((Y=q.current)==null?void 0:Y.side)&&$0(O,(T=q.current)==null?void 0:T.area)},[]);return i.jsx(y0,{scope:n,searchRef:$,onItemEnter:u.useCallback(O=>{R(O)&&O.preventDefault()},[R]),onItemLeave:u.useCallback(O=>{var M;R(O)||((M=E.current)==null||M.focus(),j(null))},[R]),onTriggerLeave:u.useCallback(O=>{R(O)&&O.preventDefault()},[R]),pointerGraceTimerRef:H,onPointerGraceIntentChange:u.useCallback(O=>{q.current=O},[]),children:i.jsx(te,{...V,children:i.jsx(An,{asChild:!0,trapped:o,onMountAutoFocus:B(a,O=>{var M;O.preventDefault(),(M=E.current)==null||M.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:i.jsx(Bt,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:h,onDismiss:p,children:i.jsx(Ar,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:j,onEntryFocus:B(c,O=>{y.isUsingKeyboardRef.current||O.preventDefault()}),preventScrollOnEntryFocus:!0,children:i.jsx(Mr,{role:"menu","aria-orientation":"vertical","data-state":Kc(b.open),"data-radix-menu-content":"",dir:y.dir,...w,...g,ref:P,style:{outline:"none",...g.style},onKeyDown:B(g.onKeyDown,O=>{const Y=O.target.closest("[data-radix-menu-content]")===O.currentTarget,T=O.ctrlKey||O.altKey||O.metaKey,D=O.key.length===1;Y&&(O.key==="Tab"&&O.preventDefault(),!T&&D&&X(O.key));const L=E.current;if(O.target!==L||!f0.includes(O.key))return;O.preventDefault();const ee=S().filter(A=>!A.disabled).map(A=>A.ref.current);Nc.includes(O.key)&&ee.reverse(),I0(ee)}),onBlur:B(e.onBlur,O=>{O.currentTarget.contains(O.target)||(window.clearTimeout(_.current),$.current="")}),onPointerMove:B(e.onPointerMove,Un(O=>{const M=O.target,Y=U.current!==O.clientX;if(O.currentTarget.contains(M)&&Y){const T=O.clientX>U.current?"right":"left";W.current=T,U.current=O.clientX}}))})})})})})})});jc.displayName=Le;var S0="MenuGroup",Da=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(z.div,{role:"group",...r,ref:t})});Da.displayName=S0;var E0="MenuLabel",_c=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(z.div,{...r,ref:t})});_c.displayName=E0;var Vr="MenuItem",Ac="menu.itemSelect",Wr=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=u.useRef(null),s=Hn(Vr,e.__scopeMenu),l=Ia(Vr,e.__scopeMenu),c=re(t,a),d=u.useRef(!1),f=()=>{const m=a.current;if(!n&&m){const h=new CustomEvent(Ac,{bubbles:!0,cancelable:!0});m.addEventListener(Ac,p=>r==null?void 0:r(p),{once:!0}),vr(m,h),h.defaultPrevented?d.current=!1:s.onClose()}};return i.jsx(Ic,{...o,ref:c,disabled:n,onClick:B(e.onClick,f),onPointerDown:m=>{var h;(h=e.onPointerDown)==null||h.call(e,m),d.current=!0},onPointerUp:B(e.onPointerUp,m=>{var h;d.current||(h=m.currentTarget)==null||h.click()}),onKeyDown:B(e.onKeyDown,m=>{const h=l.searchRef.current!=="";n||h&&m.key===" "||ja.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});Wr.displayName=Vr;var Ic=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=Ia(Vr,n),l=Ec(n),c=u.useRef(null),d=re(t,c),[f,m]=u.useState(!1),[h,p]=u.useState("");return u.useEffect(()=>{const v=c.current;v&&p((v.textContent??"").trim())},[a.children]),i.jsx(Vn.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:i.jsx(Ir,{asChild:!0,...l,focusable:!r,children:i.jsx(z.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:d,onPointerMove:B(e.onPointerMove,Un(v=>{r?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:B(e.onPointerLeave,Un(v=>s.onItemLeave(v))),onFocus:B(e.onFocus,()=>m(!0)),onBlur:B(e.onBlur,()=>m(!1))})})})}),k0="MenuCheckboxItem",Rc=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.jsx(Fc,{scope:e.__scopeMenu,checked:n,children:i.jsx(Wr,{role:"menuitemcheckbox","aria-checked":Hr(n)?"mixed":n,...o,ref:t,"data-state":La(n),onSelect:B(o.onSelect,()=>r==null?void 0:r(Hr(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Rc.displayName=k0;var Dc="MenuRadioGroup",[P0,T0]=Vt(Dc,{value:void 0,onValueChange:()=>{}}),Oc=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=Se(r);return i.jsx(P0,{scope:e.__scopeMenu,value:n,onValueChange:a,children:i.jsx(Da,{...o,ref:t})})});Oc.displayName=Dc;var $c="MenuRadioItem",Lc=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=T0($c,e.__scopeMenu),a=n===o.value;return i.jsx(Fc,{scope:e.__scopeMenu,checked:a,children:i.jsx(Wr,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":La(a),onSelect:B(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});Lc.displayName=$c;var Oa="MenuItemIndicator",[Fc,M0]=Vt(Oa,{checked:!1}),Bc=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=M0(Oa,n);return i.jsx(xe,{present:r||Hr(a.checked)||a.checked===!0,children:i.jsx(z.span,{...o,ref:t,"data-state":La(a.checked)})})});Bc.displayName=Oa;var j0="MenuSeparator",zc=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(z.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});zc.displayName=j0;var _0="MenuArrow",Vc=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Wn(n);return i.jsx(jr,{...o,...r,ref:t})});Vc.displayName=_0;var $a="MenuSub",[A0,Wc]=Vt($a),Hc=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=St($a,t),s=Wn(t),[l,c]=u.useState(null),[d,f]=u.useState(null),m=Se(o);return u.useEffect(()=>(a.open===!1&&m(!1),()=>m(!1)),[a.open,m]),i.jsx(On,{...s,children:i.jsx(kc,{scope:t,open:r,onOpenChange:m,content:d,onContentChange:f,children:i.jsx(A0,{scope:t,contentId:pe(),triggerId:pe(),trigger:l,onTriggerChange:c,children:n})})})};Hc.displayName=$a;var Gn="MenuSubTrigger",Gc=u.forwardRef((e,t)=>{const n=St(Gn,e.__scopeMenu),r=Hn(Gn,e.__scopeMenu),o=Wc(Gn,e.__scopeMenu),a=Ia(Gn,e.__scopeMenu),s=u.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=a,d={__scopeMenu:e.__scopeMenu},f=u.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return u.useEffect(()=>f,[f]),u.useEffect(()=>{const m=l.current;return()=>{window.clearTimeout(m),c(null)}},[l,c]),i.jsx(_a,{asChild:!0,...d,children:i.jsx(Ic,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Kc(n.open),...e,ref:et(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:B(e.onPointerMove,Un(m=>{a.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:B(e.onPointerLeave,Un(m=>{var p,v;f();const h=(p=n.content)==null?void 0:p.getBoundingClientRect();if(h){const g=(v=n.content)==null?void 0:v.dataset.side,b=g==="right",y=b?-5:5,w=h[b?"left":"right"],x=h[b?"right":"left"];a.onPointerGraceIntentChange({area:[{x:m.clientX+y,y:m.clientY},{x:w,y:h.top},{x,y:h.top},{x,y:h.bottom},{x:w,y:h.bottom}],side:g}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(m),m.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:B(e.onKeyDown,m=>{var p;const h=a.searchRef.current!=="";e.disabled||h&&m.key===" "||m0[r.dir].includes(m.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),m.preventDefault())})})})});Gc.displayName=Gn;var Uc="MenuSubContent",Yc=u.forwardRef((e,t)=>{const n=Tc(Le,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=St(Le,e.__scopeMenu),s=Hn(Le,e.__scopeMenu),l=Wc(Uc,e.__scopeMenu),c=u.useRef(null),d=re(t,c);return i.jsx(Vn.Provider,{scope:e.__scopeMenu,children:i.jsx(xe,{present:r||a.open,children:i.jsx(Vn.Slot,{scope:e.__scopeMenu,children:i.jsx(Ra,{id:l.contentId,"aria-labelledby":l.triggerId,...o,ref:d,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var m;s.isUsingKeyboardRef.current&&((m=c.current)==null||m.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:B(e.onFocusOutside,f=>{f.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:B(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:B(e.onKeyDown,f=>{var p;const m=f.currentTarget.contains(f.target),h=p0[s.dir].includes(f.key);m&&h&&(a.onOpenChange(!1),(p=l.trigger)==null||p.focus(),f.preventDefault())})})})})})});Yc.displayName=Uc;function Kc(e){return e?"open":"closed"}function Hr(e){return e==="indeterminate"}function La(e){return Hr(e)?"indeterminate":e?"checked":"unchecked"}function I0(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function R0(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function D0(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=R0(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==n));const c=s.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function O0(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 l=t[a],c=t[s],d=l.x,f=l.y,m=c.x,h=c.y;f>r!=h>r&&n<(m-d)*(r-f)/(h-f)+d&&(o=!o)}return o}function $0(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return O0(n,t)}function Un(e){return t=>t.pointerType==="mouse"?e(t):void 0}var L0=Pc,F0=_a,B0=Mc,z0=jc,V0=Da,W0=_c,H0=Wr,G0=Rc,U0=Oc,Y0=Lc,K0=Bc,q0=zc,X0=Vc,Q0=Hc,Z0=Gc,J0=Yc,Gr="DropdownMenu",[eC,mT]=be(Gr,[Sc]),ke=Sc(),[tC,qc]=eC(Gr),Xc=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,c=ke(t),d=u.useRef(null),[f,m]=ye({prop:o,defaultProp:a??!1,onChange:s,caller:Gr});return i.jsx(tC,{scope:t,triggerId:pe(),triggerRef:d,contentId:pe(),open:f,onOpenChange:m,onOpenToggle:u.useCallback(()=>m(h=>!h),[m]),modal:l,children:i.jsx(L0,{...c,open:f,onOpenChange:m,dir:r,modal:l,children:n})})};Xc.displayName=Gr;var Qc="DropdownMenuTrigger",Zc=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=qc(Qc,n),s=ke(n);return i.jsx(F0,{asChild:!0,...s,children:i.jsx(z.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:et(t,a.triggerRef),onPointerDown:B(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:B(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});Zc.displayName=Qc;var nC="DropdownMenuPortal",Jc=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ke(t);return i.jsx(B0,{...r,...n})};Jc.displayName=nC;var eu="DropdownMenuContent",tu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qc(eu,n),a=ke(n),s=u.useRef(!1);return i.jsx(z0,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:B(e.onCloseAutoFocus,l=>{var c;s.current||(c=o.triggerRef.current)==null||c.focus(),s.current=!1,l.preventDefault()}),onInteractOutside:B(e.onInteractOutside,l=>{const c=l.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,f=c.button===2||d;(!o.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tu.displayName=eu;var rC="DropdownMenuGroup",nu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(V0,{...o,...r,ref:t})});nu.displayName=rC;var oC="DropdownMenuLabel",ru=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(W0,{...o,...r,ref:t})});ru.displayName=oC;var aC="DropdownMenuItem",ou=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(H0,{...o,...r,ref:t})});ou.displayName=aC;var sC="DropdownMenuCheckboxItem",au=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(G0,{...o,...r,ref:t})});au.displayName=sC;var iC="DropdownMenuRadioGroup",su=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(U0,{...o,...r,ref:t})});su.displayName=iC;var lC="DropdownMenuRadioItem",iu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(Y0,{...o,...r,ref:t})});iu.displayName=lC;var cC="DropdownMenuItemIndicator",lu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(K0,{...o,...r,ref:t})});lu.displayName=cC;var uC="DropdownMenuSeparator",cu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(q0,{...o,...r,ref:t})});cu.displayName=uC;var dC="DropdownMenuArrow",fC=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(X0,{...o,...r,ref:t})});fC.displayName=dC;var mC=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=ke(t),[l,c]=ye({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return i.jsx(Q0,{...s,open:l,onOpenChange:c,children:n})},pC="DropdownMenuSubTrigger",uu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(Z0,{...o,...r,ref:t})});uu.displayName=pC;var hC="DropdownMenuSubContent",du=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(J0,{...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)"}})});du.displayName=hC;var gC=Xc,vC=Zc,fu=Jc,mu=tu,bC=nu,pu=ru,hu=ou,gu=au,wC=su,vu=iu,bu=lu,wu=cu,yC=mC,yu=uu,xu=du;const Cu=gC,Nu=vC,xC=bC,CC=fu,NC=yC,SC=wC,Su=u.forwardRef(({className:e,inset:t,children:n,...r},o)=>i.jsxs(yu,{ref:o,className:I("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,i.jsx(_n,{className:"ml-auto"})]}));Su.displayName=yu.displayName;const Eu=u.forwardRef(({className:e,...t},n)=>i.jsx(xu,{ref:n,className:I("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}));Eu.displayName=xu.displayName;const Fa=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>i.jsx(fu,{children:i.jsx(mu,{ref:r,sideOffset:t,className:I("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})}));Fa.displayName=mu.displayName;const ku=u.forwardRef(({className:e,inset:t,...n},r)=>i.jsx(hu,{ref:r,className:I("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}));ku.displayName=hu.displayName;const Ba=u.forwardRef(({className:e,children:t,checked:n,...r},o)=>i.jsxs(gu,{ref:o,className:I("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:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(bu,{children:i.jsx(jn,{className:"h-4 w-4"})})}),t]}));Ba.displayName=gu.displayName;const Pu=u.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(vu,{ref:r,className:I("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:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(bu,{children:i.jsx(ml,{className:"h-2 w-2 fill-current"})})}),t]}));Pu.displayName=vu.displayName;const za=u.forwardRef(({className:e,inset:t,...n},r)=>i.jsx(pu,{ref:r,className:I("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));za.displayName=pu.displayName;const Ur=u.forwardRef(({className:e,...t},n)=>i.jsx(wu,{ref:n,className:I("-mx-1 my-1 h-px bg-muted",e),...t}));Ur.displayName=wu.displayName;const Tu=({className:e,...t})=>i.jsx("span",{className:I("ml-auto text-xs tracking-widest opacity-60",e),...t});Tu.displayName="DropdownMenuShortcut";function EC({columns:e,onToggleVisibility:t,onReset:n}){return i.jsxs(Cu,{children:[i.jsx(Nu,{asChild:!0,children:i.jsxs(fe,{variant:"outline",className:"ml-auto",children:[i.jsx(yw,{className:"h-4 w-4 mr-2"}),"Columns"]})}),i.jsxs(Fa,{align:"end",className:"w-48",children:[i.jsx(za,{children:"Toggle columns"}),i.jsx(Ur,{}),e.map(r=>i.jsx(Ba,{checked:!r.hidden,onCheckedChange:o=>t(String(r.key),o),children:r.title},String(r.key))),i.jsx(Ur,{}),i.jsx(fe,{variant:"ghost",size:"sm",className:"w-full justify-start",onClick:n,children:"Reset columns"})]})]})}function Mu(e,[t,n]){return Math.min(n,Math.max(t,e))}function Yn(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ju=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),kC="VisuallyHidden",_u=u.forwardRef((e,t)=>i.jsx(z.span,{...e,ref:t,style:{...ju,...e.style}}));_u.displayName=kC;var Au=_u,PC=[" ","Enter","ArrowUp","ArrowDown"],TC=[" ","Enter"],Wt="Select",[Yr,Kr,MC]=an(Wt),[hn,pT]=be(Wt,[MC,Ct]),qr=Ct(),[jC,Et]=hn(Wt),[_C,AC]=hn(Wt),Iu=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:l,onValueChange:c,dir:d,name:f,autoComplete:m,disabled:h,required:p,form:v}=e,g=qr(t),[b,y]=u.useState(null),[w,x]=u.useState(null),[S,k]=u.useState(!1),j=bt(d),[E,P]=ye({prop:r,defaultProp:o??!1,onChange:a,caller:Wt}),[_,$]=ye({prop:s,defaultProp:l,onChange:c,caller:Wt}),H=u.useRef(null),q=b?v||!!b.closest("form"):!0,[W,U]=u.useState(new Set),te=Array.from(W).map(V=>V.props.value).join(";");return i.jsx(On,{...g,children:i.jsxs(jC,{required:p,scope:t,trigger:b,onTriggerChange:y,valueNode:w,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:k,contentId:pe(),value:_,onValueChange:$,open:E,onOpenChange:P,dir:j,triggerPointerDownPosRef:H,disabled:h,children:[i.jsx(Yr.Provider,{scope:t,children:i.jsx(_C,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(V=>{U(X=>new Set(X).add(V))},[]),onNativeOptionRemove:u.useCallback(V=>{U(X=>{const R=new Set(X);return R.delete(V),R})},[]),children:n})}),q?i.jsxs(rd,{"aria-hidden":!0,required:p,tabIndex:-1,name:f,autoComplete:m,value:_,onChange:V=>$(V.target.value),disabled:h,form:v,children:[_===void 0?i.jsx("option",{value:""}):null,Array.from(W)]},te):null]})})};Iu.displayName=Wt;var Ru="SelectTrigger",Du=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=qr(n),s=Et(Ru,n),l=s.disabled||r,c=re(t,s.onTriggerChange),d=Kr(n),f=u.useRef("touch"),[m,h,p]=ad(g=>{const b=d().filter(x=>!x.disabled),y=b.find(x=>x.value===s.value),w=sd(b,g,y);w!==void 0&&s.onValueChange(w.value)}),v=g=>{l||(s.onOpenChange(!0),p()),g&&(s.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return i.jsx($n,{asChild:!0,...a,children:i.jsx(z.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":od(s.value)?"":void 0,...o,ref:c,onClick:B(o.onClick,g=>{g.currentTarget.focus(),f.current!=="mouse"&&v(g)}),onPointerDown:B(o.onPointerDown,g=>{f.current=g.pointerType;const b=g.target;b.hasPointerCapture(g.pointerId)&&b.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(v(g),g.preventDefault())}),onKeyDown:B(o.onKeyDown,g=>{const b=m.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&h(g.key),!(b&&g.key===" ")&&PC.includes(g.key)&&(v(),g.preventDefault())})})})});Du.displayName=Ru;var Ou="SelectValue",$u=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...l}=e,c=Et(Ou,n),{onValueNodeHasChildrenChange:d}=c,f=a!==void 0,m=re(t,c.onValueNodeChange);return ge(()=>{d(f)},[d,f]),i.jsx(z.span,{...l,ref:m,style:{pointerEvents:"none"},children:od(c.value)?i.jsx(i.Fragment,{children:s}):a})});$u.displayName=Ou;var IC="SelectIcon",Lu=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.jsx(z.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Lu.displayName=IC;var Ht="SelectContent",Fu=u.forwardRef((e,t)=>{const n=Et(Ht,e.__scopeSelect),[r,o]=u.useState();if(ge(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?sr.createPortal(i.jsx(Bu,{scope:e.__scopeSelect,children:i.jsx(Yr.Slot,{scope:e.__scopeSelect,children:i.jsx("div",{children:e.children})})}),a):null}return i.jsx(zu,{...e,ref:t})});Fu.displayName=Ht;var Ge=10,[Bu,kt]=hn(Ht),RC="SelectContentImpl",DC=vt("SelectContent.RemoveScroll"),zu=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:l,sideOffset:c,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:h,collisionPadding:p,sticky:v,hideWhenDetached:g,avoidCollisions:b,...y}=e,w=Et(Ht,n),[x,S]=u.useState(null),[k,j]=u.useState(null),E=re(t,A=>S(A)),[P,_]=u.useState(null),[$,H]=u.useState(null),q=Kr(n),[W,U]=u.useState(!1),te=u.useRef(!1);u.useEffect(()=>{if(x)return Or(x)},[x]),br();const V=u.useCallback(A=>{const[K,...Q]=q().map(ie=>ie.ref.current),[ne]=Q.slice(-1),oe=document.activeElement;for(const ie of A)if(ie===oe||(ie==null||ie.scrollIntoView({block:"nearest"}),ie===K&&k&&(k.scrollTop=0),ie===ne&&k&&(k.scrollTop=k.scrollHeight),ie==null||ie.focus(),document.activeElement!==oe))return},[q,k]),X=u.useCallback(()=>V([P,x]),[V,P,x]);u.useEffect(()=>{W&&X()},[W,X]);const{onOpenChange:R,triggerPointerDownPosRef:O}=w;u.useEffect(()=>{if(x){let A={x:0,y:0};const K=ne=>{var oe,ie;A={x:Math.abs(Math.round(ne.pageX)-(((oe=O.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(ne.pageY)-(((ie=O.current)==null?void 0:ie.y)??0))}},Q=ne=>{A.x<=10&&A.y<=10?ne.preventDefault():x.contains(ne.target)||R(!1),document.removeEventListener("pointermove",K),O.current=null};return O.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",Q,{capture:!0})}}},[x,R,O]),u.useEffect(()=>{const A=()=>R(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[R]);const[M,Y]=ad(A=>{const K=q().filter(oe=>!oe.disabled),Q=K.find(oe=>oe.ref.current===document.activeElement),ne=sd(K,A,Q);ne&&setTimeout(()=>ne.ref.current.focus())}),T=u.useCallback((A,K,Q)=>{const ne=!te.current&&!Q;(w.value!==void 0&&w.value===K||ne)&&(_(A),ne&&(te.current=!0))},[w.value]),D=u.useCallback(()=>x==null?void 0:x.focus(),[x]),L=u.useCallback((A,K,Q)=>{const ne=!te.current&&!Q;(w.value!==void 0&&w.value===K||ne)&&H(A)},[w.value]),F=r==="popper"?Va:Vu,ee=F===Va?{side:l,sideOffset:c,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:h,collisionPadding:p,sticky:v,hideWhenDetached:g,avoidCollisions:b}:{};return i.jsx(Bu,{scope:n,content:x,viewport:k,onViewportChange:j,itemRefCallback:T,selectedItem:P,onItemLeave:D,itemTextRefCallback:L,focusSelectedItem:X,selectedItemText:$,position:r,isPositioned:W,searchRef:M,children:i.jsx(Bn,{as:DC,allowPinchZoom:!0,children:i.jsx(An,{asChild:!0,trapped:w.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:B(o,A=>{var K;(K=w.trigger)==null||K.focus({preventScroll:!0}),A.preventDefault()}),children:i.jsx(Bt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:i.jsx(F,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:A=>A.preventDefault(),...y,...ee,onPlaced:()=>U(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:B(y.onKeyDown,A=>{const K=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!K&&A.key.length===1&&Y(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let ne=q().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(A.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const oe=A.target,ie=ne.indexOf(oe);ne=ne.slice(ie+1)}setTimeout(()=>V(ne)),A.preventDefault()}})})})})})})});zu.displayName=RC;var OC="SelectItemAlignedPosition",Vu=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Et(Ht,n),s=kt(Ht,n),[l,c]=u.useState(null),[d,f]=u.useState(null),m=re(t,E=>f(E)),h=Kr(n),p=u.useRef(!1),v=u.useRef(!0),{viewport:g,selectedItem:b,selectedItemText:y,focusSelectedItem:w}=s,x=u.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&d&&g&&b&&y){const E=a.trigger.getBoundingClientRect(),P=d.getBoundingClientRect(),_=a.valueNode.getBoundingClientRect(),$=y.getBoundingClientRect();if(a.dir!=="rtl"){const oe=$.left-P.left,ie=_.left-oe,Ce=E.left-ie,we=E.width+Ce,Be=Math.max(we,P.width),$e=window.innerWidth-Ge,Ee=Mu(ie,[Ge,Math.max(Ge,$e-Be)]);l.style.minWidth=we+"px",l.style.left=Ee+"px"}else{const oe=P.right-$.right,ie=window.innerWidth-_.right-oe,Ce=window.innerWidth-E.right-ie,we=E.width+Ce,Be=Math.max(we,P.width),$e=window.innerWidth-Ge,Ee=Mu(ie,[Ge,Math.max(Ge,$e-Be)]);l.style.minWidth=we+"px",l.style.right=Ee+"px"}const H=h(),q=window.innerHeight-Ge*2,W=g.scrollHeight,U=window.getComputedStyle(d),te=parseInt(U.borderTopWidth,10),V=parseInt(U.paddingTop,10),X=parseInt(U.borderBottomWidth,10),R=parseInt(U.paddingBottom,10),O=te+V+W+R+X,M=Math.min(b.offsetHeight*5,O),Y=window.getComputedStyle(g),T=parseInt(Y.paddingTop,10),D=parseInt(Y.paddingBottom,10),L=E.top+E.height/2-Ge,F=q-L,ee=b.offsetHeight/2,A=b.offsetTop+ee,K=te+V+A,Q=O-K;if(K<=L){const oe=H.length>0&&b===H[H.length-1].ref.current;l.style.bottom="0px";const ie=d.clientHeight-g.offsetTop-g.offsetHeight,Ce=Math.max(F,ee+(oe?D:0)+ie+X),we=K+Ce;l.style.height=we+"px"}else{const oe=H.length>0&&b===H[0].ref.current;l.style.top="0px";const Ce=Math.max(L,te+g.offsetTop+(oe?T:0)+ee)+Q;l.style.height=Ce+"px",g.scrollTop=K-L+g.offsetTop}l.style.margin=`${Ge}px 0`,l.style.minHeight=M+"px",l.style.maxHeight=q+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[h,a.trigger,a.valueNode,l,d,g,b,y,a.dir,r]);ge(()=>x(),[x]);const[S,k]=u.useState();ge(()=>{d&&k(window.getComputedStyle(d).zIndex)},[d]);const j=u.useCallback(E=>{E&&v.current===!0&&(x(),w==null||w(),v.current=!1)},[x,w]);return i.jsx(LC,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:j,children:i.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:i.jsx(z.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Vu.displayName=OC;var $C="SelectPopperPosition",Va=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ge,...a}=e,s=qr(n);return i.jsx(Mr,{...s,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Va.displayName=$C;var[LC,Wa]=hn(Ht,{}),Ha="SelectViewport",Wu=u.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=kt(Ha,n),s=Wa(Ha,n),l=re(t,a.onViewportChange),c=u.useRef(0);return i.jsxs(i.Fragment,{children:[i.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}),i.jsx(Yr.Slot,{scope:n,children:i.jsx(z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:B(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:h}=s;if(h!=null&&h.current&&m){const p=Math.abs(c.current-f.scrollTop);if(p>0){const v=window.innerHeight-Ge*2,g=parseFloat(m.style.minHeight),b=parseFloat(m.style.height),y=Math.max(g,b);if(y<v){const w=y+p,x=Math.min(v,w),S=w-x;m.style.height=x+"px",m.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,m.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Wu.displayName=Ha;var Hu="SelectGroup",[FC,BC]=hn(Hu),Gu=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=pe();return i.jsx(FC,{scope:n,id:o,children:i.jsx(z.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Gu.displayName=Hu;var Uu="SelectLabel",Yu=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=BC(Uu,n);return i.jsx(z.div,{id:o.id,...r,ref:t})});Yu.displayName=Uu;var Xr="SelectItem",[zC,Ku]=hn(Xr),qu=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,l=Et(Xr,n),c=kt(Xr,n),d=l.value===r,[f,m]=u.useState(a??""),[h,p]=u.useState(!1),v=re(t,w=>{var x;return(x=c.itemRefCallback)==null?void 0:x.call(c,w,r,o)}),g=pe(),b=u.useRef("touch"),y=()=>{o||(l.onValueChange(r),l.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 i.jsx(zC,{scope:n,value:r,disabled:o,textId:g,isSelected:d,onItemTextChange:u.useCallback(w=>{m(x=>x||((w==null?void 0:w.textContent)??"").trim())},[]),children:i.jsx(Yr.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:i.jsx(z.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":d&&h,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:B(s.onFocus,()=>p(!0)),onBlur:B(s.onBlur,()=>p(!1)),onClick:B(s.onClick,()=>{b.current!=="mouse"&&y()}),onPointerUp:B(s.onPointerUp,()=>{b.current==="mouse"&&y()}),onPointerDown:B(s.onPointerDown,w=>{b.current=w.pointerType}),onPointerMove:B(s.onPointerMove,w=>{var x;b.current=w.pointerType,o?(x=c.onItemLeave)==null||x.call(c):b.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:B(s.onPointerLeave,w=>{var x;w.currentTarget===document.activeElement&&((x=c.onItemLeave)==null||x.call(c))}),onKeyDown:B(s.onKeyDown,w=>{var S;((S=c.searchRef)==null?void 0:S.current)!==""&&w.key===" "||(TC.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});qu.displayName=Xr;var Kn="SelectItemText",Xu=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=Et(Kn,n),l=kt(Kn,n),c=Ku(Kn,n),d=AC(Kn,n),[f,m]=u.useState(null),h=re(t,y=>m(y),c.onItemTextChange,y=>{var w;return(w=l.itemTextRefCallback)==null?void 0:w.call(l,y,c.value,c.disabled)}),p=f==null?void 0:f.textContent,v=u.useMemo(()=>i.jsx("option",{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=d;return ge(()=>(g(v),()=>b(v)),[g,b,v]),i.jsxs(i.Fragment,{children:[i.jsx(z.span,{id:c.textId,...a,ref:h}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?sr.createPortal(a.children,s.valueNode):null]})});Xu.displayName=Kn;var Qu="SelectItemIndicator",Zu=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Ku(Qu,n).isSelected?i.jsx(z.span,{"aria-hidden":!0,...r,ref:t}):null});Zu.displayName=Qu;var Ga="SelectScrollUpButton",Ju=u.forwardRef((e,t)=>{const n=kt(Ga,e.__scopeSelect),r=Wa(Ga,e.__scopeSelect),[o,a]=u.useState(!1),s=re(t,r.onScrollButtonChange);return ge(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollTop>0;a(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.jsx(td,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});Ju.displayName=Ga;var Ua="SelectScrollDownButton",ed=u.forwardRef((e,t)=>{const n=kt(Ua,e.__scopeSelect),r=Wa(Ua,e.__scopeSelect),[o,a]=u.useState(!1),s=re(t,r.onScrollButtonChange);return ge(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;a(f)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.jsx(td,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});ed.displayName=Ua;var td=u.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=kt("SelectScrollButton",n),s=u.useRef(null),l=Kr(n),c=u.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return u.useEffect(()=>()=>c(),[c]),ge(()=>{var f;const d=l().find(m=>m.ref.current===document.activeElement);(f=d==null?void 0:d.ref.current)==null||f.scrollIntoView({block:"nearest"})},[l]),i.jsx(z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:B(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:B(o.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:B(o.onPointerLeave,()=>{c()})})}),VC="SelectSeparator",nd=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.jsx(z.div,{"aria-hidden":!0,...r,ref:t})});nd.displayName=VC;var Ya="SelectArrow",WC=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=qr(n),a=Et(Ya,n),s=kt(Ya,n);return a.open&&s.position==="popper"?i.jsx(jr,{...o,...r,ref:t}):null});WC.displayName=Ya;var HC="SelectBubbleInput",rd=u.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=u.useRef(null),a=re(r,o),s=Yn(t);return u.useEffect(()=>{const l=o.current;if(!l)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&f){const m=new Event("change",{bubbles:!0});f.call(l,t),l.dispatchEvent(m)}},[s,t]),i.jsx(z.select,{...n,style:{...ju,...n.style},ref:a,defaultValue:t})});rd.displayName=HC;function od(e){return e===""||e===void 0}function ad(e){const t=Se(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(s=>{const l=n.current+s;t(l),function c(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),a=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function sd(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=GC(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==n));const c=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function GC(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var UC=Iu,id=Du,YC=$u,KC=Lu,ld=Fu,qC=Wu,XC=Gu,cd=Yu,ud=qu,QC=Xu,ZC=Zu,dd=Ju,fd=ed,md=nd;const Ka=UC,JC=XC,qa=YC,Qr=u.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(id,{ref:r,className:I("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,i.jsx(KC,{asChild:!0,children:i.jsx(rn,{className:"h-4 w-4 opacity-50"})})]}));Qr.displayName=id.displayName;const Xa=u.forwardRef(({className:e,...t},n)=>i.jsx(dd,{ref:n,className:I("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(sw,{className:"h-4 w-4"})}));Xa.displayName=dd.displayName;const Qa=u.forwardRef(({className:e,...t},n)=>i.jsx(fd,{ref:n,className:I("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(rn,{className:"h-4 w-4"})}));Qa.displayName=fd.displayName;const Zr=u.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>i.jsxs(ld,{ref:o,className:I("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:[i.jsx(Xa,{}),i.jsx(qC,{className:I("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),i.jsx(Qa,{})]}));Zr.displayName=ld.displayName;const pd=u.forwardRef(({className:e,...t},n)=>i.jsx(cd,{ref:n,className:I("px-2 py-1.5 text-sm font-semibold",e),...t}));pd.displayName=cd.displayName;const Pt=u.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(ud,{ref:r,className:I("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:[i.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(ZC,{children:i.jsx(jn,{className:"h-4 w-4"})})}),i.jsx(QC,{children:t})]}));Pt.displayName=ud.displayName;const hd=u.forwardRef(({className:e,...t},n)=>i.jsx(md,{ref:n,className:I("-mx-1 my-1 h-px bg-muted",e),...t}));hd.displayName=md.displayName;function e1({filter:e,value:t,onChange:n}){return i.jsxs(Ka,{value:t||"all",onValueChange:n,children:[i.jsx(Qr,{className:"w-40",children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(fw,{className:"h-4 w-4"}),i.jsx(qa,{placeholder:e.label})]})}),i.jsxs(Zr,{children:[i.jsxs(Pt,{value:"all",children:["All ",e.label]}),e.options.map(r=>i.jsx(Pt,{value:r.value,children:r.label},r.value))]})]})}const t1=Ft("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"}}),qn=u.forwardRef(({className:e,sizing:t,type:n,...r},o)=>i.jsx("input",{type:n,className:I(t1({sizing:t,className:e})),ref:o,...r}));qn.displayName="Input";function n1({value:e,onChange:t,placeholder:n="Search..."}){return i.jsxs("div",{className:"relative flex-1 max-w-sm",children:[i.jsx(oa,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground h-4 w-4"}),i.jsx(qn,{placeholder:n,value:e,onChange:r=>t(r.target.value),className:"pl-10"})]})}function r1({selectedCount:e,onClearSelection:t}){return e===0?null:i.jsxs("div",{className:"bg-muted/50 p-2 rounded-md flex items-center justify-between",children:[i.jsxs("div",{className:"text-sm",children:[i.jsx("span",{className:"font-medium",children:e})," ",e===1?"row":"rows"," selected"]}),i.jsx(fe,{variant:"ghost",size:"sm",onClick:t,children:"Clear selection"})]})}var Jr="Checkbox",[o1,hT]=be(Jr),[a1,Za]=o1(Jr);function s1(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:s,name:l,onCheckedChange:c,required:d,value:f="on",internal_do_not_use_render:m}=e,[h,p]=ye({prop:n,defaultProp:o??!1,onChange:c,caller:Jr}),[v,g]=u.useState(null),[b,y]=u.useState(null),w=u.useRef(!1),x=v?!!s||!!v.closest("form"):!0,S={checked:h,disabled:a,setChecked:p,control:v,setControl:g,name:l,form:s,value:f,hasConsumerStoppedPropagationRef:w,required:d,defaultChecked:Tt(o)?!1:o,isFormControl:x,bubbleInput:b,setBubbleInput:y};return i.jsx(a1,{scope:t,...S,children:i1(m)?m(S):r})}var gd="CheckboxTrigger",vd=u.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:s,disabled:l,checked:c,required:d,setControl:f,setChecked:m,hasConsumerStoppedPropagationRef:h,isFormControl:p,bubbleInput:v}=Za(gd,e),g=re(o,f),b=u.useRef(c);return u.useEffect(()=>{const y=a==null?void 0:a.form;if(y){const w=()=>m(b.current);return y.addEventListener("reset",w),()=>y.removeEventListener("reset",w)}},[a,m]),i.jsx(z.button,{type:"button",role:"checkbox","aria-checked":Tt(c)?"mixed":c,"aria-required":d,"data-state":Cd(c),"data-disabled":l?"":void 0,disabled:l,value:s,...r,ref:g,onKeyDown:B(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:B(n,y=>{m(w=>Tt(w)?!0:!w),v&&p&&(h.current=y.isPropagationStopped(),h.current||y.stopPropagation())})})});vd.displayName=gd;var Ja=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:s,disabled:l,value:c,onCheckedChange:d,form:f,...m}=e;return i.jsx(s1,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:l,required:s,onCheckedChange:d,name:r,form:f,value:c,internal_do_not_use_render:({isFormControl:h})=>i.jsxs(i.Fragment,{children:[i.jsx(vd,{...m,ref:t,__scopeCheckbox:n}),h&&i.jsx(xd,{__scopeCheckbox:n})]})})});Ja.displayName=Jr;var bd="CheckboxIndicator",wd=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Za(bd,n);return i.jsx(xe,{present:r||Tt(a.checked)||a.checked===!0,children:i.jsx(z.span,{"data-state":Cd(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});wd.displayName=bd;var yd="CheckboxBubbleInput",xd=u.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:s,required:l,disabled:c,name:d,value:f,form:m,bubbleInput:h,setBubbleInput:p}=Za(yd,e),v=re(n,p),g=Yn(a),b=Tr(r);u.useEffect(()=>{const w=h;if(!w)return;const x=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(x,"checked").set,j=!o.current;if(g!==a&&k){const E=new Event("click",{bubbles:j});w.indeterminate=Tt(a),k.call(w,Tt(a)?!1:a),w.dispatchEvent(E)}},[h,g,a,o]);const y=u.useRef(Tt(a)?!1:a);return i.jsx(z.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??y.current,required:l,disabled:c,name:d,value:f,form:m,...t,tabIndex:-1,ref:v,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});xd.displayName=yd;function i1(e){return typeof e=="function"}function Tt(e){return e==="indeterminate"}function Cd(e){return Tt(e)?"indeterminate":e?"checked":"unchecked"}const eo=u.forwardRef(({className:e,...t},n)=>i.jsx(Ja,{ref:n,className:I("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:i.jsx(wd,{className:I("flex items-center justify-center text-current"),children:i.jsx(jn,{className:"h-4 w-4"})})}));eo.displayName=Ja.displayName;function l1({columns:e,sortState:t,allRowsSelected:n,hasData:r,onSort:o,onToggleAllRows:a,allowSelectAllRows:s}){const l=e.filter(c=>!c.hidden);return i.jsxs(tn,{children:[s&&i.jsx(Mn,{className:"w-12",children:i.jsx(eo,{checked:n&&r,onCheckedChange:a,"aria-label":"Select all rows"})}),l.map(c=>i.jsx(Mn,{className:I(c.sortable?"cursor-pointer select-none":"",c.headerClassName,c.align==="right"?"text-right":"",c.align==="center"?"text-center":""),onClick:c.sortable?()=>o(String(c.key)):void 0,style:{width:c.width?typeof c.width=="number"?`${c.width}px`:c.width:void 0},children:i.jsxs("div",{className:"flex items-center gap-1",children:[c.title,c.sortable&&i.jsx(i.Fragment,{children:t.field===c.key?t.direction==="asc"?i.jsx(ow,{className:"h-4 w-4"}):i.jsx(ew,{className:"h-4 w-4"}):i.jsx(rw,{className:"h-4 w-4 opacity-50"})})]})},String(c.key)))]})}function c1({row:e,index:t,columns:n,isSelected:r,rowId:o,onToggleSelection:a,allowSelection:s=!0}){const l=n.filter(c=>!c.hidden);return i.jsxs(tn,{className:r?"bg-muted/50":"",children:[s&&i.jsx(nn,{className:"w-12",children:i.jsx(eo,{checked:r,onCheckedChange:c=>a(o,!!c),"aria-label":`Select row ${t+1}`})}),l.map(c=>{const d=e[c.key];return i.jsx(nn,{className:I(c.align==="right"?"text-right":"",c.align==="center"?"text-center":"",c.cellClassName),children:c.customRenderer?c.customRenderer(d,e):String(d??"")},String(c.key))})]})}const Oe=({className:e,repeat:t=1,...n})=>i.jsx(i.Fragment,{children:Array.from({length:t??1}).map((r,o)=>i.jsx("div",{className:I("animate-shimmer bg-gradient-to-r from-gray-300 via-gray-100 to-gray-300","bg-[length:200%_100%] rounded-md h-5",e),...n},o))});function u1({columns:e,rows:t=5}){return i.jsx("div",{className:"rounded-md border",children:i.jsxs(mr,{children:[i.jsx(pr,{children:i.jsx(tn,{children:Array.from({length:e}).map((n,r)=>i.jsx(Mn,{children:i.jsx(Oe,{className:"h-4 w-20"})},r))})}),i.jsx(hr,{children:Array.from({length:t}).map((n,r)=>i.jsx(tn,{children:Array.from({length:e}).map((o,a)=>i.jsx(nn,{children:i.jsx(Oe,{className:"h-4 w-full"})},a))},r))})]})})}function d1(e,t,n){const r=t.filter(f=>!f.hidden),o=r.map(f=>f.title),a=e.map(f=>r.map(m=>{const h=f[m.key];return h!=null?String(h):""})),s=[o.join(","),...a.map(f=>f.join(","))].join(`
|
|
258
|
-
`),l=new Blob([s],{type:"text/csv;charset=utf-8;"}),c=URL.createObjectURL(l),d=document.createElement("a");d.setAttribute("href",c),d.setAttribute("download",`${n}.csv`),d.style.visibility="hidden",document.body.appendChild(d),d.click(),document.body.removeChild(d)}var to="Collapsible",[f1,Nd]=be(to),[m1,es]=f1(to),Sd=u.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:s,...l}=e,[c,d]=ye({prop:r,defaultProp:o??!1,onChange:s,caller:to});return i.jsx(m1,{scope:n,disabled:a,contentId:pe(),open:c,onOpenToggle:u.useCallback(()=>d(f=>!f),[d]),children:i.jsx(z.div,{"data-state":ns(c),"data-disabled":a?"":void 0,...l,ref:t})})});Sd.displayName=to;var Ed="CollapsibleTrigger",kd=u.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=es(Ed,n);return i.jsx(z.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ns(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:B(e.onClick,o.onOpenToggle)})});kd.displayName=Ed;var ts="CollapsibleContent",Pd=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=es(ts,e.__scopeCollapsible);return i.jsx(xe,{present:n||o.open,children:({present:a})=>i.jsx(p1,{...r,ref:t,present:a})})});Pd.displayName=ts;var p1=u.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,s=es(ts,n),[l,c]=u.useState(r),d=u.useRef(null),f=re(t,d),m=u.useRef(0),h=m.current,p=u.useRef(0),v=p.current,g=s.open||l,b=u.useRef(g),y=u.useRef(void 0);return u.useEffect(()=>{const w=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(w)},[]),ge(()=>{const w=d.current;if(w){y.current=y.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const x=w.getBoundingClientRect();m.current=x.height,p.current=x.width,b.current||(w.style.transitionDuration=y.current.transitionDuration,w.style.animationName=y.current.animationName),c(r)}},[s.open,r]),i.jsx(z.div,{"data-state":ns(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...a,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:g&&o})});function ns(e){return e?"open":"closed"}var h1=Sd,g1=kd,v1=Pd,Ue="Accordion",b1=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[rs,w1,y1]=an(Ue),[no,gT]=be(Ue,[y1,Nd]),os=Nd(),Td=C.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return i.jsx(rs.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?i.jsx(S1,{...a,ref:t}):i.jsx(N1,{...o,ref:t})})});Td.displayName=Ue;var[Md,x1]=no(Ue),[jd,C1]=no(Ue,{collapsible:!1}),N1=C.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[l,c]=ye({prop:n,defaultProp:r??"",onChange:o,caller:Ue});return i.jsx(Md,{scope:e.__scopeAccordion,value:C.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:C.useCallback(()=>a&&c(""),[a,c]),children:i.jsx(jd,{scope:e.__scopeAccordion,collapsible:a,children:i.jsx(_d,{...s,ref:t})})})}),S1=C.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,l]=ye({prop:n,defaultProp:r??[],onChange:o,caller:Ue}),c=C.useCallback(f=>l((m=[])=>[...m,f]),[l]),d=C.useCallback(f=>l((m=[])=>m.filter(h=>h!==f)),[l]);return i.jsx(Md,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:d,children:i.jsx(jd,{scope:e.__scopeAccordion,collapsible:!0,children:i.jsx(_d,{...a,ref:t})})})}),[E1,ro]=no(Ue),_d=C.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...s}=e,l=C.useRef(null),c=re(l,t),d=w1(n),m=bt(o)==="ltr",h=B(e.onKeyDown,p=>{var P;if(!b1.includes(p.key))return;const v=p.target,g=d().filter(_=>{var $;return!(($=_.ref.current)!=null&&$.disabled)}),b=g.findIndex(_=>_.ref.current===v),y=g.length;if(b===-1)return;p.preventDefault();let w=b;const x=0,S=y-1,k=()=>{w=b+1,w>S&&(w=x)},j=()=>{w=b-1,w<x&&(w=S)};switch(p.key){case"Home":w=x;break;case"End":w=S;break;case"ArrowRight":a==="horizontal"&&(m?k():j());break;case"ArrowDown":a==="vertical"&&k();break;case"ArrowLeft":a==="horizontal"&&(m?j():k());break;case"ArrowUp":a==="vertical"&&j();break}const E=w%y;(P=g[E].ref.current)==null||P.focus()});return i.jsx(E1,{scope:n,disabled:r,direction:o,orientation:a,children:i.jsx(rs.Slot,{scope:n,children:i.jsx(z.div,{...s,"data-orientation":a,ref:c,onKeyDown:r?void 0:h})})})}),oo="AccordionItem",[k1,as]=no(oo),Ad=C.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=ro(oo,n),s=x1(oo,n),l=os(n),c=pe(),d=r&&s.value.includes(r)||!1,f=a.disabled||e.disabled;return i.jsx(k1,{scope:n,open:d,disabled:f,triggerId:c,children:i.jsx(h1,{"data-orientation":a.orientation,"data-state":Ld(d),...l,...o,ref:t,disabled:f,open:d,onOpenChange:m=>{m?s.onItemOpen(r):s.onItemClose(r)}})})});Ad.displayName=oo;var Id="AccordionHeader",Rd=C.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ro(Ue,n),a=as(Id,n);return i.jsx(z.h3,{"data-orientation":o.orientation,"data-state":Ld(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});Rd.displayName=Id;var ss="AccordionTrigger",Dd=C.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ro(Ue,n),a=as(ss,n),s=C1(ss,n),l=os(n);return i.jsx(rs.ItemSlot,{scope:n,children:i.jsx(g1,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...r,ref:t})})});Dd.displayName=ss;var Od="AccordionContent",$d=C.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ro(Ue,n),a=as(Od,n),s=os(n);return i.jsx(v1,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});$d.displayName=Od;function Ld(e){return e?"open":"closed"}var P1=Td,T1=Ad,M1=Rd,Fd=Dd,Bd=$d;const j1=P1,zd=u.forwardRef(({className:e,...t},n)=>i.jsx(T1,{ref:n,className:I("border-b",e),...t}));zd.displayName="AccordionItem";const Vd=u.forwardRef(({className:e,children:t,...n},r)=>i.jsx(M1,{className:"flex",children:i.jsxs(Fd,{ref:r,className:I("text-base flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,i.jsx(rn,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Vd.displayName=Fd.displayName;const Wd=u.forwardRef(({className:e,children:t,...n},r)=>i.jsx(Bd,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:i.jsx("div",{className:I("pb-4 pt-0",e),children:t})}));Wd.displayName=Bd.displayName;const _1=(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},ao=u.forwardRef(({className:e,leftIcon:t,rightIcon:n,mask:r,onChange:o,...a},s)=>{const l=c=>{const d=c.target;if(r){const f=_1(d.value,r);d.value=f}o==null||o(c)};return i.jsxs("div",{className:"relative w-full",children:[t&&i.jsx("div",{className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:t}),i.jsx(qn,{className:I(t&&"pl-8",n&&"pr-8",e),ref:s,onInput:l,...a}),n&&i.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:n})]})});ao.displayName="AdaptiveInput";const A1={info:{container:"bg-blue-50 border-blue-200 text-blue-800",icon:pl,iconColor:"text-blue-600"},warning:{container:"bg-yellow-50 border-yellow-200 text-yellow-800",icon:xw,iconColor:"text-yellow-600"},error:{container:"bg-red-50 border-red-200 text-red-800",icon:ul,iconColor:"text-red-600"},success:{container:"bg-green-50 border-green-200 text-green-800",icon:dl,iconColor:"text-green-600"}};function I1({variant:e="info",title:t,children:n,showCloseButton:r=!1,onClose:o,actionButton:a,className:s}){const[l,c]=C.useState(!1),[d,f]=C.useState(!1),m=A1[e],h=m.icon;C.useEffect(()=>{const v=setTimeout(()=>c(!0),10);return()=>clearTimeout(v)},[]);const p=()=>{o&&(f(!0),setTimeout(()=>{o()},300))};return i.jsx("div",{className:I("relative rounded-lg border p-4 transition-all duration-300 ease-in-out transform",m.container,l&&!d?"opacity-100 translate-y-0 scale-100":"opacity-0 -translate-y-2 scale-95",s),role:"alert",children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx(h,{className:I("h-5 w-5 flex-shrink-0 mt-0.5",m.iconColor),"aria-hidden":"true"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[t&&i.jsx("h3",{className:"text-sm font-medium mb-1",children:t}),i.jsx("div",{className:"text-sm",children:n}),a&&i.jsx("div",{className:"mt-3",children:i.jsx(fe,{size:"sm",variant:a.variant||"default",onClick:a.onClick,className:"h-8",children:a.label})})]}),r&&o&&i.jsx("button",{type:"button",className:I("flex-shrink-0 rounded-md p-1.5 inline-flex focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors duration-200",e==="info"&&"text-blue-500 hover:bg-blue-100 focus:ring-blue-600",e==="warning"&&"text-yellow-500 hover:bg-yellow-100 focus:ring-yellow-600",e==="error"&&"text-red-500 hover:bg-red-100 focus:ring-red-600",e==="success"&&"text-green-500 hover:bg-green-100 focus:ring-green-600"),onClick:p,"aria-label":"Close alert",children:i.jsx(ct,{className:"h-4 w-4"})})]})})}var so="Dialog",[Hd,Gd]=be(so),[R1,Ye]=Hd(so),Ud=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=u.useRef(null),c=u.useRef(null),[d,f]=ye({prop:r,defaultProp:o??!1,onChange:a,caller:so});return i.jsx(R1,{scope:t,triggerRef:l,contentRef:c,contentId:pe(),titleId:pe(),descriptionId:pe(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(m=>!m),[f]),modal:s,children:n})};Ud.displayName=so;var Yd="DialogTrigger",Kd=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ye(Yd,n),a=re(t,o.triggerRef);return i.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":cs(o.open),...r,ref:a,onClick:B(e.onClick,o.onOpenToggle)})});Kd.displayName=Yd;var is="DialogPortal",[D1,qd]=Hd(is,{forceMount:void 0}),Xd=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ye(is,t);return i.jsx(D1,{scope:t,forceMount:n,children:u.Children.map(r,s=>i.jsx(xe,{present:n||a.open,children:i.jsx(Ln,{asChild:!0,container:o,children:s})}))})};Xd.displayName=is;var io="DialogOverlay",Qd=u.forwardRef((e,t)=>{const n=qd(io,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ye(io,e.__scopeDialog);return a.modal?i.jsx(xe,{present:r||a.open,children:i.jsx($1,{...o,ref:t})}):null});Qd.displayName=io;var O1=vt("DialogOverlay.RemoveScroll"),$1=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ye(io,n);return i.jsx(Bn,{as:O1,allowPinchZoom:!0,shards:[o.contentRef],children:i.jsx(z.div,{"data-state":cs(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Gt="DialogContent",Zd=u.forwardRef((e,t)=>{const n=qd(Gt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ye(Gt,e.__scopeDialog);return i.jsx(xe,{present:r||a.open,children:a.modal?i.jsx(L1,{...o,ref:t}):i.jsx(F1,{...o,ref:t})})});Zd.displayName=Gt;var L1=u.forwardRef((e,t)=>{const n=Ye(Gt,e.__scopeDialog),r=u.useRef(null),o=re(t,n.contentRef,r);return u.useEffect(()=>{const a=r.current;if(a)return Or(a)},[]),i.jsx(Jd,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&a.preventDefault()}),onFocusOutside:B(e.onFocusOutside,a=>a.preventDefault())})}),F1=u.forwardRef((e,t)=>{const n=Ye(Gt,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return i.jsx(Jd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,l;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=n.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Jd=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,l=Ye(Gt,n),c=u.useRef(null),d=re(t,c);return br(),i.jsxs(i.Fragment,{children:[i.jsx(An,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:i.jsx(Bt,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":cs(l.open),...s,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(z1,{titleId:l.titleId}),i.jsx(W1,{contentRef:c,descriptionId:l.descriptionId})]})]})}),ls="DialogTitle",ef=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ye(ls,n);return i.jsx(z.h2,{id:o.titleId,...r,ref:t})});ef.displayName=ls;var tf="DialogDescription",nf=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ye(tf,n);return i.jsx(z.p,{id:o.descriptionId,...r,ref:t})});nf.displayName=tf;var rf="DialogClose",of=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ye(rf,n);return i.jsx(z.button,{type:"button",...r,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});of.displayName=rf;function cs(e){return e?"open":"closed"}var af="DialogTitleWarning",[B1,sf]=Sw(af,{contentName:Gt,titleName:ls,docsSlug:"dialog"}),z1=({titleId:e})=>{const t=sf(af),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
267
|
+
`)},d0=0,pn=[];function f0(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(d0++)[0],a=u.useState(hc)[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Ix([e.lockRef.current],(e.shards||[]).map(Cc),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=u.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var y=zr(g),w=n.current,x="deltaX"in g?g.deltaX:w[0]-y[0],S="deltaY"in g?g.deltaY:w[1]-y[1],k,M=g.target,E=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in g&&E==="h"&&M.type==="range")return!1;var P=bc(E,M);if(!P)return!0;if(P?k=E:(k=E==="v"?"h":"v",P=bc(E,M)),!P)return!1;if(!r.current&&"changedTouches"in g&&(x||S)&&(r.current=k),!k)return!0;var _=r.current||k;return l0(_,b,g,_==="h"?x:S)},[]),c=u.useCallback(function(g){var b=g;if(!(!pn.length||pn[pn.length-1]!==a)){var y="deltaY"in b?xc(b):zr(b),w=t.current.filter(function(k){return k.name===b.type&&(k.target===b.target||b.target===k.shadowParent)&&c0(k.delta,y)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var x=(s.current.shards||[]).map(Cc).filter(Boolean).filter(function(k){return k.contains(b.target)}),S=x.length>0?l(b,x[0]):!s.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),d=u.useCallback(function(g,b,y,w){var x={name:g,delta:b,target:y,should:w,shadowParent:m0(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),f=u.useCallback(function(g){n.current=zr(g),r.current=void 0},[]),m=u.useCallback(function(g){d(g.type,xc(g),g.target,l(g,e.lockRef.current))},[]),h=u.useCallback(function(g){d(g.type,zr(g),g.target,l(g,e.lockRef.current))},[]);u.useEffect(function(){return pn.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:h}),document.addEventListener("wheel",c,mn),document.addEventListener("touchmove",c,mn),document.addEventListener("touchstart",f,mn),function(){pn=pn.filter(function(g){return g!==a}),document.removeEventListener("wheel",c,mn),document.removeEventListener("touchmove",c,mn),document.removeEventListener("touchstart",f,mn)}},[]);var p=e.removeScrollBar,v=e.inert;return u.createElement(u.Fragment,null,v?u.createElement(a,{styles:u0(o)}):null,p?u.createElement(t0,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function m0(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const p0=Vx(pc,f0);var zn=u.forwardRef(function(e,t){return u.createElement(Fr,at({},e,{ref:t,sideCar:p0}))});zn.classNames=Fr.classNames;var ja=["Enter"," "],h0=["ArrowDown","PageUp","Home"],Nc=["ArrowUp","PageDown","End"],g0=[...h0,...Nc],v0={ltr:[...ja,"ArrowRight"],rtl:[...ja,"ArrowLeft"]},b0={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Vn="Menu",[Wn,w0,y0]=an(Vn),[Vt,Sc]=be(Vn,[y0,Ct,Nt]),Hn=Ct(),Ec=Nt(),[kc,St]=Vt(Vn),[x0,Gn]=Vt(Vn),Pc=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,l=Hn(t),[c,d]=u.useState(null),f=u.useRef(!1),m=Se(a),h=bt(o);return u.useEffect(()=>{const p=()=>{f.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>f.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),i.jsx($n,{...l,children:i.jsx(kc,{scope:t,open:n,onOpenChange:m,content:c,onContentChange:d,children:i.jsx(x0,{scope:t,onClose:u.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:f,dir:h,modal:s,children:r})})})};Pc.displayName=Vn;var C0="MenuAnchor",_a=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Hn(n);return i.jsx(Ln,{...o,...r,ref:t})});_a.displayName=C0;var Aa="MenuPortal",[N0,Tc]=Vt(Aa,{forceMount:void 0}),Mc=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=St(Aa,t);return i.jsx(N0,{scope:t,forceMount:n,children:i.jsx(xe,{present:n||a.open,children:i.jsx(Fn,{asChild:!0,container:o,children:r})})})};Mc.displayName=Aa;var Le="MenuContent",[S0,Ia]=Vt(Le),jc=u.forwardRef((e,t)=>{const n=Tc(Le,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=St(Le,e.__scopeMenu),s=Gn(Le,e.__scopeMenu);return i.jsx(Wn.Provider,{scope:e.__scopeMenu,children:i.jsx(xe,{present:r||a.open,children:i.jsx(Wn.Slot,{scope:e.__scopeMenu,children:s.modal?i.jsx(E0,{...o,ref:t}):i.jsx(k0,{...o,ref:t})})})})}),E0=u.forwardRef((e,t)=>{const n=St(Le,e.__scopeMenu),r=u.useRef(null),o=re(t,r);return u.useEffect(()=>{const a=r.current;if(a)return Or(a)},[]),i.jsx(Ra,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:B(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),k0=u.forwardRef((e,t)=>{const n=St(Le,e.__scopeMenu);return i.jsx(Ra,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),P0=vt("MenuContent.ScrollLock"),Ra=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:h,onDismiss:p,disableOutsideScroll:v,...g}=e,b=St(Le,n),y=Gn(Le,n),w=Hn(n),x=Ec(n),S=w0(n),[k,M]=u.useState(null),E=u.useRef(null),P=re(t,E,b.onContentChange),_=u.useRef(0),$=u.useRef(""),H=u.useRef(0),q=u.useRef(null),W=u.useRef("right"),U=u.useRef(0),te=v?zn:u.Fragment,V=v?{as:P0,allowPinchZoom:!0}:void 0,X=O=>{var I,K;const j=$.current+O,Y=S().filter(Q=>!Q.disabled),T=document.activeElement,D=(I=Y.find(Q=>Q.ref.current===T))==null?void 0:I.textValue,L=Y.map(Q=>Q.textValue),F=F0(L,j,D),ee=(K=Y.find(Q=>Q.textValue===F))==null?void 0:K.ref.current;(function Q(ne){$.current=ne,window.clearTimeout(_.current),ne!==""&&(_.current=window.setTimeout(()=>Q(""),1e3))})(j),ee&&setTimeout(()=>ee.focus())};u.useEffect(()=>()=>window.clearTimeout(_.current),[]),br();const R=u.useCallback(O=>{var Y,T;return W.current===((Y=q.current)==null?void 0:Y.side)&&z0(O,(T=q.current)==null?void 0:T.area)},[]);return i.jsx(S0,{scope:n,searchRef:$,onItemEnter:u.useCallback(O=>{R(O)&&O.preventDefault()},[R]),onItemLeave:u.useCallback(O=>{var j;R(O)||((j=E.current)==null||j.focus(),M(null))},[R]),onTriggerLeave:u.useCallback(O=>{R(O)&&O.preventDefault()},[R]),pointerGraceTimerRef:H,onPointerGraceIntentChange:u.useCallback(O=>{q.current=O},[]),children:i.jsx(te,{...V,children:i.jsx(In,{asChild:!0,trapped:o,onMountAutoFocus:B(a,O=>{var j;O.preventDefault(),(j=E.current)==null||j.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:i.jsx(Bt,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:h,onDismiss:p,children:i.jsx(Ar,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:M,onEntryFocus:B(c,O=>{y.isUsingKeyboardRef.current||O.preventDefault()}),preventScrollOnEntryFocus:!0,children:i.jsx(Mr,{role:"menu","aria-orientation":"vertical","data-state":Kc(b.open),"data-radix-menu-content":"",dir:y.dir,...w,...g,ref:P,style:{outline:"none",...g.style},onKeyDown:B(g.onKeyDown,O=>{const Y=O.target.closest("[data-radix-menu-content]")===O.currentTarget,T=O.ctrlKey||O.altKey||O.metaKey,D=O.key.length===1;Y&&(O.key==="Tab"&&O.preventDefault(),!T&&D&&X(O.key));const L=E.current;if(O.target!==L||!g0.includes(O.key))return;O.preventDefault();const ee=S().filter(I=>!I.disabled).map(I=>I.ref.current);Nc.includes(O.key)&&ee.reverse(),$0(ee)}),onBlur:B(e.onBlur,O=>{O.currentTarget.contains(O.target)||(window.clearTimeout(_.current),$.current="")}),onPointerMove:B(e.onPointerMove,Yn(O=>{const j=O.target,Y=U.current!==O.clientX;if(O.currentTarget.contains(j)&&Y){const T=O.clientX>U.current?"right":"left";W.current=T,U.current=O.clientX}}))})})})})})})});jc.displayName=Le;var T0="MenuGroup",Da=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(z.div,{role:"group",...r,ref:t})});Da.displayName=T0;var M0="MenuLabel",_c=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(z.div,{...r,ref:t})});_c.displayName=M0;var Vr="MenuItem",Ac="menu.itemSelect",Wr=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=u.useRef(null),s=Gn(Vr,e.__scopeMenu),l=Ia(Vr,e.__scopeMenu),c=re(t,a),d=u.useRef(!1),f=()=>{const m=a.current;if(!n&&m){const h=new CustomEvent(Ac,{bubbles:!0,cancelable:!0});m.addEventListener(Ac,p=>r==null?void 0:r(p),{once:!0}),vr(m,h),h.defaultPrevented?d.current=!1:s.onClose()}};return i.jsx(Ic,{...o,ref:c,disabled:n,onClick:B(e.onClick,f),onPointerDown:m=>{var h;(h=e.onPointerDown)==null||h.call(e,m),d.current=!0},onPointerUp:B(e.onPointerUp,m=>{var h;d.current||(h=m.currentTarget)==null||h.click()}),onKeyDown:B(e.onKeyDown,m=>{const h=l.searchRef.current!=="";n||h&&m.key===" "||ja.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});Wr.displayName=Vr;var Ic=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=Ia(Vr,n),l=Ec(n),c=u.useRef(null),d=re(t,c),[f,m]=u.useState(!1),[h,p]=u.useState("");return u.useEffect(()=>{const v=c.current;v&&p((v.textContent??"").trim())},[a.children]),i.jsx(Wn.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:i.jsx(Ir,{asChild:!0,...l,focusable:!r,children:i.jsx(z.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:d,onPointerMove:B(e.onPointerMove,Yn(v=>{r?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:B(e.onPointerLeave,Yn(v=>s.onItemLeave(v))),onFocus:B(e.onFocus,()=>m(!0)),onBlur:B(e.onBlur,()=>m(!1))})})})}),j0="MenuCheckboxItem",Rc=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.jsx(Fc,{scope:e.__scopeMenu,checked:n,children:i.jsx(Wr,{role:"menuitemcheckbox","aria-checked":Hr(n)?"mixed":n,...o,ref:t,"data-state":La(n),onSelect:B(o.onSelect,()=>r==null?void 0:r(Hr(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Rc.displayName=j0;var Dc="MenuRadioGroup",[_0,A0]=Vt(Dc,{value:void 0,onValueChange:()=>{}}),Oc=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=Se(r);return i.jsx(_0,{scope:e.__scopeMenu,value:n,onValueChange:a,children:i.jsx(Da,{...o,ref:t})})});Oc.displayName=Dc;var $c="MenuRadioItem",Lc=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=A0($c,e.__scopeMenu),a=n===o.value;return i.jsx(Fc,{scope:e.__scopeMenu,checked:a,children:i.jsx(Wr,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":La(a),onSelect:B(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});Lc.displayName=$c;var Oa="MenuItemIndicator",[Fc,I0]=Vt(Oa,{checked:!1}),Bc=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=I0(Oa,n);return i.jsx(xe,{present:r||Hr(a.checked)||a.checked===!0,children:i.jsx(z.span,{...o,ref:t,"data-state":La(a.checked)})})});Bc.displayName=Oa;var R0="MenuSeparator",zc=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(z.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});zc.displayName=R0;var D0="MenuArrow",Vc=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Hn(n);return i.jsx(jr,{...o,...r,ref:t})});Vc.displayName=D0;var $a="MenuSub",[O0,Wc]=Vt($a),Hc=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=St($a,t),s=Hn(t),[l,c]=u.useState(null),[d,f]=u.useState(null),m=Se(o);return u.useEffect(()=>(a.open===!1&&m(!1),()=>m(!1)),[a.open,m]),i.jsx($n,{...s,children:i.jsx(kc,{scope:t,open:r,onOpenChange:m,content:d,onContentChange:f,children:i.jsx(O0,{scope:t,contentId:pe(),triggerId:pe(),trigger:l,onTriggerChange:c,children:n})})})};Hc.displayName=$a;var Un="MenuSubTrigger",Gc=u.forwardRef((e,t)=>{const n=St(Un,e.__scopeMenu),r=Gn(Un,e.__scopeMenu),o=Wc(Un,e.__scopeMenu),a=Ia(Un,e.__scopeMenu),s=u.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=a,d={__scopeMenu:e.__scopeMenu},f=u.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return u.useEffect(()=>f,[f]),u.useEffect(()=>{const m=l.current;return()=>{window.clearTimeout(m),c(null)}},[l,c]),i.jsx(_a,{asChild:!0,...d,children:i.jsx(Ic,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Kc(n.open),...e,ref:et(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:B(e.onPointerMove,Yn(m=>{a.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:B(e.onPointerLeave,Yn(m=>{var p,v;f();const h=(p=n.content)==null?void 0:p.getBoundingClientRect();if(h){const g=(v=n.content)==null?void 0:v.dataset.side,b=g==="right",y=b?-5:5,w=h[b?"left":"right"],x=h[b?"right":"left"];a.onPointerGraceIntentChange({area:[{x:m.clientX+y,y:m.clientY},{x:w,y:h.top},{x,y:h.top},{x,y:h.bottom},{x:w,y:h.bottom}],side:g}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(m),m.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:B(e.onKeyDown,m=>{var p;const h=a.searchRef.current!=="";e.disabled||h&&m.key===" "||v0[r.dir].includes(m.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),m.preventDefault())})})})});Gc.displayName=Un;var Uc="MenuSubContent",Yc=u.forwardRef((e,t)=>{const n=Tc(Le,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=St(Le,e.__scopeMenu),s=Gn(Le,e.__scopeMenu),l=Wc(Uc,e.__scopeMenu),c=u.useRef(null),d=re(t,c);return i.jsx(Wn.Provider,{scope:e.__scopeMenu,children:i.jsx(xe,{present:r||a.open,children:i.jsx(Wn.Slot,{scope:e.__scopeMenu,children:i.jsx(Ra,{id:l.contentId,"aria-labelledby":l.triggerId,...o,ref:d,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var m;s.isUsingKeyboardRef.current&&((m=c.current)==null||m.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:B(e.onFocusOutside,f=>{f.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:B(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:B(e.onKeyDown,f=>{var p;const m=f.currentTarget.contains(f.target),h=b0[s.dir].includes(f.key);m&&h&&(a.onOpenChange(!1),(p=l.trigger)==null||p.focus(),f.preventDefault())})})})})})});Yc.displayName=Uc;function Kc(e){return e?"open":"closed"}function Hr(e){return e==="indeterminate"}function La(e){return Hr(e)?"indeterminate":e?"checked":"unchecked"}function $0(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function L0(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function F0(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=L0(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==n));const c=s.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function B0(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 l=t[a],c=t[s],d=l.x,f=l.y,m=c.x,h=c.y;f>r!=h>r&&n<(m-d)*(r-f)/(h-f)+d&&(o=!o)}return o}function z0(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return B0(n,t)}function Yn(e){return t=>t.pointerType==="mouse"?e(t):void 0}var V0=Pc,W0=_a,H0=Mc,G0=jc,U0=Da,Y0=_c,K0=Wr,q0=Rc,X0=Oc,Q0=Lc,Z0=Bc,J0=zc,eC=Vc,tC=Hc,nC=Gc,rC=Yc,Gr="DropdownMenu",[oC,xT]=be(Gr,[Sc]),ke=Sc(),[aC,qc]=oC(Gr),Xc=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,c=ke(t),d=u.useRef(null),[f,m]=ye({prop:o,defaultProp:a??!1,onChange:s,caller:Gr});return i.jsx(aC,{scope:t,triggerId:pe(),triggerRef:d,contentId:pe(),open:f,onOpenChange:m,onOpenToggle:u.useCallback(()=>m(h=>!h),[m]),modal:l,children:i.jsx(V0,{...c,open:f,onOpenChange:m,dir:r,modal:l,children:n})})};Xc.displayName=Gr;var Qc="DropdownMenuTrigger",Zc=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=qc(Qc,n),s=ke(n);return i.jsx(W0,{asChild:!0,...s,children:i.jsx(z.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:et(t,a.triggerRef),onPointerDown:B(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:B(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});Zc.displayName=Qc;var sC="DropdownMenuPortal",Jc=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ke(t);return i.jsx(H0,{...r,...n})};Jc.displayName=sC;var eu="DropdownMenuContent",tu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qc(eu,n),a=ke(n),s=u.useRef(!1);return i.jsx(G0,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:B(e.onCloseAutoFocus,l=>{var c;s.current||(c=o.triggerRef.current)==null||c.focus(),s.current=!1,l.preventDefault()}),onInteractOutside:B(e.onInteractOutside,l=>{const c=l.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,f=c.button===2||d;(!o.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tu.displayName=eu;var iC="DropdownMenuGroup",nu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(U0,{...o,...r,ref:t})});nu.displayName=iC;var lC="DropdownMenuLabel",ru=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(Y0,{...o,...r,ref:t})});ru.displayName=lC;var cC="DropdownMenuItem",ou=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(K0,{...o,...r,ref:t})});ou.displayName=cC;var uC="DropdownMenuCheckboxItem",au=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(q0,{...o,...r,ref:t})});au.displayName=uC;var dC="DropdownMenuRadioGroup",su=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(X0,{...o,...r,ref:t})});su.displayName=dC;var fC="DropdownMenuRadioItem",iu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(Q0,{...o,...r,ref:t})});iu.displayName=fC;var mC="DropdownMenuItemIndicator",lu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(Z0,{...o,...r,ref:t})});lu.displayName=mC;var pC="DropdownMenuSeparator",cu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(J0,{...o,...r,ref:t})});cu.displayName=pC;var hC="DropdownMenuArrow",gC=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(eC,{...o,...r,ref:t})});gC.displayName=hC;var vC=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=ke(t),[l,c]=ye({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return i.jsx(tC,{...s,open:l,onOpenChange:c,children:n})},bC="DropdownMenuSubTrigger",uu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(nC,{...o,...r,ref:t})});uu.displayName=bC;var wC="DropdownMenuSubContent",du=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ke(n);return i.jsx(rC,{...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)"}})});du.displayName=wC;var yC=Xc,xC=Zc,fu=Jc,mu=tu,CC=nu,pu=ru,hu=ou,gu=au,NC=su,vu=iu,bu=lu,wu=cu,SC=vC,yu=uu,xu=du;const Cu=yC,Nu=xC,EC=CC,kC=fu,PC=SC,TC=NC,Su=u.forwardRef(({className:e,inset:t,children:n,...r},o)=>i.jsxs(yu,{ref:o,className:A("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,i.jsx(An,{className:"ml-auto"})]}));Su.displayName=yu.displayName;const Eu=u.forwardRef(({className:e,...t},n)=>i.jsx(xu,{ref:n,className:A("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}));Eu.displayName=xu.displayName;const Fa=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>i.jsx(fu,{children:i.jsx(mu,{ref:r,sideOffset:t,className:A("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})}));Fa.displayName=mu.displayName;const ku=u.forwardRef(({className:e,inset:t,...n},r)=>i.jsx(hu,{ref:r,className:A("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}));ku.displayName=hu.displayName;const Ba=u.forwardRef(({className:e,children:t,checked:n,...r},o)=>i.jsxs(gu,{ref:o,className:A("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:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(bu,{children:i.jsx(_n,{className:"h-4 w-4"})})}),t]}));Ba.displayName=gu.displayName;const Pu=u.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(vu,{ref:r,className:A("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:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(bu,{children:i.jsx(ml,{className:"h-2 w-2 fill-current"})})}),t]}));Pu.displayName=vu.displayName;const za=u.forwardRef(({className:e,inset:t,...n},r)=>i.jsx(pu,{ref:r,className:A("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));za.displayName=pu.displayName;const Ur=u.forwardRef(({className:e,...t},n)=>i.jsx(wu,{ref:n,className:A("-mx-1 my-1 h-px bg-muted",e),...t}));Ur.displayName=wu.displayName;const Tu=({className:e,...t})=>i.jsx("span",{className:A("ml-auto text-xs tracking-widest opacity-60",e),...t});Tu.displayName="DropdownMenuShortcut";function MC({columns:e,onToggleVisibility:t,onReset:n}){return i.jsxs(Cu,{children:[i.jsx(Nu,{asChild:!0,children:i.jsxs(de,{variant:"outline",className:"ml-auto",children:[i.jsx(Sw,{className:"h-4 w-4 mr-2"}),"Columns"]})}),i.jsxs(Fa,{align:"end",className:"w-48",children:[i.jsx(za,{children:"Toggle columns"}),i.jsx(Ur,{}),e.map(r=>i.jsx(Ba,{checked:!r.hidden,onCheckedChange:o=>t(String(r.key),o),children:r.title},String(r.key))),i.jsx(Ur,{}),i.jsx(de,{variant:"ghost",size:"sm",className:"w-full justify-start",onClick:n,children:"Reset columns"})]})]})}function Mu(e,[t,n]){return Math.min(n,Math.max(t,e))}function Kn(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ju=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),jC="VisuallyHidden",_u=u.forwardRef((e,t)=>i.jsx(z.span,{...e,ref:t,style:{...ju,...e.style}}));_u.displayName=jC;var Au=_u,_C=[" ","Enter","ArrowUp","ArrowDown"],AC=[" ","Enter"],Wt="Select",[Yr,Kr,IC]=an(Wt),[hn,CT]=be(Wt,[IC,Ct]),qr=Ct(),[RC,Et]=hn(Wt),[DC,OC]=hn(Wt),Iu=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:l,onValueChange:c,dir:d,name:f,autoComplete:m,disabled:h,required:p,form:v}=e,g=qr(t),[b,y]=u.useState(null),[w,x]=u.useState(null),[S,k]=u.useState(!1),M=bt(d),[E,P]=ye({prop:r,defaultProp:o??!1,onChange:a,caller:Wt}),[_,$]=ye({prop:s,defaultProp:l,onChange:c,caller:Wt}),H=u.useRef(null),q=b?v||!!b.closest("form"):!0,[W,U]=u.useState(new Set),te=Array.from(W).map(V=>V.props.value).join(";");return i.jsx($n,{...g,children:i.jsxs(RC,{required:p,scope:t,trigger:b,onTriggerChange:y,valueNode:w,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:k,contentId:pe(),value:_,onValueChange:$,open:E,onOpenChange:P,dir:M,triggerPointerDownPosRef:H,disabled:h,children:[i.jsx(Yr.Provider,{scope:t,children:i.jsx(DC,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(V=>{U(X=>new Set(X).add(V))},[]),onNativeOptionRemove:u.useCallback(V=>{U(X=>{const R=new Set(X);return R.delete(V),R})},[]),children:n})}),q?i.jsxs(rd,{"aria-hidden":!0,required:p,tabIndex:-1,name:f,autoComplete:m,value:_,onChange:V=>$(V.target.value),disabled:h,form:v,children:[_===void 0?i.jsx("option",{value:""}):null,Array.from(W)]},te):null]})})};Iu.displayName=Wt;var Ru="SelectTrigger",Du=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=qr(n),s=Et(Ru,n),l=s.disabled||r,c=re(t,s.onTriggerChange),d=Kr(n),f=u.useRef("touch"),[m,h,p]=ad(g=>{const b=d().filter(x=>!x.disabled),y=b.find(x=>x.value===s.value),w=sd(b,g,y);w!==void 0&&s.onValueChange(w.value)}),v=g=>{l||(s.onOpenChange(!0),p()),g&&(s.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return i.jsx(Ln,{asChild:!0,...a,children:i.jsx(z.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":od(s.value)?"":void 0,...o,ref:c,onClick:B(o.onClick,g=>{g.currentTarget.focus(),f.current!=="mouse"&&v(g)}),onPointerDown:B(o.onPointerDown,g=>{f.current=g.pointerType;const b=g.target;b.hasPointerCapture(g.pointerId)&&b.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(v(g),g.preventDefault())}),onKeyDown:B(o.onKeyDown,g=>{const b=m.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&h(g.key),!(b&&g.key===" ")&&_C.includes(g.key)&&(v(),g.preventDefault())})})})});Du.displayName=Ru;var Ou="SelectValue",$u=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...l}=e,c=Et(Ou,n),{onValueNodeHasChildrenChange:d}=c,f=a!==void 0,m=re(t,c.onValueNodeChange);return ge(()=>{d(f)},[d,f]),i.jsx(z.span,{...l,ref:m,style:{pointerEvents:"none"},children:od(c.value)?i.jsx(i.Fragment,{children:s}):a})});$u.displayName=Ou;var $C="SelectIcon",Lu=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.jsx(z.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Lu.displayName=$C;var Ht="SelectContent",Fu=u.forwardRef((e,t)=>{const n=Et(Ht,e.__scopeSelect),[r,o]=u.useState();if(ge(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?sr.createPortal(i.jsx(Bu,{scope:e.__scopeSelect,children:i.jsx(Yr.Slot,{scope:e.__scopeSelect,children:i.jsx("div",{children:e.children})})}),a):null}return i.jsx(zu,{...e,ref:t})});Fu.displayName=Ht;var Ge=10,[Bu,kt]=hn(Ht),LC="SelectContentImpl",FC=vt("SelectContent.RemoveScroll"),zu=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:l,sideOffset:c,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:h,collisionPadding:p,sticky:v,hideWhenDetached:g,avoidCollisions:b,...y}=e,w=Et(Ht,n),[x,S]=u.useState(null),[k,M]=u.useState(null),E=re(t,I=>S(I)),[P,_]=u.useState(null),[$,H]=u.useState(null),q=Kr(n),[W,U]=u.useState(!1),te=u.useRef(!1);u.useEffect(()=>{if(x)return Or(x)},[x]),br();const V=u.useCallback(I=>{const[K,...Q]=q().map(ie=>ie.ref.current),[ne]=Q.slice(-1),oe=document.activeElement;for(const ie of I)if(ie===oe||(ie==null||ie.scrollIntoView({block:"nearest"}),ie===K&&k&&(k.scrollTop=0),ie===ne&&k&&(k.scrollTop=k.scrollHeight),ie==null||ie.focus(),document.activeElement!==oe))return},[q,k]),X=u.useCallback(()=>V([P,x]),[V,P,x]);u.useEffect(()=>{W&&X()},[W,X]);const{onOpenChange:R,triggerPointerDownPosRef:O}=w;u.useEffect(()=>{if(x){let I={x:0,y:0};const K=ne=>{var oe,ie;I={x:Math.abs(Math.round(ne.pageX)-(((oe=O.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(ne.pageY)-(((ie=O.current)==null?void 0:ie.y)??0))}},Q=ne=>{I.x<=10&&I.y<=10?ne.preventDefault():x.contains(ne.target)||R(!1),document.removeEventListener("pointermove",K),O.current=null};return O.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",Q,{capture:!0})}}},[x,R,O]),u.useEffect(()=>{const I=()=>R(!1);return window.addEventListener("blur",I),window.addEventListener("resize",I),()=>{window.removeEventListener("blur",I),window.removeEventListener("resize",I)}},[R]);const[j,Y]=ad(I=>{const K=q().filter(oe=>!oe.disabled),Q=K.find(oe=>oe.ref.current===document.activeElement),ne=sd(K,I,Q);ne&&setTimeout(()=>ne.ref.current.focus())}),T=u.useCallback((I,K,Q)=>{const ne=!te.current&&!Q;(w.value!==void 0&&w.value===K||ne)&&(_(I),ne&&(te.current=!0))},[w.value]),D=u.useCallback(()=>x==null?void 0:x.focus(),[x]),L=u.useCallback((I,K,Q)=>{const ne=!te.current&&!Q;(w.value!==void 0&&w.value===K||ne)&&H(I)},[w.value]),F=r==="popper"?Va:Vu,ee=F===Va?{side:l,sideOffset:c,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:h,collisionPadding:p,sticky:v,hideWhenDetached:g,avoidCollisions:b}:{};return i.jsx(Bu,{scope:n,content:x,viewport:k,onViewportChange:M,itemRefCallback:T,selectedItem:P,onItemLeave:D,itemTextRefCallback:L,focusSelectedItem:X,selectedItemText:$,position:r,isPositioned:W,searchRef:j,children:i.jsx(zn,{as:FC,allowPinchZoom:!0,children:i.jsx(In,{asChild:!0,trapped:w.open,onMountAutoFocus:I=>{I.preventDefault()},onUnmountAutoFocus:B(o,I=>{var K;(K=w.trigger)==null||K.focus({preventScroll:!0}),I.preventDefault()}),children:i.jsx(Bt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:I=>I.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:i.jsx(F,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:I=>I.preventDefault(),...y,...ee,onPlaced:()=>U(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:B(y.onKeyDown,I=>{const K=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!K&&I.key.length===1&&Y(I.key),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let ne=q().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(I.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const oe=I.target,ie=ne.indexOf(oe);ne=ne.slice(ie+1)}setTimeout(()=>V(ne)),I.preventDefault()}})})})})})})});zu.displayName=LC;var BC="SelectItemAlignedPosition",Vu=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Et(Ht,n),s=kt(Ht,n),[l,c]=u.useState(null),[d,f]=u.useState(null),m=re(t,E=>f(E)),h=Kr(n),p=u.useRef(!1),v=u.useRef(!0),{viewport:g,selectedItem:b,selectedItemText:y,focusSelectedItem:w}=s,x=u.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&d&&g&&b&&y){const E=a.trigger.getBoundingClientRect(),P=d.getBoundingClientRect(),_=a.valueNode.getBoundingClientRect(),$=y.getBoundingClientRect();if(a.dir!=="rtl"){const oe=$.left-P.left,ie=_.left-oe,Ce=E.left-ie,we=E.width+Ce,Be=Math.max(we,P.width),$e=window.innerWidth-Ge,Ee=Mu(ie,[Ge,Math.max(Ge,$e-Be)]);l.style.minWidth=we+"px",l.style.left=Ee+"px"}else{const oe=P.right-$.right,ie=window.innerWidth-_.right-oe,Ce=window.innerWidth-E.right-ie,we=E.width+Ce,Be=Math.max(we,P.width),$e=window.innerWidth-Ge,Ee=Mu(ie,[Ge,Math.max(Ge,$e-Be)]);l.style.minWidth=we+"px",l.style.right=Ee+"px"}const H=h(),q=window.innerHeight-Ge*2,W=g.scrollHeight,U=window.getComputedStyle(d),te=parseInt(U.borderTopWidth,10),V=parseInt(U.paddingTop,10),X=parseInt(U.borderBottomWidth,10),R=parseInt(U.paddingBottom,10),O=te+V+W+R+X,j=Math.min(b.offsetHeight*5,O),Y=window.getComputedStyle(g),T=parseInt(Y.paddingTop,10),D=parseInt(Y.paddingBottom,10),L=E.top+E.height/2-Ge,F=q-L,ee=b.offsetHeight/2,I=b.offsetTop+ee,K=te+V+I,Q=O-K;if(K<=L){const oe=H.length>0&&b===H[H.length-1].ref.current;l.style.bottom="0px";const ie=d.clientHeight-g.offsetTop-g.offsetHeight,Ce=Math.max(F,ee+(oe?D:0)+ie+X),we=K+Ce;l.style.height=we+"px"}else{const oe=H.length>0&&b===H[0].ref.current;l.style.top="0px";const Ce=Math.max(L,te+g.offsetTop+(oe?T:0)+ee)+Q;l.style.height=Ce+"px",g.scrollTop=K-L+g.offsetTop}l.style.margin=`${Ge}px 0`,l.style.minHeight=j+"px",l.style.maxHeight=q+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[h,a.trigger,a.valueNode,l,d,g,b,y,a.dir,r]);ge(()=>x(),[x]);const[S,k]=u.useState();ge(()=>{d&&k(window.getComputedStyle(d).zIndex)},[d]);const M=u.useCallback(E=>{E&&v.current===!0&&(x(),w==null||w(),v.current=!1)},[x,w]);return i.jsx(VC,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:M,children:i.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:i.jsx(z.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Vu.displayName=BC;var zC="SelectPopperPosition",Va=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ge,...a}=e,s=qr(n);return i.jsx(Mr,{...s,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Va.displayName=zC;var[VC,Wa]=hn(Ht,{}),Ha="SelectViewport",Wu=u.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=kt(Ha,n),s=Wa(Ha,n),l=re(t,a.onViewportChange),c=u.useRef(0);return i.jsxs(i.Fragment,{children:[i.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}),i.jsx(Yr.Slot,{scope:n,children:i.jsx(z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:B(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:h}=s;if(h!=null&&h.current&&m){const p=Math.abs(c.current-f.scrollTop);if(p>0){const v=window.innerHeight-Ge*2,g=parseFloat(m.style.minHeight),b=parseFloat(m.style.height),y=Math.max(g,b);if(y<v){const w=y+p,x=Math.min(v,w),S=w-x;m.style.height=x+"px",m.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,m.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Wu.displayName=Ha;var Hu="SelectGroup",[WC,HC]=hn(Hu),Gu=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=pe();return i.jsx(WC,{scope:n,id:o,children:i.jsx(z.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Gu.displayName=Hu;var Uu="SelectLabel",Yu=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=HC(Uu,n);return i.jsx(z.div,{id:o.id,...r,ref:t})});Yu.displayName=Uu;var Xr="SelectItem",[GC,Ku]=hn(Xr),qu=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,l=Et(Xr,n),c=kt(Xr,n),d=l.value===r,[f,m]=u.useState(a??""),[h,p]=u.useState(!1),v=re(t,w=>{var x;return(x=c.itemRefCallback)==null?void 0:x.call(c,w,r,o)}),g=pe(),b=u.useRef("touch"),y=()=>{o||(l.onValueChange(r),l.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 i.jsx(GC,{scope:n,value:r,disabled:o,textId:g,isSelected:d,onItemTextChange:u.useCallback(w=>{m(x=>x||((w==null?void 0:w.textContent)??"").trim())},[]),children:i.jsx(Yr.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:i.jsx(z.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":d&&h,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:B(s.onFocus,()=>p(!0)),onBlur:B(s.onBlur,()=>p(!1)),onClick:B(s.onClick,()=>{b.current!=="mouse"&&y()}),onPointerUp:B(s.onPointerUp,()=>{b.current==="mouse"&&y()}),onPointerDown:B(s.onPointerDown,w=>{b.current=w.pointerType}),onPointerMove:B(s.onPointerMove,w=>{var x;b.current=w.pointerType,o?(x=c.onItemLeave)==null||x.call(c):b.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:B(s.onPointerLeave,w=>{var x;w.currentTarget===document.activeElement&&((x=c.onItemLeave)==null||x.call(c))}),onKeyDown:B(s.onKeyDown,w=>{var S;((S=c.searchRef)==null?void 0:S.current)!==""&&w.key===" "||(AC.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});qu.displayName=Xr;var qn="SelectItemText",Xu=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=Et(qn,n),l=kt(qn,n),c=Ku(qn,n),d=OC(qn,n),[f,m]=u.useState(null),h=re(t,y=>m(y),c.onItemTextChange,y=>{var w;return(w=l.itemTextRefCallback)==null?void 0:w.call(l,y,c.value,c.disabled)}),p=f==null?void 0:f.textContent,v=u.useMemo(()=>i.jsx("option",{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=d;return ge(()=>(g(v),()=>b(v)),[g,b,v]),i.jsxs(i.Fragment,{children:[i.jsx(z.span,{id:c.textId,...a,ref:h}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?sr.createPortal(a.children,s.valueNode):null]})});Xu.displayName=qn;var Qu="SelectItemIndicator",Zu=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Ku(Qu,n).isSelected?i.jsx(z.span,{"aria-hidden":!0,...r,ref:t}):null});Zu.displayName=Qu;var Ga="SelectScrollUpButton",Ju=u.forwardRef((e,t)=>{const n=kt(Ga,e.__scopeSelect),r=Wa(Ga,e.__scopeSelect),[o,a]=u.useState(!1),s=re(t,r.onScrollButtonChange);return ge(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollTop>0;a(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.jsx(td,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});Ju.displayName=Ga;var Ua="SelectScrollDownButton",ed=u.forwardRef((e,t)=>{const n=kt(Ua,e.__scopeSelect),r=Wa(Ua,e.__scopeSelect),[o,a]=u.useState(!1),s=re(t,r.onScrollButtonChange);return ge(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;a(f)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.jsx(td,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});ed.displayName=Ua;var td=u.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=kt("SelectScrollButton",n),s=u.useRef(null),l=Kr(n),c=u.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return u.useEffect(()=>()=>c(),[c]),ge(()=>{var f;const d=l().find(m=>m.ref.current===document.activeElement);(f=d==null?void 0:d.ref.current)==null||f.scrollIntoView({block:"nearest"})},[l]),i.jsx(z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:B(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:B(o.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:B(o.onPointerLeave,()=>{c()})})}),UC="SelectSeparator",nd=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.jsx(z.div,{"aria-hidden":!0,...r,ref:t})});nd.displayName=UC;var Ya="SelectArrow",YC=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=qr(n),a=Et(Ya,n),s=kt(Ya,n);return a.open&&s.position==="popper"?i.jsx(jr,{...o,...r,ref:t}):null});YC.displayName=Ya;var KC="SelectBubbleInput",rd=u.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=u.useRef(null),a=re(r,o),s=Kn(t);return u.useEffect(()=>{const l=o.current;if(!l)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&f){const m=new Event("change",{bubbles:!0});f.call(l,t),l.dispatchEvent(m)}},[s,t]),i.jsx(z.select,{...n,style:{...ju,...n.style},ref:a,defaultValue:t})});rd.displayName=KC;function od(e){return e===""||e===void 0}function ad(e){const t=Se(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(s=>{const l=n.current+s;t(l),function c(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),a=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function sd(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=qC(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==n));const c=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function qC(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var XC=Iu,id=Du,QC=$u,ZC=Lu,ld=Fu,JC=Wu,e1=Gu,cd=Yu,ud=qu,t1=Xu,n1=Zu,dd=Ju,fd=ed,md=nd;const Ka=XC,r1=e1,qa=QC,Qr=u.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(id,{ref:r,className:A("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,i.jsx(ZC,{asChild:!0,children:i.jsx(rn,{className:"h-4 w-4 opacity-50"})})]}));Qr.displayName=id.displayName;const Xa=u.forwardRef(({className:e,...t},n)=>i.jsx(dd,{ref:n,className:A("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(lw,{className:"h-4 w-4"})}));Xa.displayName=dd.displayName;const Qa=u.forwardRef(({className:e,...t},n)=>i.jsx(fd,{ref:n,className:A("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(rn,{className:"h-4 w-4"})}));Qa.displayName=fd.displayName;const Zr=u.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>i.jsxs(ld,{ref:o,className:A("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:[i.jsx(Xa,{}),i.jsx(JC,{className:A("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),i.jsx(Qa,{})]}));Zr.displayName=ld.displayName;const pd=u.forwardRef(({className:e,...t},n)=>i.jsx(cd,{ref:n,className:A("px-2 py-1.5 text-sm font-semibold",e),...t}));pd.displayName=cd.displayName;const Pt=u.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(ud,{ref:r,className:A("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:[i.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(n1,{children:i.jsx(_n,{className:"h-4 w-4"})})}),i.jsx(t1,{children:t})]}));Pt.displayName=ud.displayName;const hd=u.forwardRef(({className:e,...t},n)=>i.jsx(md,{ref:n,className:A("-mx-1 my-1 h-px bg-muted",e),...t}));hd.displayName=md.displayName;function o1({filter:e,value:t,onChange:n}){return i.jsxs(Ka,{value:t||"all",onValueChange:n,children:[i.jsx(Qr,{className:"w-40",children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(pw,{className:"h-4 w-4"}),i.jsx(qa,{placeholder:e.label})]})}),i.jsxs(Zr,{children:[i.jsxs(Pt,{value:"all",children:["All ",e.label]}),e.options.map(r=>i.jsx(Pt,{value:r.value,children:r.label},r.value))]})]})}const a1=Ft("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"}}),gn=u.forwardRef(({className:e,sizing:t,type:n,...r},o)=>i.jsx("input",{type:n,className:A(a1({sizing:t,className:e})),ref:o,...r}));gn.displayName="Input";function s1({value:e,onChange:t,placeholder:n="Search..."}){return i.jsxs("div",{className:"relative flex-1 max-w-sm",children:[i.jsx(oa,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground h-4 w-4"}),i.jsx(gn,{placeholder:n,value:e,onChange:r=>t(r.target.value),className:"pl-10"})]})}function i1({selectedCount:e,onClearSelection:t}){return e===0?null:i.jsxs("div",{className:"bg-muted/50 p-2 rounded-md flex items-center justify-between",children:[i.jsxs("div",{className:"text-sm",children:[i.jsx("span",{className:"font-medium",children:e})," ",e===1?"row":"rows"," selected"]}),i.jsx(de,{variant:"ghost",size:"sm",onClick:t,children:"Clear selection"})]})}var Jr="Checkbox",[l1,NT]=be(Jr),[c1,Za]=l1(Jr);function u1(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:s,name:l,onCheckedChange:c,required:d,value:f="on",internal_do_not_use_render:m}=e,[h,p]=ye({prop:n,defaultProp:o??!1,onChange:c,caller:Jr}),[v,g]=u.useState(null),[b,y]=u.useState(null),w=u.useRef(!1),x=v?!!s||!!v.closest("form"):!0,S={checked:h,disabled:a,setChecked:p,control:v,setControl:g,name:l,form:s,value:f,hasConsumerStoppedPropagationRef:w,required:d,defaultChecked:Tt(o)?!1:o,isFormControl:x,bubbleInput:b,setBubbleInput:y};return i.jsx(c1,{scope:t,...S,children:d1(m)?m(S):r})}var gd="CheckboxTrigger",vd=u.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:s,disabled:l,checked:c,required:d,setControl:f,setChecked:m,hasConsumerStoppedPropagationRef:h,isFormControl:p,bubbleInput:v}=Za(gd,e),g=re(o,f),b=u.useRef(c);return u.useEffect(()=>{const y=a==null?void 0:a.form;if(y){const w=()=>m(b.current);return y.addEventListener("reset",w),()=>y.removeEventListener("reset",w)}},[a,m]),i.jsx(z.button,{type:"button",role:"checkbox","aria-checked":Tt(c)?"mixed":c,"aria-required":d,"data-state":Cd(c),"data-disabled":l?"":void 0,disabled:l,value:s,...r,ref:g,onKeyDown:B(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:B(n,y=>{m(w=>Tt(w)?!0:!w),v&&p&&(h.current=y.isPropagationStopped(),h.current||y.stopPropagation())})})});vd.displayName=gd;var Ja=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:s,disabled:l,value:c,onCheckedChange:d,form:f,...m}=e;return i.jsx(u1,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:l,required:s,onCheckedChange:d,name:r,form:f,value:c,internal_do_not_use_render:({isFormControl:h})=>i.jsxs(i.Fragment,{children:[i.jsx(vd,{...m,ref:t,__scopeCheckbox:n}),h&&i.jsx(xd,{__scopeCheckbox:n})]})})});Ja.displayName=Jr;var bd="CheckboxIndicator",wd=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Za(bd,n);return i.jsx(xe,{present:r||Tt(a.checked)||a.checked===!0,children:i.jsx(z.span,{"data-state":Cd(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});wd.displayName=bd;var yd="CheckboxBubbleInput",xd=u.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:s,required:l,disabled:c,name:d,value:f,form:m,bubbleInput:h,setBubbleInput:p}=Za(yd,e),v=re(n,p),g=Kn(a),b=Tr(r);u.useEffect(()=>{const w=h;if(!w)return;const x=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(x,"checked").set,M=!o.current;if(g!==a&&k){const E=new Event("click",{bubbles:M});w.indeterminate=Tt(a),k.call(w,Tt(a)?!1:a),w.dispatchEvent(E)}},[h,g,a,o]);const y=u.useRef(Tt(a)?!1:a);return i.jsx(z.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??y.current,required:l,disabled:c,name:d,value:f,form:m,...t,tabIndex:-1,ref:v,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});xd.displayName=yd;function d1(e){return typeof e=="function"}function Tt(e){return e==="indeterminate"}function Cd(e){return Tt(e)?"indeterminate":e?"checked":"unchecked"}const eo=u.forwardRef(({className:e,...t},n)=>i.jsx(Ja,{ref:n,className:A("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:i.jsx(wd,{className:A("flex items-center justify-center text-current"),children:i.jsx(_n,{className:"h-4 w-4"})})}));eo.displayName=Ja.displayName;function f1({columns:e,sortState:t,allRowsSelected:n,hasData:r,onSort:o,onToggleAllRows:a,allowSelectAllRows:s}){const l=e.filter(c=>!c.hidden);return i.jsxs(tn,{children:[s&&i.jsx(jn,{className:"w-12",children:i.jsx(eo,{checked:n&&r,onCheckedChange:a,"aria-label":"Select all rows"})}),l.map(c=>i.jsx(jn,{className:A(c.sortable?"cursor-pointer select-none":"",c.headerClassName,c.align==="right"?"text-right":"",c.align==="center"?"text-center":""),onClick:c.sortable?()=>o(String(c.key)):void 0,style:{width:c.width?typeof c.width=="number"?`${c.width}px`:c.width:void 0},children:i.jsxs("div",{className:"flex items-center gap-1",children:[c.title,c.sortable&&i.jsx(i.Fragment,{children:t.field===c.key?t.direction==="asc"?i.jsx(sw,{className:"h-4 w-4"}):i.jsx(nw,{className:"h-4 w-4"}):i.jsx(aw,{className:"h-4 w-4 opacity-50"})})]})},String(c.key)))]})}function m1({row:e,index:t,columns:n,isSelected:r,rowId:o,onToggleSelection:a,allowSelection:s=!0}){const l=n.filter(c=>!c.hidden);return i.jsxs(tn,{className:r?"bg-muted/50":"",children:[s&&i.jsx(nn,{className:"w-12",children:i.jsx(eo,{checked:r,onCheckedChange:c=>a(o,!!c),"aria-label":`Select row ${t+1}`})}),l.map(c=>{const d=e[c.key];return i.jsx(nn,{className:A(c.align==="right"?"text-right":"",c.align==="center"?"text-center":"",c.cellClassName),children:c.customRenderer?c.customRenderer(d,e):String(d??"")},String(c.key))})]})}const Oe=({className:e,repeat:t=1,...n})=>i.jsx(i.Fragment,{children:Array.from({length:t??1}).map((r,o)=>i.jsx("div",{className:A("animate-shimmer bg-gradient-to-r from-gray-300 via-gray-100 to-gray-300","bg-[length:200%_100%] rounded-md h-5",e),...n},o))});function p1({columns:e,rows:t=5}){return i.jsx("div",{className:"rounded-md border",children:i.jsxs(mr,{children:[i.jsx(pr,{children:i.jsx(tn,{children:Array.from({length:e}).map((n,r)=>i.jsx(jn,{children:i.jsx(Oe,{className:"h-4 w-20"})},r))})}),i.jsx(hr,{children:Array.from({length:t}).map((n,r)=>i.jsx(tn,{children:Array.from({length:e}).map((o,a)=>i.jsx(nn,{children:i.jsx(Oe,{className:"h-4 w-full"})},a))},r))})]})})}function h1(e,t,n){const r=t.filter(f=>!f.hidden),o=r.map(f=>f.title),a=e.map(f=>r.map(m=>{const h=f[m.key];return h!=null?String(h):""})),s=[o.join(","),...a.map(f=>f.join(","))].join(`
|
|
268
|
+
`),l=new Blob([s],{type:"text/csv;charset=utf-8;"}),c=URL.createObjectURL(l),d=document.createElement("a");d.setAttribute("href",c),d.setAttribute("download",`${n}.csv`),d.style.visibility="hidden",document.body.appendChild(d),d.click(),document.body.removeChild(d)}var to="Collapsible",[g1,Nd]=be(to),[v1,es]=g1(to),Sd=u.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:s,...l}=e,[c,d]=ye({prop:r,defaultProp:o??!1,onChange:s,caller:to});return i.jsx(v1,{scope:n,disabled:a,contentId:pe(),open:c,onOpenToggle:u.useCallback(()=>d(f=>!f),[d]),children:i.jsx(z.div,{"data-state":ns(c),"data-disabled":a?"":void 0,...l,ref:t})})});Sd.displayName=to;var Ed="CollapsibleTrigger",kd=u.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=es(Ed,n);return i.jsx(z.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ns(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:B(e.onClick,o.onOpenToggle)})});kd.displayName=Ed;var ts="CollapsibleContent",Pd=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=es(ts,e.__scopeCollapsible);return i.jsx(xe,{present:n||o.open,children:({present:a})=>i.jsx(b1,{...r,ref:t,present:a})})});Pd.displayName=ts;var b1=u.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,s=es(ts,n),[l,c]=u.useState(r),d=u.useRef(null),f=re(t,d),m=u.useRef(0),h=m.current,p=u.useRef(0),v=p.current,g=s.open||l,b=u.useRef(g),y=u.useRef(void 0);return u.useEffect(()=>{const w=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(w)},[]),ge(()=>{const w=d.current;if(w){y.current=y.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const x=w.getBoundingClientRect();m.current=x.height,p.current=x.width,b.current||(w.style.transitionDuration=y.current.transitionDuration,w.style.animationName=y.current.animationName),c(r)}},[s.open,r]),i.jsx(z.div,{"data-state":ns(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...a,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:g&&o})});function ns(e){return e?"open":"closed"}var w1=Sd,y1=kd,x1=Pd,Ue="Accordion",C1=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[rs,N1,S1]=an(Ue),[no,ST]=be(Ue,[S1,Nd]),os=Nd(),Td=C.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return i.jsx(rs.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?i.jsx(T1,{...a,ref:t}):i.jsx(P1,{...o,ref:t})})});Td.displayName=Ue;var[Md,E1]=no(Ue),[jd,k1]=no(Ue,{collapsible:!1}),P1=C.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[l,c]=ye({prop:n,defaultProp:r??"",onChange:o,caller:Ue});return i.jsx(Md,{scope:e.__scopeAccordion,value:C.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:C.useCallback(()=>a&&c(""),[a,c]),children:i.jsx(jd,{scope:e.__scopeAccordion,collapsible:a,children:i.jsx(_d,{...s,ref:t})})})}),T1=C.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,l]=ye({prop:n,defaultProp:r??[],onChange:o,caller:Ue}),c=C.useCallback(f=>l((m=[])=>[...m,f]),[l]),d=C.useCallback(f=>l((m=[])=>m.filter(h=>h!==f)),[l]);return i.jsx(Md,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:d,children:i.jsx(jd,{scope:e.__scopeAccordion,collapsible:!0,children:i.jsx(_d,{...a,ref:t})})})}),[M1,ro]=no(Ue),_d=C.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...s}=e,l=C.useRef(null),c=re(l,t),d=N1(n),m=bt(o)==="ltr",h=B(e.onKeyDown,p=>{var P;if(!C1.includes(p.key))return;const v=p.target,g=d().filter(_=>{var $;return!(($=_.ref.current)!=null&&$.disabled)}),b=g.findIndex(_=>_.ref.current===v),y=g.length;if(b===-1)return;p.preventDefault();let w=b;const x=0,S=y-1,k=()=>{w=b+1,w>S&&(w=x)},M=()=>{w=b-1,w<x&&(w=S)};switch(p.key){case"Home":w=x;break;case"End":w=S;break;case"ArrowRight":a==="horizontal"&&(m?k():M());break;case"ArrowDown":a==="vertical"&&k();break;case"ArrowLeft":a==="horizontal"&&(m?M():k());break;case"ArrowUp":a==="vertical"&&M();break}const E=w%y;(P=g[E].ref.current)==null||P.focus()});return i.jsx(M1,{scope:n,disabled:r,direction:o,orientation:a,children:i.jsx(rs.Slot,{scope:n,children:i.jsx(z.div,{...s,"data-orientation":a,ref:c,onKeyDown:r?void 0:h})})})}),oo="AccordionItem",[j1,as]=no(oo),Ad=C.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=ro(oo,n),s=E1(oo,n),l=os(n),c=pe(),d=r&&s.value.includes(r)||!1,f=a.disabled||e.disabled;return i.jsx(j1,{scope:n,open:d,disabled:f,triggerId:c,children:i.jsx(w1,{"data-orientation":a.orientation,"data-state":Ld(d),...l,...o,ref:t,disabled:f,open:d,onOpenChange:m=>{m?s.onItemOpen(r):s.onItemClose(r)}})})});Ad.displayName=oo;var Id="AccordionHeader",Rd=C.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ro(Ue,n),a=as(Id,n);return i.jsx(z.h3,{"data-orientation":o.orientation,"data-state":Ld(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});Rd.displayName=Id;var ss="AccordionTrigger",Dd=C.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ro(Ue,n),a=as(ss,n),s=k1(ss,n),l=os(n);return i.jsx(rs.ItemSlot,{scope:n,children:i.jsx(y1,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...r,ref:t})})});Dd.displayName=ss;var Od="AccordionContent",$d=C.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ro(Ue,n),a=as(Od,n),s=os(n);return i.jsx(x1,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});$d.displayName=Od;function Ld(e){return e?"open":"closed"}var _1=Td,A1=Ad,I1=Rd,Fd=Dd,Bd=$d;const R1=_1,zd=u.forwardRef(({className:e,...t},n)=>i.jsx(A1,{ref:n,className:A("border-b",e),...t}));zd.displayName="AccordionItem";const Vd=u.forwardRef(({className:e,children:t,...n},r)=>i.jsx(I1,{className:"flex",children:i.jsxs(Fd,{ref:r,className:A("text-base flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,i.jsx(rn,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Vd.displayName=Fd.displayName;const Wd=u.forwardRef(({className:e,children:t,...n},r)=>i.jsx(Bd,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:i.jsx("div",{className:A("pb-4 pt-0",e),children:t})}));Wd.displayName=Bd.displayName;const D1=(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},ao=u.forwardRef(({className:e,leftIcon:t,rightIcon:n,mask:r,onChange:o,...a},s)=>{const l=c=>{const d=c.target;if(r){const f=D1(d.value,r);d.value=f}o==null||o(c)};return i.jsxs("div",{className:"relative w-full",children:[t&&i.jsx("div",{className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:t}),i.jsx(gn,{className:A(t&&"pl-8",n&&"pr-8",e),ref:s,onInput:l,...a}),n&&i.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:n})]})});ao.displayName="AdaptiveInput";const O1={info:{container:"bg-blue-50 border-blue-200 text-blue-800",icon:pl,iconColor:"text-blue-600"},warning:{container:"bg-yellow-50 border-yellow-200 text-yellow-800",icon:Ew,iconColor:"text-yellow-600"},error:{container:"bg-red-50 border-red-200 text-red-800",icon:ul,iconColor:"text-red-600"},success:{container:"bg-green-50 border-green-200 text-green-800",icon:dl,iconColor:"text-green-600"}};function $1({variant:e="info",title:t,children:n,showCloseButton:r=!1,onClose:o,actionButton:a,className:s}){const[l,c]=C.useState(!1),[d,f]=C.useState(!1),m=O1[e],h=m.icon;C.useEffect(()=>{const v=setTimeout(()=>c(!0),10);return()=>clearTimeout(v)},[]);const p=()=>{o&&(f(!0),setTimeout(()=>{o()},300))};return i.jsx("div",{className:A("relative rounded-lg border p-4 transition-all duration-300 ease-in-out transform",m.container,l&&!d?"opacity-100 translate-y-0 scale-100":"opacity-0 -translate-y-2 scale-95",s),role:"alert",children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx(h,{className:A("h-5 w-5 flex-shrink-0 mt-0.5",m.iconColor),"aria-hidden":"true"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[t&&i.jsx("h3",{className:"text-sm font-medium mb-1",children:t}),i.jsx("div",{className:"text-sm",children:n}),a&&i.jsx("div",{className:"mt-3",children:i.jsx(de,{size:"sm",variant:a.variant||"default",onClick:a.onClick,className:"h-8",children:a.label})})]}),r&&o&&i.jsx("button",{type:"button",className:A("flex-shrink-0 rounded-md p-1.5 inline-flex focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors duration-200",e==="info"&&"text-blue-500 hover:bg-blue-100 focus:ring-blue-600",e==="warning"&&"text-yellow-500 hover:bg-yellow-100 focus:ring-yellow-600",e==="error"&&"text-red-500 hover:bg-red-100 focus:ring-red-600",e==="success"&&"text-green-500 hover:bg-green-100 focus:ring-green-600"),onClick:p,"aria-label":"Close alert",children:i.jsx(ct,{className:"h-4 w-4"})})]})})}var so="Dialog",[Hd,Gd]=be(so),[L1,Ye]=Hd(so),Ud=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=u.useRef(null),c=u.useRef(null),[d,f]=ye({prop:r,defaultProp:o??!1,onChange:a,caller:so});return i.jsx(L1,{scope:t,triggerRef:l,contentRef:c,contentId:pe(),titleId:pe(),descriptionId:pe(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(m=>!m),[f]),modal:s,children:n})};Ud.displayName=so;var Yd="DialogTrigger",Kd=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ye(Yd,n),a=re(t,o.triggerRef);return i.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":cs(o.open),...r,ref:a,onClick:B(e.onClick,o.onOpenToggle)})});Kd.displayName=Yd;var is="DialogPortal",[F1,qd]=Hd(is,{forceMount:void 0}),Xd=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ye(is,t);return i.jsx(F1,{scope:t,forceMount:n,children:u.Children.map(r,s=>i.jsx(xe,{present:n||a.open,children:i.jsx(Fn,{asChild:!0,container:o,children:s})}))})};Xd.displayName=is;var io="DialogOverlay",Qd=u.forwardRef((e,t)=>{const n=qd(io,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ye(io,e.__scopeDialog);return a.modal?i.jsx(xe,{present:r||a.open,children:i.jsx(z1,{...o,ref:t})}):null});Qd.displayName=io;var B1=vt("DialogOverlay.RemoveScroll"),z1=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ye(io,n);return i.jsx(zn,{as:B1,allowPinchZoom:!0,shards:[o.contentRef],children:i.jsx(z.div,{"data-state":cs(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Gt="DialogContent",Zd=u.forwardRef((e,t)=>{const n=qd(Gt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ye(Gt,e.__scopeDialog);return i.jsx(xe,{present:r||a.open,children:a.modal?i.jsx(V1,{...o,ref:t}):i.jsx(W1,{...o,ref:t})})});Zd.displayName=Gt;var V1=u.forwardRef((e,t)=>{const n=Ye(Gt,e.__scopeDialog),r=u.useRef(null),o=re(t,n.contentRef,r);return u.useEffect(()=>{const a=r.current;if(a)return Or(a)},[]),i.jsx(Jd,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&a.preventDefault()}),onFocusOutside:B(e.onFocusOutside,a=>a.preventDefault())})}),W1=u.forwardRef((e,t)=>{const n=Ye(Gt,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return i.jsx(Jd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,l;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=n.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Jd=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,l=Ye(Gt,n),c=u.useRef(null),d=re(t,c);return br(),i.jsxs(i.Fragment,{children:[i.jsx(In,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:i.jsx(Bt,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":cs(l.open),...s,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(G1,{titleId:l.titleId}),i.jsx(Y1,{contentRef:c,descriptionId:l.descriptionId})]})]})}),ls="DialogTitle",ef=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ye(ls,n);return i.jsx(z.h2,{id:o.titleId,...r,ref:t})});ef.displayName=ls;var tf="DialogDescription",nf=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ye(tf,n);return i.jsx(z.p,{id:o.descriptionId,...r,ref:t})});nf.displayName=tf;var rf="DialogClose",of=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ye(rf,n);return i.jsx(z.button,{type:"button",...r,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});of.displayName=rf;function cs(e){return e?"open":"closed"}var af="DialogTitleWarning",[H1,sf]=Tw(af,{contentName:Gt,titleName:ls,docsSlug:"dialog"}),G1=({titleId:e})=>{const t=sf(af),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
259
269
|
|
|
260
270
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
261
271
|
|
|
262
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},
|
|
272
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},U1="DialogDescriptionWarning",Y1=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${sf(U1).contentName}}.`;return u.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},us=Ud,lf=Kd,ds=Xd,lo=Qd,co=Zd,fs=ef,ms=nf,uo=of,cf="AlertDialog",[K1,ET]=be(cf,[Gd]),ft=Gd(),uf=e=>{const{__scopeAlertDialog:t,...n}=e,r=ft(t);return i.jsx(us,{...r,...n,modal:!0})};uf.displayName=cf;var q1="AlertDialogTrigger",df=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ft(n);return i.jsx(lf,{...o,...r,ref:t})});df.displayName=q1;var X1="AlertDialogPortal",ff=e=>{const{__scopeAlertDialog:t,...n}=e,r=ft(t);return i.jsx(ds,{...r,...n})};ff.displayName=X1;var Q1="AlertDialogOverlay",mf=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ft(n);return i.jsx(lo,{...o,...r,ref:t})});mf.displayName=Q1;var vn="AlertDialogContent",[Z1,J1]=K1(vn),eN=rl("AlertDialogContent"),pf=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=ft(n),s=u.useRef(null),l=re(t,s),c=u.useRef(null);return i.jsx(H1,{contentName:vn,titleName:hf,docsSlug:"alert-dialog",children:i.jsx(Z1,{scope:n,cancelRef:c,children:i.jsxs(co,{role:"alertdialog",...a,...o,ref:l,onOpenAutoFocus:B(o.onOpenAutoFocus,d=>{var f;d.preventDefault(),(f=c.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[i.jsx(eN,{children:r}),i.jsx(nN,{contentRef:s})]})})})});pf.displayName=vn;var hf="AlertDialogTitle",gf=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ft(n);return i.jsx(fs,{...o,...r,ref:t})});gf.displayName=hf;var vf="AlertDialogDescription",bf=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ft(n);return i.jsx(ms,{...o,...r,ref:t})});bf.displayName=vf;var tN="AlertDialogAction",wf=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ft(n);return i.jsx(uo,{...o,...r,ref:t})});wf.displayName=tN;var yf="AlertDialogCancel",xf=u.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=J1(yf,n),a=ft(n),s=re(t,o);return i.jsx(uo,{...a,...r,ref:s})});xf.displayName=yf;var nN=({contentRef:e})=>{const t=`\`${vn}\` requires a description for the component to be accessible for screen reader users.
|
|
263
273
|
|
|
264
|
-
You can add a description to the \`${
|
|
274
|
+
You can add a description to the \`${vn}\` by passing a \`${vf}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
265
275
|
|
|
266
|
-
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 \`${
|
|
276
|
+
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 \`${vn}\`. 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.
|
|
267
277
|
|
|
268
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return u.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},
|
|
278
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return u.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},rN=uf,oN=df,aN=ff,Cf=mf,Nf=pf,Sf=wf,Ef=xf,kf=gf,Pf=bf;const sN=rN,iN=oN,Tf=aN,ps=u.forwardRef(({className:e,...t},n)=>i.jsx(Cf,{className:A("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}));ps.displayName=Cf.displayName;const Mf=u.forwardRef(({className:e,...t},n)=>i.jsxs(Tf,{children:[i.jsx(ps,{}),i.jsx(Nf,{ref:n,className:A("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})]}));Mf.displayName=Nf.displayName;const jf=({className:e,...t})=>i.jsx("div",{className:A("flex flex-col space-y-2 text-center sm:text-left",e),...t});jf.displayName="AlertDialogHeader";const _f=({className:e,...t})=>i.jsx("div",{className:A("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});_f.displayName="AlertDialogFooter";const Af=u.forwardRef(({className:e,...t},n)=>i.jsx(kf,{ref:n,className:A("text-lg font-semibold",e),...t}));Af.displayName=kf.displayName;const If=u.forwardRef(({className:e,...t},n)=>i.jsx(Pf,{ref:n,className:A("text-sm text-muted-foreground",e),...t}));If.displayName=Pf.displayName;const Rf=u.forwardRef(({className:e,...t},n)=>i.jsx(Sf,{ref:n,className:A(fr(),e),...t}));Rf.displayName=Sf.displayName;const Df=u.forwardRef(({className:e,...t},n)=>i.jsx(Ef,{ref:n,className:A(fr({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Df.displayName=Ef.displayName;const lN=C.forwardRef(function(t,n){const{options:r,placeholder:o="Type to search...",onSelect:a,defaultSelectedOption:s}=t,[l,c]=C.useState((s==null?void 0:s.label)||""),[d,f]=C.useState([]),[m,h]=C.useState(!1),[p,v]=C.useState(-1),[g,b]=C.useState("down"),[y,w]=C.useState(s||null),x=C.useRef(null),S=C.useRef(null),k=C.useRef(null);C.useImperativeHandle(n,()=>({clearSelection:()=>{w(null),c(""),a(null)}})),C.useEffect(()=>{const _=$=>{x.current&&!x.current.contains($.target)&&h(!1)};return document.addEventListener("click",_),()=>{document.removeEventListener("click",_)}},[]),C.useEffect(()=>{const _=r.filter($=>Ji($.label,l));f(_),v(-1)},[l,r]),C.useEffect(()=>{if(m&&S.current){const _=S.current.getBoundingClientRect(),$=window.innerHeight-_.bottom,H=_.top,q=Math.min(d.length*40,240);b($>=q||$>H?"down":"up")}},[m,d]);const M=_=>{var $;c(_.target.value),($=t.onChange)==null||$.call(t,_.target.value),w(null),h(!0)},E=_=>{c(_.label),w(_),h(!1),a(_)},P=_=>{if(!m&&(_.key==="ArrowDown"||_.key==="ArrowUp")){h(!0);return}switch(_.key){case"ArrowDown":v($=>$<d.length-1?$+1:$);break;case"ArrowUp":v($=>$>0?$-1:$);break;case"Enter":p>=0&&p<d.length&&E(d[p]);break;case"Escape":h(!1);break}};return C.useEffect(()=>{m&&k.current&&p>=0&&k.current.children[p].scrollIntoView({block:"nearest"})},[p,m]),i.jsxs("div",{ref:x,className:"relative w-full",children:[i.jsx(ao,{ref:S,type:"text",value:l,onChange:M,onFocus:()=>h(!0),onKeyDown:P,placeholder:o,className:A("w-full",t.className),"aria-expanded":m,"aria-autocomplete":"list","aria-controls":"autocomplete-list",role:"combobox",leftIcon:i.jsx(oa,{className:"w-4 h-4"}),rightIcon:y?i.jsx("button",{className:"mt-[5px]",onClick:()=>{w(null),c(""),a(null)},children:i.jsx(ct,{className:"w-5 h-5"})}):null}),m&&d.length>0&&i.jsx("ul",{id:"autocomplete-list",ref:k,className:`absolute z-10 w-full bg-white border border-gray-300 rounded-md shadow-lg max-h-60 overflow-auto ${g==="up"?"bottom-full mb-1":"top-full mt-1"}`,role:"listbox",children:d.map((_,$)=>{const H=_.label.split(new RegExp(`(${l})`,"gi"));return i.jsx("li",{onClick:()=>E(_),className:`px-4 py-2 cursor-pointer ${$===p?"bg-blue-100":"hover:bg-gray-100"} ${(y==null?void 0:y.value)===_.value?"bg-blue-200":""}`,role:"option","aria-selected":$===p,id:`option-${$}`,children:H.map((q,W)=>q.toLowerCase()===l.toLowerCase()?i.jsx("span",{className:"font-bold text-blue-600",children:q},W):q)},_.value)})})]})});var fo={exports:{}},hs={};/**
|
|
269
279
|
* @license React
|
|
270
280
|
* use-sync-external-store-shim.production.js
|
|
271
281
|
*
|
|
@@ -273,7 +283,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
|
|
|
273
283
|
*
|
|
274
284
|
* This source code is licensed under the MIT license found in the
|
|
275
285
|
* LICENSE file in the root directory of this source tree.
|
|
276
|
-
*/var Of;function
|
|
286
|
+
*/var Of;function cN(){if(Of)return hs;Of=1;var e=C;function t(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function l(m,h){var p=h(),v=r({inst:{value:p,getSnapshot:h}}),g=v[0].inst,b=v[1];return a(function(){g.value=p,g.getSnapshot=h,c(g)&&b({inst:g})},[m,p,h]),o(function(){return c(g)&&b({inst:g}),m(function(){c(g)&&b({inst:g})})},[m]),s(p),p}function c(m){var h=m.getSnapshot;m=m.value;try{var p=h();return!n(m,p)}catch{return!0}}function d(m,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return hs.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,hs}var gs={};/**
|
|
277
287
|
* @license React
|
|
278
288
|
* use-sync-external-store-shim.development.js
|
|
279
289
|
*
|
|
@@ -281,13 +291,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
|
|
|
281
291
|
*
|
|
282
292
|
* This source code is licensed under the MIT license found in the
|
|
283
293
|
* LICENSE file in the root directory of this source tree.
|
|
284
|
-
*/var $f;function sN(){return $f||($f=1,process.env.NODE_ENV!=="production"&&function(){function e(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}function t(p,v){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=v();if(!m){var b=v();a(g,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}b=s({inst:{value:g,getSnapshot:v}});var y=b[0].inst,w=b[1];return c(function(){y.value=g,y.getSnapshot=v,n(y)&&w({inst:y})},[p,g,v]),l(function(){return n(y)&&w({inst:y}),p(function(){n(y)&&w({inst:y})})},[p]),d(g),g}function n(p){var v=p.getSnapshot;p=p.value;try{var g=v();return!a(p,g)}catch{return!0}}function r(p,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=C,a=typeof Object.is=="function"?Object.is:e,s=o.useState,l=o.useEffect,c=o.useLayoutEffect,d=o.useDebugValue,f=!1,m=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;gs.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),gs}var Lf;function iN(){return Lf||(Lf=1,process.env.NODE_ENV==="production"?fo.exports=aN():fo.exports=sN()),fo.exports}var lN=iN();function cN(){return lN.useSyncExternalStore(uN,()=>!0,()=>!1)}function uN(){return()=>{}}var vs="Avatar",[dN,bT]=be(vs),[fN,Ff]=dN(vs),Bf=u.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=u.useState("idle");return i.jsx(fN,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:i.jsx(z.span,{...r,ref:t})})});Bf.displayName=vs;var zf="AvatarImage",Vf=u.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=Ff(zf,n),l=mN(r,a),c=Se(d=>{o(d),s.onImageLoadingStatusChange(d)});return ge(()=>{l!=="idle"&&c(l)},[l,c]),l==="loaded"?i.jsx(z.img,{...a,ref:t,src:r}):null});Vf.displayName=zf;var Wf="AvatarFallback",Hf=u.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Ff(Wf,n),[s,l]=u.useState(r===void 0);return u.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>l(!0),r);return()=>window.clearTimeout(c)}},[r]),s&&a.imageLoadingStatus!=="loaded"?i.jsx(z.span,{...o,ref:t}):null});Hf.displayName=Wf;function Gf(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function mN(e,{referrerPolicy:t,crossOrigin:n}){const r=cN(),o=u.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,l]=u.useState(()=>Gf(a,e));return ge(()=>{l(Gf(a,e))},[a,e]),ge(()=>{const c=m=>()=>{l(m)};if(!a)return;const d=c("loaded"),f=c("error");return a.addEventListener("load",d),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",d),a.removeEventListener("error",f)}},[a,n,t]),s}var Uf=Bf,Yf=Vf,Kf=Hf;const qf=u.forwardRef(({className:e,...t},n)=>i.jsx(Uf,{ref:n,className:I("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));qf.displayName=Uf.displayName;const Xf=u.forwardRef(({className:e,...t},n)=>i.jsx(Yf,{ref:n,className:I("aspect-square h-full w-full",e),...t}));Xf.displayName=Yf.displayName;const Qf=u.forwardRef(({className:e,...t},n)=>i.jsx(Kf,{ref:n,className:I("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Qf.displayName=Kf.displayName;const pN={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"}},hN=(e,t,n)=>{let r;const o=pN[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},gN={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},vN={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},bN={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},wN={date:Jt({formats:gN,defaultWidth:"full"}),time:Jt({formats:vN,defaultWidth:"full"}),dateTime:Jt({formats:bN,defaultWidth:"full"})},yN={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"},xN=(e,t,n,r)=>{const o=yN[e];return typeof o=="function"?o(t):o},CN={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},NN={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},SN={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"]},EN={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"]},kN={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"}},PN={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"}},TN={ordinalNumber:(e,t)=>{const n=Number(e);return(t==null?void 0:t.unit)==="week"?n+"ª":n+"º"},era:Ze({values:CN,defaultWidth:"wide"}),quarter:Ze({values:NN,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ze({values:SN,defaultWidth:"wide"}),day:Ze({values:EN,defaultWidth:"wide"}),dayPeriod:Ze({values:kN,defaultWidth:"wide",formattingValues:PN,defaultFormattingWidth:"wide"})},MN=/^(\d+)[ºªo]?/i,jN=/\d+/i,_N={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},AN={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},IN={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},RN={any:[/1/i,/2/i,/3/i,/4/i]},DN={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},ON={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]},$N={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},LN={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]},FN={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},BN={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}},zN={ordinalNumber:Ti({matchPattern:MN,parsePattern:jN,valueCallback:e=>parseInt(e,10)}),era:Je({matchPatterns:_N,defaultMatchWidth:"wide",parsePatterns:AN,defaultParseWidth:"any"}),quarter:Je({matchPatterns:IN,defaultMatchWidth:"wide",parsePatterns:RN,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Je({matchPatterns:DN,defaultMatchWidth:"wide",parsePatterns:ON,defaultParseWidth:"any"}),day:Je({matchPatterns:$N,defaultMatchWidth:"wide",parsePatterns:LN,defaultParseWidth:"any"}),dayPeriod:Je({matchPatterns:FN,defaultMatchWidth:"any",parsePatterns:BN,defaultParseWidth:"any"})},VN={code:"pt-BR",formatDistance:hN,formatLong:wN,formatRelative:xN,localize:TN,match:zN,options:{weekStartsOn:0,firstWeekContainsDate:1}},WN=({selectedDate:e,onChange:t,language:n="enUS"})=>{const[r,o]=C.useState(e||new Date),s={ptBR:VN,enUS:Uo}[n],l=()=>{o(p=>Zv(p))},c=()=>{o(p=>Bi(p,1))},d=p=>{t&&t(p)},f=Array.from({length:Qv(r)}).map((p,v)=>new Date(r.getFullYear(),r.getMonth(),v+1)),m=Xv(r).getDay(),h=Array.from({length:7}).map((p,v)=>Yo(new Date(2021,0,v+3),"EEEEEE",{locale:s}));return i.jsxs("div",{className:"max-w-sm mx-auto p-4 border rounded shadow",role:"application","aria-label":"Calendar",children:[i.jsxs("div",{className:"flex justify-between items-center mb-4",children:[i.jsx("button",{className:"px-2 py-1 bg-gray-200 rounded hover:bg-gray-300",onClick:l,"aria-label":"Previous Month",children:i.jsx(gr,{})}),i.jsx("h2",{className:"text-lg font-bold","aria-live":"polite",children:Yo(r,"MMMM yyyy",{locale:s})}),i.jsx("button",{className:"px-2 py-1 bg-gray-200 rounded hover:bg-gray-300",onClick:c,"aria-label":"Next Month",children:i.jsx(_n,{})})]}),i.jsxs("div",{className:"grid grid-cols-7 gap-2",children:[h.map((p,v)=>i.jsx("div",{className:"text-center font-medium","aria-hidden":"true",children:p},v)),Array.from({length:m}).map((p,v)=>i.jsx("div",{className:"","aria-hidden":"true"},`empty-${v}`)),f.map(p=>i.jsx("button",{className:`p-2 rounded hover:bg-blue-100 ${e&&p.toDateString()===e.toDateString()&&"bg-blue-200"}`,onClick:()=>d(p),"aria-label":Yo(p,"MMMM do yyyy",{locale:s}),"aria-pressed":e&&p.toDateString()===e.toDateString()?"true":"false",children:p.getDate()},p.toISOString()))]})]})},Zf=u.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:I("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Zf.displayName="Card";const Jf=u.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:I("flex flex-col space-y-1.5 p-6",e),...t}));Jf.displayName="CardHeader";const em=u.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:I("font-semibold leading-none tracking-tight pb-4",e),...t}));em.displayName="CardTitle";const tm=u.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:I("text-sm text-muted-foreground",e),...t}));tm.displayName="CardDescription";const nm=u.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:I("p-6 py-0",e),...t}));nm.displayName="CardContent";const rm=u.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:I("flex items-center p-6 pt-6",e),...t}));rm.displayName="CardFooter";var om=1,HN=.9,GN=.8,UN=.17,bs=.1,ws=.999,YN=.9999,KN=.99,qN=/[\\\/_+.#"@\[\(\{&]/,XN=/[\\\/_+.#"@\[\(\{&]/g,QN=/[\s-]/,am=/[\s-]/g;function ys(e,t,n,r,o,a,s){if(a===t.length)return o===e.length?om:KN;var l=`${o},${a}`;if(s[l]!==void 0)return s[l];for(var c=r.charAt(a),d=n.indexOf(c,o),f=0,m,h,p,v;d>=0;)m=ys(e,t,n,r,d+1,a+1,s),m>f&&(d===o?m*=om:qN.test(e.charAt(d-1))?(m*=GN,p=e.slice(o,d-1).match(XN),p&&o>0&&(m*=Math.pow(ws,p.length))):QN.test(e.charAt(d-1))?(m*=HN,v=e.slice(o,d-1).match(am),v&&o>0&&(m*=Math.pow(ws,v.length))):(m*=UN,o>0&&(m*=Math.pow(ws,d-o))),e.charAt(d)!==t.charAt(a)&&(m*=YN)),(m<bs&&n.charAt(d-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(d-1)!==r.charAt(a))&&(h=ys(e,t,n,r,d+1,a+2,s),h*bs>m&&(m=h*bs)),m>f&&(f=m),d=n.indexOf(c,d+1);return s[l]=f,f}function sm(e){return e.toLowerCase().replace(am," ")}function ZN(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,ys(e,t,sm(e),sm(t),0,0,{})}var Xn='[cmdk-group=""]',xs='[cmdk-group-items=""]',JN='[cmdk-group-heading=""]',im='[cmdk-item=""]',lm=`${im}:not([aria-disabled="true"])`,Cs="cmdk-item-select",vn="data-value",eS=(e,t,n)=>ZN(e,t,n),cm=u.createContext(void 0),Qn=()=>u.useContext(cm),um=u.createContext(void 0),Ns=()=>u.useContext(um),dm=u.createContext(void 0),fm=u.forwardRef((e,t)=>{let n=bn(()=>{var T,D;return{search:"",value:(D=(T=e.value)!=null?T:e.defaultValue)!=null?D:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=bn(()=>new Set),o=bn(()=>new Map),a=bn(()=>new Map),s=bn(()=>new Set),l=mm(e),{label:c,children:d,value:f,onValueChange:m,filter:h,shouldFilter:p,loop:v,disablePointerSelection:g=!1,vimBindings:b=!0,...y}=e,w=pe(),x=pe(),S=pe(),k=u.useRef(null),j=dS();Ut(()=>{if(f!==void 0){let T=f.trim();n.current.value=T,E.emit()}},[f]),Ut(()=>{j(6,W)},[]);let E=u.useMemo(()=>({subscribe:T=>(s.current.add(T),()=>s.current.delete(T)),snapshot:()=>n.current,setState:(T,D,L)=>{var F,ee,A,K;if(!Object.is(n.current[T],D)){if(n.current[T]=D,T==="search")q(),$(),j(1,H);else if(T==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Q=document.getElementById(S);Q?Q.focus():(F=document.getElementById(w))==null||F.focus()}if(j(7,()=>{var Q;n.current.selectedItemId=(Q=U())==null?void 0:Q.id,E.emit()}),L||j(5,W),((ee=l.current)==null?void 0:ee.value)!==void 0){let Q=D??"";(K=(A=l.current).onValueChange)==null||K.call(A,Q);return}}E.emit()}},emit:()=>{s.current.forEach(T=>T())}}),[]),P=u.useMemo(()=>({value:(T,D,L)=>{var F;D!==((F=a.current.get(T))==null?void 0:F.value)&&(a.current.set(T,{value:D,keywords:L}),n.current.filtered.items.set(T,_(D,L)),j(2,()=>{$(),E.emit()}))},item:(T,D)=>(r.current.add(T),D&&(o.current.has(D)?o.current.get(D).add(T):o.current.set(D,new Set([T]))),j(3,()=>{q(),$(),n.current.value||H(),E.emit()}),()=>{a.current.delete(T),r.current.delete(T),n.current.filtered.items.delete(T);let L=U();j(4,()=>{q(),(L==null?void 0:L.getAttribute("id"))===T&&H(),E.emit()})}),group:T=>(o.current.has(T)||o.current.set(T,new Set),()=>{a.current.delete(T),o.current.delete(T)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:w,inputId:S,labelId:x,listInnerRef:k}),[]);function _(T,D){var L,F;let ee=(F=(L=l.current)==null?void 0:L.filter)!=null?F:eS;return T?ee(T,n.current.search,D):0}function $(){if(!n.current.search||l.current.shouldFilter===!1)return;let T=n.current.filtered.items,D=[];n.current.filtered.groups.forEach(F=>{let ee=o.current.get(F),A=0;ee.forEach(K=>{let Q=T.get(K);A=Math.max(Q,A)}),D.push([F,A])});let L=k.current;te().sort((F,ee)=>{var A,K;let Q=F.getAttribute("id"),ne=ee.getAttribute("id");return((A=T.get(ne))!=null?A:0)-((K=T.get(Q))!=null?K:0)}).forEach(F=>{let ee=F.closest(xs);ee?ee.appendChild(F.parentElement===ee?F:F.closest(`${xs} > *`)):L.appendChild(F.parentElement===L?F:F.closest(`${xs} > *`))}),D.sort((F,ee)=>ee[1]-F[1]).forEach(F=>{var ee;let A=(ee=k.current)==null?void 0:ee.querySelector(`${Xn}[${vn}="${encodeURIComponent(F[0])}"]`);A==null||A.parentElement.appendChild(A)})}function H(){let T=te().find(L=>L.getAttribute("aria-disabled")!=="true"),D=T==null?void 0:T.getAttribute(vn);E.setState("value",D||void 0)}function q(){var T,D,L,F;if(!n.current.search||l.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let ee=0;for(let A of r.current){let K=(D=(T=a.current.get(A))==null?void 0:T.value)!=null?D:"",Q=(F=(L=a.current.get(A))==null?void 0:L.keywords)!=null?F:[],ne=_(K,Q);n.current.filtered.items.set(A,ne),ne>0&&ee++}for(let[A,K]of o.current)for(let Q of K)if(n.current.filtered.items.get(Q)>0){n.current.filtered.groups.add(A);break}n.current.filtered.count=ee}function W(){var T,D,L;let F=U();F&&(((T=F.parentElement)==null?void 0:T.firstChild)===F&&((L=(D=F.closest(Xn))==null?void 0:D.querySelector(JN))==null||L.scrollIntoView({block:"nearest"})),F.scrollIntoView({block:"nearest"}))}function U(){var T;return(T=k.current)==null?void 0:T.querySelector(`${im}[aria-selected="true"]`)}function te(){var T;return Array.from(((T=k.current)==null?void 0:T.querySelectorAll(lm))||[])}function V(T){let D=te()[T];D&&E.setState("value",D.getAttribute(vn))}function X(T){var D;let L=U(),F=te(),ee=F.findIndex(K=>K===L),A=F[ee+T];(D=l.current)!=null&&D.loop&&(A=ee+T<0?F[F.length-1]:ee+T===F.length?F[0]:F[ee+T]),A&&E.setState("value",A.getAttribute(vn))}function R(T){let D=U(),L=D==null?void 0:D.closest(Xn),F;for(;L&&!F;)L=T>0?cS(L,Xn):uS(L,Xn),F=L==null?void 0:L.querySelector(lm);F?E.setState("value",F.getAttribute(vn)):X(T)}let O=()=>V(te().length-1),M=T=>{T.preventDefault(),T.metaKey?O():T.altKey?R(1):X(1)},Y=T=>{T.preventDefault(),T.metaKey?V(0):T.altKey?R(-1):X(-1)};return u.createElement(z.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:T=>{var D;(D=y.onKeyDown)==null||D.call(y,T);let L=T.nativeEvent.isComposing||T.keyCode===229;if(!(T.defaultPrevented||L))switch(T.key){case"n":case"j":{b&&T.ctrlKey&&M(T);break}case"ArrowDown":{M(T);break}case"p":case"k":{b&&T.ctrlKey&&Y(T);break}case"ArrowUp":{Y(T);break}case"Home":{T.preventDefault(),V(0);break}case"End":{T.preventDefault(),O();break}case"Enter":{T.preventDefault();let F=U();if(F){let ee=new Event(Cs);F.dispatchEvent(ee)}}}}},u.createElement("label",{"cmdk-label":"",htmlFor:P.inputId,id:P.labelId,style:mS},c),mo(e,T=>u.createElement(um.Provider,{value:E},u.createElement(cm.Provider,{value:P},T))))}),tS=u.forwardRef((e,t)=>{var n,r;let o=pe(),a=u.useRef(null),s=u.useContext(dm),l=Qn(),c=mm(e),d=(r=(n=c.current)==null?void 0:n.forceMount)!=null?r:s==null?void 0:s.forceMount;Ut(()=>{if(!d)return l.item(o,s==null?void 0:s.id)},[d]);let f=pm(o,a,[e.value,e.children,a],e.keywords),m=Ns(),h=Mt(j=>j.value&&j.value===f.current),p=Mt(j=>d||l.filter()===!1?!0:j.search?j.filtered.items.get(o)>0:!0);u.useEffect(()=>{let j=a.current;if(!(!j||e.disabled))return j.addEventListener(Cs,v),()=>j.removeEventListener(Cs,v)},[p,e.onSelect,e.disabled]);function v(){var j,E;g(),(E=(j=c.current).onSelect)==null||E.call(j,f.current)}function g(){m.setState("value",f.current,!0)}if(!p)return null;let{disabled:b,value:y,onSelect:w,forceMount:x,keywords:S,...k}=e;return u.createElement(z.div,{ref:et(a,t),...k,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!h,"data-disabled":!!b,"data-selected":!!h,onPointerMove:b||l.getDisablePointerSelection()?void 0:g,onClick:b?void 0:v},e.children)}),nS=u.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,s=pe(),l=u.useRef(null),c=u.useRef(null),d=pe(),f=Qn(),m=Mt(p=>o||f.filter()===!1?!0:p.search?p.filtered.groups.has(s):!0);Ut(()=>f.group(s),[]),pm(s,l,[e.value,e.heading,c]);let h=u.useMemo(()=>({id:s,forceMount:o}),[o]);return u.createElement(z.div,{ref:et(l,t),...a,"cmdk-group":"",role:"presentation",hidden:m?void 0:!0},n&&u.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},n),mo(e,p=>u.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?d:void 0},u.createElement(dm.Provider,{value:h},p))))}),rS=u.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=u.useRef(null),a=Mt(s=>!s.search);return!n&&!a?null:u.createElement(z.div,{ref:et(o,t),...r,"cmdk-separator":"",role:"separator"})}),oS=u.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=Ns(),s=Mt(d=>d.search),l=Mt(d=>d.selectedItemId),c=Qn();return u.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),u.createElement(z.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:o?e.value:s,onChange:d=>{o||a.setState("search",d.target.value),n==null||n(d.target.value)}})}),aS=u.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=u.useRef(null),s=u.useRef(null),l=Mt(d=>d.selectedItemId),c=Qn();return u.useEffect(()=>{if(s.current&&a.current){let d=s.current,f=a.current,m,h=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let p=d.offsetHeight;f.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return h.observe(d),()=>{cancelAnimationFrame(m),h.unobserve(d)}}},[]),u.createElement(z.div,{ref:et(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":r,id:c.listId},mo(e,d=>u.createElement("div",{ref:et(s,c.listInnerRef),"cmdk-list-sizer":""},d)))}),sS=u.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:s,...l}=e;return u.createElement(us,{open:n,onOpenChange:r},u.createElement(ds,{container:s},u.createElement(lo,{"cmdk-overlay":"",className:o}),u.createElement(co,{"aria-label":e.label,"cmdk-dialog":"",className:a},u.createElement(fm,{ref:t,...l}))))}),iS=u.forwardRef((e,t)=>Mt(n=>n.filtered.count===0)?u.createElement(z.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),lS=u.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return u.createElement(z.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},mo(e,s=>u.createElement("div",{"aria-hidden":!0},s)))}),je=Object.assign(fm,{List:aS,Item:tS,Input:oS,Group:nS,Separator:rS,Dialog:sS,Empty:iS,Loading:lS});function cS(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function uS(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function mm(e){let t=u.useRef(e);return Ut(()=>{t.current=e}),t}var Ut=typeof window>"u"?u.useEffect:u.useLayoutEffect;function bn(e){let t=u.useRef();return t.current===void 0&&(t.current=e()),t}function Mt(e){let t=Ns(),n=()=>e(t.snapshot());return u.useSyncExternalStore(t.subscribe,n,n)}function pm(e,t,n,r=[]){let o=u.useRef(),a=Qn();return Ut(()=>{var s;let l=(()=>{var d;for(let f of n){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():o.current}})(),c=r.map(d=>d.trim());a.value(e,l,c),(s=t.current)==null||s.setAttribute(vn,l),o.current=l}),o}var dS=()=>{let[e,t]=u.useState(),n=bn(()=>new Map);return Ut(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function fS(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function mo({asChild:e,children:t},n){return e&&u.isValidElement(t)?u.cloneElement(fS(t),{ref:t.ref},n(t.props.children)):n(t)}var mS={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const po=us,hm=lf,gm=ds,pS=uo,Ss=u.forwardRef(({className:e,...t},n)=>i.jsx(lo,{ref:n,className:I("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}));Ss.displayName=lo.displayName;const Zn=u.forwardRef(({className:e,children:t,showCloseButton:n=!0,...r},o)=>i.jsxs(gm,{children:[i.jsx(Ss,{}),i.jsxs(co,{ref:o,className:I("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),...r,children:[t,n&&i.jsxs(uo,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[i.jsx(ct,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Zn.displayName=co.displayName;const ho=({className:e,...t})=>i.jsx("div",{className:I("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ho.displayName="DialogHeader";const vm=({className:e,...t})=>i.jsx("div",{className:I("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});vm.displayName="DialogFooter";const go=u.forwardRef(({className:e,...t},n)=>i.jsx(fs,{ref:n,className:I("text-lg font-semibold leading-none tracking-tight",e),...t}));go.displayName=fs.displayName;const vo=u.forwardRef(({className:e,...t},n)=>i.jsx(ms,{ref:n,className:I("text-sm text-muted-foreground",e),...t}));vo.displayName=ms.displayName;const bo=u.forwardRef(({className:e,...t},n)=>i.jsx(je,{ref:n,className:I("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));bo.displayName=je.displayName;const hS=({children:e,...t})=>i.jsx(po,{...t,children:i.jsx(Zn,{className:"overflow-hidden p-0 shadow-lg",children:i.jsx(bo,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Es=u.forwardRef(({className:e,...t},n)=>i.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[i.jsx(oa,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),i.jsx(je.Input,{ref:n,className:I("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Es.displayName=je.Input.displayName;const ks=u.forwardRef(({className:e,...t},n)=>i.jsx(je.List,{ref:n,className:I("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));ks.displayName=je.List.displayName;const Ps=u.forwardRef((e,t)=>i.jsx(je.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Ps.displayName=je.Empty.displayName;const wo=u.forwardRef(({className:e,...t},n)=>i.jsx(je.Group,{ref:n,className:I("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));wo.displayName=je.Group.displayName;const Ts=u.forwardRef(({className:e,...t},n)=>i.jsx(je.Separator,{ref:n,className:I("-mx-1 h-px bg-border",e),...t}));Ts.displayName=je.Separator.displayName;const wn=u.forwardRef(({className:e,...t},n)=>i.jsx(je.Item,{ref:n,className:I("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));wn.displayName=je.Item.displayName;const bm=({className:e,...t})=>i.jsx("span",{className:I("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});bm.displayName="CommandShortcut";const wm=C.forwardRef((e,t)=>{const{currencySymbol:n="$",decimalSeparator:r=".",thousandSeparator:o=",",onValueChange:a,className:s,value:l=0,...c}=e,d=C.useRef(null);C.useImperativeHandle(t,()=>d.current);const[f,m]=C.useState(""),h=g=>{const b=g.toFixed(2).split("."),y=b[0].replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${n} ${y}${r}${b[1]}`},p=g=>{const b=g.target.value,y=parseFloat(b.replace(/\D/g,""))/100;m(h(y)),a(y),d.current&&window.requestAnimationFrame(()=>{var w;(w=d.current)==null||w.setSelectionRange(d.current.value.length,d.current.value.length)})},v=()=>{d.current&&d.current.setSelectionRange(d.current.value.length,d.current.value.length)};return C.useEffect(()=>{m(h(+l))},[l]),i.jsx(ao,{type:"text",inputMode:"numeric",value:f,ref:d,onChange:p,onFocus:v,onClick:v,placeholder:`${n} 0${r}00`,className:s,...c})});wm.displayName="CurrencyInput";var gS="Label",ym=u.forwardRef((e,t)=>i.jsx(z.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())}}));ym.displayName=gS;var xm=ym;const vS=Ft("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Cm=u.forwardRef(({className:e,...t},n)=>i.jsx(xm,{ref:n,className:I(vS(),e),...t}));Cm.displayName=xm.displayName;var yo="Popover",[Nm,yT]=be(yo,[Ct]),Jn=Ct(),[bS,jt]=Nm(yo),Sm=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,l=Jn(t),c=u.useRef(null),[d,f]=u.useState(!1),[m,h]=ye({prop:r,defaultProp:o??!1,onChange:a,caller:yo});return i.jsx(On,{...l,children:i.jsx(bS,{scope:t,contentId:pe(),triggerRef:c,open:m,onOpenChange:h,onOpenToggle:u.useCallback(()=>h(p=>!p),[h]),hasCustomAnchor:d,onCustomAnchorAdd:u.useCallback(()=>f(!0),[]),onCustomAnchorRemove:u.useCallback(()=>f(!1),[]),modal:s,children:n})})};Sm.displayName=yo;var Em="PopoverAnchor",km=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=jt(Em,n),a=Jn(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return u.useEffect(()=>(s(),()=>l()),[s,l]),i.jsx($n,{...a,...r,ref:t})});km.displayName=Em;var Pm="PopoverTrigger",Tm=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=jt(Pm,n),a=Jn(n),s=re(t,o.triggerRef),l=i.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Im(o.open),...r,ref:s,onClick:B(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:i.jsx($n,{asChild:!0,...a,children:l})});Tm.displayName=Pm;var Ms="PopoverPortal",[wS,yS]=Nm(Ms,{forceMount:void 0}),Mm=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=jt(Ms,t);return i.jsx(wS,{scope:t,forceMount:n,children:i.jsx(xe,{present:n||a.open,children:i.jsx(Ln,{asChild:!0,container:o,children:r})})})};Mm.displayName=Ms;var yn="PopoverContent",jm=u.forwardRef((e,t)=>{const n=yS(yn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=jt(yn,e.__scopePopover);return i.jsx(xe,{present:r||a.open,children:a.modal?i.jsx(CS,{...o,ref:t}):i.jsx(NS,{...o,ref:t})})});jm.displayName=yn;var xS=vt("PopoverContent.RemoveScroll"),CS=u.forwardRef((e,t)=>{const n=jt(yn,e.__scopePopover),r=u.useRef(null),o=re(t,r),a=u.useRef(!1);return u.useEffect(()=>{const s=r.current;if(s)return Or(s)},[]),i.jsx(Bn,{as:xS,allowPinchZoom:!0,children:i.jsx(_m,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),a.current||(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:B(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),NS=u.forwardRef((e,t)=>{const n=jt(yn,e.__scopePopover),r=u.useRef(!1),o=u.useRef(!1);return i.jsx(_m,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,l;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=n.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),_m=u.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...m}=e,h=jt(yn,n),p=Jn(n);return br(),i.jsx(An,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:i.jsx(Bt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1),children:i.jsx(Mr,{"data-state":Im(h.open),role:"dialog",id:h.contentId,...p,...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)"}})})})}),Am="PopoverClose",SS=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=jt(Am,n);return i.jsx(z.button,{type:"button",...r,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});SS.displayName=Am;var ES="PopoverArrow",kS=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Jn(n);return i.jsx(jr,{...o,...r,ref:t})});kS.displayName=ES;function Im(e){return e?"open":"closed"}var PS=Sm,TS=km,MS=Tm,jS=Mm,Rm=jm;const Dm=PS,Om=MS,_S=TS,js=u.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>i.jsx(jS,{children:i.jsx(Rm,{ref:o,align:t,sideOffset:n,className:I("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})}));js.displayName=Rm.displayName;var AS="Separator",$m="horizontal",IS=["horizontal","vertical"],Lm=u.forwardRef((e,t)=>{const{decorative:n,orientation:r=$m,...o}=e,a=RS(r)?r:$m,l=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return i.jsx(z.div,{"data-orientation":a,...l,...o,ref:t})});Lm.displayName=AS;function RS(e){return IS.includes(e)}var Fm=Lm;const xo=u.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>i.jsx(Fm,{ref:o,decorative:n,orientation:t,className:I("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));xo.displayName=Fm.displayName;const Bm=Ft("mx-1",{variants:{variant:{default:"border-foreground/10 text-foreground bg-card hover:bg-card/80",secondary:"border-foreground/10 bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",inverted:"inverted"}},defaultVariants:{variant:"default"}}),zm=u.forwardRef(({options:e,onValueChange:t,variant:n,defaultValue:r=[],placeholder:o="Select options",maxCount:a=3,modalPopover:s=!1,asChild:l=!1,className:c,...d},f)=>{const[m,h]=u.useState(r),[p,v]=u.useState(!1),[g,b]=u.useState(!1),y=E=>{if(E.key==="Enter")v(!0);else if(E.key==="Backspace"&&!E.currentTarget.value){const P=[...m];P.pop(),h(P),t(P)}},w=E=>{const P=m.includes(E)?m.filter(_=>_!==E):[...m,E];h(P),t(P)},x=()=>{h([]),t([])},S=()=>{v(E=>!E)},k=()=>{const E=m.slice(0,a);h(E),t(E)},j=()=>{if(m.length===e.length)x();else{const E=e.map(P=>P.value);h(E),t(E)}};return i.jsxs(Dm,{open:p,onOpenChange:v,modal:s,children:[i.jsx(Om,{asChild:!0,children:i.jsx(fe,{ref:f,...d,onClick:S,className:I("flex w-full p-1 rounded-md border min-h-10 h-auto items-center justify-between bg-inherit hover:bg-inherit [&_svg]:pointer-events-auto",c),children:m.length>0?i.jsxs("div",{className:"flex justify-between items-center w-full",children:[i.jsxs("div",{className:"flex flex-wrap items-center",children:[m.slice(0,a).map(E=>{const P=e.find(_=>_.value===E);return i.jsxs(on,{className:I(Bm({variant:n})),children:[P==null?void 0:P.label,i.jsx(ra,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:_=>{_.stopPropagation(),w(E)}})]},E)}),m.length>a&&i.jsxs(on,{className:I("bg-transparent text-foreground border-foreground/1 hover:bg-transparent",Bm({variant:n})),children:[`+ ${m.length-a} more`,i.jsx(ra,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:E=>{E.stopPropagation(),k()}})]})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx(ct,{className:"h-4 mx-2 cursor-pointer text-muted-foreground",onClick:E=>{E.stopPropagation(),x()}}),i.jsx(xo,{orientation:"vertical",className:"flex min-h-6 h-full"}),i.jsx(rn,{className:"h-4 mx-2 cursor-pointer text-muted-foreground"})]})]}):i.jsxs("div",{className:"flex items-center justify-between w-full mx-auto",children:[i.jsx("span",{className:"text-sm text-muted-foreground mx-3",children:o}),i.jsx(rn,{className:"h-4 cursor-pointer text-muted-foreground mx-2"})]})})}),i.jsx(js,{className:"w-auto p-0",align:"start",onEscapeKeyDown:()=>v(!1),children:i.jsxs(bo,{children:[i.jsx(Es,{placeholder:"Search...",onKeyDown:y}),i.jsxs(ks,{children:[i.jsx(Ps,{children:"No results found."}),i.jsxs(wo,{children:[i.jsxs(wn,{onSelect:j,className:"cursor-pointer",children:[i.jsx("div",{className:I("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",m.length===e.length?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:i.jsx(jn,{className:"h-4 w-4"})}),i.jsx("span",{children:"(Select All)"})]},"all"),e.map(E=>{const P=m.includes(E.value);return i.jsxs(wn,{onSelect:()=>w(E.value),className:"cursor-pointer",children:[i.jsx("div",{className:I("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",P?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:i.jsx(jn,{className:"h-4 w-4"})}),i.jsx("span",{children:E.label})]},E.value)})]}),i.jsx(Ts,{}),i.jsx(wo,{children:i.jsxs("div",{className:"flex items-center justify-between",children:[m.length>0&&i.jsxs(i.Fragment,{children:[i.jsx(wn,{onSelect:x,className:"flex-1 justify-center cursor-pointer",children:"Clear"}),i.jsx(xo,{orientation:"vertical",className:"flex min-h-6 h-full"})]}),i.jsx(wn,{onSelect:()=>v(!1),className:"flex-1 justify-center cursor-pointer max-w-full",children:"Close"})]})})]})]})})]})});zm.displayName="MultiSelect";var Yt="NavigationMenu",[_s,Vm,DS]=an(Yt),[As,OS,$S]=an(Yt),[Is,xT]=be(Yt,[DS,$S]),[LS,Fe]=Is(Yt),[FS,BS]=Is(Yt),Wm=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:s=200,skipDelayDuration:l=300,orientation:c="horizontal",dir:d,...f}=e,[m,h]=u.useState(null),p=re(t,_=>h(_)),v=bt(d),g=u.useRef(0),b=u.useRef(0),y=u.useRef(0),[w,x]=u.useState(!0),[S,k]=ye({prop:r,onChange:_=>{const $=_!=="",H=l>0;$?(window.clearTimeout(y.current),H&&x(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>x(!0),l)),o==null||o(_)},defaultProp:a??"",caller:Yt}),j=u.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>k(""),150)},[k]),E=u.useCallback(_=>{window.clearTimeout(b.current),k(_)},[k]),P=u.useCallback(_=>{S===_?window.clearTimeout(b.current):g.current=window.setTimeout(()=>{window.clearTimeout(b.current),k(_)},s)},[S,k,s]);return u.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(b.current),window.clearTimeout(y.current)},[]),i.jsx(Hm,{scope:n,isRootMenu:!0,value:S,dir:v,orientation:c,rootNavigationMenu:m,onTriggerEnter:_=>{window.clearTimeout(g.current),w?P(_):E(_)},onTriggerLeave:()=>{window.clearTimeout(g.current),j()},onContentEnter:()=>window.clearTimeout(b.current),onContentLeave:j,onItemSelect:_=>{k($=>$===_?"":_)},onItemDismiss:()=>k(""),children:i.jsx(z.nav,{"aria-label":"Main","data-orientation":c,dir:v,...f,ref:p})})});Wm.displayName=Yt;var Rs="NavigationMenuSub",zS=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",...l}=e,c=Fe(Rs,n),[d,f]=ye({prop:r,onChange:o,defaultProp:a??"",caller:Rs});return i.jsx(Hm,{scope:n,isRootMenu:!1,value:d,dir:c.dir,orientation:s,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:m=>f(m),onItemSelect:m=>f(m),onItemDismiss:()=>f(""),children:i.jsx(z.div,{"data-orientation":s,...l,ref:t})})});zS.displayName=Rs;var Hm=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:a,children:s,value:l,onItemSelect:c,onItemDismiss:d,onTriggerEnter:f,onTriggerLeave:m,onContentEnter:h,onContentLeave:p}=e,[v,g]=u.useState(null),[b,y]=u.useState(new Map),[w,x]=u.useState(null);return i.jsx(LS,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:Yn(l),baseId:pe(),dir:o,orientation:a,viewport:v,onViewportChange:g,indicatorTrack:w,onIndicatorTrackChange:x,onTriggerEnter:Se(f),onTriggerLeave:Se(m),onContentEnter:Se(h),onContentLeave:Se(p),onItemSelect:Se(c),onItemDismiss:Se(d),onViewportContentChange:u.useCallback((S,k)=>{y(j=>(j.set(S,k),new Map(j)))},[]),onViewportContentRemove:u.useCallback(S=>{y(k=>k.has(S)?(k.delete(S),new Map(k)):k)},[]),children:i.jsx(_s.Provider,{scope:t,children:i.jsx(FS,{scope:t,items:b,children:s})})})},Gm="NavigationMenuList",Um=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Fe(Gm,n),a=i.jsx(z.ul,{"data-orientation":o.orientation,...r,ref:t});return i.jsx(z.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:i.jsx(_s.Slot,{scope:n,children:o.isRootMenu?i.jsx(rp,{asChild:!0,children:a}):a})})});Um.displayName=Gm;var Ym="NavigationMenuItem",[VS,Km]=Is(Ym),qm=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,a=pe(),s=r||a||"LEGACY_REACT_AUTO_VALUE",l=u.useRef(null),c=u.useRef(null),d=u.useRef(null),f=u.useRef(()=>{}),m=u.useRef(!1),h=u.useCallback((v="start")=>{if(l.current){f.current();const g=Ls(l.current);g.length&&Fs(v==="start"?g:g.reverse())}},[]),p=u.useCallback(()=>{if(l.current){const v=Ls(l.current);v.length&&(f.current=qS(v))}},[]);return i.jsx(VS,{scope:n,value:s,triggerRef:c,contentRef:l,focusProxyRef:d,wasEscapeCloseRef:m,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:p,onContentFocusOutside:p,children:i.jsx(z.li,{...o,ref:t})})});qm.displayName=Ym;var Ds="NavigationMenuTrigger",Xm=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=Fe(Ds,e.__scopeNavigationMenu),s=Km(Ds,e.__scopeNavigationMenu),l=u.useRef(null),c=re(l,s.triggerRef,t),d=sp(a.baseId,s.value),f=ip(a.baseId,s.value),m=u.useRef(!1),h=u.useRef(!1),p=s.value===a.value;return i.jsxs(i.Fragment,{children:[i.jsx(_s.ItemSlot,{scope:n,value:s.value,children:i.jsx(ap,{asChild:!0,children:i.jsx(z.button,{id:d,disabled:r,"data-disabled":r?"":void 0,"data-state":zs(p),"aria-expanded":p,"aria-controls":f,...o,ref:c,onPointerEnter:B(e.onPointerEnter,()=>{h.current=!1,s.wasEscapeCloseRef.current=!1}),onPointerMove:B(e.onPointerMove,No(()=>{r||h.current||s.wasEscapeCloseRef.current||m.current||(a.onTriggerEnter(s.value),m.current=!0)})),onPointerLeave:B(e.onPointerLeave,No(()=>{r||(a.onTriggerLeave(),m.current=!1)})),onClick:B(e.onClick,()=>{a.onItemSelect(s.value),h.current=p}),onKeyDown:B(e.onKeyDown,v=>{const b={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];p&&v.key===b&&(s.onEntryKeyDown(),v.preventDefault())})})})}),p&&i.jsxs(i.Fragment,{children:[i.jsx(Au,{"aria-hidden":!0,tabIndex:0,ref:s.focusProxyRef,onFocus:v=>{const g=s.contentRef.current,b=v.relatedTarget,y=b===l.current,w=g==null?void 0:g.contains(b);(y||!w)&&s.onFocusProxyEnter(y?"start":"end")}}),a.viewport&&i.jsx("span",{"aria-owns":f})]})]})});Xm.displayName=Ds;var WS="NavigationMenuLink",Qm="navigationMenu.linkSelect",Zm=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return i.jsx(ap,{asChild:!0,children:i.jsx(z.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...a,ref:t,onClick:B(e.onClick,s=>{const l=s.target,c=new CustomEvent(Qm,{bubbles:!0,cancelable:!0});if(l.addEventListener(Qm,d=>o==null?void 0:o(d),{once:!0}),vr(l,c),!c.defaultPrevented&&!s.metaKey){const d=new CustomEvent(Co,{bubbles:!0,cancelable:!0});vr(l,d)}},{checkForDefaultPrevented:!1})})})});Zm.displayName=WS;var Os="NavigationMenuIndicator",Jm=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Fe(Os,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?ar.createPortal(i.jsx(xe,{present:n||a,children:i.jsx(HS,{...r,ref:t})}),o.indicatorTrack):null});Jm.displayName=Os;var HS=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Fe(Os,n),a=Vm(n),[s,l]=u.useState(null),[c,d]=u.useState(null),f=o.orientation==="horizontal",m=!!o.value;u.useEffect(()=>{var g;const v=(g=a().find(b=>b.value===o.value))==null?void 0:g.ref.current;v&&l(v)},[a,o.value]);const h=()=>{s&&d({size:f?s.offsetWidth:s.offsetHeight,offset:f?s.offsetLeft:s.offsetTop})};return Bs(s,h),Bs(o.indicatorTrack,h),c?i.jsx(z.div,{"aria-hidden":!0,"data-state":m?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...f?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...r.style}}):null}),xn="NavigationMenuContent",ep=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Fe(xn,e.__scopeNavigationMenu),a=Km(xn,e.__scopeNavigationMenu),s=re(a.contentRef,t),l=a.value===o.value,c={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return o.viewport?i.jsx(GS,{forceMount:n,...c,ref:s}):i.jsx(xe,{present:n||l,children:i.jsx(tp,{"data-state":zs(l),...c,ref:s,onPointerEnter:B(e.onPointerEnter,o.onContentEnter),onPointerLeave:B(e.onPointerLeave,No(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...c.style}})})});ep.displayName=xn;var GS=u.forwardRef((e,t)=>{const n=Fe(xn,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return ge(()=>{r(e.value,{ref:t,...e})},[e,t,r]),ge(()=>()=>o(e.value),[e.value,o]),null}),Co="navigationMenu.rootContentDismiss",tp=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:s,onRootContentClose:l,onContentFocusOutside:c,...d}=e,f=Fe(xn,n),m=u.useRef(null),h=re(m,t),p=sp(f.baseId,r),v=ip(f.baseId,r),g=Vm(n),b=u.useRef(null),{onItemDismiss:y}=f;u.useEffect(()=>{const x=m.current;if(f.isRootMenu&&x){const S=()=>{var k;y(),l(),x.contains(document.activeElement)&&((k=o.current)==null||k.focus())};return x.addEventListener(Co,S),()=>x.removeEventListener(Co,S)}},[f.isRootMenu,e.value,o,y,l]);const w=u.useMemo(()=>{const S=g().map($=>$.value);f.dir==="rtl"&&S.reverse();const k=S.indexOf(f.value),j=S.indexOf(f.previousValue),E=r===f.value,P=j===S.indexOf(r);if(!E&&!P)return b.current;const _=(()=>{if(k!==j){if(E&&j!==-1)return k>j?"from-end":"from-start";if(P&&k!==-1)return k>j?"to-start":"to-end"}return null})();return b.current=_,_},[f.previousValue,f.value,f.dir,g,r]);return i.jsx(rp,{asChild:!0,children:i.jsx(Bt,{id:v,"aria-labelledby":p,"data-motion":w,"data-orientation":f.orientation,...d,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var S;const x=new Event(Co,{bubbles:!0,cancelable:!0});(S=m.current)==null||S.dispatchEvent(x)},onFocusOutside:B(e.onFocusOutside,x=>{var k;c();const S=x.target;(k=f.rootNavigationMenu)!=null&&k.contains(S)&&x.preventDefault()}),onPointerDownOutside:B(e.onPointerDownOutside,x=>{var E;const S=x.target,k=g().some(P=>{var _;return(_=P.ref.current)==null?void 0:_.contains(S)}),j=f.isRootMenu&&((E=f.viewport)==null?void 0:E.contains(S));(k||j||!f.isRootMenu)&&x.preventDefault()}),onKeyDown:B(e.onKeyDown,x=>{var j;const S=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!S){const E=Ls(x.currentTarget),P=document.activeElement,_=E.findIndex(q=>q===P),H=x.shiftKey?E.slice(0,_).reverse():E.slice(_+1,E.length);Fs(H)?x.preventDefault():(j=a.current)==null||j.focus()}}),onEscapeKeyDown:B(e.onEscapeKeyDown,x=>{s.current=!0})})})}),$s="NavigationMenuViewport",np=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=!!Fe($s,e.__scopeNavigationMenu).value;return i.jsx(xe,{present:n||a,children:i.jsx(US,{...r,ref:t})})});np.displayName=$s;var US=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,a=Fe($s,n),s=re(t,a.onViewportChange),l=BS(xn,e.__scopeNavigationMenu),[c,d]=u.useState(null),[f,m]=u.useState(null),h=c?(c==null?void 0:c.width)+"px":void 0,p=c?(c==null?void 0:c.height)+"px":void 0,v=!!a.value,g=v?a.value:a.previousValue;return Bs(f,()=>{f&&d({width:f.offsetWidth,height:f.offsetHeight})}),i.jsx(z.div,{"data-state":zs(v),"data-orientation":a.orientation,...o,ref:s,style:{pointerEvents:!v&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":p,...o.style},onPointerEnter:B(e.onPointerEnter,a.onContentEnter),onPointerLeave:B(e.onPointerLeave,No(a.onContentLeave)),children:Array.from(l.items).map(([y,{ref:w,forceMount:x,...S}])=>{const k=g===y;return i.jsx(xe,{present:x||k,children:i.jsx(tp,{...S,ref:et(w,j=>{k&&j&&m(j)})})},y)})})}),YS="FocusGroup",rp=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Fe(YS,n);return i.jsx(As.Provider,{scope:n,children:i.jsx(As.Slot,{scope:n,children:i.jsx(z.div,{dir:o.dir,...r,ref:t})})})}),op=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],KS="FocusGroupItem",ap=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=OS(n),a=Fe(KS,n);return i.jsx(As.ItemSlot,{scope:n,children:i.jsx(z.button,{...r,ref:t,onKeyDown:B(e.onKeyDown,s=>{if(["Home","End",...op].includes(s.key)){let c=o().map(m=>m.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(s.key)&&c.reverse(),op.includes(s.key)){const m=c.indexOf(s.currentTarget);c=c.slice(m+1)}setTimeout(()=>Fs(c)),s.preventDefault()}})})})});function Ls(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 Fs(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function qS(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Bs(e,t){const n=Se(t);ge(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function zs(e){return e?"open":"closed"}function sp(e,t){return`${e}-trigger-${t}`}function ip(e,t){return`${e}-content-${t}`}function No(e){return t=>t.pointerType==="mouse"?e(t):void 0}var lp=Wm,cp=Um,XS=qm,up=Xm,QS=Zm,dp=Jm,fp=ep,mp=np;const pp=u.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(lp,{ref:r,className:I("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,i.jsx(Vs,{})]}));pp.displayName=lp.displayName;const hp=u.forwardRef(({className:e,...t},n)=>i.jsx(cp,{ref:n,className:I("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));hp.displayName=cp.displayName;const ZS=XS,gp=Ft("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),vp=u.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(up,{ref:r,className:I(gp(),"group",e),...n,children:[t," ",i.jsx(rn,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));vp.displayName=up.displayName;const bp=u.forwardRef(({className:e,...t},n)=>i.jsx(fp,{ref:n,className:I("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...t}));bp.displayName=fp.displayName;const JS=QS,Vs=u.forwardRef(({className:e,...t},n)=>i.jsx("div",{className:I("absolute left-0 top-full flex justify-center"),children:i.jsx(mp,{className:I("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:n,...t})}));Vs.displayName=mp.displayName;const wp=u.forwardRef(({className:e,...t},n)=>i.jsx(dp,{ref:n,className:I("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:i.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));wp.displayName=dp.displayName;const yp=({className:e,...t})=>i.jsx("nav",{role:"navigation","aria-label":"pagination",className:I("mx-auto flex w-full justify-center",e),...t});yp.displayName="Pagination";const xp=u.forwardRef(({className:e,...t},n)=>i.jsx("ul",{ref:n,className:I("flex flex-row items-center gap-1",e),...t}));xp.displayName="PaginationContent";const Cp=u.forwardRef(({className:e,...t},n)=>i.jsx("li",{ref:n,className:I("",e),...t}));Cp.displayName="PaginationItem";const So=({className:e,isActive:t,size:n="icon",...r})=>i.jsx(fe,{"aria-current":t?"page":void 0,className:I(fr({variant:t?"default":"outline",rounded:!1,size:n}),t?"text-primary-foreground":"text-foreground",e),...r,children:r.children});So.displayName="PaginationLink";const Np=({className:e,...t})=>i.jsx(So,{"aria-label":"Previous page",className:I("gap-1",e),...t,children:i.jsx(gr,{className:"h-4 w-4"})});Np.displayName="PaginationPrevious";const Sp=({className:e,...t})=>i.jsx(So,{"aria-label":"Next page",className:I("gap-1",e),...t,children:i.jsx(_n,{className:"h-4 w-4"})});Sp.displayName="PaginationNext";const Ep=({className:e,...t})=>i.jsxs("span",{"aria-hidden":!0,className:I("flex h-9 w-9 items-center justify-center",e),...t,children:[i.jsx(lw,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"More pages"})]});Ep.displayName="PaginationEllipsis";var Ws="Progress",Hs=100,[eE,CT]=be(Ws),[tE,nE]=eE(Ws),kp=u.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=rE,...s}=e;(o||o===0)&&!jp(o)&&console.error(oE(`${o}`,"Progress"));const l=jp(o)?o:Hs;r!==null&&!_p(r,l)&&console.error(aE(`${r}`,"Progress"));const c=_p(r,l)?r:null,d=Eo(c)?a(c,l):void 0;return i.jsx(tE,{scope:n,value:c,max:l,children:i.jsx(z.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":Eo(c)?c:void 0,"aria-valuetext":d,role:"progressbar","data-state":Mp(c,l),"data-value":c??void 0,"data-max":l,...s,ref:t})})});kp.displayName=Ws;var Pp="ProgressIndicator",Tp=u.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=nE(Pp,n);return i.jsx(z.div,{"data-state":Mp(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});Tp.displayName=Pp;function rE(e,t){return`${Math.round(e/t*100)}%`}function Mp(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Eo(e){return typeof e=="number"}function jp(e){return Eo(e)&&!isNaN(e)&&e>0}function _p(e,t){return Eo(e)&&!isNaN(e)&&e<=t&&e>=0}function oE(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Hs}\`.`}function aE(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
294
|
+
*/var $f;function uN(){return $f||($f=1,process.env.NODE_ENV!=="production"&&function(){function e(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}function t(p,v){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=v();if(!m){var b=v();a(g,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}b=s({inst:{value:g,getSnapshot:v}});var y=b[0].inst,w=b[1];return c(function(){y.value=g,y.getSnapshot=v,n(y)&&w({inst:y})},[p,g,v]),l(function(){return n(y)&&w({inst:y}),p(function(){n(y)&&w({inst:y})})},[p]),d(g),g}function n(p){var v=p.getSnapshot;p=p.value;try{var g=v();return!a(p,g)}catch{return!0}}function r(p,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=C,a=typeof Object.is=="function"?Object.is:e,s=o.useState,l=o.useEffect,c=o.useLayoutEffect,d=o.useDebugValue,f=!1,m=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;gs.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),gs}var Lf;function dN(){return Lf||(Lf=1,process.env.NODE_ENV==="production"?fo.exports=cN():fo.exports=uN()),fo.exports}var fN=dN();function mN(){return fN.useSyncExternalStore(pN,()=>!0,()=>!1)}function pN(){return()=>{}}var vs="Avatar",[hN,kT]=be(vs),[gN,Ff]=hN(vs),Bf=u.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=u.useState("idle");return i.jsx(gN,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:i.jsx(z.span,{...r,ref:t})})});Bf.displayName=vs;var zf="AvatarImage",Vf=u.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=Ff(zf,n),l=vN(r,a),c=Se(d=>{o(d),s.onImageLoadingStatusChange(d)});return ge(()=>{l!=="idle"&&c(l)},[l,c]),l==="loaded"?i.jsx(z.img,{...a,ref:t,src:r}):null});Vf.displayName=zf;var Wf="AvatarFallback",Hf=u.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Ff(Wf,n),[s,l]=u.useState(r===void 0);return u.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>l(!0),r);return()=>window.clearTimeout(c)}},[r]),s&&a.imageLoadingStatus!=="loaded"?i.jsx(z.span,{...o,ref:t}):null});Hf.displayName=Wf;function Gf(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function vN(e,{referrerPolicy:t,crossOrigin:n}){const r=mN(),o=u.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,l]=u.useState(()=>Gf(a,e));return ge(()=>{l(Gf(a,e))},[a,e]),ge(()=>{const c=m=>()=>{l(m)};if(!a)return;const d=c("loaded"),f=c("error");return a.addEventListener("load",d),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",d),a.removeEventListener("error",f)}},[a,n,t]),s}var Uf=Bf,Yf=Vf,Kf=Hf;const qf=u.forwardRef(({className:e,...t},n)=>i.jsx(Uf,{ref:n,className:A("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));qf.displayName=Uf.displayName;const Xf=u.forwardRef(({className:e,...t},n)=>i.jsx(Yf,{ref:n,className:A("aspect-square h-full w-full",e),...t}));Xf.displayName=Yf.displayName;const Qf=u.forwardRef(({className:e,...t},n)=>i.jsx(Kf,{ref:n,className:A("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Qf.displayName=Kf.displayName;const bN={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"}},wN=(e,t,n)=>{let r;const o=bN[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},yN={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},xN={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},CN={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},NN={date:Jt({formats:yN,defaultWidth:"full"}),time:Jt({formats:xN,defaultWidth:"full"}),dateTime:Jt({formats:CN,defaultWidth:"full"})},SN={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"},EN=(e,t,n,r)=>{const o=SN[e];return typeof o=="function"?o(t):o},kN={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},PN={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},TN={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"]},MN={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"]},jN={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"}},_N={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"}},AN={ordinalNumber:(e,t)=>{const n=Number(e);return(t==null?void 0:t.unit)==="week"?n+"ª":n+"º"},era:Ze({values:kN,defaultWidth:"wide"}),quarter:Ze({values:PN,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ze({values:TN,defaultWidth:"wide"}),day:Ze({values:MN,defaultWidth:"wide"}),dayPeriod:Ze({values:jN,defaultWidth:"wide",formattingValues:_N,defaultFormattingWidth:"wide"})},IN=/^(\d+)[ºªo]?/i,RN=/\d+/i,DN={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},ON={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},$N={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},LN={any:[/1/i,/2/i,/3/i,/4/i]},FN={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},BN={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]},zN={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},VN={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]},WN={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},HN={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}},GN={ordinalNumber:Ti({matchPattern:IN,parsePattern:RN,valueCallback:e=>parseInt(e,10)}),era:Je({matchPatterns:DN,defaultMatchWidth:"wide",parsePatterns:ON,defaultParseWidth:"any"}),quarter:Je({matchPatterns:$N,defaultMatchWidth:"wide",parsePatterns:LN,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Je({matchPatterns:FN,defaultMatchWidth:"wide",parsePatterns:BN,defaultParseWidth:"any"}),day:Je({matchPatterns:zN,defaultMatchWidth:"wide",parsePatterns:VN,defaultParseWidth:"any"}),dayPeriod:Je({matchPatterns:WN,defaultMatchWidth:"any",parsePatterns:HN,defaultParseWidth:"any"})},UN={code:"pt-BR",formatDistance:wN,formatLong:NN,formatRelative:EN,localize:AN,match:GN,options:{weekStartsOn:0,firstWeekContainsDate:1}},YN=({selectedDate:e,onChange:t,language:n="enUS"})=>{const[r,o]=C.useState(e||new Date),s={ptBR:UN,enUS:Uo}[n],l=()=>{o(p=>eb(p))},c=()=>{o(p=>Bi(p,1))},d=p=>{t&&t(p)},f=Array.from({length:Jv(r)}).map((p,v)=>new Date(r.getFullYear(),r.getMonth(),v+1)),m=Zv(r).getDay(),h=Array.from({length:7}).map((p,v)=>Yo(new Date(2021,0,v+3),"EEEEEE",{locale:s}));return i.jsxs("div",{className:"max-w-sm mx-auto p-4 border rounded shadow",role:"application","aria-label":"Calendar",children:[i.jsxs("div",{className:"flex justify-between items-center mb-4",children:[i.jsx("button",{className:"px-2 py-1 bg-gray-200 rounded hover:bg-gray-300",onClick:l,"aria-label":"Previous Month",children:i.jsx(gr,{})}),i.jsx("h2",{className:"text-lg font-bold","aria-live":"polite",children:Yo(r,"MMMM yyyy",{locale:s})}),i.jsx("button",{className:"px-2 py-1 bg-gray-200 rounded hover:bg-gray-300",onClick:c,"aria-label":"Next Month",children:i.jsx(An,{})})]}),i.jsxs("div",{className:"grid grid-cols-7 gap-2",children:[h.map((p,v)=>i.jsx("div",{className:"text-center font-medium","aria-hidden":"true",children:p},v)),Array.from({length:m}).map((p,v)=>i.jsx("div",{className:"","aria-hidden":"true"},`empty-${v}`)),f.map(p=>i.jsx("button",{className:`p-2 rounded hover:bg-blue-100 ${e&&p.toDateString()===e.toDateString()&&"bg-blue-200"}`,onClick:()=>d(p),"aria-label":Yo(p,"MMMM do yyyy",{locale:s}),"aria-pressed":e&&p.toDateString()===e.toDateString()?"true":"false",children:p.getDate()},p.toISOString()))]})]})},Zf=u.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:A("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Zf.displayName="Card";const Jf=u.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:A("flex flex-col space-y-1.5 p-6",e),...t}));Jf.displayName="CardHeader";const em=u.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:A("font-semibold leading-none tracking-tight pb-4",e),...t}));em.displayName="CardTitle";const tm=u.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:A("text-sm text-muted-foreground",e),...t}));tm.displayName="CardDescription";const nm=u.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:A("p-6 py-0",e),...t}));nm.displayName="CardContent";const rm=u.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:A("flex items-center p-6 pt-6",e),...t}));rm.displayName="CardFooter";var om=1,KN=.9,qN=.8,XN=.17,bs=.1,ws=.999,QN=.9999,ZN=.99,JN=/[\\\/_+.#"@\[\(\{&]/,eS=/[\\\/_+.#"@\[\(\{&]/g,tS=/[\s-]/,am=/[\s-]/g;function ys(e,t,n,r,o,a,s){if(a===t.length)return o===e.length?om:ZN;var l=`${o},${a}`;if(s[l]!==void 0)return s[l];for(var c=r.charAt(a),d=n.indexOf(c,o),f=0,m,h,p,v;d>=0;)m=ys(e,t,n,r,d+1,a+1,s),m>f&&(d===o?m*=om:JN.test(e.charAt(d-1))?(m*=qN,p=e.slice(o,d-1).match(eS),p&&o>0&&(m*=Math.pow(ws,p.length))):tS.test(e.charAt(d-1))?(m*=KN,v=e.slice(o,d-1).match(am),v&&o>0&&(m*=Math.pow(ws,v.length))):(m*=XN,o>0&&(m*=Math.pow(ws,d-o))),e.charAt(d)!==t.charAt(a)&&(m*=QN)),(m<bs&&n.charAt(d-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(d-1)!==r.charAt(a))&&(h=ys(e,t,n,r,d+1,a+2,s),h*bs>m&&(m=h*bs)),m>f&&(f=m),d=n.indexOf(c,d+1);return s[l]=f,f}function sm(e){return e.toLowerCase().replace(am," ")}function nS(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,ys(e,t,sm(e),sm(t),0,0,{})}var Xn='[cmdk-group=""]',xs='[cmdk-group-items=""]',rS='[cmdk-group-heading=""]',im='[cmdk-item=""]',lm=`${im}:not([aria-disabled="true"])`,Cs="cmdk-item-select",bn="data-value",oS=(e,t,n)=>nS(e,t,n),cm=u.createContext(void 0),Qn=()=>u.useContext(cm),um=u.createContext(void 0),Ns=()=>u.useContext(um),dm=u.createContext(void 0),fm=u.forwardRef((e,t)=>{let n=wn(()=>{var T,D;return{search:"",value:(D=(T=e.value)!=null?T:e.defaultValue)!=null?D:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=wn(()=>new Set),o=wn(()=>new Map),a=wn(()=>new Map),s=wn(()=>new Set),l=mm(e),{label:c,children:d,value:f,onValueChange:m,filter:h,shouldFilter:p,loop:v,disablePointerSelection:g=!1,vimBindings:b=!0,...y}=e,w=pe(),x=pe(),S=pe(),k=u.useRef(null),M=hS();Ut(()=>{if(f!==void 0){let T=f.trim();n.current.value=T,E.emit()}},[f]),Ut(()=>{M(6,W)},[]);let E=u.useMemo(()=>({subscribe:T=>(s.current.add(T),()=>s.current.delete(T)),snapshot:()=>n.current,setState:(T,D,L)=>{var F,ee,I,K;if(!Object.is(n.current[T],D)){if(n.current[T]=D,T==="search")q(),$(),M(1,H);else if(T==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Q=document.getElementById(S);Q?Q.focus():(F=document.getElementById(w))==null||F.focus()}if(M(7,()=>{var Q;n.current.selectedItemId=(Q=U())==null?void 0:Q.id,E.emit()}),L||M(5,W),((ee=l.current)==null?void 0:ee.value)!==void 0){let Q=D??"";(K=(I=l.current).onValueChange)==null||K.call(I,Q);return}}E.emit()}},emit:()=>{s.current.forEach(T=>T())}}),[]),P=u.useMemo(()=>({value:(T,D,L)=>{var F;D!==((F=a.current.get(T))==null?void 0:F.value)&&(a.current.set(T,{value:D,keywords:L}),n.current.filtered.items.set(T,_(D,L)),M(2,()=>{$(),E.emit()}))},item:(T,D)=>(r.current.add(T),D&&(o.current.has(D)?o.current.get(D).add(T):o.current.set(D,new Set([T]))),M(3,()=>{q(),$(),n.current.value||H(),E.emit()}),()=>{a.current.delete(T),r.current.delete(T),n.current.filtered.items.delete(T);let L=U();M(4,()=>{q(),(L==null?void 0:L.getAttribute("id"))===T&&H(),E.emit()})}),group:T=>(o.current.has(T)||o.current.set(T,new Set),()=>{a.current.delete(T),o.current.delete(T)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:w,inputId:S,labelId:x,listInnerRef:k}),[]);function _(T,D){var L,F;let ee=(F=(L=l.current)==null?void 0:L.filter)!=null?F:oS;return T?ee(T,n.current.search,D):0}function $(){if(!n.current.search||l.current.shouldFilter===!1)return;let T=n.current.filtered.items,D=[];n.current.filtered.groups.forEach(F=>{let ee=o.current.get(F),I=0;ee.forEach(K=>{let Q=T.get(K);I=Math.max(Q,I)}),D.push([F,I])});let L=k.current;te().sort((F,ee)=>{var I,K;let Q=F.getAttribute("id"),ne=ee.getAttribute("id");return((I=T.get(ne))!=null?I:0)-((K=T.get(Q))!=null?K:0)}).forEach(F=>{let ee=F.closest(xs);ee?ee.appendChild(F.parentElement===ee?F:F.closest(`${xs} > *`)):L.appendChild(F.parentElement===L?F:F.closest(`${xs} > *`))}),D.sort((F,ee)=>ee[1]-F[1]).forEach(F=>{var ee;let I=(ee=k.current)==null?void 0:ee.querySelector(`${Xn}[${bn}="${encodeURIComponent(F[0])}"]`);I==null||I.parentElement.appendChild(I)})}function H(){let T=te().find(L=>L.getAttribute("aria-disabled")!=="true"),D=T==null?void 0:T.getAttribute(bn);E.setState("value",D||void 0)}function q(){var T,D,L,F;if(!n.current.search||l.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let ee=0;for(let I of r.current){let K=(D=(T=a.current.get(I))==null?void 0:T.value)!=null?D:"",Q=(F=(L=a.current.get(I))==null?void 0:L.keywords)!=null?F:[],ne=_(K,Q);n.current.filtered.items.set(I,ne),ne>0&&ee++}for(let[I,K]of o.current)for(let Q of K)if(n.current.filtered.items.get(Q)>0){n.current.filtered.groups.add(I);break}n.current.filtered.count=ee}function W(){var T,D,L;let F=U();F&&(((T=F.parentElement)==null?void 0:T.firstChild)===F&&((L=(D=F.closest(Xn))==null?void 0:D.querySelector(rS))==null||L.scrollIntoView({block:"nearest"})),F.scrollIntoView({block:"nearest"}))}function U(){var T;return(T=k.current)==null?void 0:T.querySelector(`${im}[aria-selected="true"]`)}function te(){var T;return Array.from(((T=k.current)==null?void 0:T.querySelectorAll(lm))||[])}function V(T){let D=te()[T];D&&E.setState("value",D.getAttribute(bn))}function X(T){var D;let L=U(),F=te(),ee=F.findIndex(K=>K===L),I=F[ee+T];(D=l.current)!=null&&D.loop&&(I=ee+T<0?F[F.length-1]:ee+T===F.length?F[0]:F[ee+T]),I&&E.setState("value",I.getAttribute(bn))}function R(T){let D=U(),L=D==null?void 0:D.closest(Xn),F;for(;L&&!F;)L=T>0?mS(L,Xn):pS(L,Xn),F=L==null?void 0:L.querySelector(lm);F?E.setState("value",F.getAttribute(bn)):X(T)}let O=()=>V(te().length-1),j=T=>{T.preventDefault(),T.metaKey?O():T.altKey?R(1):X(1)},Y=T=>{T.preventDefault(),T.metaKey?V(0):T.altKey?R(-1):X(-1)};return u.createElement(z.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:T=>{var D;(D=y.onKeyDown)==null||D.call(y,T);let L=T.nativeEvent.isComposing||T.keyCode===229;if(!(T.defaultPrevented||L))switch(T.key){case"n":case"j":{b&&T.ctrlKey&&j(T);break}case"ArrowDown":{j(T);break}case"p":case"k":{b&&T.ctrlKey&&Y(T);break}case"ArrowUp":{Y(T);break}case"Home":{T.preventDefault(),V(0);break}case"End":{T.preventDefault(),O();break}case"Enter":{T.preventDefault();let F=U();if(F){let ee=new Event(Cs);F.dispatchEvent(ee)}}}}},u.createElement("label",{"cmdk-label":"",htmlFor:P.inputId,id:P.labelId,style:vS},c),mo(e,T=>u.createElement(um.Provider,{value:E},u.createElement(cm.Provider,{value:P},T))))}),aS=u.forwardRef((e,t)=>{var n,r;let o=pe(),a=u.useRef(null),s=u.useContext(dm),l=Qn(),c=mm(e),d=(r=(n=c.current)==null?void 0:n.forceMount)!=null?r:s==null?void 0:s.forceMount;Ut(()=>{if(!d)return l.item(o,s==null?void 0:s.id)},[d]);let f=pm(o,a,[e.value,e.children,a],e.keywords),m=Ns(),h=Mt(M=>M.value&&M.value===f.current),p=Mt(M=>d||l.filter()===!1?!0:M.search?M.filtered.items.get(o)>0:!0);u.useEffect(()=>{let M=a.current;if(!(!M||e.disabled))return M.addEventListener(Cs,v),()=>M.removeEventListener(Cs,v)},[p,e.onSelect,e.disabled]);function v(){var M,E;g(),(E=(M=c.current).onSelect)==null||E.call(M,f.current)}function g(){m.setState("value",f.current,!0)}if(!p)return null;let{disabled:b,value:y,onSelect:w,forceMount:x,keywords:S,...k}=e;return u.createElement(z.div,{ref:et(a,t),...k,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!h,"data-disabled":!!b,"data-selected":!!h,onPointerMove:b||l.getDisablePointerSelection()?void 0:g,onClick:b?void 0:v},e.children)}),sS=u.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,s=pe(),l=u.useRef(null),c=u.useRef(null),d=pe(),f=Qn(),m=Mt(p=>o||f.filter()===!1?!0:p.search?p.filtered.groups.has(s):!0);Ut(()=>f.group(s),[]),pm(s,l,[e.value,e.heading,c]);let h=u.useMemo(()=>({id:s,forceMount:o}),[o]);return u.createElement(z.div,{ref:et(l,t),...a,"cmdk-group":"",role:"presentation",hidden:m?void 0:!0},n&&u.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},n),mo(e,p=>u.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?d:void 0},u.createElement(dm.Provider,{value:h},p))))}),iS=u.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=u.useRef(null),a=Mt(s=>!s.search);return!n&&!a?null:u.createElement(z.div,{ref:et(o,t),...r,"cmdk-separator":"",role:"separator"})}),lS=u.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=Ns(),s=Mt(d=>d.search),l=Mt(d=>d.selectedItemId),c=Qn();return u.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),u.createElement(z.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:o?e.value:s,onChange:d=>{o||a.setState("search",d.target.value),n==null||n(d.target.value)}})}),cS=u.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=u.useRef(null),s=u.useRef(null),l=Mt(d=>d.selectedItemId),c=Qn();return u.useEffect(()=>{if(s.current&&a.current){let d=s.current,f=a.current,m,h=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let p=d.offsetHeight;f.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return h.observe(d),()=>{cancelAnimationFrame(m),h.unobserve(d)}}},[]),u.createElement(z.div,{ref:et(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":r,id:c.listId},mo(e,d=>u.createElement("div",{ref:et(s,c.listInnerRef),"cmdk-list-sizer":""},d)))}),uS=u.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:s,...l}=e;return u.createElement(us,{open:n,onOpenChange:r},u.createElement(ds,{container:s},u.createElement(lo,{"cmdk-overlay":"",className:o}),u.createElement(co,{"aria-label":e.label,"cmdk-dialog":"",className:a},u.createElement(fm,{ref:t,...l}))))}),dS=u.forwardRef((e,t)=>Mt(n=>n.filtered.count===0)?u.createElement(z.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),fS=u.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return u.createElement(z.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},mo(e,s=>u.createElement("div",{"aria-hidden":!0},s)))}),je=Object.assign(fm,{List:cS,Item:aS,Input:lS,Group:sS,Separator:iS,Dialog:uS,Empty:dS,Loading:fS});function mS(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function pS(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function mm(e){let t=u.useRef(e);return Ut(()=>{t.current=e}),t}var Ut=typeof window>"u"?u.useEffect:u.useLayoutEffect;function wn(e){let t=u.useRef();return t.current===void 0&&(t.current=e()),t}function Mt(e){let t=Ns(),n=()=>e(t.snapshot());return u.useSyncExternalStore(t.subscribe,n,n)}function pm(e,t,n,r=[]){let o=u.useRef(),a=Qn();return Ut(()=>{var s;let l=(()=>{var d;for(let f of n){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():o.current}})(),c=r.map(d=>d.trim());a.value(e,l,c),(s=t.current)==null||s.setAttribute(bn,l),o.current=l}),o}var hS=()=>{let[e,t]=u.useState(),n=wn(()=>new Map);return Ut(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function gS(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function mo({asChild:e,children:t},n){return e&&u.isValidElement(t)?u.cloneElement(gS(t),{ref:t.ref},n(t.props.children)):n(t)}var vS={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const po=us,hm=lf,gm=ds,bS=uo,Ss=u.forwardRef(({className:e,...t},n)=>i.jsx(lo,{ref:n,className:A("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}));Ss.displayName=lo.displayName;const Zn=u.forwardRef(({className:e,children:t,showCloseButton:n=!0,...r},o)=>i.jsxs(gm,{children:[i.jsx(Ss,{}),i.jsxs(co,{ref:o,className:A("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),...r,children:[t,n&&i.jsxs(uo,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[i.jsx(ct,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Zn.displayName=co.displayName;const ho=({className:e,...t})=>i.jsx("div",{className:A("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ho.displayName="DialogHeader";const vm=({className:e,...t})=>i.jsx("div",{className:A("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});vm.displayName="DialogFooter";const go=u.forwardRef(({className:e,...t},n)=>i.jsx(fs,{ref:n,className:A("text-lg font-semibold leading-none tracking-tight",e),...t}));go.displayName=fs.displayName;const vo=u.forwardRef(({className:e,...t},n)=>i.jsx(ms,{ref:n,className:A("text-sm text-muted-foreground",e),...t}));vo.displayName=ms.displayName;const bo=u.forwardRef(({className:e,...t},n)=>i.jsx(je,{ref:n,className:A("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));bo.displayName=je.displayName;const wS=({children:e,...t})=>i.jsx(po,{...t,children:i.jsx(Zn,{className:"overflow-hidden p-0 shadow-lg",children:i.jsx(bo,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Es=u.forwardRef(({className:e,...t},n)=>i.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[i.jsx(oa,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),i.jsx(je.Input,{ref:n,className:A("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Es.displayName=je.Input.displayName;const ks=u.forwardRef(({className:e,...t},n)=>i.jsx(je.List,{ref:n,className:A("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));ks.displayName=je.List.displayName;const Ps=u.forwardRef((e,t)=>i.jsx(je.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Ps.displayName=je.Empty.displayName;const wo=u.forwardRef(({className:e,...t},n)=>i.jsx(je.Group,{ref:n,className:A("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));wo.displayName=je.Group.displayName;const Ts=u.forwardRef(({className:e,...t},n)=>i.jsx(je.Separator,{ref:n,className:A("-mx-1 h-px bg-border",e),...t}));Ts.displayName=je.Separator.displayName;const yn=u.forwardRef(({className:e,...t},n)=>i.jsx(je.Item,{ref:n,className:A("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));yn.displayName=je.Item.displayName;const bm=({className:e,...t})=>i.jsx("span",{className:A("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});bm.displayName="CommandShortcut";const wm=C.forwardRef((e,t)=>{const{currencySymbol:n="$",decimalSeparator:r=".",thousandSeparator:o=",",onValueChange:a,className:s,value:l=0,...c}=e,d=C.useRef(null);C.useImperativeHandle(t,()=>d.current);const[f,m]=C.useState(""),h=g=>{const b=g.toFixed(2).split("."),y=b[0].replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${n} ${y}${r}${b[1]}`},p=g=>{const b=g.target.value,y=parseFloat(b.replace(/\D/g,""))/100;m(h(y)),a(y),d.current&&window.requestAnimationFrame(()=>{var w;(w=d.current)==null||w.setSelectionRange(d.current.value.length,d.current.value.length)})},v=()=>{d.current&&d.current.setSelectionRange(d.current.value.length,d.current.value.length)};return C.useEffect(()=>{m(h(+l))},[l]),i.jsx(ao,{type:"text",inputMode:"numeric",value:f,ref:d,onChange:p,onFocus:v,onClick:v,placeholder:`${n} 0${r}00`,className:s,...c})});wm.displayName="CurrencyInput";var yS="Label",ym=u.forwardRef((e,t)=>i.jsx(z.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())}}));ym.displayName=yS;var xm=ym;const xS=Ft("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Cm=u.forwardRef(({className:e,...t},n)=>i.jsx(xm,{ref:n,className:A(xS(),e),...t}));Cm.displayName=xm.displayName;var yo="Popover",[Nm,TT]=be(yo,[Ct]),Jn=Ct(),[CS,jt]=Nm(yo),Sm=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,l=Jn(t),c=u.useRef(null),[d,f]=u.useState(!1),[m,h]=ye({prop:r,defaultProp:o??!1,onChange:a,caller:yo});return i.jsx($n,{...l,children:i.jsx(CS,{scope:t,contentId:pe(),triggerRef:c,open:m,onOpenChange:h,onOpenToggle:u.useCallback(()=>h(p=>!p),[h]),hasCustomAnchor:d,onCustomAnchorAdd:u.useCallback(()=>f(!0),[]),onCustomAnchorRemove:u.useCallback(()=>f(!1),[]),modal:s,children:n})})};Sm.displayName=yo;var Em="PopoverAnchor",km=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=jt(Em,n),a=Jn(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return u.useEffect(()=>(s(),()=>l()),[s,l]),i.jsx(Ln,{...a,...r,ref:t})});km.displayName=Em;var Pm="PopoverTrigger",Tm=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=jt(Pm,n),a=Jn(n),s=re(t,o.triggerRef),l=i.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Im(o.open),...r,ref:s,onClick:B(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:i.jsx(Ln,{asChild:!0,...a,children:l})});Tm.displayName=Pm;var Ms="PopoverPortal",[NS,SS]=Nm(Ms,{forceMount:void 0}),Mm=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=jt(Ms,t);return i.jsx(NS,{scope:t,forceMount:n,children:i.jsx(xe,{present:n||a.open,children:i.jsx(Fn,{asChild:!0,container:o,children:r})})})};Mm.displayName=Ms;var xn="PopoverContent",jm=u.forwardRef((e,t)=>{const n=SS(xn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=jt(xn,e.__scopePopover);return i.jsx(xe,{present:r||a.open,children:a.modal?i.jsx(kS,{...o,ref:t}):i.jsx(PS,{...o,ref:t})})});jm.displayName=xn;var ES=vt("PopoverContent.RemoveScroll"),kS=u.forwardRef((e,t)=>{const n=jt(xn,e.__scopePopover),r=u.useRef(null),o=re(t,r),a=u.useRef(!1);return u.useEffect(()=>{const s=r.current;if(s)return Or(s)},[]),i.jsx(zn,{as:ES,allowPinchZoom:!0,children:i.jsx(_m,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),a.current||(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:B(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),PS=u.forwardRef((e,t)=>{const n=jt(xn,e.__scopePopover),r=u.useRef(!1),o=u.useRef(!1);return i.jsx(_m,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,l;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=n.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),_m=u.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...m}=e,h=jt(xn,n),p=Jn(n);return br(),i.jsx(In,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:i.jsx(Bt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1),children:i.jsx(Mr,{"data-state":Im(h.open),role:"dialog",id:h.contentId,...p,...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)"}})})})}),Am="PopoverClose",TS=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=jt(Am,n);return i.jsx(z.button,{type:"button",...r,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});TS.displayName=Am;var MS="PopoverArrow",jS=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Jn(n);return i.jsx(jr,{...o,...r,ref:t})});jS.displayName=MS;function Im(e){return e?"open":"closed"}var _S=Sm,AS=km,IS=Tm,RS=Mm,Rm=jm;const Dm=_S,Om=IS,DS=AS,js=u.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>i.jsx(RS,{children:i.jsx(Rm,{ref:o,align:t,sideOffset:n,className:A("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})}));js.displayName=Rm.displayName;var OS="Separator",$m="horizontal",$S=["horizontal","vertical"],Lm=u.forwardRef((e,t)=>{const{decorative:n,orientation:r=$m,...o}=e,a=LS(r)?r:$m,l=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return i.jsx(z.div,{"data-orientation":a,...l,...o,ref:t})});Lm.displayName=OS;function LS(e){return $S.includes(e)}var Fm=Lm;const xo=u.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>i.jsx(Fm,{ref:o,decorative:n,orientation:t,className:A("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));xo.displayName=Fm.displayName;const Bm=Ft("mx-1",{variants:{variant:{default:"border-foreground/10 text-foreground bg-card hover:bg-card/80",secondary:"border-foreground/10 bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",inverted:"inverted"}},defaultVariants:{variant:"default"}}),zm=u.forwardRef(({options:e,onValueChange:t,variant:n,defaultValue:r=[],placeholder:o="Select options",maxCount:a=3,modalPopover:s=!1,asChild:l=!1,className:c,...d},f)=>{const[m,h]=u.useState(r),[p,v]=u.useState(!1),[g,b]=u.useState(!1),y=E=>{if(E.key==="Enter")v(!0);else if(E.key==="Backspace"&&!E.currentTarget.value){const P=[...m];P.pop(),h(P),t(P)}},w=E=>{const P=m.includes(E)?m.filter(_=>_!==E):[...m,E];h(P),t(P)},x=()=>{h([]),t([])},S=()=>{v(E=>!E)},k=()=>{const E=m.slice(0,a);h(E),t(E)},M=()=>{if(m.length===e.length)x();else{const E=e.map(P=>P.value);h(E),t(E)}};return i.jsxs(Dm,{open:p,onOpenChange:v,modal:s,children:[i.jsx(Om,{asChild:!0,children:i.jsx(de,{ref:f,...d,onClick:S,className:A("flex w-full p-1 rounded-md border min-h-10 h-auto items-center justify-between bg-inherit hover:bg-inherit [&_svg]:pointer-events-auto",c),children:m.length>0?i.jsxs("div",{className:"flex justify-between items-center w-full",children:[i.jsxs("div",{className:"flex flex-wrap items-center",children:[m.slice(0,a).map(E=>{const P=e.find(_=>_.value===E);return i.jsxs(on,{className:A(Bm({variant:n})),children:[P==null?void 0:P.label,i.jsx(ra,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:_=>{_.stopPropagation(),w(E)}})]},E)}),m.length>a&&i.jsxs(on,{className:A("bg-transparent text-foreground border-foreground/1 hover:bg-transparent",Bm({variant:n})),children:[`+ ${m.length-a} more`,i.jsx(ra,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:E=>{E.stopPropagation(),k()}})]})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx(ct,{className:"h-4 mx-2 cursor-pointer text-muted-foreground",onClick:E=>{E.stopPropagation(),x()}}),i.jsx(xo,{orientation:"vertical",className:"flex min-h-6 h-full"}),i.jsx(rn,{className:"h-4 mx-2 cursor-pointer text-muted-foreground"})]})]}):i.jsxs("div",{className:"flex items-center justify-between w-full mx-auto",children:[i.jsx("span",{className:"text-sm text-muted-foreground mx-3",children:o}),i.jsx(rn,{className:"h-4 cursor-pointer text-muted-foreground mx-2"})]})})}),i.jsx(js,{className:"w-auto p-0",align:"start",onEscapeKeyDown:()=>v(!1),children:i.jsxs(bo,{children:[i.jsx(Es,{placeholder:"Search...",onKeyDown:y}),i.jsxs(ks,{children:[i.jsx(Ps,{children:"No results found."}),i.jsxs(wo,{children:[i.jsxs(yn,{onSelect:M,className:"cursor-pointer",children:[i.jsx("div",{className:A("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",m.length===e.length?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:i.jsx(_n,{className:"h-4 w-4"})}),i.jsx("span",{children:"(Select All)"})]},"all"),e.map(E=>{const P=m.includes(E.value);return i.jsxs(yn,{onSelect:()=>w(E.value),className:"cursor-pointer",children:[i.jsx("div",{className:A("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",P?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:i.jsx(_n,{className:"h-4 w-4"})}),i.jsx("span",{children:E.label})]},E.value)})]}),i.jsx(Ts,{}),i.jsx(wo,{children:i.jsxs("div",{className:"flex items-center justify-between",children:[m.length>0&&i.jsxs(i.Fragment,{children:[i.jsx(yn,{onSelect:x,className:"flex-1 justify-center cursor-pointer",children:"Clear"}),i.jsx(xo,{orientation:"vertical",className:"flex min-h-6 h-full"})]}),i.jsx(yn,{onSelect:()=>v(!1),className:"flex-1 justify-center cursor-pointer max-w-full",children:"Close"})]})})]})]})})]})});zm.displayName="MultiSelect";var Yt="NavigationMenu",[_s,Vm,FS]=an(Yt),[As,BS,zS]=an(Yt),[Is,MT]=be(Yt,[FS,zS]),[VS,Fe]=Is(Yt),[WS,HS]=Is(Yt),Wm=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:s=200,skipDelayDuration:l=300,orientation:c="horizontal",dir:d,...f}=e,[m,h]=u.useState(null),p=re(t,_=>h(_)),v=bt(d),g=u.useRef(0),b=u.useRef(0),y=u.useRef(0),[w,x]=u.useState(!0),[S,k]=ye({prop:r,onChange:_=>{const $=_!=="",H=l>0;$?(window.clearTimeout(y.current),H&&x(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>x(!0),l)),o==null||o(_)},defaultProp:a??"",caller:Yt}),M=u.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>k(""),150)},[k]),E=u.useCallback(_=>{window.clearTimeout(b.current),k(_)},[k]),P=u.useCallback(_=>{S===_?window.clearTimeout(b.current):g.current=window.setTimeout(()=>{window.clearTimeout(b.current),k(_)},s)},[S,k,s]);return u.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(b.current),window.clearTimeout(y.current)},[]),i.jsx(Hm,{scope:n,isRootMenu:!0,value:S,dir:v,orientation:c,rootNavigationMenu:m,onTriggerEnter:_=>{window.clearTimeout(g.current),w?P(_):E(_)},onTriggerLeave:()=>{window.clearTimeout(g.current),M()},onContentEnter:()=>window.clearTimeout(b.current),onContentLeave:M,onItemSelect:_=>{k($=>$===_?"":_)},onItemDismiss:()=>k(""),children:i.jsx(z.nav,{"aria-label":"Main","data-orientation":c,dir:v,...f,ref:p})})});Wm.displayName=Yt;var Rs="NavigationMenuSub",GS=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",...l}=e,c=Fe(Rs,n),[d,f]=ye({prop:r,onChange:o,defaultProp:a??"",caller:Rs});return i.jsx(Hm,{scope:n,isRootMenu:!1,value:d,dir:c.dir,orientation:s,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:m=>f(m),onItemSelect:m=>f(m),onItemDismiss:()=>f(""),children:i.jsx(z.div,{"data-orientation":s,...l,ref:t})})});GS.displayName=Rs;var Hm=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:a,children:s,value:l,onItemSelect:c,onItemDismiss:d,onTriggerEnter:f,onTriggerLeave:m,onContentEnter:h,onContentLeave:p}=e,[v,g]=u.useState(null),[b,y]=u.useState(new Map),[w,x]=u.useState(null);return i.jsx(VS,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:Kn(l),baseId:pe(),dir:o,orientation:a,viewport:v,onViewportChange:g,indicatorTrack:w,onIndicatorTrackChange:x,onTriggerEnter:Se(f),onTriggerLeave:Se(m),onContentEnter:Se(h),onContentLeave:Se(p),onItemSelect:Se(c),onItemDismiss:Se(d),onViewportContentChange:u.useCallback((S,k)=>{y(M=>(M.set(S,k),new Map(M)))},[]),onViewportContentRemove:u.useCallback(S=>{y(k=>k.has(S)?(k.delete(S),new Map(k)):k)},[]),children:i.jsx(_s.Provider,{scope:t,children:i.jsx(WS,{scope:t,items:b,children:s})})})},Gm="NavigationMenuList",Um=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Fe(Gm,n),a=i.jsx(z.ul,{"data-orientation":o.orientation,...r,ref:t});return i.jsx(z.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:i.jsx(_s.Slot,{scope:n,children:o.isRootMenu?i.jsx(rp,{asChild:!0,children:a}):a})})});Um.displayName=Gm;var Ym="NavigationMenuItem",[US,Km]=Is(Ym),qm=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,a=pe(),s=r||a||"LEGACY_REACT_AUTO_VALUE",l=u.useRef(null),c=u.useRef(null),d=u.useRef(null),f=u.useRef(()=>{}),m=u.useRef(!1),h=u.useCallback((v="start")=>{if(l.current){f.current();const g=Ls(l.current);g.length&&Fs(v==="start"?g:g.reverse())}},[]),p=u.useCallback(()=>{if(l.current){const v=Ls(l.current);v.length&&(f.current=JS(v))}},[]);return i.jsx(US,{scope:n,value:s,triggerRef:c,contentRef:l,focusProxyRef:d,wasEscapeCloseRef:m,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:p,onContentFocusOutside:p,children:i.jsx(z.li,{...o,ref:t})})});qm.displayName=Ym;var Ds="NavigationMenuTrigger",Xm=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=Fe(Ds,e.__scopeNavigationMenu),s=Km(Ds,e.__scopeNavigationMenu),l=u.useRef(null),c=re(l,s.triggerRef,t),d=sp(a.baseId,s.value),f=ip(a.baseId,s.value),m=u.useRef(!1),h=u.useRef(!1),p=s.value===a.value;return i.jsxs(i.Fragment,{children:[i.jsx(_s.ItemSlot,{scope:n,value:s.value,children:i.jsx(ap,{asChild:!0,children:i.jsx(z.button,{id:d,disabled:r,"data-disabled":r?"":void 0,"data-state":zs(p),"aria-expanded":p,"aria-controls":f,...o,ref:c,onPointerEnter:B(e.onPointerEnter,()=>{h.current=!1,s.wasEscapeCloseRef.current=!1}),onPointerMove:B(e.onPointerMove,No(()=>{r||h.current||s.wasEscapeCloseRef.current||m.current||(a.onTriggerEnter(s.value),m.current=!0)})),onPointerLeave:B(e.onPointerLeave,No(()=>{r||(a.onTriggerLeave(),m.current=!1)})),onClick:B(e.onClick,()=>{a.onItemSelect(s.value),h.current=p}),onKeyDown:B(e.onKeyDown,v=>{const b={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];p&&v.key===b&&(s.onEntryKeyDown(),v.preventDefault())})})})}),p&&i.jsxs(i.Fragment,{children:[i.jsx(Au,{"aria-hidden":!0,tabIndex:0,ref:s.focusProxyRef,onFocus:v=>{const g=s.contentRef.current,b=v.relatedTarget,y=b===l.current,w=g==null?void 0:g.contains(b);(y||!w)&&s.onFocusProxyEnter(y?"start":"end")}}),a.viewport&&i.jsx("span",{"aria-owns":f})]})]})});Xm.displayName=Ds;var YS="NavigationMenuLink",Qm="navigationMenu.linkSelect",Zm=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return i.jsx(ap,{asChild:!0,children:i.jsx(z.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...a,ref:t,onClick:B(e.onClick,s=>{const l=s.target,c=new CustomEvent(Qm,{bubbles:!0,cancelable:!0});if(l.addEventListener(Qm,d=>o==null?void 0:o(d),{once:!0}),vr(l,c),!c.defaultPrevented&&!s.metaKey){const d=new CustomEvent(Co,{bubbles:!0,cancelable:!0});vr(l,d)}},{checkForDefaultPrevented:!1})})})});Zm.displayName=YS;var Os="NavigationMenuIndicator",Jm=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Fe(Os,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?ar.createPortal(i.jsx(xe,{present:n||a,children:i.jsx(KS,{...r,ref:t})}),o.indicatorTrack):null});Jm.displayName=Os;var KS=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Fe(Os,n),a=Vm(n),[s,l]=u.useState(null),[c,d]=u.useState(null),f=o.orientation==="horizontal",m=!!o.value;u.useEffect(()=>{var g;const v=(g=a().find(b=>b.value===o.value))==null?void 0:g.ref.current;v&&l(v)},[a,o.value]);const h=()=>{s&&d({size:f?s.offsetWidth:s.offsetHeight,offset:f?s.offsetLeft:s.offsetTop})};return Bs(s,h),Bs(o.indicatorTrack,h),c?i.jsx(z.div,{"aria-hidden":!0,"data-state":m?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...f?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...r.style}}):null}),Cn="NavigationMenuContent",ep=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Fe(Cn,e.__scopeNavigationMenu),a=Km(Cn,e.__scopeNavigationMenu),s=re(a.contentRef,t),l=a.value===o.value,c={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return o.viewport?i.jsx(qS,{forceMount:n,...c,ref:s}):i.jsx(xe,{present:n||l,children:i.jsx(tp,{"data-state":zs(l),...c,ref:s,onPointerEnter:B(e.onPointerEnter,o.onContentEnter),onPointerLeave:B(e.onPointerLeave,No(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...c.style}})})});ep.displayName=Cn;var qS=u.forwardRef((e,t)=>{const n=Fe(Cn,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return ge(()=>{r(e.value,{ref:t,...e})},[e,t,r]),ge(()=>()=>o(e.value),[e.value,o]),null}),Co="navigationMenu.rootContentDismiss",tp=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:s,onRootContentClose:l,onContentFocusOutside:c,...d}=e,f=Fe(Cn,n),m=u.useRef(null),h=re(m,t),p=sp(f.baseId,r),v=ip(f.baseId,r),g=Vm(n),b=u.useRef(null),{onItemDismiss:y}=f;u.useEffect(()=>{const x=m.current;if(f.isRootMenu&&x){const S=()=>{var k;y(),l(),x.contains(document.activeElement)&&((k=o.current)==null||k.focus())};return x.addEventListener(Co,S),()=>x.removeEventListener(Co,S)}},[f.isRootMenu,e.value,o,y,l]);const w=u.useMemo(()=>{const S=g().map($=>$.value);f.dir==="rtl"&&S.reverse();const k=S.indexOf(f.value),M=S.indexOf(f.previousValue),E=r===f.value,P=M===S.indexOf(r);if(!E&&!P)return b.current;const _=(()=>{if(k!==M){if(E&&M!==-1)return k>M?"from-end":"from-start";if(P&&k!==-1)return k>M?"to-start":"to-end"}return null})();return b.current=_,_},[f.previousValue,f.value,f.dir,g,r]);return i.jsx(rp,{asChild:!0,children:i.jsx(Bt,{id:v,"aria-labelledby":p,"data-motion":w,"data-orientation":f.orientation,...d,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var S;const x=new Event(Co,{bubbles:!0,cancelable:!0});(S=m.current)==null||S.dispatchEvent(x)},onFocusOutside:B(e.onFocusOutside,x=>{var k;c();const S=x.target;(k=f.rootNavigationMenu)!=null&&k.contains(S)&&x.preventDefault()}),onPointerDownOutside:B(e.onPointerDownOutside,x=>{var E;const S=x.target,k=g().some(P=>{var _;return(_=P.ref.current)==null?void 0:_.contains(S)}),M=f.isRootMenu&&((E=f.viewport)==null?void 0:E.contains(S));(k||M||!f.isRootMenu)&&x.preventDefault()}),onKeyDown:B(e.onKeyDown,x=>{var M;const S=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!S){const E=Ls(x.currentTarget),P=document.activeElement,_=E.findIndex(q=>q===P),H=x.shiftKey?E.slice(0,_).reverse():E.slice(_+1,E.length);Fs(H)?x.preventDefault():(M=a.current)==null||M.focus()}}),onEscapeKeyDown:B(e.onEscapeKeyDown,x=>{s.current=!0})})})}),$s="NavigationMenuViewport",np=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=!!Fe($s,e.__scopeNavigationMenu).value;return i.jsx(xe,{present:n||a,children:i.jsx(XS,{...r,ref:t})})});np.displayName=$s;var XS=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,a=Fe($s,n),s=re(t,a.onViewportChange),l=HS(Cn,e.__scopeNavigationMenu),[c,d]=u.useState(null),[f,m]=u.useState(null),h=c?(c==null?void 0:c.width)+"px":void 0,p=c?(c==null?void 0:c.height)+"px":void 0,v=!!a.value,g=v?a.value:a.previousValue;return Bs(f,()=>{f&&d({width:f.offsetWidth,height:f.offsetHeight})}),i.jsx(z.div,{"data-state":zs(v),"data-orientation":a.orientation,...o,ref:s,style:{pointerEvents:!v&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":p,...o.style},onPointerEnter:B(e.onPointerEnter,a.onContentEnter),onPointerLeave:B(e.onPointerLeave,No(a.onContentLeave)),children:Array.from(l.items).map(([y,{ref:w,forceMount:x,...S}])=>{const k=g===y;return i.jsx(xe,{present:x||k,children:i.jsx(tp,{...S,ref:et(w,M=>{k&&M&&m(M)})})},y)})})}),QS="FocusGroup",rp=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Fe(QS,n);return i.jsx(As.Provider,{scope:n,children:i.jsx(As.Slot,{scope:n,children:i.jsx(z.div,{dir:o.dir,...r,ref:t})})})}),op=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ZS="FocusGroupItem",ap=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=BS(n),a=Fe(ZS,n);return i.jsx(As.ItemSlot,{scope:n,children:i.jsx(z.button,{...r,ref:t,onKeyDown:B(e.onKeyDown,s=>{if(["Home","End",...op].includes(s.key)){let c=o().map(m=>m.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(s.key)&&c.reverse(),op.includes(s.key)){const m=c.indexOf(s.currentTarget);c=c.slice(m+1)}setTimeout(()=>Fs(c)),s.preventDefault()}})})})});function Ls(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 Fs(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function JS(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Bs(e,t){const n=Se(t);ge(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function zs(e){return e?"open":"closed"}function sp(e,t){return`${e}-trigger-${t}`}function ip(e,t){return`${e}-content-${t}`}function No(e){return t=>t.pointerType==="mouse"?e(t):void 0}var lp=Wm,cp=Um,eE=qm,up=Xm,tE=Zm,dp=Jm,fp=ep,mp=np;const pp=u.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(lp,{ref:r,className:A("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,i.jsx(Vs,{})]}));pp.displayName=lp.displayName;const hp=u.forwardRef(({className:e,...t},n)=>i.jsx(cp,{ref:n,className:A("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));hp.displayName=cp.displayName;const nE=eE,gp=Ft("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),vp=u.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(up,{ref:r,className:A(gp(),"group",e),...n,children:[t," ",i.jsx(rn,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));vp.displayName=up.displayName;const bp=u.forwardRef(({className:e,...t},n)=>i.jsx(fp,{ref:n,className:A("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...t}));bp.displayName=fp.displayName;const rE=tE,Vs=u.forwardRef(({className:e,...t},n)=>i.jsx("div",{className:A("absolute left-0 top-full flex justify-center"),children:i.jsx(mp,{className:A("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:n,...t})}));Vs.displayName=mp.displayName;const wp=u.forwardRef(({className:e,...t},n)=>i.jsx(dp,{ref:n,className:A("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:i.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));wp.displayName=dp.displayName;const oE={sm:{button:"h-8 w-8 p-0",input:"h-8 text-sm px-2",container:"gap-1",text:"text-sm",symbol:"text-sm"},md:{button:"h-10 w-10 p-0",input:"h-10 px-3",container:"gap-2",text:"text-base",symbol:"text-base"},lg:{button:"h-12 w-12 p-0",input:"h-12 text-lg px-4",container:"gap-2",text:"text-lg",symbol:"text-lg"},xl:{button:"h-14 w-14 p-0",input:"h-14 text-xl px-5",container:"gap-3",text:"text-xl",symbol:"text-xl"}},yp={sm:"h-3 w-3",md:"h-4 w-4",lg:"h-5 w-5",xl:"h-6 w-6"},xp={sm:{left:"pl-6",right:"pr-6"},md:{left:"pl-8",right:"pr-8"},lg:{left:"pl-10",right:"pr-10"},xl:{left:"pl-12",right:"pr-12"}};function aE({value:e,defaultValue:t=0,onChange:n,min:r=Number.NEGATIVE_INFINITY,max:o=Number.POSITIVE_INFINITY,step:a=1,size:s="md",disabled:l=!1,className:c,leftSymbol:d,rightSymbol:f}){const[m,h]=C.useState(t),p=e!==void 0?e:m,v=oE[s],g=M=>{const E=Math.min(Math.max(M,r),o);e===void 0&&h(E),n==null||n(E)},b=()=>{const M=p+a;M<=o&&g(M)},y=()=>{const M=p-a;M>=r&&g(M)},w=M=>{const E=M.target.value;if(E===""||E==="-")return;const P=Number.parseFloat(E);isNaN(P)||g(P)},x=p>r&&!l,S=p<o&&!l,k=()=>{const M=v.input.includes("px-2")?"px-2":v.input.includes("px-3")?"px-3":v.input.includes("px-4")?"px-4":"px-5";let E=M,P=M;return d&&(E=xp[s].left),f&&(P=xp[s].right),A(E,P)};return i.jsxs("div",{className:A("flex items-center",v.container,c),children:[i.jsx(de,{variant:"outline",size:"icon",className:v.button,onClick:y,disabled:!x,"aria-label":"Decrease value",children:i.jsx(xw,{className:yp[s]})}),i.jsxs("div",{className:"relative flex items-center",children:[d&&i.jsx("span",{className:A("absolute left-3 text-muted-foreground pointer-events-none z-10",v.symbol),children:d}),i.jsx(gn,{type:"number",value:p,onChange:w,min:r,max:o,step:a,disabled:l,className:A("text-center [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",v.input.replace(/px-\d+/,""),v.text,k())}),f&&i.jsx("span",{className:A("absolute right-3 text-muted-foreground pointer-events-none z-10",v.symbol),children:f})]}),i.jsx(de,{variant:"outline",size:"icon",className:v.button,onClick:b,disabled:!S,"aria-label":"Increase value",children:i.jsx(Cw,{className:yp[s]})})]})}const Cp=({className:e,...t})=>i.jsx("nav",{role:"navigation","aria-label":"pagination",className:A("mx-auto flex w-full justify-center",e),...t});Cp.displayName="Pagination";const Np=u.forwardRef(({className:e,...t},n)=>i.jsx("ul",{ref:n,className:A("flex flex-row items-center gap-1",e),...t}));Np.displayName="PaginationContent";const Sp=u.forwardRef(({className:e,...t},n)=>i.jsx("li",{ref:n,className:A("",e),...t}));Sp.displayName="PaginationItem";const So=({className:e,isActive:t,size:n="icon",...r})=>i.jsx(de,{"aria-current":t?"page":void 0,className:A(fr({variant:t?"default":"outline",rounded:!1,size:n}),t?"text-primary-foreground":"text-foreground",e),...r,children:r.children});So.displayName="PaginationLink";const Ep=({className:e,...t})=>i.jsx(So,{"aria-label":"Previous page",className:A("gap-1",e),...t,children:i.jsx(gr,{className:"h-4 w-4"})});Ep.displayName="PaginationPrevious";const kp=({className:e,...t})=>i.jsx(So,{"aria-label":"Next page",className:A("gap-1",e),...t,children:i.jsx(An,{className:"h-4 w-4"})});kp.displayName="PaginationNext";const Pp=({className:e,...t})=>i.jsxs("span",{"aria-hidden":!0,className:A("flex h-9 w-9 items-center justify-center",e),...t,children:[i.jsx(uw,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"More pages"})]});Pp.displayName="PaginationEllipsis";var Ws="Progress",Hs=100,[sE,jT]=be(Ws),[iE,lE]=sE(Ws),Tp=u.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=cE,...s}=e;(o||o===0)&&!Ap(o)&&console.error(uE(`${o}`,"Progress"));const l=Ap(o)?o:Hs;r!==null&&!Ip(r,l)&&console.error(dE(`${r}`,"Progress"));const c=Ip(r,l)?r:null,d=Eo(c)?a(c,l):void 0;return i.jsx(iE,{scope:n,value:c,max:l,children:i.jsx(z.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":Eo(c)?c:void 0,"aria-valuetext":d,role:"progressbar","data-state":_p(c,l),"data-value":c??void 0,"data-max":l,...s,ref:t})})});Tp.displayName=Ws;var Mp="ProgressIndicator",jp=u.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=lE(Mp,n);return i.jsx(z.div,{"data-state":_p(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});jp.displayName=Mp;function cE(e,t){return`${Math.round(e/t*100)}%`}function _p(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Eo(e){return typeof e=="number"}function Ap(e){return Eo(e)&&!isNaN(e)&&e>0}function Ip(e,t){return Eo(e)&&!isNaN(e)&&e<=t&&e>=0}function uE(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Hs}\`.`}function dE(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
285
295
|
- a positive number
|
|
286
296
|
- less than the value passed to \`max\` (or ${Hs} if no \`max\` prop is set)
|
|
287
297
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
288
298
|
|
|
289
|
-
Defaulting to \`null\`.`}var Ap=kp,sE=Tp;const Gs=u.forwardRef(({className:e,value:t,...n},r)=>i.jsx(Ap,{ref:r,className:I("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:i.jsx(sE,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Gs.displayName=Ap.displayName;function iE(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",...l}=e,[c,d]=C.useState(""),[f,m]=C.useState(!1),h=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},p=y=>y===0?r.veryWeak:y<=25?r.weak:y<=50?r.medium:y<=75?r.strong:r.veryStrong,v=h(c),g=p(v),b=y=>{var w;d(y.target.value),(w=e.onChange)==null||w.call(e,y)};return i.jsxs("div",{className:"w-full space-y-4",children:[i.jsxs("div",{className:"relative",children:[i.jsx(qn,{...l,type:f?"text":"password",value:c,onChange:b,className:`pr-10 ${n||""}`}),i.jsx(fe,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-full",onClick:()=>m(!f),"aria-label":f?a:o,children:f?i.jsx(cw,{className:"h-4 w-4"}):i.jsx(uw,{className:"h-4 w-4"})})]}),t&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsxs("span",{children:[s,":"]}),i.jsx("span",{children:g})]}),i.jsx(Gs,{value:v,className:"h-2"})]})]})}var Us="Radio",[lE,Ip]=be(Us),[cE,uE]=lE(Us),Rp=u.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:s,value:l="on",onCheck:c,form:d,...f}=e,[m,h]=u.useState(null),p=re(t,b=>h(b)),v=u.useRef(!1),g=m?d||!!m.closest("form"):!0;return i.jsxs(cE,{scope:n,checked:o,disabled:s,children:[i.jsx(z.button,{type:"button",role:"radio","aria-checked":o,"data-state":Lp(o),"data-disabled":s?"":void 0,disabled:s,value:l,...f,ref:p,onClick:B(e.onClick,b=>{o||c==null||c(),g&&(v.current=b.isPropagationStopped(),v.current||b.stopPropagation())})}),g&&i.jsx($p,{control:m,bubbles:!v.current,name:r,value:l,checked:o,required:a,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});Rp.displayName=Us;var Dp="RadioIndicator",Op=u.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=uE(Dp,n);return i.jsx(xe,{present:r||a.checked,children:i.jsx(z.span,{"data-state":Lp(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});Op.displayName=Dp;var dE="RadioBubbleInput",$p=u.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=u.useRef(null),l=re(s,a),c=Yn(n),d=Tr(t);return u.useEffect(()=>{const f=s.current;if(!f)return;const m=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(m,"checked").set;if(c!==n&&p){const v=new Event("click",{bubbles:r});p.call(f,n),f.dispatchEvent(v)}},[c,n,r]),i.jsx(z.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:l,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});$p.displayName=dE;function Lp(e){return e?"checked":"unchecked"}var fE=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ko="RadioGroup",[mE,NT]=be(ko,[Nt,Ip]),Fp=Nt(),Bp=Ip(),[pE,hE]=mE(ko),zp=u.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:s=!1,disabled:l=!1,orientation:c,dir:d,loop:f=!0,onValueChange:m,...h}=e,p=Fp(n),v=bt(d),[g,b]=ye({prop:a,defaultProp:o??null,onChange:m,caller:ko});return i.jsx(pE,{scope:n,name:r,required:s,disabled:l,value:g,onValueChange:b,children:i.jsx(Ar,{asChild:!0,...p,orientation:c,dir:v,loop:f,children:i.jsx(z.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":l?"":void 0,dir:v,...h,ref:t})})})});zp.displayName=ko;var Vp="RadioGroupItem",Wp=u.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=hE(Vp,n),s=a.disabled||r,l=Fp(n),c=Bp(n),d=u.useRef(null),f=re(t,d),m=a.value===o.value,h=u.useRef(!1);return u.useEffect(()=>{const p=g=>{fE.includes(g.key)&&(h.current=!0)},v=()=>h.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",v)}},[]),i.jsx(Ir,{asChild:!0,...l,focusable:!s,active:m,children:i.jsx(Rp,{disabled:s,required:a.required,checked:m,...c,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:B(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:B(o.onFocus,()=>{var p;h.current&&((p=d.current)==null||p.click())})})})});Wp.displayName=Vp;var gE="RadioGroupIndicator",Hp=u.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Bp(n);return i.jsx(Op,{...o,...r,ref:t})});Hp.displayName=gE;var Gp=zp,Up=Wp,vE=Hp;const Yp=u.forwardRef(({className:e,...t},n)=>i.jsx(Gp,{className:I("grid gap-2",e),...t,ref:n}));Yp.displayName=Gp.displayName;const Kp=u.forwardRef(({className:e,...t},n)=>i.jsx(Up,{ref:n,className:I("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:i.jsx(vE,{className:"flex items-center justify-center",children:i.jsx(ml,{className:"h-3.5 w-3.5 fill-primary"})})}));Kp.displayName=Up.displayName;const bE=["primary","secondary","success","error","warning","info","white","neutral"],wE=["xs","sm","md","lg","xl","2xl"],qp=Ft("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:{color:{primary:"text-primary",secondary:"text-secondary",success:"text-green-700",error:"text-red-700",warning:"text-yellow-700",info:"text-blue-700",white:"text-white",neutral:"text-gray-700"},size:{xs:"h-4 w-4",sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10",xl:"h-14 w-14","2xl":"h-20 w-20"}},defaultVariants:{color:"primary",size:"md"}}),Xp=e=>{const{label:t,size:n,color:r,className:o}=e;return i.jsxs("div",{className:I("flex flex-col justify-center items-center",o),children:[i.jsx(bw,{className:I(qp({color:r,size:n}),"animate-spin")}),t&&i.jsx("p",{className:I("italic",qp({color:r})),children:t})]})};var Po="Switch",[yE,ST]=be(Po),[xE,CE]=yE(Po),Qp=u.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:s,disabled:l,value:c="on",onCheckedChange:d,form:f,...m}=e,[h,p]=u.useState(null),v=re(t,x=>p(x)),g=u.useRef(!1),b=h?f||!!h.closest("form"):!0,[y,w]=ye({prop:o,defaultProp:a??!1,onChange:d,caller:Po});return i.jsxs(xE,{scope:n,checked:y,disabled:l,children:[i.jsx(z.button,{type:"button",role:"switch","aria-checked":y,"aria-required":s,"data-state":th(y),"data-disabled":l?"":void 0,disabled:l,value:c,...m,ref:v,onClick:B(e.onClick,x=>{w(S=>!S),b&&(g.current=x.isPropagationStopped(),g.current||x.stopPropagation())})}),b&&i.jsx(eh,{control:h,bubbles:!g.current,name:r,value:c,checked:y,required:s,disabled:l,form:f,style:{transform:"translateX(-100%)"}})]})});Qp.displayName=Po;var Zp="SwitchThumb",Jp=u.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=CE(Zp,n);return i.jsx(z.span,{"data-state":th(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});Jp.displayName=Zp;var NE="SwitchBubbleInput",eh=u.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=u.useRef(null),l=re(s,a),c=Yn(n),d=Tr(t);return u.useEffect(()=>{const f=s.current;if(!f)return;const m=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(m,"checked").set;if(c!==n&&p){const v=new Event("click",{bubbles:r});p.call(f,n),f.dispatchEvent(v)}},[c,n,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:l,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});eh.displayName=NE;function th(e){return e?"checked":"unchecked"}var nh=Qp,SE=Jp;const rh=u.forwardRef(({className:e,...t},n)=>i.jsx(nh,{className:I("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:i.jsx(SE,{className:I("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")})}));rh.displayName=nh.displayName;var To="Tabs",[EE,ET]=be(To,[Nt]),oh=Nt(),[kE,Ys]=EE(To),ah=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:l,activationMode:c="automatic",...d}=e,f=bt(l),[m,h]=ye({prop:r,onChange:o,defaultProp:a??"",caller:To});return i.jsx(kE,{scope:n,baseId:pe(),value:m,onValueChange:h,orientation:s,dir:f,activationMode:c,children:i.jsx(z.div,{dir:f,"data-orientation":s,...d,ref:t})})});ah.displayName=To;var sh="TabsList",ih=u.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=Ys(sh,n),s=oh(n);return i.jsx(Ar,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:r,children:i.jsx(z.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});ih.displayName=sh;var lh="TabsTrigger",ch=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,s=Ys(lh,n),l=oh(n),c=fh(s.baseId,r),d=mh(s.baseId,r),f=r===s.value;return i.jsx(Ir,{asChild:!0,...l,focusable:!o,active:f,children:i.jsx(z.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:B(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?s.onValueChange(r):m.preventDefault()}),onKeyDown:B(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&s.onValueChange(r)}),onFocus:B(e.onFocus,()=>{const m=s.activationMode!=="manual";!f&&!o&&m&&s.onValueChange(r)})})})});ch.displayName=lh;var uh="TabsContent",dh=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...s}=e,l=Ys(uh,n),c=fh(l.baseId,r),d=mh(l.baseId,r),f=r===l.value,m=u.useRef(f);return u.useEffect(()=>{const h=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(h)},[]),i.jsx(xe,{present:o||f,children:({present:h})=>i.jsx(z.div,{"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!h,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:h&&a})})});dh.displayName=uh;function fh(e,t){return`${e}-trigger-${t}`}function mh(e,t){return`${e}-content-${t}`}var PE=ah,ph=ih,hh=ch,gh=dh;const TE=PE,vh=u.forwardRef(({className:e,...t},n)=>i.jsx(ph,{ref:n,className:I("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));vh.displayName=ph.displayName;const bh=u.forwardRef(({className:e,...t},n)=>i.jsx(hh,{ref:n,className:I("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}));bh.displayName=hh.displayName;const wh=u.forwardRef(({className:e,...t},n)=>i.jsx(gh,{ref:n,className:I("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));wh.displayName=gh.displayName;const yh=u.forwardRef(({className:e,...t},n)=>i.jsx("textarea",{className:I("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}));yh.displayName="Textarea";var ME=e=>{switch(e){case"success":return AE;case"info":return RE;case"warning":return IE;case"error":return DE;default:return null}},jE=Array(12).fill(0),_E=({visible:e,className:t})=>C.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},C.createElement("div",{className:"sonner-spinner"},jE.map((n,r)=>C.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),AE=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),IE=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),RE=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),DE=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),OE=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},C.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),C.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),$E=()=>{let[e,t]=C.useState(document.hidden);return C.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Ks=1,LE=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Ks++,a=this.toasts.find(l=>l.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:s,title:n}):l):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,a,s=r.then(async c=>{if(a=["resolve",c],C.isValidElement(c))o=!1,this.create({id:n,type:"default",message:c});else if(BE(c)&&!c.ok){o=!1;let d=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,f=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:n,type:"error",message:d,description:f})}else if(t.success!==void 0){o=!1;let d=typeof t.success=="function"?await t.success(c):t.success,f=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"success",message:d,description:f})}}).catch(async c=>{if(a=["reject",c],t.error!==void 0){o=!1;let d=typeof t.error=="function"?await t.error(c):t.error,f=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"error",message:d,description:f})}}).finally(()=>{var c;o&&(this.dismiss(n),n=void 0),(c=t.finally)==null||c.call(t)}),l=()=>new Promise((c,d)=>s.then(()=>a[0]==="reject"?d(a[1]):c(a[1])).catch(d));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Ks++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},_e=new LE,FE=(e,t)=>{let n=(t==null?void 0:t.id)||Ks++;return _e.addToast({title:e,...t,id:n}),n},BE=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",zE=FE,VE=()=>_e.toasts,WE=()=>_e.getActiveToasts(),mt=Object.assign(zE,{success:_e.success,info:_e.info,warning:_e.warning,error:_e.error,custom:_e.custom,message:_e.message,promise:_e.promise,dismiss:_e.dismiss,loading:_e.loading},{getHistory:VE,getToasts:WE});function HE(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}HE(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
290
|
-
`);function Mo(e){return e.label!==void 0}var GE=3,UE="32px",YE="16px",xh=4e3,KE=356,qE=14,XE=20,QE=200;function Ke(...e){return e.filter(Boolean).join(" ")}function ZE(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var JE=e=>{var t,n,r,o,a,s,l,c,d,f,m;let{invert:h,toast:p,unstyled:v,interacting:g,setHeights:b,visibleToasts:y,heights:w,index:x,toasts:S,expanded:k,removeToast:j,defaultRichColors:E,closeButton:P,style:_,cancelButtonStyle:$,actionButtonStyle:H,className:q="",descriptionClassName:W="",duration:U,position:te,gap:V,loadingIcon:X,expandByDefault:R,classNames:O,icons:M,closeButtonAriaLabel:Y="Close toast",pauseWhenPageIsHidden:T}=e,[D,L]=C.useState(null),[F,ee]=C.useState(null),[A,K]=C.useState(!1),[Q,ne]=C.useState(!1),[oe,ie]=C.useState(!1),[Ce,we]=C.useState(!1),[Be,$e]=C.useState(!1),[Ee,ze]=C.useState(0),[Te,rr]=C.useState(0),It=C.useRef(p.duration||U||xh),or=C.useRef(null),st=C.useRef(null),$o=x===0,Lo=x+1<=y,G=p.type,ae=p.dismissible!==!1,ue=p.className||"",ve=p.descriptionClassName||"",Ae=C.useMemo(()=>w.findIndex(se=>se.toastId===p.id)||0,[w,p.id]),pt=C.useMemo(()=>{var se;return(se=p.closeButton)!=null?se:P},[p.closeButton,P]),it=C.useMemo(()=>p.duration||U||xh,[p.duration,U]),ii=C.useRef(0),Nn=C.useRef(0),cg=C.useRef(0),Sn=C.useRef(null),[EP,kP]=te.split("-"),ug=C.useMemo(()=>w.reduce((se,me,he)=>he>=Ae?se:se+me.height,0),[w,Ae]),dg=$E(),PP=p.invert||h,li=G==="loading";Nn.current=C.useMemo(()=>Ae*V+ug,[Ae,ug]),C.useEffect(()=>{It.current=it},[it]),C.useEffect(()=>{K(!0)},[]),C.useEffect(()=>{let se=st.current;if(se){let me=se.getBoundingClientRect().height;return rr(me),b(he=>[{toastId:p.id,height:me,position:p.position},...he]),()=>b(he=>he.filter(qe=>qe.toastId!==p.id))}},[b,p.id]),C.useLayoutEffect(()=>{if(!A)return;let se=st.current,me=se.style.height;se.style.height="auto";let he=se.getBoundingClientRect().height;se.style.height=me,rr(he),b(qe=>qe.find(Xe=>Xe.toastId===p.id)?qe.map(Xe=>Xe.toastId===p.id?{...Xe,height:he}:Xe):[{toastId:p.id,height:he,position:p.position},...qe])},[A,p.title,p.description,b,p.id]);let Rt=C.useCallback(()=>{ne(!0),ze(Nn.current),b(se=>se.filter(me=>me.toastId!==p.id)),setTimeout(()=>{j(p)},QE)},[p,j,b,Nn]);C.useEffect(()=>{if(p.promise&&G==="loading"||p.duration===1/0||p.type==="loading")return;let se;return k||g||T&&dg?(()=>{if(cg.current<ii.current){let me=new Date().getTime()-ii.current;It.current=It.current-me}cg.current=new Date().getTime()})():It.current!==1/0&&(ii.current=new Date().getTime(),se=setTimeout(()=>{var me;(me=p.onAutoClose)==null||me.call(p,p),Rt()},It.current)),()=>clearTimeout(se)},[k,g,p,G,T,dg,Rt]),C.useEffect(()=>{p.delete&&Rt()},[Rt,p.delete]);function TP(){var se,me,he;return M!=null&&M.loading?C.createElement("div",{className:Ke(O==null?void 0:O.loader,(se=p==null?void 0:p.classNames)==null?void 0:se.loader,"sonner-loader"),"data-visible":G==="loading"},M.loading):X?C.createElement("div",{className:Ke(O==null?void 0:O.loader,(me=p==null?void 0:p.classNames)==null?void 0:me.loader,"sonner-loader"),"data-visible":G==="loading"},X):C.createElement(_E,{className:Ke(O==null?void 0:O.loader,(he=p==null?void 0:p.classNames)==null?void 0:he.loader),visible:G==="loading"})}return C.createElement("li",{tabIndex:0,ref:st,className:Ke(q,ue,O==null?void 0:O.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,O==null?void 0:O.default,O==null?void 0:O[G],(n=p==null?void 0:p.classNames)==null?void 0:n[G]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:E,"data-styled":!(p.jsx||p.unstyled||v),"data-mounted":A,"data-promise":!!p.promise,"data-swiped":Be,"data-removed":Q,"data-visible":Lo,"data-y-position":EP,"data-x-position":kP,"data-index":x,"data-front":$o,"data-swiping":oe,"data-dismissible":ae,"data-type":G,"data-invert":PP,"data-swipe-out":Ce,"data-swipe-direction":F,"data-expanded":!!(k||R&&A),style:{"--index":x,"--toasts-before":x,"--z-index":S.length-x,"--offset":`${Q?Ee:Nn.current}px`,"--initial-height":R?"auto":`${Te}px`,..._,...p.style},onDragEnd:()=>{ie(!1),L(null),Sn.current=null},onPointerDown:se=>{li||!ae||(or.current=new Date,ze(Nn.current),se.target.setPointerCapture(se.pointerId),se.target.tagName!=="BUTTON"&&(ie(!0),Sn.current={x:se.clientX,y:se.clientY}))},onPointerUp:()=>{var se,me,he,qe;if(Ce||!ae)return;Sn.current=null;let Xe=Number(((se=st.current)==null?void 0:se.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Dt=Number(((me=st.current)==null?void 0:me.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),qt=new Date().getTime()-((he=or.current)==null?void 0:he.getTime()),Qe=D==="x"?Xe:Dt,Ot=Math.abs(Qe)/qt;if(Math.abs(Qe)>=XE||Ot>.11){ze(Nn.current),(qe=p.onDismiss)==null||qe.call(p,p),ee(D==="x"?Xe>0?"right":"left":Dt>0?"down":"up"),Rt(),we(!0),$e(!1);return}ie(!1),L(null)},onPointerMove:se=>{var me,he,qe,Xe;if(!Sn.current||!ae||((me=window.getSelection())==null?void 0:me.toString().length)>0)return;let Dt=se.clientY-Sn.current.y,qt=se.clientX-Sn.current.x,Qe=(he=e.swipeDirections)!=null?he:ZE(te);!D&&(Math.abs(qt)>1||Math.abs(Dt)>1)&&L(Math.abs(qt)>Math.abs(Dt)?"x":"y");let Ot={x:0,y:0};D==="y"?(Qe.includes("top")||Qe.includes("bottom"))&&(Qe.includes("top")&&Dt<0||Qe.includes("bottom")&&Dt>0)&&(Ot.y=Dt):D==="x"&&(Qe.includes("left")||Qe.includes("right"))&&(Qe.includes("left")&&qt<0||Qe.includes("right")&&qt>0)&&(Ot.x=qt),(Math.abs(Ot.x)>0||Math.abs(Ot.y)>0)&&$e(!0),(qe=st.current)==null||qe.style.setProperty("--swipe-amount-x",`${Ot.x}px`),(Xe=st.current)==null||Xe.style.setProperty("--swipe-amount-y",`${Ot.y}px`)}},pt&&!p.jsx?C.createElement("button",{"aria-label":Y,"data-disabled":li,"data-close-button":!0,onClick:li||!ae?()=>{}:()=>{var se;Rt(),(se=p.onDismiss)==null||se.call(p,p)},className:Ke(O==null?void 0:O.closeButton,(o=p==null?void 0:p.classNames)==null?void 0:o.closeButton)},(a=M==null?void 0:M.close)!=null?a:OE):null,p.jsx||C.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:C.createElement(C.Fragment,null,G||p.icon||p.promise?C.createElement("div",{"data-icon":"",className:Ke(O==null?void 0:O.icon,(s=p==null?void 0:p.classNames)==null?void 0:s.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||TP():null,p.type!=="loading"?p.icon||(M==null?void 0:M[G])||ME(G):null):null,C.createElement("div",{"data-content":"",className:Ke(O==null?void 0:O.content,(l=p==null?void 0:p.classNames)==null?void 0:l.content)},C.createElement("div",{"data-title":"",className:Ke(O==null?void 0:O.title,(c=p==null?void 0:p.classNames)==null?void 0:c.title)},typeof p.title=="function"?p.title():p.title),p.description?C.createElement("div",{"data-description":"",className:Ke(W,ve,O==null?void 0:O.description,(d=p==null?void 0:p.classNames)==null?void 0:d.description)},typeof p.description=="function"?p.description():p.description):null),C.isValidElement(p.cancel)?p.cancel:p.cancel&&Mo(p.cancel)?C.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||$,onClick:se=>{var me,he;Mo(p.cancel)&&ae&&((he=(me=p.cancel).onClick)==null||he.call(me,se),Rt())},className:Ke(O==null?void 0:O.cancelButton,(f=p==null?void 0:p.classNames)==null?void 0:f.cancelButton)},p.cancel.label):null,C.isValidElement(p.action)?p.action:p.action&&Mo(p.action)?C.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||H,onClick:se=>{var me,he;Mo(p.action)&&((he=(me=p.action).onClick)==null||he.call(me,se),!se.defaultPrevented&&Rt())},className:Ke(O==null?void 0:O.actionButton,(m=p==null?void 0:p.classNames)==null?void 0:m.actionButton)},p.action.label):null))};function Ch(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function ek(e,t){let n={};return[e,t].forEach((r,o)=>{let a=o===1,s=a?"--mobile-offset":"--offset",l=a?YE:UE;function c(d){["top","right","bottom","left"].forEach(f=>{n[`${s}-${f}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${s}-${d}`]=l:n[`${s}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):c(l)}),n}var tk=C.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:a,closeButton:s,className:l,offset:c,mobileOffset:d,theme:f="light",richColors:m,duration:h,style:p,visibleToasts:v=GE,toastOptions:g,dir:b=Ch(),gap:y=qE,loadingIcon:w,icons:x,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:k}=e,[j,E]=C.useState([]),P=C.useMemo(()=>Array.from(new Set([r].concat(j.filter(T=>T.position).map(T=>T.position)))),[j,r]),[_,$]=C.useState([]),[H,q]=C.useState(!1),[W,U]=C.useState(!1),[te,V]=C.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=C.useRef(null),R=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=C.useRef(null),M=C.useRef(!1),Y=C.useCallback(T=>{E(D=>{var L;return(L=D.find(F=>F.id===T.id))!=null&&L.delete||_e.dismiss(T.id),D.filter(({id:F})=>F!==T.id)})},[]);return C.useEffect(()=>_e.subscribe(T=>{if(T.dismiss){E(D=>D.map(L=>L.id===T.id?{...L,delete:!0}:L));return}setTimeout(()=>{ar.flushSync(()=>{E(D=>{let L=D.findIndex(F=>F.id===T.id);return L!==-1?[...D.slice(0,L),{...D[L],...T},...D.slice(L+1)]:[T,...D]})})})}),[]),C.useEffect(()=>{if(f!=="system"){V(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;let T=window.matchMedia("(prefers-color-scheme: dark)");try{T.addEventListener("change",({matches:D})=>{V(D?"dark":"light")})}catch{T.addListener(({matches:L})=>{try{V(L?"dark":"light")}catch(F){console.error(F)}})}},[f]),C.useEffect(()=>{j.length<=1&&q(!1)},[j]),C.useEffect(()=>{let T=D=>{var L,F;o.every(ee=>D[ee]||D.code===ee)&&(q(!0),(L=X.current)==null||L.focus()),D.code==="Escape"&&(document.activeElement===X.current||(F=X.current)!=null&&F.contains(document.activeElement))&&q(!1)};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[o]),C.useEffect(()=>{if(X.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,M.current=!1)}},[X.current]),C.createElement("section",{ref:t,"aria-label":`${S} ${R}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((T,D)=>{var L;let[F,ee]=T.split("-");return j.length?C.createElement("ol",{key:T,dir:b==="auto"?Ch():b,tabIndex:-1,ref:X,className:l,"data-sonner-toaster":!0,"data-theme":te,"data-y-position":F,"data-lifted":H&&j.length>1&&!a,"data-x-position":ee,style:{"--front-toast-height":`${((L=_[0])==null?void 0:L.height)||0}px`,"--width":`${KE}px`,"--gap":`${y}px`,...p,...ek(c,d)},onBlur:A=>{M.current&&!A.currentTarget.contains(A.relatedTarget)&&(M.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:A=>{A.target instanceof HTMLElement&&A.target.dataset.dismissible==="false"||M.current||(M.current=!0,O.current=A.relatedTarget)},onMouseEnter:()=>q(!0),onMouseMove:()=>q(!0),onMouseLeave:()=>{W||q(!1)},onDragEnd:()=>q(!1),onPointerDown:A=>{A.target instanceof HTMLElement&&A.target.dataset.dismissible==="false"||U(!0)},onPointerUp:()=>U(!1)},j.filter(A=>!A.position&&D===0||A.position===T).map((A,K)=>{var Q,ne;return C.createElement(JE,{key:A.id,icons:x,index:K,toast:A,defaultRichColors:m,duration:(Q=g==null?void 0:g.duration)!=null?Q:h,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:v,closeButton:(ne=g==null?void 0:g.closeButton)!=null?ne:s,interacting:W,position:T,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:Y,toasts:j.filter(oe=>oe.position==A.position),heights:_.filter(oe=>oe.position==A.position),setHeights:$,expandByDefault:a,gap:y,loadingIcon:w,expanded:H,pauseWhenPageIsHidden:k,swipeDirections:e.swipeDirections})})):null}))});const jo=({onClick:e})=>i.jsx(fe,{onClick:()=>e(),variant:"ghost",size:"xl",className:"ml-auto px-3",children:i.jsx(ct,{className:"!h-6 !w-6"})}),nk={...mt,success:(e,t)=>{const n=mt.success(e,{...t,cancel:i.jsx(jo,{onClick:()=>mt.dismiss(n)})});return n},error:(e,t)=>{const n=mt.error(e,{...t,cancel:i.jsx(jo,{onClick:()=>mt.dismiss(n)})});return n},warning:(e,t)=>{const n=mt.warning(e,{...t,cancel:i.jsx(jo,{onClick:()=>mt.dismiss(n)})});return n},info:(e,t)=>{const n=mt.info(e,{...t,cancel:i.jsx(jo,{onClick:()=>mt.dismiss(n)})});return n}},rk=({...e})=>i.jsx(tk,{className:"toaster group",toastOptions:{classNames:{title:"py-3 px-0",toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg p-0",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",icon:"p-4 group-data-[type=error]:text-red-500 group-data-[type=success]:text-green-500 group-data-[type=warning]:text-amber-500 group-data-[type=info]:text-blue-500",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e});var Nh="Toggle",qs=u.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[s,l]=ye({prop:n,onChange:o,defaultProp:r??!1,caller:Nh});return i.jsx(z.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:B(e.onClick,()=>{e.disabled||l(!s)})})});qs.displayName=Nh;var Sh=qs;const Xs=Ft("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"}}),Eh=u.forwardRef(({className:e,variant:t,size:n,...r},o)=>i.jsx(Sh,{ref:o,className:I(Xs({variant:t,size:n,className:e})),...r}));Eh.displayName=Sh.displayName;var _t="ToggleGroup",[kh,kT]=be(_t,[Nt]),Ph=Nt(),Qs=C.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return i.jsx(ok,{...o,ref:t})}if(n==="multiple"){const o=r;return i.jsx(ak,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${_t}\``)});Qs.displayName=_t;var[Th,Mh]=kh(_t),ok=C.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,l]=ye({prop:n,defaultProp:r??"",onChange:o,caller:_t});return i.jsx(Th,{scope:e.__scopeToggleGroup,type:"single",value:C.useMemo(()=>s?[s]:[],[s]),onItemActivate:l,onItemDeactivate:C.useCallback(()=>l(""),[l]),children:i.jsx(jh,{...a,ref:t})})}),ak=C.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,l]=ye({prop:n,defaultProp:r??[],onChange:o,caller:_t}),c=C.useCallback(f=>l((m=[])=>[...m,f]),[l]),d=C.useCallback(f=>l((m=[])=>m.filter(h=>h!==f)),[l]);return i.jsx(Th,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:c,onItemDeactivate:d,children:i.jsx(jh,{...a,ref:t})})});Qs.displayName=_t;var[sk,ik]=kh(_t),jh=C.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:s,loop:l=!0,...c}=e,d=Ph(n),f=bt(s),m={role:"group",dir:f,...c};return i.jsx(sk,{scope:n,rovingFocus:o,disabled:r,children:o?i.jsx(Ar,{asChild:!0,...d,orientation:a,dir:f,loop:l,children:i.jsx(z.div,{...m,ref:t})}):i.jsx(z.div,{...m,ref:t})})}),_o="ToggleGroupItem",_h=C.forwardRef((e,t)=>{const n=Mh(_o,e.__scopeToggleGroup),r=ik(_o,e.__scopeToggleGroup),o=Ph(e.__scopeToggleGroup),a=n.value.includes(e.value),s=r.disabled||e.disabled,l={...e,pressed:a,disabled:s},c=C.useRef(null);return r.rovingFocus?i.jsx(Ir,{asChild:!0,...o,focusable:!s,active:a,ref:c,children:i.jsx(Ah,{...l,ref:t})}):i.jsx(Ah,{...l,ref:t})});_h.displayName=_o;var Ah=C.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=Mh(_o,n),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=a.type==="single"?s:void 0;return i.jsx(qs,{...l,...o,ref:t,onPressedChange:c=>{c?a.onItemActivate(r):a.onItemDeactivate(r)}})}),Ih=Qs,Rh=_h;const Dh=u.createContext({size:"default",variant:"default"}),Oh=u.forwardRef(({className:e,variant:t,size:n,children:r,...o},a)=>i.jsx(Ih,{ref:a,className:I("flex items-center justify-center gap-1",e),...o,children:i.jsx(Dh.Provider,{value:{variant:t,size:n},children:r})}));Oh.displayName=Ih.displayName;const $h=u.forwardRef(({className:e,children:t,variant:n,size:r,...o},a)=>{const s=u.useContext(Dh);return i.jsx(Rh,{ref:a,className:I(Xs({variant:s.variant||n,size:s.size||r}),e),...o,children:t})});$h.displayName=Rh.displayName;var[Ao,PT]=be("Tooltip",[Ct]),Io=Ct(),Lh="TooltipProvider",lk=700,Zs="tooltip.open",[ck,Js]=Ao(Lh),Fh=e=>{const{__scopeTooltip:t,delayDuration:n=lk,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=u.useRef(!0),l=u.useRef(!1),c=u.useRef(0);return u.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),i.jsx(ck,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:u.useCallback(d=>{l.current=d},[]),disableHoverableContent:o,children:a})};Fh.displayName=Lh;var er="Tooltip",[uk,tr]=Ao(er),Bh=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=e,c=Js(er,e.__scopeTooltip),d=Io(t),[f,m]=u.useState(null),h=pe(),p=u.useRef(0),v=s??c.disableHoverableContent,g=l??c.delayDuration,b=u.useRef(!1),[y,w]=ye({prop:r,defaultProp:o??!1,onChange:E=>{E?(c.onOpen(),document.dispatchEvent(new CustomEvent(Zs))):c.onClose(),a==null||a(E)},caller:er}),x=u.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),S=u.useCallback(()=>{window.clearTimeout(p.current),p.current=0,b.current=!1,w(!0)},[w]),k=u.useCallback(()=>{window.clearTimeout(p.current),p.current=0,w(!1)},[w]),j=u.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{b.current=!0,w(!0),p.current=0},g)},[g,w]);return u.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),i.jsx(On,{...d,children:i.jsx(uk,{scope:t,contentId:h,open:y,stateAttribute:x,trigger:f,onTriggerChange:m,onTriggerEnter:u.useCallback(()=>{c.isOpenDelayedRef.current?j():S()},[c.isOpenDelayedRef,j,S]),onTriggerLeave:u.useCallback(()=>{v?k():(window.clearTimeout(p.current),p.current=0)},[k,v]),onOpen:S,onClose:k,disableHoverableContent:v,children:n})})};Bh.displayName=er;var ei="TooltipTrigger",zh=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tr(ei,n),a=Js(ei,n),s=Io(n),l=u.useRef(null),c=re(t,l,o.onTriggerChange),d=u.useRef(!1),f=u.useRef(!1),m=u.useCallback(()=>d.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),i.jsx($n,{asChild:!0,...s,children:i.jsx(z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:B(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:B(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:B(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:B(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:B(e.onBlur,o.onClose),onClick:B(e.onClick,o.onClose)})})});zh.displayName=ei;var ti="TooltipPortal",[dk,fk]=Ao(ti,{forceMount:void 0}),Vh=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=tr(ti,t);return i.jsx(dk,{scope:t,forceMount:n,children:i.jsx(xe,{present:n||a.open,children:i.jsx(Ln,{asChild:!0,container:o,children:r})})})};Vh.displayName=ti;var Cn="TooltipContent",Wh=u.forwardRef((e,t)=>{const n=fk(Cn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=tr(Cn,e.__scopeTooltip);return i.jsx(xe,{present:r||s.open,children:s.disableHoverableContent?i.jsx(Hh,{side:o,...a,ref:t}):i.jsx(mk,{side:o,...a,ref:t})})}),mk=u.forwardRef((e,t)=>{const n=tr(Cn,e.__scopeTooltip),r=Js(Cn,e.__scopeTooltip),o=u.useRef(null),a=re(t,o),[s,l]=u.useState(null),{trigger:c,onClose:d}=n,f=o.current,{onPointerInTransitChange:m}=r,h=u.useCallback(()=>{l(null),m(!1)},[m]),p=u.useCallback((v,g)=>{const b=v.currentTarget,y={x:v.clientX,y:v.clientY},w=vk(y,b.getBoundingClientRect()),x=bk(y,w),S=wk(g.getBoundingClientRect()),k=xk([...x,...S]);l(k),m(!0)},[m]);return u.useEffect(()=>()=>h(),[h]),u.useEffect(()=>{if(c&&f){const v=b=>p(b,f),g=b=>p(b,c);return c.addEventListener("pointerleave",v),f.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",g)}}},[c,f,p,h]),u.useEffect(()=>{if(s){const v=g=>{const b=g.target,y={x:g.clientX,y:g.clientY},w=(c==null?void 0:c.contains(b))||(f==null?void 0:f.contains(b)),x=!yk(y,s);w?h():x&&(h(),d())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,f,s,d,h]),i.jsx(Hh,{...e,ref:a})}),[pk,hk]=Ao(er,{isInside:!1}),gk=rl("TooltipContent"),Hh=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=e,c=tr(Cn,n),d=Io(n),{onClose:f}=c;return u.useEffect(()=>(document.addEventListener(Zs,f),()=>document.removeEventListener(Zs,f)),[f]),u.useEffect(()=>{if(c.trigger){const m=h=>{const p=h.target;p!=null&&p.contains(c.trigger)&&f()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[c.trigger,f]),i.jsx(Bt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:i.jsxs(Mr,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.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:[i.jsx(gk,{children:r}),i.jsx(pk,{scope:n,isInside:!0,children:i.jsx(Au,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Wh.displayName=Cn;var Gh="TooltipArrow",Uh=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Io(n);return hk(Gh,n).isInside?null:i.jsx(jr,{...o,...r,ref:t})});Uh.displayName=Gh;function vk(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 bk(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 wk(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 yk(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 l=t[a],c=t[s],d=l.x,f=l.y,m=c.x,h=c.y;f>r!=h>r&&n<(m-d)*(r-f)/(h-f)+d&&(o=!o)}return o}function xk(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),Ck(t)}function Ck(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 Nk=Fh,Sk=Bh,Ek=zh,kk=Vh,Pk=Wh,Tk=Uh;function Yh({delayDuration:e=0,...t}){return i.jsx(Nk,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Mk({...e}){return i.jsx(Yh,{children:i.jsx(Sk,{"data-slot":"tooltip",...e})})}function jk({...e}){return i.jsx(Ek,{"data-slot":"tooltip-trigger",...e})}function _k({className:e,sideOffset:t=0,children:n,...r}){return i.jsx(kk,{children:i.jsxs(Pk,{"data-slot":"tooltip-content",sideOffset:t,className:I("bg-tooltip text-tooltip-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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,i.jsx(Tk,{className:"bg-tooltip fill-tooltip z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Ak=()=>{const[e,t]=C.useState([]);return[e,a=>{t([...e,a])},a=>{const s=[...e];s.splice(a,1),t(s)},(a,s)=>{const l=[...e];l.filter(c=>c[a]!==s),t(l)}]};function Ik(){const[e,t]=C.useState(null);return[e,async r=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(r),t(r),!0}catch(o){return console.warn("Copy failed",o),t(null),!1}}]}function Kh(e,t=250){const[n,r]=C.useState(e);return C.useEffect(()=>{const o=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(o)}},[e,t]),n}const qh=u.createContext(void 0),Xh={sm:"sm:max-w-[425px]",md:"sm:max-w-[550px]",lg:"sm:max-w-[700px]",xl:"sm:max-w-[900px]"},Qh={info:{icon:pl,className:"text-blue-500"},success:{icon:dl,className:"text-green-500"},error:{icon:ra,className:"text-red-500"},warning:{icon:ul,className:"text-yellow-500"},confirm:{icon:fl,className:"text-blue-500"},custom:{icon:fl,className:"text-gray-500"}};function Rk({children:e}){var g,b,y,w,x,S,k,j,E,P,_,$,H,q;const[t,n]=u.useState({isOpen:!1,options:null}),r=u.useCallback(W=>{n({isOpen:!0,options:W})},[]),o=u.useCallback(()=>{n(W=>({...W,isOpen:!1}))},[]),a=u.useCallback(W=>{r({...W,type:"info"})},[r]),s=u.useCallback(W=>{r({...W,type:"success"})},[r]),l=u.useCallback(W=>{r({...W,type:"error"})},[r]),c=u.useCallback(W=>{r({...W,type:"warning"})},[r]),d=u.useCallback(W=>{r({...W,type:"custom"})},[r]),f=u.useCallback(W=>{r({...W,type:"confirm"})},[r]),m=(W,U,te)=>{let V=Qh[W].icon;return U&&(V=U),i.jsx(V,{className:I("h-24 w-24",Qh[W].className,te)})},h=u.useMemo(()=>({open:r,close:o,info:a,success:s,error:l,warning:c,custom:d,confirm:f}),[r,o,a,s,l,c,d,f]),[p,v]=u.useState(!1);return i.jsxs(qh.Provider,{value:h,children:[e,i.jsx(po,{open:t.isOpen,onOpenChange:W=>!W&&o(),children:i.jsxs(Zn,{className:I((g=t.options)!=null&&g.size?Xh[t.options.size]:Xh.sm,(b=t.options)==null?void 0:b.className),showCloseButton:((y=t.options)==null?void 0:y.showCloseButton)??!0,onInteractOutside:W=>{var U;(U=t.options)!=null&&U.blockOutsideClick&&W.preventDefault()},children:[t.options&&i.jsxs(ho,{children:[i.jsx("div",{className:"mx-auto mb-6",children:m(t.options.type,t.options.icon,t.options.iconClassName)}),t.options.title&&i.jsx(go,{className:"text-center",children:t.options.title}),i.jsx(vo,{className:"text-center",children:t.options.message})]}),((w=t.options)==null?void 0:w.type)==="confirm"&&i.jsxs("div",{className:"flex justify-center gap-4 mt-4",children:[i.jsx(fe,{isLoading:p??((S=(x=t.options)==null?void 0:x.confirmButton)==null?void 0:S.loading),disabled:(j=(k=t.options)==null?void 0:k.confirmButton)==null?void 0:j.disabled,className:(E=t.options.confirmButton)==null?void 0:E.className,onClick:()=>{var U,te,V,X;if(!((te=(U=t.options)==null?void 0:U.confirmButton)!=null&&te.onClick))throw new Error("Confirmation type dialog needs to implement the onConfirm function");const W=(X=(V=t.options)==null?void 0:V.confirmButton)==null?void 0:X.onClick();W instanceof Promise?(v(!0),W.then(()=>{v(!1),o()}).finally(()=>v(!1))):o()},children:((P=t.options.confirmButton)==null?void 0:P.label)??"Confirm"}),((_=t.options.cancelButton)==null?void 0:_.label)&&i.jsx(fe,{variant:"outline",onClick:o,className:t.options.cancelButton.className,isLoading:($=t.options.cancelButton)==null?void 0:$.loading,disabled:p||((H=t.options.cancelButton)==null?void 0:H.disabled),children:(q=t.options.cancelButton)==null?void 0:q.label})]})]})})]})}function Dk(){const e=u.useContext(qh);if(e===void 0)throw new Error("useDialog must be used within a DialogProvider");return e}const Ok=(e=!1)=>{const[t,n]=u.useState(e),r=u.useCallback(()=>n(!0),[]),o=u.useCallback(()=>n(!1),[]),a=u.useCallback(()=>n(s=>!s),[]);return{isOpen:t,open:r,close:o,toggle:a}},$k=(e=!1)=>{const[t,n]=u.useState(e),r=u.useCallback(()=>n(!0),[]),o=u.useCallback(()=>n(!1),[]);return[t,r,o]};/*!
|
|
299
|
+
Defaulting to \`null\`.`}var Rp=Tp,fE=jp;const Gs=u.forwardRef(({className:e,value:t,...n},r)=>i.jsx(Rp,{ref:r,className:A("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:i.jsx(fE,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Gs.displayName=Rp.displayName;function mE(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",...l}=e,[c,d]=C.useState(""),[f,m]=C.useState(!1),h=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},p=y=>y===0?r.veryWeak:y<=25?r.weak:y<=50?r.medium:y<=75?r.strong:r.veryStrong,v=h(c),g=p(v),b=y=>{var w;d(y.target.value),(w=e.onChange)==null||w.call(e,y)};return i.jsxs("div",{className:"w-full space-y-4",children:[i.jsxs("div",{className:"relative",children:[i.jsx(gn,{...l,type:f?"text":"password",value:c,onChange:b,className:`pr-10 ${n||""}`}),i.jsx(de,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-full",onClick:()=>m(!f),"aria-label":f?a:o,children:f?i.jsx(dw,{className:"h-4 w-4"}):i.jsx(fw,{className:"h-4 w-4"})})]}),t&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsxs("span",{children:[s,":"]}),i.jsx("span",{children:g})]}),i.jsx(Gs,{value:v,className:"h-2"})]})]})}var Us="Radio",[pE,Dp]=be(Us),[hE,gE]=pE(Us),Op=u.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:s,value:l="on",onCheck:c,form:d,...f}=e,[m,h]=u.useState(null),p=re(t,b=>h(b)),v=u.useRef(!1),g=m?d||!!m.closest("form"):!0;return i.jsxs(hE,{scope:n,checked:o,disabled:s,children:[i.jsx(z.button,{type:"button",role:"radio","aria-checked":o,"data-state":Bp(o),"data-disabled":s?"":void 0,disabled:s,value:l,...f,ref:p,onClick:B(e.onClick,b=>{o||c==null||c(),g&&(v.current=b.isPropagationStopped(),v.current||b.stopPropagation())})}),g&&i.jsx(Fp,{control:m,bubbles:!v.current,name:r,value:l,checked:o,required:a,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});Op.displayName=Us;var $p="RadioIndicator",Lp=u.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=gE($p,n);return i.jsx(xe,{present:r||a.checked,children:i.jsx(z.span,{"data-state":Bp(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});Lp.displayName=$p;var vE="RadioBubbleInput",Fp=u.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=u.useRef(null),l=re(s,a),c=Kn(n),d=Tr(t);return u.useEffect(()=>{const f=s.current;if(!f)return;const m=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(m,"checked").set;if(c!==n&&p){const v=new Event("click",{bubbles:r});p.call(f,n),f.dispatchEvent(v)}},[c,n,r]),i.jsx(z.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:l,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Fp.displayName=vE;function Bp(e){return e?"checked":"unchecked"}var bE=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ko="RadioGroup",[wE,_T]=be(ko,[Nt,Dp]),zp=Nt(),Vp=Dp(),[yE,xE]=wE(ko),Wp=u.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:s=!1,disabled:l=!1,orientation:c,dir:d,loop:f=!0,onValueChange:m,...h}=e,p=zp(n),v=bt(d),[g,b]=ye({prop:a,defaultProp:o??null,onChange:m,caller:ko});return i.jsx(yE,{scope:n,name:r,required:s,disabled:l,value:g,onValueChange:b,children:i.jsx(Ar,{asChild:!0,...p,orientation:c,dir:v,loop:f,children:i.jsx(z.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":l?"":void 0,dir:v,...h,ref:t})})})});Wp.displayName=ko;var Hp="RadioGroupItem",Gp=u.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=xE(Hp,n),s=a.disabled||r,l=zp(n),c=Vp(n),d=u.useRef(null),f=re(t,d),m=a.value===o.value,h=u.useRef(!1);return u.useEffect(()=>{const p=g=>{bE.includes(g.key)&&(h.current=!0)},v=()=>h.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",v)}},[]),i.jsx(Ir,{asChild:!0,...l,focusable:!s,active:m,children:i.jsx(Op,{disabled:s,required:a.required,checked:m,...c,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:B(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:B(o.onFocus,()=>{var p;h.current&&((p=d.current)==null||p.click())})})})});Gp.displayName=Hp;var CE="RadioGroupIndicator",Up=u.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Vp(n);return i.jsx(Lp,{...o,...r,ref:t})});Up.displayName=CE;var Yp=Wp,Kp=Gp,NE=Up;const qp=u.forwardRef(({className:e,...t},n)=>i.jsx(Yp,{className:A("grid gap-2",e),...t,ref:n}));qp.displayName=Yp.displayName;const Xp=u.forwardRef(({className:e,...t},n)=>i.jsx(Kp,{ref:n,className:A("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:i.jsx(NE,{className:"flex items-center justify-center",children:i.jsx(ml,{className:"h-3.5 w-3.5 fill-primary"})})}));Xp.displayName=Kp.displayName;const SE=["primary","secondary","success","error","warning","info","white","neutral"],EE=["xs","sm","md","lg","xl","2xl"],Qp=Ft("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:{color:{primary:"text-primary",secondary:"text-secondary",success:"text-green-700",error:"text-red-700",warning:"text-yellow-700",info:"text-blue-700",white:"text-white",neutral:"text-gray-700"},size:{xs:"h-4 w-4",sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10",xl:"h-14 w-14","2xl":"h-20 w-20"}},defaultVariants:{color:"primary",size:"md"}}),Zp=e=>{const{label:t,size:n,color:r,className:o}=e;return i.jsxs("div",{className:A("flex flex-col justify-center items-center",o),children:[i.jsx(yw,{className:A(Qp({color:r,size:n}),"animate-spin")}),t&&i.jsx("p",{className:A("italic",Qp({color:r})),children:t})]})};var Po="Switch",[kE,AT]=be(Po),[PE,TE]=kE(Po),Jp=u.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:s,disabled:l,value:c="on",onCheckedChange:d,form:f,...m}=e,[h,p]=u.useState(null),v=re(t,x=>p(x)),g=u.useRef(!1),b=h?f||!!h.closest("form"):!0,[y,w]=ye({prop:o,defaultProp:a??!1,onChange:d,caller:Po});return i.jsxs(PE,{scope:n,checked:y,disabled:l,children:[i.jsx(z.button,{type:"button",role:"switch","aria-checked":y,"aria-required":s,"data-state":rh(y),"data-disabled":l?"":void 0,disabled:l,value:c,...m,ref:v,onClick:B(e.onClick,x=>{w(S=>!S),b&&(g.current=x.isPropagationStopped(),g.current||x.stopPropagation())})}),b&&i.jsx(nh,{control:h,bubbles:!g.current,name:r,value:c,checked:y,required:s,disabled:l,form:f,style:{transform:"translateX(-100%)"}})]})});Jp.displayName=Po;var eh="SwitchThumb",th=u.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=TE(eh,n);return i.jsx(z.span,{"data-state":rh(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});th.displayName=eh;var ME="SwitchBubbleInput",nh=u.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=u.useRef(null),l=re(s,a),c=Kn(n),d=Tr(t);return u.useEffect(()=>{const f=s.current;if(!f)return;const m=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(m,"checked").set;if(c!==n&&p){const v=new Event("click",{bubbles:r});p.call(f,n),f.dispatchEvent(v)}},[c,n,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:l,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});nh.displayName=ME;function rh(e){return e?"checked":"unchecked"}var oh=Jp,jE=th;const ah=u.forwardRef(({className:e,...t},n)=>i.jsx(oh,{className:A("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:i.jsx(jE,{className:A("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")})}));ah.displayName=oh.displayName;var To="Tabs",[_E,IT]=be(To,[Nt]),sh=Nt(),[AE,Ys]=_E(To),ih=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:l,activationMode:c="automatic",...d}=e,f=bt(l),[m,h]=ye({prop:r,onChange:o,defaultProp:a??"",caller:To});return i.jsx(AE,{scope:n,baseId:pe(),value:m,onValueChange:h,orientation:s,dir:f,activationMode:c,children:i.jsx(z.div,{dir:f,"data-orientation":s,...d,ref:t})})});ih.displayName=To;var lh="TabsList",ch=u.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=Ys(lh,n),s=sh(n);return i.jsx(Ar,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:r,children:i.jsx(z.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});ch.displayName=lh;var uh="TabsTrigger",dh=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,s=Ys(uh,n),l=sh(n),c=ph(s.baseId,r),d=hh(s.baseId,r),f=r===s.value;return i.jsx(Ir,{asChild:!0,...l,focusable:!o,active:f,children:i.jsx(z.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:B(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?s.onValueChange(r):m.preventDefault()}),onKeyDown:B(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&s.onValueChange(r)}),onFocus:B(e.onFocus,()=>{const m=s.activationMode!=="manual";!f&&!o&&m&&s.onValueChange(r)})})})});dh.displayName=uh;var fh="TabsContent",mh=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...s}=e,l=Ys(fh,n),c=ph(l.baseId,r),d=hh(l.baseId,r),f=r===l.value,m=u.useRef(f);return u.useEffect(()=>{const h=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(h)},[]),i.jsx(xe,{present:o||f,children:({present:h})=>i.jsx(z.div,{"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!h,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:h&&a})})});mh.displayName=fh;function ph(e,t){return`${e}-trigger-${t}`}function hh(e,t){return`${e}-content-${t}`}var IE=ih,gh=ch,vh=dh,bh=mh;const RE=IE,wh=u.forwardRef(({className:e,...t},n)=>i.jsx(gh,{ref:n,className:A("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));wh.displayName=gh.displayName;const yh=u.forwardRef(({className:e,...t},n)=>i.jsx(vh,{ref:n,className:A("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}));yh.displayName=vh.displayName;const xh=u.forwardRef(({className:e,...t},n)=>i.jsx(bh,{ref:n,className:A("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));xh.displayName=bh.displayName;const Ch=u.forwardRef(({className:e,...t},n)=>i.jsx("textarea",{className:A("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}));Ch.displayName="Textarea";var DE=e=>{switch(e){case"success":return LE;case"info":return BE;case"warning":return FE;case"error":return zE;default:return null}},OE=Array(12).fill(0),$E=({visible:e,className:t})=>C.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},C.createElement("div",{className:"sonner-spinner"},OE.map((n,r)=>C.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),LE=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),FE=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),BE=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),zE=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),VE=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},C.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),C.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),WE=()=>{let[e,t]=C.useState(document.hidden);return C.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Ks=1,HE=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Ks++,a=this.toasts.find(l=>l.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:s,title:n}):l):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,a,s=r.then(async c=>{if(a=["resolve",c],C.isValidElement(c))o=!1,this.create({id:n,type:"default",message:c});else if(UE(c)&&!c.ok){o=!1;let d=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,f=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:n,type:"error",message:d,description:f})}else if(t.success!==void 0){o=!1;let d=typeof t.success=="function"?await t.success(c):t.success,f=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"success",message:d,description:f})}}).catch(async c=>{if(a=["reject",c],t.error!==void 0){o=!1;let d=typeof t.error=="function"?await t.error(c):t.error,f=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"error",message:d,description:f})}}).finally(()=>{var c;o&&(this.dismiss(n),n=void 0),(c=t.finally)==null||c.call(t)}),l=()=>new Promise((c,d)=>s.then(()=>a[0]==="reject"?d(a[1]):c(a[1])).catch(d));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Ks++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},_e=new HE,GE=(e,t)=>{let n=(t==null?void 0:t.id)||Ks++;return _e.addToast({title:e,...t,id:n}),n},UE=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",YE=GE,KE=()=>_e.toasts,qE=()=>_e.getActiveToasts(),mt=Object.assign(YE,{success:_e.success,info:_e.info,warning:_e.warning,error:_e.error,custom:_e.custom,message:_e.message,promise:_e.promise,dismiss:_e.dismiss,loading:_e.loading},{getHistory:KE,getToasts:qE});function XE(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}XE(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
300
|
+
`);function Mo(e){return e.label!==void 0}var QE=3,ZE="32px",JE="16px",Nh=4e3,ek=356,tk=14,nk=20,rk=200;function Ke(...e){return e.filter(Boolean).join(" ")}function ok(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var ak=e=>{var t,n,r,o,a,s,l,c,d,f,m;let{invert:h,toast:p,unstyled:v,interacting:g,setHeights:b,visibleToasts:y,heights:w,index:x,toasts:S,expanded:k,removeToast:M,defaultRichColors:E,closeButton:P,style:_,cancelButtonStyle:$,actionButtonStyle:H,className:q="",descriptionClassName:W="",duration:U,position:te,gap:V,loadingIcon:X,expandByDefault:R,classNames:O,icons:j,closeButtonAriaLabel:Y="Close toast",pauseWhenPageIsHidden:T}=e,[D,L]=C.useState(null),[F,ee]=C.useState(null),[I,K]=C.useState(!1),[Q,ne]=C.useState(!1),[oe,ie]=C.useState(!1),[Ce,we]=C.useState(!1),[Be,$e]=C.useState(!1),[Ee,ze]=C.useState(0),[Te,rr]=C.useState(0),It=C.useRef(p.duration||U||Nh),or=C.useRef(null),st=C.useRef(null),$o=x===0,Lo=x+1<=y,G=p.type,ae=p.dismissible!==!1,ue=p.className||"",ve=p.descriptionClassName||"",Ae=C.useMemo(()=>w.findIndex(se=>se.toastId===p.id)||0,[w,p.id]),pt=C.useMemo(()=>{var se;return(se=p.closeButton)!=null?se:P},[p.closeButton,P]),it=C.useMemo(()=>p.duration||U||Nh,[p.duration,U]),ii=C.useRef(0),Sn=C.useRef(0),dg=C.useRef(0),En=C.useRef(null),[_P,AP]=te.split("-"),fg=C.useMemo(()=>w.reduce((se,me,he)=>he>=Ae?se:se+me.height,0),[w,Ae]),mg=WE(),IP=p.invert||h,li=G==="loading";Sn.current=C.useMemo(()=>Ae*V+fg,[Ae,fg]),C.useEffect(()=>{It.current=it},[it]),C.useEffect(()=>{K(!0)},[]),C.useEffect(()=>{let se=st.current;if(se){let me=se.getBoundingClientRect().height;return rr(me),b(he=>[{toastId:p.id,height:me,position:p.position},...he]),()=>b(he=>he.filter(qe=>qe.toastId!==p.id))}},[b,p.id]),C.useLayoutEffect(()=>{if(!I)return;let se=st.current,me=se.style.height;se.style.height="auto";let he=se.getBoundingClientRect().height;se.style.height=me,rr(he),b(qe=>qe.find(Xe=>Xe.toastId===p.id)?qe.map(Xe=>Xe.toastId===p.id?{...Xe,height:he}:Xe):[{toastId:p.id,height:he,position:p.position},...qe])},[I,p.title,p.description,b,p.id]);let Rt=C.useCallback(()=>{ne(!0),ze(Sn.current),b(se=>se.filter(me=>me.toastId!==p.id)),setTimeout(()=>{M(p)},rk)},[p,M,b,Sn]);C.useEffect(()=>{if(p.promise&&G==="loading"||p.duration===1/0||p.type==="loading")return;let se;return k||g||T&&mg?(()=>{if(dg.current<ii.current){let me=new Date().getTime()-ii.current;It.current=It.current-me}dg.current=new Date().getTime()})():It.current!==1/0&&(ii.current=new Date().getTime(),se=setTimeout(()=>{var me;(me=p.onAutoClose)==null||me.call(p,p),Rt()},It.current)),()=>clearTimeout(se)},[k,g,p,G,T,mg,Rt]),C.useEffect(()=>{p.delete&&Rt()},[Rt,p.delete]);function RP(){var se,me,he;return j!=null&&j.loading?C.createElement("div",{className:Ke(O==null?void 0:O.loader,(se=p==null?void 0:p.classNames)==null?void 0:se.loader,"sonner-loader"),"data-visible":G==="loading"},j.loading):X?C.createElement("div",{className:Ke(O==null?void 0:O.loader,(me=p==null?void 0:p.classNames)==null?void 0:me.loader,"sonner-loader"),"data-visible":G==="loading"},X):C.createElement($E,{className:Ke(O==null?void 0:O.loader,(he=p==null?void 0:p.classNames)==null?void 0:he.loader),visible:G==="loading"})}return C.createElement("li",{tabIndex:0,ref:st,className:Ke(q,ue,O==null?void 0:O.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,O==null?void 0:O.default,O==null?void 0:O[G],(n=p==null?void 0:p.classNames)==null?void 0:n[G]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:E,"data-styled":!(p.jsx||p.unstyled||v),"data-mounted":I,"data-promise":!!p.promise,"data-swiped":Be,"data-removed":Q,"data-visible":Lo,"data-y-position":_P,"data-x-position":AP,"data-index":x,"data-front":$o,"data-swiping":oe,"data-dismissible":ae,"data-type":G,"data-invert":IP,"data-swipe-out":Ce,"data-swipe-direction":F,"data-expanded":!!(k||R&&I),style:{"--index":x,"--toasts-before":x,"--z-index":S.length-x,"--offset":`${Q?Ee:Sn.current}px`,"--initial-height":R?"auto":`${Te}px`,..._,...p.style},onDragEnd:()=>{ie(!1),L(null),En.current=null},onPointerDown:se=>{li||!ae||(or.current=new Date,ze(Sn.current),se.target.setPointerCapture(se.pointerId),se.target.tagName!=="BUTTON"&&(ie(!0),En.current={x:se.clientX,y:se.clientY}))},onPointerUp:()=>{var se,me,he,qe;if(Ce||!ae)return;En.current=null;let Xe=Number(((se=st.current)==null?void 0:se.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Dt=Number(((me=st.current)==null?void 0:me.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),qt=new Date().getTime()-((he=or.current)==null?void 0:he.getTime()),Qe=D==="x"?Xe:Dt,Ot=Math.abs(Qe)/qt;if(Math.abs(Qe)>=nk||Ot>.11){ze(Sn.current),(qe=p.onDismiss)==null||qe.call(p,p),ee(D==="x"?Xe>0?"right":"left":Dt>0?"down":"up"),Rt(),we(!0),$e(!1);return}ie(!1),L(null)},onPointerMove:se=>{var me,he,qe,Xe;if(!En.current||!ae||((me=window.getSelection())==null?void 0:me.toString().length)>0)return;let Dt=se.clientY-En.current.y,qt=se.clientX-En.current.x,Qe=(he=e.swipeDirections)!=null?he:ok(te);!D&&(Math.abs(qt)>1||Math.abs(Dt)>1)&&L(Math.abs(qt)>Math.abs(Dt)?"x":"y");let Ot={x:0,y:0};D==="y"?(Qe.includes("top")||Qe.includes("bottom"))&&(Qe.includes("top")&&Dt<0||Qe.includes("bottom")&&Dt>0)&&(Ot.y=Dt):D==="x"&&(Qe.includes("left")||Qe.includes("right"))&&(Qe.includes("left")&&qt<0||Qe.includes("right")&&qt>0)&&(Ot.x=qt),(Math.abs(Ot.x)>0||Math.abs(Ot.y)>0)&&$e(!0),(qe=st.current)==null||qe.style.setProperty("--swipe-amount-x",`${Ot.x}px`),(Xe=st.current)==null||Xe.style.setProperty("--swipe-amount-y",`${Ot.y}px`)}},pt&&!p.jsx?C.createElement("button",{"aria-label":Y,"data-disabled":li,"data-close-button":!0,onClick:li||!ae?()=>{}:()=>{var se;Rt(),(se=p.onDismiss)==null||se.call(p,p)},className:Ke(O==null?void 0:O.closeButton,(o=p==null?void 0:p.classNames)==null?void 0:o.closeButton)},(a=j==null?void 0:j.close)!=null?a:VE):null,p.jsx||C.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:C.createElement(C.Fragment,null,G||p.icon||p.promise?C.createElement("div",{"data-icon":"",className:Ke(O==null?void 0:O.icon,(s=p==null?void 0:p.classNames)==null?void 0:s.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||RP():null,p.type!=="loading"?p.icon||(j==null?void 0:j[G])||DE(G):null):null,C.createElement("div",{"data-content":"",className:Ke(O==null?void 0:O.content,(l=p==null?void 0:p.classNames)==null?void 0:l.content)},C.createElement("div",{"data-title":"",className:Ke(O==null?void 0:O.title,(c=p==null?void 0:p.classNames)==null?void 0:c.title)},typeof p.title=="function"?p.title():p.title),p.description?C.createElement("div",{"data-description":"",className:Ke(W,ve,O==null?void 0:O.description,(d=p==null?void 0:p.classNames)==null?void 0:d.description)},typeof p.description=="function"?p.description():p.description):null),C.isValidElement(p.cancel)?p.cancel:p.cancel&&Mo(p.cancel)?C.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||$,onClick:se=>{var me,he;Mo(p.cancel)&&ae&&((he=(me=p.cancel).onClick)==null||he.call(me,se),Rt())},className:Ke(O==null?void 0:O.cancelButton,(f=p==null?void 0:p.classNames)==null?void 0:f.cancelButton)},p.cancel.label):null,C.isValidElement(p.action)?p.action:p.action&&Mo(p.action)?C.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||H,onClick:se=>{var me,he;Mo(p.action)&&((he=(me=p.action).onClick)==null||he.call(me,se),!se.defaultPrevented&&Rt())},className:Ke(O==null?void 0:O.actionButton,(m=p==null?void 0:p.classNames)==null?void 0:m.actionButton)},p.action.label):null))};function Sh(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function sk(e,t){let n={};return[e,t].forEach((r,o)=>{let a=o===1,s=a?"--mobile-offset":"--offset",l=a?JE:ZE;function c(d){["top","right","bottom","left"].forEach(f=>{n[`${s}-${f}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${s}-${d}`]=l:n[`${s}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):c(l)}),n}var ik=C.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:a,closeButton:s,className:l,offset:c,mobileOffset:d,theme:f="light",richColors:m,duration:h,style:p,visibleToasts:v=QE,toastOptions:g,dir:b=Sh(),gap:y=tk,loadingIcon:w,icons:x,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:k}=e,[M,E]=C.useState([]),P=C.useMemo(()=>Array.from(new Set([r].concat(M.filter(T=>T.position).map(T=>T.position)))),[M,r]),[_,$]=C.useState([]),[H,q]=C.useState(!1),[W,U]=C.useState(!1),[te,V]=C.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=C.useRef(null),R=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=C.useRef(null),j=C.useRef(!1),Y=C.useCallback(T=>{E(D=>{var L;return(L=D.find(F=>F.id===T.id))!=null&&L.delete||_e.dismiss(T.id),D.filter(({id:F})=>F!==T.id)})},[]);return C.useEffect(()=>_e.subscribe(T=>{if(T.dismiss){E(D=>D.map(L=>L.id===T.id?{...L,delete:!0}:L));return}setTimeout(()=>{ar.flushSync(()=>{E(D=>{let L=D.findIndex(F=>F.id===T.id);return L!==-1?[...D.slice(0,L),{...D[L],...T},...D.slice(L+1)]:[T,...D]})})})}),[]),C.useEffect(()=>{if(f!=="system"){V(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;let T=window.matchMedia("(prefers-color-scheme: dark)");try{T.addEventListener("change",({matches:D})=>{V(D?"dark":"light")})}catch{T.addListener(({matches:L})=>{try{V(L?"dark":"light")}catch(F){console.error(F)}})}},[f]),C.useEffect(()=>{M.length<=1&&q(!1)},[M]),C.useEffect(()=>{let T=D=>{var L,F;o.every(ee=>D[ee]||D.code===ee)&&(q(!0),(L=X.current)==null||L.focus()),D.code==="Escape"&&(document.activeElement===X.current||(F=X.current)!=null&&F.contains(document.activeElement))&&q(!1)};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[o]),C.useEffect(()=>{if(X.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,j.current=!1)}},[X.current]),C.createElement("section",{ref:t,"aria-label":`${S} ${R}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((T,D)=>{var L;let[F,ee]=T.split("-");return M.length?C.createElement("ol",{key:T,dir:b==="auto"?Sh():b,tabIndex:-1,ref:X,className:l,"data-sonner-toaster":!0,"data-theme":te,"data-y-position":F,"data-lifted":H&&M.length>1&&!a,"data-x-position":ee,style:{"--front-toast-height":`${((L=_[0])==null?void 0:L.height)||0}px`,"--width":`${ek}px`,"--gap":`${y}px`,...p,...sk(c,d)},onBlur:I=>{j.current&&!I.currentTarget.contains(I.relatedTarget)&&(j.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:I=>{I.target instanceof HTMLElement&&I.target.dataset.dismissible==="false"||j.current||(j.current=!0,O.current=I.relatedTarget)},onMouseEnter:()=>q(!0),onMouseMove:()=>q(!0),onMouseLeave:()=>{W||q(!1)},onDragEnd:()=>q(!1),onPointerDown:I=>{I.target instanceof HTMLElement&&I.target.dataset.dismissible==="false"||U(!0)},onPointerUp:()=>U(!1)},M.filter(I=>!I.position&&D===0||I.position===T).map((I,K)=>{var Q,ne;return C.createElement(ak,{key:I.id,icons:x,index:K,toast:I,defaultRichColors:m,duration:(Q=g==null?void 0:g.duration)!=null?Q:h,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:v,closeButton:(ne=g==null?void 0:g.closeButton)!=null?ne:s,interacting:W,position:T,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:Y,toasts:M.filter(oe=>oe.position==I.position),heights:_.filter(oe=>oe.position==I.position),setHeights:$,expandByDefault:a,gap:y,loadingIcon:w,expanded:H,pauseWhenPageIsHidden:k,swipeDirections:e.swipeDirections})})):null}))});const jo=({onClick:e})=>i.jsx(de,{onClick:()=>e(),variant:"ghost",size:"xl",className:"ml-auto px-3",children:i.jsx(ct,{className:"!h-6 !w-6"})}),lk={...mt,success:(e,t)=>{const n=mt.success(e,{...t,cancel:i.jsx(jo,{onClick:()=>mt.dismiss(n)})});return n},error:(e,t)=>{const n=mt.error(e,{...t,cancel:i.jsx(jo,{onClick:()=>mt.dismiss(n)})});return n},warning:(e,t)=>{const n=mt.warning(e,{...t,cancel:i.jsx(jo,{onClick:()=>mt.dismiss(n)})});return n},info:(e,t)=>{const n=mt.info(e,{...t,cancel:i.jsx(jo,{onClick:()=>mt.dismiss(n)})});return n}},ck=({...e})=>i.jsx(ik,{className:"toaster group",toastOptions:{classNames:{title:"py-3 px-0",toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg p-0",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",icon:"p-4 group-data-[type=error]:text-red-500 group-data-[type=success]:text-green-500 group-data-[type=warning]:text-amber-500 group-data-[type=info]:text-blue-500",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e});var Eh="Toggle",qs=u.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[s,l]=ye({prop:n,onChange:o,defaultProp:r??!1,caller:Eh});return i.jsx(z.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:B(e.onClick,()=>{e.disabled||l(!s)})})});qs.displayName=Eh;var kh=qs;const Xs=Ft("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"}}),Ph=u.forwardRef(({className:e,variant:t,size:n,...r},o)=>i.jsx(kh,{ref:o,className:A(Xs({variant:t,size:n,className:e})),...r}));Ph.displayName=kh.displayName;var _t="ToggleGroup",[Th,RT]=be(_t,[Nt]),Mh=Nt(),Qs=C.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return i.jsx(uk,{...o,ref:t})}if(n==="multiple"){const o=r;return i.jsx(dk,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${_t}\``)});Qs.displayName=_t;var[jh,_h]=Th(_t),uk=C.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,l]=ye({prop:n,defaultProp:r??"",onChange:o,caller:_t});return i.jsx(jh,{scope:e.__scopeToggleGroup,type:"single",value:C.useMemo(()=>s?[s]:[],[s]),onItemActivate:l,onItemDeactivate:C.useCallback(()=>l(""),[l]),children:i.jsx(Ah,{...a,ref:t})})}),dk=C.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,l]=ye({prop:n,defaultProp:r??[],onChange:o,caller:_t}),c=C.useCallback(f=>l((m=[])=>[...m,f]),[l]),d=C.useCallback(f=>l((m=[])=>m.filter(h=>h!==f)),[l]);return i.jsx(jh,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:c,onItemDeactivate:d,children:i.jsx(Ah,{...a,ref:t})})});Qs.displayName=_t;var[fk,mk]=Th(_t),Ah=C.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:s,loop:l=!0,...c}=e,d=Mh(n),f=bt(s),m={role:"group",dir:f,...c};return i.jsx(fk,{scope:n,rovingFocus:o,disabled:r,children:o?i.jsx(Ar,{asChild:!0,...d,orientation:a,dir:f,loop:l,children:i.jsx(z.div,{...m,ref:t})}):i.jsx(z.div,{...m,ref:t})})}),_o="ToggleGroupItem",Ih=C.forwardRef((e,t)=>{const n=_h(_o,e.__scopeToggleGroup),r=mk(_o,e.__scopeToggleGroup),o=Mh(e.__scopeToggleGroup),a=n.value.includes(e.value),s=r.disabled||e.disabled,l={...e,pressed:a,disabled:s},c=C.useRef(null);return r.rovingFocus?i.jsx(Ir,{asChild:!0,...o,focusable:!s,active:a,ref:c,children:i.jsx(Rh,{...l,ref:t})}):i.jsx(Rh,{...l,ref:t})});Ih.displayName=_o;var Rh=C.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=_h(_o,n),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=a.type==="single"?s:void 0;return i.jsx(qs,{...l,...o,ref:t,onPressedChange:c=>{c?a.onItemActivate(r):a.onItemDeactivate(r)}})}),Dh=Qs,Oh=Ih;const $h=u.createContext({size:"default",variant:"default"}),Lh=u.forwardRef(({className:e,variant:t,size:n,children:r,...o},a)=>i.jsx(Dh,{ref:a,className:A("flex items-center justify-center gap-1",e),...o,children:i.jsx($h.Provider,{value:{variant:t,size:n},children:r})}));Lh.displayName=Dh.displayName;const Fh=u.forwardRef(({className:e,children:t,variant:n,size:r,...o},a)=>{const s=u.useContext($h);return i.jsx(Oh,{ref:a,className:A(Xs({variant:s.variant||n,size:s.size||r}),e),...o,children:t})});Fh.displayName=Oh.displayName;var[Ao,DT]=be("Tooltip",[Ct]),Io=Ct(),Bh="TooltipProvider",pk=700,Zs="tooltip.open",[hk,Js]=Ao(Bh),zh=e=>{const{__scopeTooltip:t,delayDuration:n=pk,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=u.useRef(!0),l=u.useRef(!1),c=u.useRef(0);return u.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),i.jsx(hk,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:u.useCallback(d=>{l.current=d},[]),disableHoverableContent:o,children:a})};zh.displayName=Bh;var er="Tooltip",[gk,tr]=Ao(er),Vh=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=e,c=Js(er,e.__scopeTooltip),d=Io(t),[f,m]=u.useState(null),h=pe(),p=u.useRef(0),v=s??c.disableHoverableContent,g=l??c.delayDuration,b=u.useRef(!1),[y,w]=ye({prop:r,defaultProp:o??!1,onChange:E=>{E?(c.onOpen(),document.dispatchEvent(new CustomEvent(Zs))):c.onClose(),a==null||a(E)},caller:er}),x=u.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),S=u.useCallback(()=>{window.clearTimeout(p.current),p.current=0,b.current=!1,w(!0)},[w]),k=u.useCallback(()=>{window.clearTimeout(p.current),p.current=0,w(!1)},[w]),M=u.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{b.current=!0,w(!0),p.current=0},g)},[g,w]);return u.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),i.jsx($n,{...d,children:i.jsx(gk,{scope:t,contentId:h,open:y,stateAttribute:x,trigger:f,onTriggerChange:m,onTriggerEnter:u.useCallback(()=>{c.isOpenDelayedRef.current?M():S()},[c.isOpenDelayedRef,M,S]),onTriggerLeave:u.useCallback(()=>{v?k():(window.clearTimeout(p.current),p.current=0)},[k,v]),onOpen:S,onClose:k,disableHoverableContent:v,children:n})})};Vh.displayName=er;var ei="TooltipTrigger",Wh=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tr(ei,n),a=Js(ei,n),s=Io(n),l=u.useRef(null),c=re(t,l,o.onTriggerChange),d=u.useRef(!1),f=u.useRef(!1),m=u.useCallback(()=>d.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),i.jsx(Ln,{asChild:!0,...s,children:i.jsx(z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:B(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:B(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:B(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:B(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:B(e.onBlur,o.onClose),onClick:B(e.onClick,o.onClose)})})});Wh.displayName=ei;var ti="TooltipPortal",[vk,bk]=Ao(ti,{forceMount:void 0}),Hh=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=tr(ti,t);return i.jsx(vk,{scope:t,forceMount:n,children:i.jsx(xe,{present:n||a.open,children:i.jsx(Fn,{asChild:!0,container:o,children:r})})})};Hh.displayName=ti;var Nn="TooltipContent",Gh=u.forwardRef((e,t)=>{const n=bk(Nn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=tr(Nn,e.__scopeTooltip);return i.jsx(xe,{present:r||s.open,children:s.disableHoverableContent?i.jsx(Uh,{side:o,...a,ref:t}):i.jsx(wk,{side:o,...a,ref:t})})}),wk=u.forwardRef((e,t)=>{const n=tr(Nn,e.__scopeTooltip),r=Js(Nn,e.__scopeTooltip),o=u.useRef(null),a=re(t,o),[s,l]=u.useState(null),{trigger:c,onClose:d}=n,f=o.current,{onPointerInTransitChange:m}=r,h=u.useCallback(()=>{l(null),m(!1)},[m]),p=u.useCallback((v,g)=>{const b=v.currentTarget,y={x:v.clientX,y:v.clientY},w=Nk(y,b.getBoundingClientRect()),x=Sk(y,w),S=Ek(g.getBoundingClientRect()),k=Pk([...x,...S]);l(k),m(!0)},[m]);return u.useEffect(()=>()=>h(),[h]),u.useEffect(()=>{if(c&&f){const v=b=>p(b,f),g=b=>p(b,c);return c.addEventListener("pointerleave",v),f.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",g)}}},[c,f,p,h]),u.useEffect(()=>{if(s){const v=g=>{const b=g.target,y={x:g.clientX,y:g.clientY},w=(c==null?void 0:c.contains(b))||(f==null?void 0:f.contains(b)),x=!kk(y,s);w?h():x&&(h(),d())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,f,s,d,h]),i.jsx(Uh,{...e,ref:a})}),[yk,xk]=Ao(er,{isInside:!1}),Ck=rl("TooltipContent"),Uh=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=e,c=tr(Nn,n),d=Io(n),{onClose:f}=c;return u.useEffect(()=>(document.addEventListener(Zs,f),()=>document.removeEventListener(Zs,f)),[f]),u.useEffect(()=>{if(c.trigger){const m=h=>{const p=h.target;p!=null&&p.contains(c.trigger)&&f()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[c.trigger,f]),i.jsx(Bt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:i.jsxs(Mr,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.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:[i.jsx(Ck,{children:r}),i.jsx(yk,{scope:n,isInside:!0,children:i.jsx(Au,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Gh.displayName=Nn;var Yh="TooltipArrow",Kh=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Io(n);return xk(Yh,n).isInside?null:i.jsx(jr,{...o,...r,ref:t})});Kh.displayName=Yh;function Nk(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 Sk(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 Ek(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 kk(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 l=t[a],c=t[s],d=l.x,f=l.y,m=c.x,h=c.y;f>r!=h>r&&n<(m-d)*(r-f)/(h-f)+d&&(o=!o)}return o}function Pk(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),Tk(t)}function Tk(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 Mk=zh,jk=Vh,_k=Wh,Ak=Hh,Ik=Gh,Rk=Kh;function qh({delayDuration:e=0,...t}){return i.jsx(Mk,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Dk({...e}){return i.jsx(qh,{children:i.jsx(jk,{"data-slot":"tooltip",...e})})}function Ok({...e}){return i.jsx(_k,{"data-slot":"tooltip-trigger",...e})}function $k({className:e,sideOffset:t=0,children:n,...r}){return i.jsx(Ak,{children:i.jsxs(Ik,{"data-slot":"tooltip-content",sideOffset:t,className:A("bg-tooltip text-tooltip-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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,i.jsx(Rk,{className:"bg-tooltip fill-tooltip z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Lk=()=>{const[e,t]=C.useState([]);return[e,a=>{t([...e,a])},a=>{const s=[...e];s.splice(a,1),t(s)},(a,s)=>{const l=[...e];l.filter(c=>c[a]!==s),t(l)}]};function Fk(){const[e,t]=C.useState(null);return[e,async r=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(r),t(r),!0}catch(o){return console.warn("Copy failed",o),t(null),!1}}]}function Xh(e,t=250){const[n,r]=C.useState(e);return C.useEffect(()=>{const o=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(o)}},[e,t]),n}const Qh=u.createContext(void 0),Zh={sm:"sm:max-w-[425px]",md:"sm:max-w-[550px]",lg:"sm:max-w-[700px]",xl:"sm:max-w-[900px]"},Jh={info:{icon:pl,className:"text-blue-500"},success:{icon:dl,className:"text-green-500"},error:{icon:ra,className:"text-red-500"},warning:{icon:ul,className:"text-yellow-500"},confirm:{icon:fl,className:"text-blue-500"},custom:{icon:fl,className:"text-gray-500"}};function Bk({children:e}){var g,b,y,w,x,S,k,M,E,P,_,$,H,q;const[t,n]=u.useState({isOpen:!1,options:null}),r=u.useCallback(W=>{n({isOpen:!0,options:W})},[]),o=u.useCallback(()=>{n(W=>({...W,isOpen:!1}))},[]),a=u.useCallback(W=>{r({...W,type:"info"})},[r]),s=u.useCallback(W=>{r({...W,type:"success"})},[r]),l=u.useCallback(W=>{r({...W,type:"error"})},[r]),c=u.useCallback(W=>{r({...W,type:"warning"})},[r]),d=u.useCallback(W=>{r({...W,type:"custom"})},[r]),f=u.useCallback(W=>{r({...W,type:"confirm"})},[r]),m=(W,U,te)=>{let V=Jh[W].icon;return U&&(V=U),i.jsx(V,{className:A("h-24 w-24",Jh[W].className,te)})},h=u.useMemo(()=>({open:r,close:o,info:a,success:s,error:l,warning:c,custom:d,confirm:f}),[r,o,a,s,l,c,d,f]),[p,v]=u.useState(!1);return i.jsxs(Qh.Provider,{value:h,children:[e,i.jsx(po,{open:t.isOpen,onOpenChange:W=>!W&&o(),children:i.jsxs(Zn,{className:A((g=t.options)!=null&&g.size?Zh[t.options.size]:Zh.sm,(b=t.options)==null?void 0:b.className),showCloseButton:((y=t.options)==null?void 0:y.showCloseButton)??!0,onInteractOutside:W=>{var U;(U=t.options)!=null&&U.blockOutsideClick&&W.preventDefault()},children:[t.options&&i.jsxs(ho,{children:[i.jsx("div",{className:"mx-auto mb-6",children:m(t.options.type,t.options.icon,t.options.iconClassName)}),t.options.title&&i.jsx(go,{className:"text-center",children:t.options.title}),i.jsx(vo,{className:"text-center",children:t.options.message})]}),((w=t.options)==null?void 0:w.type)==="confirm"&&i.jsxs("div",{className:"flex justify-center gap-4 mt-4",children:[i.jsx(de,{isLoading:p??((S=(x=t.options)==null?void 0:x.confirmButton)==null?void 0:S.loading),disabled:(M=(k=t.options)==null?void 0:k.confirmButton)==null?void 0:M.disabled,className:(E=t.options.confirmButton)==null?void 0:E.className,onClick:()=>{var U,te,V,X;if(!((te=(U=t.options)==null?void 0:U.confirmButton)!=null&&te.onClick))throw new Error("Confirmation type dialog needs to implement the onConfirm function");const W=(X=(V=t.options)==null?void 0:V.confirmButton)==null?void 0:X.onClick();W instanceof Promise?(v(!0),W.then(()=>{v(!1),o()}).finally(()=>v(!1))):o()},children:((P=t.options.confirmButton)==null?void 0:P.label)??"Confirm"}),((_=t.options.cancelButton)==null?void 0:_.label)&&i.jsx(de,{variant:"outline",onClick:o,className:t.options.cancelButton.className,isLoading:($=t.options.cancelButton)==null?void 0:$.loading,disabled:p||((H=t.options.cancelButton)==null?void 0:H.disabled),children:(q=t.options.cancelButton)==null?void 0:q.label})]})]})})]})}function zk(){const e=u.useContext(Qh);if(e===void 0)throw new Error("useDialog must be used within a DialogProvider");return e}const Vk=(e=!1)=>{const[t,n]=u.useState(e),r=u.useCallback(()=>n(!0),[]),o=u.useCallback(()=>n(!1),[]),a=u.useCallback(()=>n(s=>!s),[]);return{isOpen:t,open:r,close:o,toggle:a}},Wk=(e=!1)=>{const[t,n]=u.useState(e),r=u.useCallback(()=>n(!0),[]),o=u.useCallback(()=>n(!1),[]);return[t,r,o]};/*!
|
|
291
301
|
* Compressor.js v1.2.1
|
|
292
302
|
* https://fengyuanchen.github.io/compressorjs
|
|
293
303
|
*
|
|
@@ -295,4 +305,4 @@ Defaulting to \`null\`.`}var Ap=kp,sE=Tp;const Gs=u.forwardRef(({className:e,val
|
|
|
295
305
|
* Released under the MIT license
|
|
296
306
|
*
|
|
297
307
|
* Date: 2023-02-28T14:09:41.732Z
|
|
298
|
-
*/function Zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ro(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zh(Object(n),!0).forEach(function(r){Bk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eg(r.key),r)}}function Fk(e,t,n){return t&&Jh(e.prototype,t),n&&Jh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bk(e,t,n){return t=eg(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Do(){return Do=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Do.apply(this,arguments)}function zk(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function eg(e){var t=zk(e,"string");return typeof t=="symbol"?t:String(t)}var tg={exports:{}};(function(e){typeof window>"u"||function(t){var n=t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype,r=t.Blob&&function(){try{return!!new Blob}catch{return!1}}(),o=r&&t.Uint8Array&&function(){try{return new Blob([new Uint8Array(100)]).size===100}catch{return!1}}(),a=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder,s=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,l=(r||a)&&t.atob&&t.ArrayBuffer&&t.Uint8Array&&function(c){var d,f,m,h,p,v,g,b,y;if(d=c.match(s),!d)throw new Error("invalid data URI");for(f=d[2]?d[1]:"text/plain"+(d[3]||";charset=US-ASCII"),m=!!d[4],h=c.slice(d[0].length),m?p=atob(h):p=decodeURIComponent(h),v=new ArrayBuffer(p.length),g=new Uint8Array(v),b=0;b<p.length;b+=1)g[b]=p.charCodeAt(b);return r?new Blob([o?g:v],{type:f}):(y=new a,y.append(v),y.getBlob(f))};t.HTMLCanvasElement&&!n.toBlob&&(n.mozGetAsFile?n.toBlob=function(c,d,f){var m=this;setTimeout(function(){f&&n.toDataURL&&l?c(l(m.toDataURL(d,f))):c(m.mozGetAsFile("blob",d))})}:n.toDataURL&&l&&(n.msToBlob?n.toBlob=function(c,d,f){var m=this;setTimeout(function(){(d&&d!=="image/png"||f)&&n.toDataURL&&l?c(l(m.toDataURL(d,f))):c(m.msToBlob(d))})}:n.toBlob=function(c,d,f){var m=this;setTimeout(function(){c(l(m.toDataURL(d,f)))})})),e.exports?e.exports=l:t.dataURLtoBlob=l}(window)})(tg);var ng=tg.exports,Vk=function(t){return typeof Blob>"u"?!1:t instanceof Blob||Object.prototype.toString.call(t)==="[object Blob]"},rg={strict:!0,checkOrientation:!0,retainExif:!1,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,resize:"none",quality:.8,mimeType:"auto",convertTypes:["image/png"],convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},Wk=typeof window<"u"&&typeof window.document<"u",At=Wk?window:{},Oo=function(t){return t>0&&t<1/0},Hk=Array.prototype.slice;function ni(e){return Array.from?Array.from(e):Hk.call(e)}var Gk=/^image\/.+$/;function ri(e){return Gk.test(e)}function Uk(e){var t=ri(e)?e.substr(6):"";return t==="jpeg"&&(t="jpg"),".".concat(t)}var og=String.fromCharCode;function Yk(e,t,n){var r="",o;for(n+=t,o=t;o<n;o+=1)r+=og(e.getUint8(o));return r}var Kk=At.btoa;function ag(e,t){for(var n=[],r=8192,o=new Uint8Array(e);o.length>0;)n.push(og.apply(null,ni(o.subarray(0,r)))),o=o.subarray(r);return"data:".concat(t,";base64,").concat(Kk(n.join("")))}function qk(e){var t=new DataView(e),n;try{var r,o,a;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(var s=t.byteLength,l=2;l+1<s;){if(t.getUint8(l)===255&&t.getUint8(l+1)===225){o=l;break}l+=1}if(o){var c=o+4,d=o+10;if(Yk(t,c,4)==="Exif"){var f=t.getUint16(d);if(r=f===18761,(r||f===19789)&&t.getUint16(d+2,r)===42){var m=t.getUint32(d+4,r);m>=8&&(a=d+m)}}}if(a){var h=t.getUint16(a,r),p,v;for(v=0;v<h;v+=1)if(p=a+v*12+2,t.getUint16(p,r)===274){p+=8,n=t.getUint16(p,r),t.setUint16(p,1,r);break}}}catch{n=1}return n}function Xk(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90;break}return{rotate:t,scaleX:n,scaleY:r}}var Qk=/\.\d*(?:0|9){12}\d*$/;function sg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Qk.test(e)?Math.round(e*t)/t:e}function nr(e){var t=e.aspectRatio,n=e.height,r=e.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none",a=Oo(r),s=Oo(n);if(a&&s){var l=n*t;(o==="contain"||o==="none")&&l>r||o==="cover"&&l<r?n=r/t:r=n*t}else a?n=r/t:s&&(r=n*t);return{width:r,height:n}}function Zk(e){for(var t=ni(new Uint8Array(e)),n=t.length,r=[],o=0;o+3<n;){var a=t[o],s=t[o+1];if(a===255&&s===218)break;if(a===255&&s===216)o+=2;else{var l=t[o+2]*256+t[o+3],c=o+l+2,d=t.slice(o,c);r.push(d),o=c}}return r.reduce(function(f,m){return m[0]===255&&m[1]===225?f.concat(m):f},[])}function Jk(e,t){var n=ni(new Uint8Array(e));if(n[2]!==255||n[3]!==224)return e;var r=n[4]*256+n[5],o=[255,216].concat(t,n.slice(4+r));return new Uint8Array(o)}var eP=At.ArrayBuffer,oi=At.FileReader,Kt=At.URL||At.webkitURL,tP=/\.\w+$/,nP=At.Compressor,rP=function(){function e(t,n){Lk(this,e),this.file=t,this.exif=[],this.image=new Image,this.options=Ro(Ro({},rg),n),this.aborted=!1,this.result=null,this.init()}return Fk(e,[{key:"init",value:function(){var n=this,r=this.file,o=this.options;if(!Vk(r)){this.fail(new Error("The first argument must be a File or Blob object."));return}var a=r.type;if(!ri(a)){this.fail(new Error("The first argument must be an image File or Blob object."));return}if(!Kt||!oi){this.fail(new Error("The current browser does not support image compression."));return}eP||(o.checkOrientation=!1,o.retainExif=!1);var s=a==="image/jpeg",l=s&&o.checkOrientation,c=s&&o.retainExif;if(Kt&&!l&&!c)this.load({url:Kt.createObjectURL(r)});else{var d=new oi;this.reader=d,d.onload=function(f){var m=f.target,h=m.result,p={},v=1;l&&(v=qk(h),v>1&&Do(p,Xk(v))),c&&(n.exif=Zk(h)),l||c?!Kt||v>1?p.url=ag(h,a):p.url=Kt.createObjectURL(r):p.url=h,n.load(p)},d.onabort=function(){n.fail(new Error("Aborted to read the image with FileReader."))},d.onerror=function(){n.fail(new Error("Failed to read the image with FileReader."))},d.onloadend=function(){n.reader=null},l||c?d.readAsArrayBuffer(r):d.readAsDataURL(r)}}},{key:"load",value:function(n){var r=this,o=this.file,a=this.image;a.onload=function(){r.draw(Ro(Ro({},n),{},{naturalWidth:a.naturalWidth,naturalHeight:a.naturalHeight}))},a.onabort=function(){r.fail(new Error("Aborted to load the image."))},a.onerror=function(){r.fail(new Error("Failed to load the image."))},At.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(At.navigator.userAgent)&&(a.crossOrigin="anonymous"),a.alt=o.name,a.src=n.url}},{key:"draw",value:function(n){var r=this,o=n.naturalWidth,a=n.naturalHeight,s=n.rotate,l=s===void 0?0:s,c=n.scaleX,d=c===void 0?1:c,f=n.scaleY,m=f===void 0?1:f,h=this.file,p=this.image,v=this.options,g=document.createElement("canvas"),b=g.getContext("2d"),y=Math.abs(l)%180===90,w=(v.resize==="contain"||v.resize==="cover")&&Oo(v.width)&&Oo(v.height),x=Math.max(v.maxWidth,0)||1/0,S=Math.max(v.maxHeight,0)||1/0,k=Math.max(v.minWidth,0)||0,j=Math.max(v.minHeight,0)||0,E=o/a,P=v.width,_=v.height;if(y){var $=[S,x];x=$[0],S=$[1];var H=[j,k];k=H[0],j=H[1];var q=[_,P];P=q[0],_=q[1]}w&&(E=P/_);var W=nr({aspectRatio:E,width:x,height:S},"contain");x=W.width,S=W.height;var U=nr({aspectRatio:E,width:k,height:j},"cover");if(k=U.width,j=U.height,w){var te=nr({aspectRatio:E,width:P,height:_},v.resize);P=te.width,_=te.height}else{var V=nr({aspectRatio:E,width:P,height:_}),X=V.width;P=X===void 0?o:X;var R=V.height;_=R===void 0?a:R}P=Math.floor(sg(Math.min(Math.max(P,k),x))),_=Math.floor(sg(Math.min(Math.max(_,j),S)));var O=-P/2,M=-_/2,Y=P,T=_,D=[];if(w){var L=0,F=0,ee=o,A=a,K=nr({aspectRatio:E,width:o,height:a},{contain:"cover",cover:"contain"}[v.resize]);ee=K.width,A=K.height,L=(o-ee)/2,F=(a-A)/2,D.push(L,F,ee,A)}if(D.push(O,M,Y,T),y){var Q=[_,P];P=Q[0],_=Q[1]}g.width=P,g.height=_,ri(v.mimeType)||(v.mimeType=h.type);var ne="transparent";h.size>v.convertSize&&v.convertTypes.indexOf(v.mimeType)>=0&&(v.mimeType="image/jpeg");var oe=v.mimeType==="image/jpeg";if(oe&&(ne="#fff"),b.fillStyle=ne,b.fillRect(0,0,P,_),v.beforeDraw&&v.beforeDraw.call(this,b,g),!this.aborted&&(b.save(),b.translate(P/2,_/2),b.rotate(l*Math.PI/180),b.scale(d,m),b.drawImage.apply(b,[p].concat(D)),b.restore(),v.drew&&v.drew.call(this,b,g),!this.aborted)){var ie=function(we){if(!r.aborted){var Be=function(Te){return r.done({naturalWidth:o,naturalHeight:a,result:Te})};if(we&&oe&&v.retainExif&&r.exif&&r.exif.length>0){var $e=function(Te){return Be(ng(ag(Jk(Te,r.exif),v.mimeType)))};if(we.arrayBuffer)we.arrayBuffer().then($e).catch(function(){r.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))});else{var Ee=new oi;r.reader=Ee,Ee.onload=function(ze){var Te=ze.target;$e(Te.result)},Ee.onabort=function(){r.fail(new Error("Aborted to read the compressed image with FileReader."))},Ee.onerror=function(){r.fail(new Error("Failed to read the compressed image with FileReader."))},Ee.onloadend=function(){r.reader=null},Ee.readAsArrayBuffer(we)}}else Be(we)}};g.toBlob?g.toBlob(ie,v.mimeType,v.quality):ie(ng(g.toDataURL(v.mimeType,v.quality)))}}},{key:"done",value:function(n){var r=n.naturalWidth,o=n.naturalHeight,a=n.result,s=this.file,l=this.image,c=this.options;if(Kt&&l.src.indexOf("blob:")===0&&Kt.revokeObjectURL(l.src),a)if(c.strict&&!c.retainExif&&a.size>s.size&&c.mimeType===s.type&&!(c.width>r||c.height>o||c.minWidth>r||c.minHeight>o||c.maxWidth<r||c.maxHeight<o))a=s;else{var d=new Date;a.lastModified=d.getTime(),a.lastModifiedDate=d,a.name=s.name,a.name&&a.type!==s.type&&(a.name=a.name.replace(tP,Uk(a.type)))}else a=s;this.result=a,c.success&&c.success.call(this,a)}},{key:"fail",value:function(n){var r=this.options;if(r.error)r.error.call(this,n);else throw n}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}],[{key:"noConflict",value:function(){return window.Compressor=nP,e}},{key:"setDefaults",value:function(n){Do(rg,n)}}]),e}();const oP=()=>({compressImage:async(n,r)=>await new Promise((o,a)=>{new rP(n,r??{quality:.8,maxWidth:2e3,maxHeight:2e3,mimeType:"image/jpeg",success(s){o(s)},error(s){a(s)}})}),formatFileSize:n=>{var r=n===0?0:Math.floor(Math.log(n)/Math.log(1024));return+(n/Math.pow(1024,r)).toFixed(2)*1+" "+["B","kB","MB","GB","TB"][r]}}),aP=function(e,t){const[n,r]=C.useState(!1);function o({key:s}){s===e&&r(!0)}const a=({key:s})=>{s===e&&r(!1)};return C.useEffect(()=>(window.addEventListener("keydown",o),window.addEventListener("keyup",a),()=>{window.removeEventListener("keydown",o),window.removeEventListener("keyup",a)})),C.useEffect(()=>{n&&(t==null||t(n))},[n]),n};function sP(e,t){const[n,r]=C.useState(()=>{try{const s=window.localStorage.getItem(e);return s?JSON.parse(s):t}catch(s){return console.error(s),t}});return[n,s=>{try{const l=s instanceof Function?s(n):s;r(l),window.localStorage.setItem(e,JSON.stringify(l))}catch(l){console.error(l)}},()=>{try{r(t),window.localStorage.removeItem(e)}catch(s){console.error(s)}}]}function iP(e){const[t,n]=C.useState(!1);return C.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 ai=768;function lP(){const[e,t]=u.useState(void 0);return u.useEffect(()=>{const n=window.matchMedia(`(max-width: ${ai-1}px)`),r=()=>{t(window.innerWidth<ai)};return n.addEventListener("change",r),t(window.innerWidth<ai),()=>n.removeEventListener("change",r)},[]),!!e}const cP=()=>{const[e,t]=C.useState(null),[n,r]=C.useState(!1);return C.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)}))}}},si=e=>{const{currentPage:t,totalPages:n,totalItems:r,startIndex:o,endIndex:a,onPageChange:s,onPreviousPage:l,onNextPage:c,showItemsCounter:d=!0,counterText:f="Showing {{startIndex}} to {{endIndex}} of {{totalItems}} results"}=e,m=()=>{const h=[];if(n<=7)for(let v=1;v<=n;v++)h.push(v);else{h.push(1),t>4&&h.push("...");const v=Math.max(2,t-1),g=Math.min(n-1,t+1);for(let b=v;b<=g;b++)b!==1&&b!==n&&h.push(b);t<n-3&&h.push("..."),n>1&&h.push(n)}return h};return n<=1?null:i.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4",children:[d?i.jsx("div",{className:"text-sm text-muted-foreground",children:el(f,{startIndex:o+1,endIndex:a,totalItems:r})}):null,i.jsxs("div",{className:"flex items-center space-x-1",children:[i.jsx(fe,{variant:"outline",size:"sm",onClick:l,disabled:t===1,className:"h-8 w-8 p-0",children:i.jsx(gr,{className:"h-4 w-4"})}),m().map((h,p)=>i.jsx(C.Fragment,{children:h==="..."?i.jsx("span",{className:"px-2 text-muted-foreground",children:"..."}):i.jsx(fe,{variant:t===h?"default":"outline",size:"sm",onClick:()=>s(h),className:"h-8 w-8 p-0",children:h})},p)),i.jsx(fe,{variant:"outline",size:"sm",onClick:c,disabled:t===n,className:"h-8 w-8 p-0",children:i.jsx(_n,{className:"h-4 w-4"})})]})]})};function uP({data:e,columns:t,searchFields:n,filters:r=[],pageSize:o=40,className:a="",loading:s=!1,tools:l,activeFilters:c={}},d){var Ee,ze,Te,rr,It,or,st,$o,Lo;const[f,m]=C.useState(""),[h,p]=C.useState(1),[v,g]=C.useState(c),[b,y]=C.useState({field:null,direction:null}),[w,x]=C.useState(new Set),[S,k]=C.useState(t),[j,E]=C.useState(0),P=Kh(f,1e3),_=(G,ae)=>String(G.id||G._id||`row-${ae}`),$=C.useMemo(()=>{let G=e.slice();if(P.trim()){const ae=P.toLowerCase();G=G.filter(ue=>n.some(ve=>{const Ae=ue[ve];return Ae==null?!1:String(Ae).toLowerCase().includes(ae)}))}if(Object.entries(v).forEach(([ae,ue])=>{ue&&ue!=="all"&&(G=G.filter(ve=>{const Ae=ve[ae];return String(Ae)===ue}))}),b.field&&b.direction){const{field:ae,direction:ue}=b;G.sort((ve,Ae)=>{const pt=ve[ae],it=Ae[ae];return pt==null&&it==null?0:pt==null?ue==="asc"?-1:1:it==null?ue==="asc"?1:-1:typeof pt=="string"&&typeof it=="string"?ue==="asc"?pt.localeCompare(it):it.localeCompare(pt):ue==="asc"?pt-it:it-pt})}return G},[e,n,P,v,b,j]),H=C.useMemo(()=>{const G=$.length,ae=Math.ceil(G/o),ue=(h-1)*o,ve=ue+o;return{currentData:$.slice(ue,ve),totalItems:G,totalPages:ae,startIndex:ue,endIndex:Math.min(ve,G)}},[$,h,o]);C.useEffect(()=>{p(1)},[P,v,b]);const q=C.useCallback(()=>$.filter((G,ae)=>{const ue=_(G,ae);return w.has(ue)}),[$,w]),W=C.useCallback(()=>w.size,[w]),U=C.useCallback(G=>{x(new Set(G))},[]),te=C.useCallback(()=>$,[$]),V=C.useCallback(()=>{g({}),m(""),y({field:null,direction:null}),p(1)},[]),X=C.useCallback((G="table-export")=>{d1($,S,G)},[$,S]),R=C.useCallback(G=>{G>=1&&G<=H.totalPages&&p(G)},[H.totalPages]),O=C.useCallback(()=>{E(G=>G+1)},[]),M=C.useCallback((G,ae)=>{g(ue=>({...ue,[G]:ae}))},[]),Y=C.useCallback(G=>{g(ae=>{const ue={...ae};return delete ue[G],ue})},[]),T=C.useCallback(()=>{V()},[V]),D=C.useCallback(G=>{y(ae=>ae.field===G?ae.direction==="asc"?{field:G,direction:"desc"}:ae.direction==="desc"?{field:null,direction:null}:{field:G,direction:"asc"}:{field:G,direction:"asc"})},[]),L=C.useCallback((G,ae)=>{k(ue=>ue.map(ve=>String(ve.key)===G?{...ve,hidden:!ae}:ve))},[]),F=C.useCallback(()=>{k(t)},[t]),ee=C.useCallback(G=>{if(G){const ae=new Set;H.currentData.forEach((ue,ve)=>{const Ae=_(ue,ve);ae.add(Ae)}),x(ae)}else x(new Set)},[H.currentData]),A=C.useCallback((G,ae)=>{x(ue=>{const ve=new Set(ue);return ae?ve.add(G):ve.delete(G),ve})},[]),K=C.useCallback(()=>{X()},[X]),Q=C.useCallback(()=>{p(G=>Math.max(G-1,1))},[]),ne=C.useCallback(()=>{p(G=>Math.min(G+1,H.totalPages))},[H.totalPages]),oe=C.useCallback(G=>{R(G)},[R]),Ce=Object.values(v).filter(G=>G&&G!=="all").length>0||f.trim().length>0||b.field!==null,we=S.filter(G=>!G.hidden),Be=w.size,$e=C.useMemo(()=>H.currentData.length>0&&H.currentData.every((G,ae)=>{const ue=_(G,ae);return w.has(ue)}),[H.currentData,w]);return C.useImperativeHandle(d,()=>({getSelectedItems:q,clearSelection:()=>x(new Set),getSelectionCount:W,selectItems:U,getFilteredData:te,resetFilters:V,exportData:X,goToPage:R,refresh:O}),[q,W,U,te,V,X,R,O]),s?i.jsxs("div",{className:`space-y-4 ${a}`,children:[i.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[i.jsx(Oe,{className:"h-10 w-full max-w-sm"}),r.map((G,ae)=>i.jsx(Oe,{className:"h-10 w-30"},ae)),i.jsx(Oe,{className:"h-10 w-32 ml-auto"})]}),i.jsx(u1,{columns:we.length+1,rows:o}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx(Oe,{className:"h-4 w-48"}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx(Oe,{className:"h-8 w-20"}),i.jsx(Oe,{className:"h-8 w-8"}),i.jsx(Oe,{className:"h-8 w-8"}),i.jsx(Oe,{className:"h-8 w-8"}),i.jsx(Oe,{className:"h-8 w-20"})]})]})]}):i.jsxs("div",{className:`space-y-4 ${a}`,children:[i.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[(Ee=l==null?void 0:l.search)!=null&&Ee.hide?null:i.jsx(n1,{placeholder:(ze=l==null?void 0:l.search)==null?void 0:ze.placeholder,value:f,onChange:m}),r.map(G=>i.jsx(e1,{filter:G,value:v[String(G.field)],onChange:ae=>M(String(G.field),ae)},String(G.field))),(Te=l==null?void 0:l.columnSelector)!=null&&Te.hide?i.jsx(EC,{columns:S,onToggleVisibility:L,onReset:F}):null,(rr=l==null?void 0:l.export)!=null&&rr.hide?i.jsxs(fe,{variant:"outline",onClick:K,children:[i.jsx(dw,{className:"h-4 w-4 mr-2"}),((It=l==null?void 0:l.export)==null?void 0:It.label)??"Export CSV"]}):null,!((or=l==null?void 0:l.clearFilters)!=null&&or.hide)&&Ce&&i.jsxs(fe,{variant:"outline",onClick:T,children:[i.jsx(ct,{className:"h-4 w-4 mr-2"}),((st=l==null?void 0:l.clearFilters)==null?void 0:st.label)??"Clear All"]})]}),i.jsx(Nw,{searchTerm:f,activeFilters:v,sortState:b,filters:r,columns:S,onClearSearch:()=>m(""),onClearFilter:Y,onClearSort:()=>y({field:null,direction:null})}),i.jsx(r1,{selectedCount:Be,onClearSelection:()=>x(new Set)}),i.jsx("div",{className:"rounded-md border",children:i.jsxs(mr,{children:[i.jsx(pr,{children:i.jsx(l1,{allowSelectAllRows:!(($o=l==null?void 0:l.rowSelector)!=null&&$o.hide),columns:S,sortState:b,allRowsSelected:$e,hasData:H.currentData.length>0,onSort:D,onToggleAllRows:ee})}),i.jsx(hr,{children:H.currentData.length===0?i.jsx("tr",{children:i.jsx(nn,{colSpan:we.length+1,className:"h-24 text-center text-muted-foreground",children:Ce?"No results found for the current filters.":"No data available."})}):H.currentData.map((G,ae)=>{var ve;const ue=_(G,ae);return i.jsx(c1,{row:G,index:ae,allowSelection:!((ve=l==null?void 0:l.rowSelector)!=null&&ve.hide),columns:S,isSelected:w.has(ue),rowId:ue,onToggleSelection:A},ue)})})]})}),i.jsx(si,{currentPage:h,totalPages:H.totalPages,totalItems:H.totalItems,startIndex:H.startIndex,endIndex:H.endIndex,onPageChange:oe,onPreviousPage:Q,onNextPage:ne,counterText:(Lo=l==null?void 0:l.pagination)==null?void 0:Lo.label})]})}const dP=C.forwardRef(uP),ig=e=>{const{notFoundText:t,notFoundAction:n,icon:r,className:o}=e;return i.jsxs("div",{className:I("flex flex-col gap-4 items-center bg-gray-200 rounded-lg p-6 justify-center",o),children:[r||i.jsx(iw,{size:45}),i.jsxs("div",{className:"text-lg font-medium m-0",children:[t,n||null]})]})};function fP(e){const{triggerElement:t,steps:n}=e,[r,o]=C.useState(!1),[a,s]=C.useState(0),l=()=>{s(d=>d<n.length-1?d+1:d)},c=()=>{s(d=>d>0?d-1:d)};return i.jsxs(po,{open:r,onOpenChange:o,children:[i.jsx(hm,{asChild:!0,children:t}),i.jsxs(Zn,{className:"sm:max-w-[425px]",children:[i.jsxs(ho,{className:I(n[a].title===""&&"sr-only"),children:[i.jsx(go,{children:n[a].title}),i.jsx(vo,{className:"sr-only",children:n[a].title})]}),i.jsx("div",{children:n[a].description}),i.jsxs("div",{className:"flex items-center justify-between mt-4",children:[i.jsx(fe,{variant:"ghost",size:"icon",onClick:c,disabled:a===0,children:i.jsx(gr,{className:"h-4 w-4"})}),i.jsx("div",{className:"flex justify-center gap-1",children:n.map((d,f)=>i.jsx("div",{className:I("h-3 w-3 rounded-full",f===a?"bg-primary":"bg-gray-200")},f))}),i.jsx(fe,{variant:"ghost",size:"icon",onClick:l,disabled:a===n.length-1,children:i.jsx(_n,{className:"h-4 w-4"})})]})]})]})}const mP=e=>i.jsx("div",{className:"unreset",dangerouslySetInnerHTML:{__html:e.children}}),pP=e=>{const{execCommand:t}=e,n=()=>{const a=document.createElement("input");a.type="file",a.accept="image/*",a.onchange=async s=>{var c;const l=(c=s.target.files)==null?void 0:c[0];if(l){const d=new FileReader;d.onload=()=>{t("insertImage",d.result)},d.readAsDataURL(l)}},a.click()},r=()=>{const a=prompt("Enter the URL:");a&&t("createLink",a)},o=a=>{t("fontSize",a)};return i.jsxs("div",{className:"flex flex-wrap gap-2 border-b pb-2 mb-2",children:[i.jsx(fe,{variant:"outline",size:"icon",onClick:()=>t("bold"),type:"button",children:i.jsx(aw,{size:16})}),i.jsx(fe,{variant:"outline",size:"icon",onClick:()=>t("italic"),type:"button",children:i.jsx(pw,{size:16})}),i.jsx(fe,{variant:"outline",size:"icon",onClick:()=>t("underline"),type:"button",children:i.jsx(Cw,{size:16})}),i.jsxs(Ka,{onValueChange:a=>o(a),defaultValue:"3",children:[i.jsx(Qr,{className:"w-[100px]",children:i.jsx(qa,{placeholder:"Size"})}),i.jsxs(Zr,{children:[i.jsx(Pt,{value:"1",children:i.jsx("div",{children:"Small"})}),i.jsx(Pt,{value:"3",children:i.jsx("div",{children:"Medium"})}),i.jsx(Pt,{value:"5",children:i.jsx("div",{children:"Large"})}),i.jsx(Pt,{value:"7",children:i.jsx("div",{children:"Extra Large"})})]})]}),i.jsx(fe,{variant:"outline",size:"icon",onClick:()=>t("insertUnorderedList"),type:"button",children:i.jsx(vw,{size:16})}),i.jsx(fe,{variant:"outline",size:"icon",onClick:()=>t("insertOrderedList"),type:"button",children:i.jsx(gw,{size:16})}),i.jsx(fe,{variant:"outline",size:"icon",onClick:()=>t("formatBlock","blockquote"),type:"button",children:i.jsx(ww,{size:16})}),i.jsx(fe,{variant:"outline",size:"icon",onClick:n,type:"button",children:i.jsx(mw,{size:16})}),i.jsx(fe,{variant:"outline",size:"icon",onClick:r,type:"button",children:i.jsx(hw,{size:16})})]})},hP=({initialValue:e="",onChange:t,className:n})=>{const r=C.useRef(null);C.useEffect(()=>{const s=new MutationObserver(()=>{t==null||t(r.current?r.current.innerHTML:"")});r.current&&s.observe(r.current,{childList:!0})},[]),C.useEffect(()=>{r.current&&(r.current.innerHTML=e)},[]);const o=()=>{r.current&&(t==null||t(r.current.innerHTML))},a=(s,l)=>{r.current&&(document.execCommand(s,!1,l),o())};return i.jsxs("div",{className:I("w-full p-4 border rounded-lg shadow-md",n),children:[i.jsx(pP,{execCommand:a}),i.jsx("div",{ref:r,contentEditable:!0,className:"w-full h-48 p-2 border rounded overflow-y-auto focus:outline-none min-h-20 resize-y unreset",onInput:o})]})},gP=e=>{const{observerOptions:t,images:n,classNames:r}=e,[o,a]=C.useState([]),s=C.useRef(null);return C.useEffect(()=>{const l={root:document.querySelector(".image-gallery"),rootMargin:"0px",threshold:1,...t};return s.current=new IntersectionObserver(c=>{c.forEach(d=>{if(d.isIntersecting&&d.target instanceof HTMLDivElement){const f=Number(d.target.dataset.index);a(m=>[...new Set([...m,f])])}})},l),()=>{var c;return(c=s.current)==null?void 0:c.disconnect()}},[]),C.useEffect(()=>{document.querySelectorAll(".image-cell").forEach(c=>{var d;return(d=s.current)==null?void 0:d.observe(c)})},[n]),i.jsx("div",{className:I("image-gallery overflow-auto grid grid-cols-[repeat(auto-fit,minmax(300px,1fr))]","gap-2 justify-center h-full",r==null?void 0:r.imageGallery),children:n.map((l,c)=>i.jsx("div",{"data-index":c,className:I("image-cell w-full h-52",r==null?void 0:r.imageCell),children:o.includes(c)&&i.jsx("img",{src:l,alt:`Gallery Image ${c+1}`,className:I("animate-fade-up animate-duration-[400ms] animate-ease-linear w-full h-full object-cover",r==null?void 0:r.image)})},c))})},vP=e=>{const{currentMonth:t,currentYear:n,onChangeMonthYear:r,locale:o=Uo,mode:a="month"}=e,s=l=>{let c=t,d=n;a==="month"?l==="prev"?c===0?(c=11,d--):c--:c===11?(c=0,d++):c++:d=l==="prev"?d-1:d+1,r(c,d)};return i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx(fe,{variant:"ghost",size:"icon",onClick:()=>s("prev"),"aria-label":`Previous ${a}`,children:i.jsx(tw,{className:"!h-8 !w-8"})}),i.jsxs("div",{className:"text-center",children:[i.jsx("h2",{className:"text-2xl font-bold capitalize",children:a==="month"?o.localize.month(t,{width:"wide"}):n}),a==="month"&&i.jsx("p",{className:"text-sm text-muted-foreground",children:n})]}),i.jsx(fe,{variant:"ghost",size:"icon",onClick:()=>s("next"),"aria-label":`Next ${a}`,children:i.jsx(nw,{className:"!h-8 !w-8"})})]})},lg=({initIndex:e,onPageChange:t,totalItems:n,totalPages:r,pageTotalItems:o,currentPage:a,showItemsCounter:s=!0})=>i.jsxs("div",{className:"flex flex-col gap-2 items-end",children:[s&&i.jsxs("p",{children:[i.jsx("b",{children:e+1})," - ",i.jsx("b",{children:e+o})," (",n,")"]}),r>1&&i.jsx(si,{currentPage:a,onPageChange:t,totalPages:r,totalItems:n,startIndex:e,endIndex:e+o,onPreviousPage:()=>t(a-1),onNextPage:()=>t(a+1)})]}),bP=e=>{const{data:t=[],perPage:n=50,initialPage:r=1,children:o,itemsContainerClass:a="",emptyState:s=i.jsx(ig,{notFoundText:"No item found!"}),isLoading:l=!1,showItemsCounter:c=!0,loadingVariant:d="loader"}=e,[f,m]=C.useState(t);C.useEffect(()=>{m(t),p(1)},[t]);const[h,p]=C.useState(r),v=Math.ceil(f.length/n),g=(h-1)*n,b=h*n,y=f.slice(g,b),w=l?i.jsx("section",{className:"w-full",children:d==="loader"?i.jsx(Xp,{size:"lg"}):i.jsx(Oe,{className:"h-12 w-full",repeat:n})}):f.length===0?s:void 0;return i.jsxs("div",{className:"flex flex-col gap-4 items-end",children:[i.jsx(lg,{initIndex:g,endIndex:b,totalItems:f.length,totalPages:v,currentPage:h,pageTotalItems:y.length,onPageChange:p,showItemsCounter:c}),w?i.jsx("section",{className:"w-full",children:w}):i.jsx("section",{className:`w-full ${a}`,children:y.map((x,S)=>i.jsx(C.Fragment,{children:o(x,S)},x.id))}),i.jsx(lg,{initIndex:g,endIndex:b,totalItems:f.length,totalPages:v,currentPage:h,pageTotalItems:y.length,onPageChange:p,showItemsCounter:c})]})},wP=({fixed:e,isOpen:t,onToggle:n,children:r,className:o})=>{const[a,s]=C.useState(!0),l=C.useRef(null),c=C.useRef(null),d=t!==void 0?t:a,f=()=>{var h;e||(n?n(!1):s(!1),(h=c.current)==null||h.focus())},m=h=>{l.current&&!l.current.contains(h.target)&&!e&&f()};return C.useEffect(()=>{if(!e)return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}},[e]),i.jsxs(i.Fragment,{children:[i.jsx("aside",{ref:l,className:I("bg-white z-50 h-full shadow-md flex flex-col fixed top-0 left-0 transition-all duration-300 ease-in-out overflow-auto",{"w-72":e||d},{"w-0":!d&&!e},{"translate-x-0":d},{"-translate-x-full":!d&&!e},o),"aria-hidden":!d,children:r}),e&&i.jsx("div",{className:"w-72 relative"})]})},yP=({children:e,className:t})=>i.jsx("header",{className:I("p-4 flex justify-between items-center border-b",t),"aria-label":"Sidebar header",children:e}),xP=({children:e,className:t})=>i.jsx("nav",{"aria-label":"Sidebar navigation",className:t,children:e}),CP=({children:e,className:t})=>i.jsx("ul",{className:I("flex flex-col gap-2 my-4 px-4",t),children:e}),NP=({children:e,className:t,onClick:n})=>i.jsx("li",{className:I("flex items-center gap-2 hover:bg-gray-100 rounded transition-colors",t),onClick:n,children:e}),SP=({children:e,className:t})=>i.jsx("footer",{className:I("mt-auto p-4 text-sm",t),"aria-label":"Sidebar footer",children:e});N.Accordion=j1,N.AccordionContent=Wd,N.AccordionItem=zd,N.AccordionTrigger=Vd,N.AdaptiveInput=ao,N.Alert=I1,N.AlertDialog=nN,N.AlertDialogAction=Rf,N.AlertDialogCancel=Df,N.AlertDialogContent=Mf,N.AlertDialogDescription=If,N.AlertDialogFooter=_f,N.AlertDialogHeader=jf,N.AlertDialogOverlay=ps,N.AlertDialogPortal=Tf,N.AlertDialogTitle=Af,N.AlertDialogTrigger=rN,N.Autocomplete=oN,N.Avatar=qf,N.AvatarFallback=Qf,N.AvatarImage=Xf,N.Badge=on,N.BentoCard=zb,N.BentoGrid=Bb,N.Button=fe,N.Calendar=WN,N.Card=Zf,N.CardContent=nm,N.CardDescription=tm,N.CardFooter=rm,N.CardHeader=Jf,N.CardTitle=em,N.Checkbox=eo,N.Command=bo,N.CommandDialog=hS,N.CommandEmpty=Ps,N.CommandGroup=wo,N.CommandInput=Es,N.CommandItem=wn,N.CommandList=ks,N.CommandSeparator=Ts,N.CommandShortcut=bm,N.CurrencyInput=wm,N.DataTable=dP,N.Dialog=po,N.DialogClose=pS,N.DialogContent=Zn,N.DialogDescription=vo,N.DialogFooter=vm,N.DialogHeader=ho,N.DialogOverlay=Ss,N.DialogPortal=gm,N.DialogProvider=Rk,N.DialogTitle=go,N.DialogTrigger=hm,N.DropdownMenu=Cu,N.DropdownMenuCheckboxItem=Ba,N.DropdownMenuContent=Fa,N.DropdownMenuGroup=xC,N.DropdownMenuItem=ku,N.DropdownMenuLabel=za,N.DropdownMenuPortal=CC,N.DropdownMenuRadioGroup=SC,N.DropdownMenuRadioItem=Pu,N.DropdownMenuSeparator=Ur,N.DropdownMenuShortcut=Tu,N.DropdownMenuSub=NC,N.DropdownMenuSubContent=Eu,N.DropdownMenuSubTrigger=Su,N.DropdownMenuTrigger=Nu,N.EmptyItems=ig,N.HelpCarousel=fP,N.HtmlTextArea=mP,N.HtmlTextEditor=hP,N.Input=qn,N.Label=Cm,N.LazyImageGallery=gP,N.MonthNavigator=vP,N.MultiSelect=zm,N.NavigationMenu=pp,N.NavigationMenuContent=bp,N.NavigationMenuIndicator=wp,N.NavigationMenuItem=ZS,N.NavigationMenuLink=JS,N.NavigationMenuList=hp,N.NavigationMenuTrigger=vp,N.NavigationMenuViewport=Vs,N.PaginatedItems=bP,N.Pagination=yp,N.PaginationContent=xp,N.PaginationControls=si,N.PaginationEllipsis=Ep,N.PaginationItem=Cp,N.PaginationLink=So,N.PaginationNext=Sp,N.PaginationPrevious=Np,N.PasswordInput=iE,N.Popover=Dm,N.PopoverAnchor=_S,N.PopoverContent=js,N.PopoverTrigger=Om,N.Progress=Gs,N.RadioGroup=Yp,N.RadioGroupItem=Kp,N.Select=Ka,N.SelectContent=Zr,N.SelectGroup=JC,N.SelectItem=Pt,N.SelectLabel=pd,N.SelectScrollDownButton=Qa,N.SelectScrollUpButton=Xa,N.SelectSeparator=hd,N.SelectTrigger=Qr,N.SelectValue=qa,N.Separator=xo,N.Sidebar=wP,N.SidebarFooter=SP,N.SidebarHeader=yP,N.SidebarList=CP,N.SidebarListItem=NP,N.SidebarNav=xP,N.Skeleton=Oe,N.Spinner=Xp,N.Switch=rh,N.Table=mr,N.TableBody=hr,N.TableCaption=il,N.TableCell=nn,N.TableFooter=sl,N.TableHead=Mn,N.TableHeader=pr,N.TableRow=tn,N.Tabs=TE,N.TabsContent=wh,N.TabsList=vh,N.TabsTrigger=bh,N.Textarea=yh,N.Toaster=rk,N.Toggle=Eh,N.ToggleGroup=Oh,N.ToggleGroupItem=$h,N.Tooltip=Mk,N.TooltipContent=_k,N.TooltipProvider=Yh,N.TooltipTrigger=jk,N.badgeVariants=vl,N.buttonVariants=fr,N.capitalize=Fb,N.cn=I,N.containSearchStrings=Ji,N.formatCurrency=yb,N.formatDateAndMonth=Mb,N.formatDateAndTime=Sb,N.formatDateAndWeekday=Pb,N.formatDateAndWeekdayAndYear=Tb,N.formatDateDayMonth=Nb,N.formatDateMonthYear=Cb,N.formatDateUTC=xb,N.formatLongDate=jb,N.formatShortDate=_b,N.formatWeekDayAndShortDate=Ib,N.getLongDate=kb,N.getMonthName=Eb,N.getMonthYearFromISODate=Ab,N.mergeObjects=ea,N.navigationMenuTriggerStyle=gp,N.normalizeString=Ie,N.normalizeStringToCompare=ta,N.padString=Jo,N.replaceTemplateWithVariables=el,N.sortByField=Ob,N.sortByFieldDesc=$b,N.sortByName=Db,N.sortByNestedField=Lb,N.sortNormalize=Rb,N.spinnerColors=bE,N.spinnerSizes=wE,N.toast=nk,N.toggleVariants=Xs,N.useArray=Ak,N.useCopyToClipboard=Ik,N.useDebounce=Kh,N.useDialog=Dk,N.useDisclosure=Ok,N.useDisclosureBool=$k,N.useFileUtilities=oP,N.useIsMobile=lP,N.useKeyPress=aP,N.useLocalStorage=sP,N.useMediaQuery=iP,N.usePWAInstall=cP,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|
|
308
|
+
*/function eg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ro(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eg(Object(n),!0).forEach(function(r){Uk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ng(r.key),r)}}function Gk(e,t,n){return t&&tg(e.prototype,t),n&&tg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uk(e,t,n){return t=ng(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Do(){return Do=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Do.apply(this,arguments)}function Yk(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ng(e){var t=Yk(e,"string");return typeof t=="symbol"?t:String(t)}var rg={exports:{}};(function(e){typeof window>"u"||function(t){var n=t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype,r=t.Blob&&function(){try{return!!new Blob}catch{return!1}}(),o=r&&t.Uint8Array&&function(){try{return new Blob([new Uint8Array(100)]).size===100}catch{return!1}}(),a=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder,s=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,l=(r||a)&&t.atob&&t.ArrayBuffer&&t.Uint8Array&&function(c){var d,f,m,h,p,v,g,b,y;if(d=c.match(s),!d)throw new Error("invalid data URI");for(f=d[2]?d[1]:"text/plain"+(d[3]||";charset=US-ASCII"),m=!!d[4],h=c.slice(d[0].length),m?p=atob(h):p=decodeURIComponent(h),v=new ArrayBuffer(p.length),g=new Uint8Array(v),b=0;b<p.length;b+=1)g[b]=p.charCodeAt(b);return r?new Blob([o?g:v],{type:f}):(y=new a,y.append(v),y.getBlob(f))};t.HTMLCanvasElement&&!n.toBlob&&(n.mozGetAsFile?n.toBlob=function(c,d,f){var m=this;setTimeout(function(){f&&n.toDataURL&&l?c(l(m.toDataURL(d,f))):c(m.mozGetAsFile("blob",d))})}:n.toDataURL&&l&&(n.msToBlob?n.toBlob=function(c,d,f){var m=this;setTimeout(function(){(d&&d!=="image/png"||f)&&n.toDataURL&&l?c(l(m.toDataURL(d,f))):c(m.msToBlob(d))})}:n.toBlob=function(c,d,f){var m=this;setTimeout(function(){c(l(m.toDataURL(d,f)))})})),e.exports?e.exports=l:t.dataURLtoBlob=l}(window)})(rg);var og=rg.exports,Kk=function(t){return typeof Blob>"u"?!1:t instanceof Blob||Object.prototype.toString.call(t)==="[object Blob]"},ag={strict:!0,checkOrientation:!0,retainExif:!1,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,resize:"none",quality:.8,mimeType:"auto",convertTypes:["image/png"],convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},qk=typeof window<"u"&&typeof window.document<"u",At=qk?window:{},Oo=function(t){return t>0&&t<1/0},Xk=Array.prototype.slice;function ni(e){return Array.from?Array.from(e):Xk.call(e)}var Qk=/^image\/.+$/;function ri(e){return Qk.test(e)}function Zk(e){var t=ri(e)?e.substr(6):"";return t==="jpeg"&&(t="jpg"),".".concat(t)}var sg=String.fromCharCode;function Jk(e,t,n){var r="",o;for(n+=t,o=t;o<n;o+=1)r+=sg(e.getUint8(o));return r}var eP=At.btoa;function ig(e,t){for(var n=[],r=8192,o=new Uint8Array(e);o.length>0;)n.push(sg.apply(null,ni(o.subarray(0,r)))),o=o.subarray(r);return"data:".concat(t,";base64,").concat(eP(n.join("")))}function tP(e){var t=new DataView(e),n;try{var r,o,a;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(var s=t.byteLength,l=2;l+1<s;){if(t.getUint8(l)===255&&t.getUint8(l+1)===225){o=l;break}l+=1}if(o){var c=o+4,d=o+10;if(Jk(t,c,4)==="Exif"){var f=t.getUint16(d);if(r=f===18761,(r||f===19789)&&t.getUint16(d+2,r)===42){var m=t.getUint32(d+4,r);m>=8&&(a=d+m)}}}if(a){var h=t.getUint16(a,r),p,v;for(v=0;v<h;v+=1)if(p=a+v*12+2,t.getUint16(p,r)===274){p+=8,n=t.getUint16(p,r),t.setUint16(p,1,r);break}}}catch{n=1}return n}function nP(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90;break}return{rotate:t,scaleX:n,scaleY:r}}var rP=/\.\d*(?:0|9){12}\d*$/;function lg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return rP.test(e)?Math.round(e*t)/t:e}function nr(e){var t=e.aspectRatio,n=e.height,r=e.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none",a=Oo(r),s=Oo(n);if(a&&s){var l=n*t;(o==="contain"||o==="none")&&l>r||o==="cover"&&l<r?n=r/t:r=n*t}else a?n=r/t:s&&(r=n*t);return{width:r,height:n}}function oP(e){for(var t=ni(new Uint8Array(e)),n=t.length,r=[],o=0;o+3<n;){var a=t[o],s=t[o+1];if(a===255&&s===218)break;if(a===255&&s===216)o+=2;else{var l=t[o+2]*256+t[o+3],c=o+l+2,d=t.slice(o,c);r.push(d),o=c}}return r.reduce(function(f,m){return m[0]===255&&m[1]===225?f.concat(m):f},[])}function aP(e,t){var n=ni(new Uint8Array(e));if(n[2]!==255||n[3]!==224)return e;var r=n[4]*256+n[5],o=[255,216].concat(t,n.slice(4+r));return new Uint8Array(o)}var sP=At.ArrayBuffer,oi=At.FileReader,Kt=At.URL||At.webkitURL,iP=/\.\w+$/,lP=At.Compressor,cP=function(){function e(t,n){Hk(this,e),this.file=t,this.exif=[],this.image=new Image,this.options=Ro(Ro({},ag),n),this.aborted=!1,this.result=null,this.init()}return Gk(e,[{key:"init",value:function(){var n=this,r=this.file,o=this.options;if(!Kk(r)){this.fail(new Error("The first argument must be a File or Blob object."));return}var a=r.type;if(!ri(a)){this.fail(new Error("The first argument must be an image File or Blob object."));return}if(!Kt||!oi){this.fail(new Error("The current browser does not support image compression."));return}sP||(o.checkOrientation=!1,o.retainExif=!1);var s=a==="image/jpeg",l=s&&o.checkOrientation,c=s&&o.retainExif;if(Kt&&!l&&!c)this.load({url:Kt.createObjectURL(r)});else{var d=new oi;this.reader=d,d.onload=function(f){var m=f.target,h=m.result,p={},v=1;l&&(v=tP(h),v>1&&Do(p,nP(v))),c&&(n.exif=oP(h)),l||c?!Kt||v>1?p.url=ig(h,a):p.url=Kt.createObjectURL(r):p.url=h,n.load(p)},d.onabort=function(){n.fail(new Error("Aborted to read the image with FileReader."))},d.onerror=function(){n.fail(new Error("Failed to read the image with FileReader."))},d.onloadend=function(){n.reader=null},l||c?d.readAsArrayBuffer(r):d.readAsDataURL(r)}}},{key:"load",value:function(n){var r=this,o=this.file,a=this.image;a.onload=function(){r.draw(Ro(Ro({},n),{},{naturalWidth:a.naturalWidth,naturalHeight:a.naturalHeight}))},a.onabort=function(){r.fail(new Error("Aborted to load the image."))},a.onerror=function(){r.fail(new Error("Failed to load the image."))},At.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(At.navigator.userAgent)&&(a.crossOrigin="anonymous"),a.alt=o.name,a.src=n.url}},{key:"draw",value:function(n){var r=this,o=n.naturalWidth,a=n.naturalHeight,s=n.rotate,l=s===void 0?0:s,c=n.scaleX,d=c===void 0?1:c,f=n.scaleY,m=f===void 0?1:f,h=this.file,p=this.image,v=this.options,g=document.createElement("canvas"),b=g.getContext("2d"),y=Math.abs(l)%180===90,w=(v.resize==="contain"||v.resize==="cover")&&Oo(v.width)&&Oo(v.height),x=Math.max(v.maxWidth,0)||1/0,S=Math.max(v.maxHeight,0)||1/0,k=Math.max(v.minWidth,0)||0,M=Math.max(v.minHeight,0)||0,E=o/a,P=v.width,_=v.height;if(y){var $=[S,x];x=$[0],S=$[1];var H=[M,k];k=H[0],M=H[1];var q=[_,P];P=q[0],_=q[1]}w&&(E=P/_);var W=nr({aspectRatio:E,width:x,height:S},"contain");x=W.width,S=W.height;var U=nr({aspectRatio:E,width:k,height:M},"cover");if(k=U.width,M=U.height,w){var te=nr({aspectRatio:E,width:P,height:_},v.resize);P=te.width,_=te.height}else{var V=nr({aspectRatio:E,width:P,height:_}),X=V.width;P=X===void 0?o:X;var R=V.height;_=R===void 0?a:R}P=Math.floor(lg(Math.min(Math.max(P,k),x))),_=Math.floor(lg(Math.min(Math.max(_,M),S)));var O=-P/2,j=-_/2,Y=P,T=_,D=[];if(w){var L=0,F=0,ee=o,I=a,K=nr({aspectRatio:E,width:o,height:a},{contain:"cover",cover:"contain"}[v.resize]);ee=K.width,I=K.height,L=(o-ee)/2,F=(a-I)/2,D.push(L,F,ee,I)}if(D.push(O,j,Y,T),y){var Q=[_,P];P=Q[0],_=Q[1]}g.width=P,g.height=_,ri(v.mimeType)||(v.mimeType=h.type);var ne="transparent";h.size>v.convertSize&&v.convertTypes.indexOf(v.mimeType)>=0&&(v.mimeType="image/jpeg");var oe=v.mimeType==="image/jpeg";if(oe&&(ne="#fff"),b.fillStyle=ne,b.fillRect(0,0,P,_),v.beforeDraw&&v.beforeDraw.call(this,b,g),!this.aborted&&(b.save(),b.translate(P/2,_/2),b.rotate(l*Math.PI/180),b.scale(d,m),b.drawImage.apply(b,[p].concat(D)),b.restore(),v.drew&&v.drew.call(this,b,g),!this.aborted)){var ie=function(we){if(!r.aborted){var Be=function(Te){return r.done({naturalWidth:o,naturalHeight:a,result:Te})};if(we&&oe&&v.retainExif&&r.exif&&r.exif.length>0){var $e=function(Te){return Be(og(ig(aP(Te,r.exif),v.mimeType)))};if(we.arrayBuffer)we.arrayBuffer().then($e).catch(function(){r.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))});else{var Ee=new oi;r.reader=Ee,Ee.onload=function(ze){var Te=ze.target;$e(Te.result)},Ee.onabort=function(){r.fail(new Error("Aborted to read the compressed image with FileReader."))},Ee.onerror=function(){r.fail(new Error("Failed to read the compressed image with FileReader."))},Ee.onloadend=function(){r.reader=null},Ee.readAsArrayBuffer(we)}}else Be(we)}};g.toBlob?g.toBlob(ie,v.mimeType,v.quality):ie(og(g.toDataURL(v.mimeType,v.quality)))}}},{key:"done",value:function(n){var r=n.naturalWidth,o=n.naturalHeight,a=n.result,s=this.file,l=this.image,c=this.options;if(Kt&&l.src.indexOf("blob:")===0&&Kt.revokeObjectURL(l.src),a)if(c.strict&&!c.retainExif&&a.size>s.size&&c.mimeType===s.type&&!(c.width>r||c.height>o||c.minWidth>r||c.minHeight>o||c.maxWidth<r||c.maxHeight<o))a=s;else{var d=new Date;a.lastModified=d.getTime(),a.lastModifiedDate=d,a.name=s.name,a.name&&a.type!==s.type&&(a.name=a.name.replace(iP,Zk(a.type)))}else a=s;this.result=a,c.success&&c.success.call(this,a)}},{key:"fail",value:function(n){var r=this.options;if(r.error)r.error.call(this,n);else throw n}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}],[{key:"noConflict",value:function(){return window.Compressor=lP,e}},{key:"setDefaults",value:function(n){Do(ag,n)}}]),e}();const uP=()=>({compressImage:async(n,r)=>await new Promise((o,a)=>{new cP(n,r??{quality:.8,maxWidth:2e3,maxHeight:2e3,mimeType:"image/jpeg",success(s){o(s)},error(s){a(s)}})}),formatFileSize:n=>{var r=n===0?0:Math.floor(Math.log(n)/Math.log(1024));return+(n/Math.pow(1024,r)).toFixed(2)*1+" "+["B","kB","MB","GB","TB"][r]}}),dP=function(e,t){const[n,r]=C.useState(!1);function o({key:s}){s===e&&r(!0)}const a=({key:s})=>{s===e&&r(!1)};return C.useEffect(()=>(window.addEventListener("keydown",o),window.addEventListener("keyup",a),()=>{window.removeEventListener("keydown",o),window.removeEventListener("keyup",a)})),C.useEffect(()=>{n&&(t==null||t(n))},[n]),n};function fP(e,t){const[n,r]=C.useState(()=>{try{const s=window.localStorage.getItem(e);return s?JSON.parse(s):t}catch(s){return console.error(s),t}});return[n,s=>{try{const l=s instanceof Function?s(n):s;r(l),window.localStorage.setItem(e,JSON.stringify(l))}catch(l){console.error(l)}},()=>{try{r(t),window.localStorage.removeItem(e)}catch(s){console.error(s)}}]}function mP(e){const[t,n]=C.useState(!1);return C.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 ai=768;function pP(){const[e,t]=u.useState(void 0);return u.useEffect(()=>{const n=window.matchMedia(`(max-width: ${ai-1}px)`),r=()=>{t(window.innerWidth<ai)};return n.addEventListener("change",r),t(window.innerWidth<ai),()=>n.removeEventListener("change",r)},[]),!!e}const hP=()=>{const[e,t]=C.useState(null),[n,r]=C.useState(!1);return C.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)}))}}},si=e=>{const{currentPage:t,totalPages:n,totalItems:r,startIndex:o,endIndex:a,onPageChange:s,onPreviousPage:l,onNextPage:c,showItemsCounter:d=!0,counterText:f="Showing {{startIndex}} to {{endIndex}} of {{totalItems}} results"}=e,m=()=>{const h=[];if(n<=7)for(let v=1;v<=n;v++)h.push(v);else{h.push(1),t>4&&h.push("...");const v=Math.max(2,t-1),g=Math.min(n-1,t+1);for(let b=v;b<=g;b++)b!==1&&b!==n&&h.push(b);t<n-3&&h.push("..."),n>1&&h.push(n)}return h};return n<=1?null:i.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4",children:[d?i.jsx("div",{className:"text-sm text-muted-foreground",children:el(f,{startIndex:o+1,endIndex:a,totalItems:r})}):null,i.jsxs("div",{className:"flex items-center space-x-1",children:[i.jsx(de,{variant:"outline",size:"sm",onClick:l,disabled:t===1,className:"h-8 w-8 p-0",children:i.jsx(gr,{className:"h-4 w-4"})}),m().map((h,p)=>i.jsx(C.Fragment,{children:h==="..."?i.jsx("span",{className:"px-2 text-muted-foreground",children:"..."}):i.jsx(de,{variant:t===h?"default":"outline",size:"sm",onClick:()=>s(h),className:"h-8 w-8 p-0",children:h})},p)),i.jsx(de,{variant:"outline",size:"sm",onClick:c,disabled:t===n,className:"h-8 w-8 p-0",children:i.jsx(An,{className:"h-4 w-4"})})]})]})};function gP({data:e,columns:t,searchFields:n,filters:r=[],pageSize:o=40,className:a="",loading:s=!1,tools:l,activeFilters:c={}},d){var Ee,ze,Te,rr,It,or,st,$o,Lo;const[f,m]=C.useState(""),[h,p]=C.useState(1),[v,g]=C.useState(c),[b,y]=C.useState({field:null,direction:null}),[w,x]=C.useState(new Set),[S,k]=C.useState(t),[M,E]=C.useState(0),P=Xh(f,1e3),_=(G,ae)=>String(G.id||G._id||`row-${ae}`),$=C.useMemo(()=>{let G=e.slice();if(P.trim()){const ae=P.toLowerCase();G=G.filter(ue=>n.some(ve=>{const Ae=ue[ve];return Ae==null?!1:String(Ae).toLowerCase().includes(ae)}))}if(Object.entries(v).forEach(([ae,ue])=>{ue&&ue!=="all"&&(G=G.filter(ve=>{const Ae=ve[ae];return String(Ae)===ue}))}),b.field&&b.direction){const{field:ae,direction:ue}=b;G.sort((ve,Ae)=>{const pt=ve[ae],it=Ae[ae];return pt==null&&it==null?0:pt==null?ue==="asc"?-1:1:it==null?ue==="asc"?1:-1:typeof pt=="string"&&typeof it=="string"?ue==="asc"?pt.localeCompare(it):it.localeCompare(pt):ue==="asc"?pt-it:it-pt})}return G},[e,n,P,v,b,M]),H=C.useMemo(()=>{const G=$.length,ae=Math.ceil(G/o),ue=(h-1)*o,ve=ue+o;return{currentData:$.slice(ue,ve),totalItems:G,totalPages:ae,startIndex:ue,endIndex:Math.min(ve,G)}},[$,h,o]);C.useEffect(()=>{p(1)},[P,v,b]);const q=C.useCallback(()=>$.filter((G,ae)=>{const ue=_(G,ae);return w.has(ue)}),[$,w]),W=C.useCallback(()=>w.size,[w]),U=C.useCallback(G=>{x(new Set(G))},[]),te=C.useCallback(()=>$,[$]),V=C.useCallback(()=>{g({}),m(""),y({field:null,direction:null}),p(1)},[]),X=C.useCallback((G="table-export")=>{h1($,S,G)},[$,S]),R=C.useCallback(G=>{G>=1&&G<=H.totalPages&&p(G)},[H.totalPages]),O=C.useCallback(()=>{E(G=>G+1)},[]),j=C.useCallback((G,ae)=>{g(ue=>({...ue,[G]:ae}))},[]),Y=C.useCallback(G=>{g(ae=>{const ue={...ae};return delete ue[G],ue})},[]),T=C.useCallback(()=>{V()},[V]),D=C.useCallback(G=>{y(ae=>ae.field===G?ae.direction==="asc"?{field:G,direction:"desc"}:ae.direction==="desc"?{field:null,direction:null}:{field:G,direction:"asc"}:{field:G,direction:"asc"})},[]),L=C.useCallback((G,ae)=>{k(ue=>ue.map(ve=>String(ve.key)===G?{...ve,hidden:!ae}:ve))},[]),F=C.useCallback(()=>{k(t)},[t]),ee=C.useCallback(G=>{if(G){const ae=new Set;H.currentData.forEach((ue,ve)=>{const Ae=_(ue,ve);ae.add(Ae)}),x(ae)}else x(new Set)},[H.currentData]),I=C.useCallback((G,ae)=>{x(ue=>{const ve=new Set(ue);return ae?ve.add(G):ve.delete(G),ve})},[]),K=C.useCallback(()=>{X()},[X]),Q=C.useCallback(()=>{p(G=>Math.max(G-1,1))},[]),ne=C.useCallback(()=>{p(G=>Math.min(G+1,H.totalPages))},[H.totalPages]),oe=C.useCallback(G=>{R(G)},[R]),Ce=Object.values(v).filter(G=>G&&G!=="all").length>0||f.trim().length>0||b.field!==null,we=S.filter(G=>!G.hidden),Be=w.size,$e=C.useMemo(()=>H.currentData.length>0&&H.currentData.every((G,ae)=>{const ue=_(G,ae);return w.has(ue)}),[H.currentData,w]);return C.useImperativeHandle(d,()=>({getSelectedItems:q,clearSelection:()=>x(new Set),getSelectionCount:W,selectItems:U,getFilteredData:te,resetFilters:V,exportData:X,goToPage:R,refresh:O}),[q,W,U,te,V,X,R,O]),s?i.jsxs("div",{className:`space-y-4 ${a}`,children:[i.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[i.jsx(Oe,{className:"h-10 w-full max-w-sm"}),r.map((G,ae)=>i.jsx(Oe,{className:"h-10 w-30"},ae)),i.jsx(Oe,{className:"h-10 w-32 ml-auto"})]}),i.jsx(p1,{columns:we.length+1,rows:o}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx(Oe,{className:"h-4 w-48"}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx(Oe,{className:"h-8 w-20"}),i.jsx(Oe,{className:"h-8 w-8"}),i.jsx(Oe,{className:"h-8 w-8"}),i.jsx(Oe,{className:"h-8 w-8"}),i.jsx(Oe,{className:"h-8 w-20"})]})]})]}):i.jsxs("div",{className:`space-y-4 ${a}`,children:[i.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[(Ee=l==null?void 0:l.search)!=null&&Ee.hide?null:i.jsx(s1,{placeholder:(ze=l==null?void 0:l.search)==null?void 0:ze.placeholder,value:f,onChange:m}),r.map(G=>i.jsx(o1,{filter:G,value:v[String(G.field)],onChange:ae=>j(String(G.field),ae)},String(G.field))),(Te=l==null?void 0:l.columnSelector)!=null&&Te.hide?i.jsx(MC,{columns:S,onToggleVisibility:L,onReset:F}):null,(rr=l==null?void 0:l.export)!=null&&rr.hide?i.jsxs(de,{variant:"outline",onClick:K,children:[i.jsx(mw,{className:"h-4 w-4 mr-2"}),((It=l==null?void 0:l.export)==null?void 0:It.label)??"Export CSV"]}):null,!((or=l==null?void 0:l.clearFilters)!=null&&or.hide)&&Ce&&i.jsxs(de,{variant:"outline",onClick:T,children:[i.jsx(ct,{className:"h-4 w-4 mr-2"}),((st=l==null?void 0:l.clearFilters)==null?void 0:st.label)??"Clear All"]})]}),i.jsx(Pw,{searchTerm:f,activeFilters:v,sortState:b,filters:r,columns:S,onClearSearch:()=>m(""),onClearFilter:Y,onClearSort:()=>y({field:null,direction:null})}),i.jsx(i1,{selectedCount:Be,onClearSelection:()=>x(new Set)}),i.jsx("div",{className:"rounded-md border",children:i.jsxs(mr,{children:[i.jsx(pr,{children:i.jsx(f1,{allowSelectAllRows:!(($o=l==null?void 0:l.rowSelector)!=null&&$o.hide),columns:S,sortState:b,allRowsSelected:$e,hasData:H.currentData.length>0,onSort:D,onToggleAllRows:ee})}),i.jsx(hr,{children:H.currentData.length===0?i.jsx("tr",{children:i.jsx(nn,{colSpan:we.length+1,className:"h-24 text-center text-muted-foreground",children:Ce?"No results found for the current filters.":"No data available."})}):H.currentData.map((G,ae)=>{var ve;const ue=_(G,ae);return i.jsx(m1,{row:G,index:ae,allowSelection:!((ve=l==null?void 0:l.rowSelector)!=null&&ve.hide),columns:S,isSelected:w.has(ue),rowId:ue,onToggleSelection:I},ue)})})]})}),i.jsx(si,{currentPage:h,totalPages:H.totalPages,totalItems:H.totalItems,startIndex:H.startIndex,endIndex:H.endIndex,onPageChange:oe,onPreviousPage:Q,onNextPage:ne,counterText:(Lo=l==null?void 0:l.pagination)==null?void 0:Lo.label})]})}const vP=C.forwardRef(gP),cg=e=>{const{notFoundText:t,notFoundAction:n,icon:r,className:o}=e;return i.jsxs("div",{className:A("flex flex-col gap-4 items-center bg-gray-200 rounded-lg p-6 justify-center",o),children:[r||i.jsx(cw,{size:45}),i.jsxs("div",{className:"text-lg font-medium m-0",children:[t,n||null]})]})};function bP(e){const{triggerElement:t,steps:n}=e,[r,o]=C.useState(!1),[a,s]=C.useState(0),l=()=>{s(d=>d<n.length-1?d+1:d)},c=()=>{s(d=>d>0?d-1:d)};return i.jsxs(po,{open:r,onOpenChange:o,children:[i.jsx(hm,{asChild:!0,children:t}),i.jsxs(Zn,{className:"sm:max-w-[425px]",children:[i.jsxs(ho,{className:A(n[a].title===""&&"sr-only"),children:[i.jsx(go,{children:n[a].title}),i.jsx(vo,{className:"sr-only",children:n[a].title})]}),i.jsx("div",{children:n[a].description}),i.jsxs("div",{className:"flex items-center justify-between mt-4",children:[i.jsx(de,{variant:"ghost",size:"icon",onClick:c,disabled:a===0,children:i.jsx(gr,{className:"h-4 w-4"})}),i.jsx("div",{className:"flex justify-center gap-1",children:n.map((d,f)=>i.jsx("div",{className:A("h-3 w-3 rounded-full",f===a?"bg-primary":"bg-gray-200")},f))}),i.jsx(de,{variant:"ghost",size:"icon",onClick:l,disabled:a===n.length-1,children:i.jsx(An,{className:"h-4 w-4"})})]})]})]})}const wP=e=>i.jsx("div",{className:"unreset",dangerouslySetInnerHTML:{__html:e.children}}),yP=e=>{const{execCommand:t}=e,n=()=>{const a=document.createElement("input");a.type="file",a.accept="image/*",a.onchange=async s=>{var c;const l=(c=s.target.files)==null?void 0:c[0];if(l){const d=new FileReader;d.onload=()=>{t("insertImage",d.result)},d.readAsDataURL(l)}},a.click()},r=()=>{const a=prompt("Enter the URL:");a&&t("createLink",a)},o=a=>{t("fontSize",a)};return i.jsxs("div",{className:"flex flex-wrap gap-2 border-b pb-2 mb-2",children:[i.jsx(de,{variant:"outline",size:"icon",onClick:()=>t("bold"),type:"button",children:i.jsx(iw,{size:16})}),i.jsx(de,{variant:"outline",size:"icon",onClick:()=>t("italic"),type:"button",children:i.jsx(gw,{size:16})}),i.jsx(de,{variant:"outline",size:"icon",onClick:()=>t("underline"),type:"button",children:i.jsx(kw,{size:16})}),i.jsxs(Ka,{onValueChange:a=>o(a),defaultValue:"3",children:[i.jsx(Qr,{className:"w-[100px]",children:i.jsx(qa,{placeholder:"Size"})}),i.jsxs(Zr,{children:[i.jsx(Pt,{value:"1",children:i.jsx("div",{children:"Small"})}),i.jsx(Pt,{value:"3",children:i.jsx("div",{children:"Medium"})}),i.jsx(Pt,{value:"5",children:i.jsx("div",{children:"Large"})}),i.jsx(Pt,{value:"7",children:i.jsx("div",{children:"Extra Large"})})]})]}),i.jsx(de,{variant:"outline",size:"icon",onClick:()=>t("insertUnorderedList"),type:"button",children:i.jsx(ww,{size:16})}),i.jsx(de,{variant:"outline",size:"icon",onClick:()=>t("insertOrderedList"),type:"button",children:i.jsx(bw,{size:16})}),i.jsx(de,{variant:"outline",size:"icon",onClick:()=>t("formatBlock","blockquote"),type:"button",children:i.jsx(Nw,{size:16})}),i.jsx(de,{variant:"outline",size:"icon",onClick:n,type:"button",children:i.jsx(hw,{size:16})}),i.jsx(de,{variant:"outline",size:"icon",onClick:r,type:"button",children:i.jsx(vw,{size:16})})]})},xP=({initialValue:e="",onChange:t,className:n})=>{const r=C.useRef(null);C.useEffect(()=>{const s=new MutationObserver(()=>{t==null||t(r.current?r.current.innerHTML:"")});r.current&&s.observe(r.current,{childList:!0})},[]),C.useEffect(()=>{r.current&&(r.current.innerHTML=e)},[]);const o=()=>{r.current&&(t==null||t(r.current.innerHTML))},a=(s,l)=>{r.current&&(document.execCommand(s,!1,l),o())};return i.jsxs("div",{className:A("w-full p-4 border rounded-lg shadow-md",n),children:[i.jsx(yP,{execCommand:a}),i.jsx("div",{ref:r,contentEditable:!0,className:"w-full h-48 p-2 border rounded overflow-y-auto focus:outline-none min-h-20 resize-y unreset",onInput:o})]})},CP=e=>{const{observerOptions:t,images:n,classNames:r}=e,[o,a]=C.useState([]),s=C.useRef(null);return C.useEffect(()=>{const l={root:document.querySelector(".image-gallery"),rootMargin:"0px",threshold:1,...t};return s.current=new IntersectionObserver(c=>{c.forEach(d=>{if(d.isIntersecting&&d.target instanceof HTMLDivElement){const f=Number(d.target.dataset.index);a(m=>[...new Set([...m,f])])}})},l),()=>{var c;return(c=s.current)==null?void 0:c.disconnect()}},[]),C.useEffect(()=>{document.querySelectorAll(".image-cell").forEach(c=>{var d;return(d=s.current)==null?void 0:d.observe(c)})},[n]),i.jsx("div",{className:A("image-gallery overflow-auto grid grid-cols-[repeat(auto-fit,minmax(300px,1fr))]","gap-2 justify-center h-full",r==null?void 0:r.imageGallery),children:n.map((l,c)=>i.jsx("div",{"data-index":c,className:A("image-cell w-full h-52",r==null?void 0:r.imageCell),children:o.includes(c)&&i.jsx("img",{src:l,alt:`Gallery Image ${c+1}`,className:A("animate-fade-up animate-duration-[400ms] animate-ease-linear w-full h-full object-cover",r==null?void 0:r.image)})},c))})},NP=e=>{const{currentMonth:t,currentYear:n,onChangeMonthYear:r,locale:o=Uo,mode:a="month"}=e,s=l=>{let c=t,d=n;a==="month"?l==="prev"?c===0?(c=11,d--):c--:c===11?(c=0,d++):c++:d=l==="prev"?d-1:d+1,r(c,d)};return i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx(de,{variant:"ghost",size:"icon",onClick:()=>s("prev"),"aria-label":`Previous ${a}`,children:i.jsx(rw,{className:"!h-8 !w-8"})}),i.jsxs("div",{className:"text-center",children:[i.jsx("h2",{className:"text-2xl font-bold capitalize",children:a==="month"?o.localize.month(t,{width:"wide"}):n}),a==="month"&&i.jsx("p",{className:"text-sm text-muted-foreground",children:n})]}),i.jsx(de,{variant:"ghost",size:"icon",onClick:()=>s("next"),"aria-label":`Next ${a}`,children:i.jsx(ow,{className:"!h-8 !w-8"})})]})},ug=({initIndex:e,onPageChange:t,totalItems:n,totalPages:r,pageTotalItems:o,currentPage:a,showItemsCounter:s=!0})=>i.jsxs("div",{className:"flex flex-col gap-2 items-end",children:[s&&i.jsxs("p",{children:[i.jsx("b",{children:e+1})," - ",i.jsx("b",{children:e+o})," (",n,")"]}),r>1&&i.jsx(si,{currentPage:a,onPageChange:t,totalPages:r,totalItems:n,startIndex:e,endIndex:e+o,onPreviousPage:()=>t(a-1),onNextPage:()=>t(a+1)})]}),SP=e=>{const{data:t=[],perPage:n=50,initialPage:r=1,children:o,itemsContainerClass:a="",emptyState:s=i.jsx(cg,{notFoundText:"No item found!"}),isLoading:l=!1,showItemsCounter:c=!0,loadingVariant:d="loader"}=e,[f,m]=C.useState(t);C.useEffect(()=>{m(t),p(1)},[t]);const[h,p]=C.useState(r),v=Math.ceil(f.length/n),g=(h-1)*n,b=h*n,y=f.slice(g,b),w=l?i.jsx("section",{className:"w-full",children:d==="loader"?i.jsx(Zp,{size:"lg"}):i.jsx(Oe,{className:"h-12 w-full",repeat:n})}):f.length===0?s:void 0;return i.jsxs("div",{className:"flex flex-col gap-4 items-end",children:[i.jsx(ug,{initIndex:g,endIndex:b,totalItems:f.length,totalPages:v,currentPage:h,pageTotalItems:y.length,onPageChange:p,showItemsCounter:c}),w?i.jsx("section",{className:"w-full",children:w}):i.jsx("section",{className:`w-full ${a}`,children:y.map((x,S)=>i.jsx(C.Fragment,{children:o(x,S)},x.id))}),i.jsx(ug,{initIndex:g,endIndex:b,totalItems:f.length,totalPages:v,currentPage:h,pageTotalItems:y.length,onPageChange:p,showItemsCounter:c})]})},EP=({fixed:e,isOpen:t,onToggle:n,children:r,className:o})=>{const[a,s]=C.useState(!0),l=C.useRef(null),c=C.useRef(null),d=t!==void 0?t:a,f=()=>{var h;e||(n?n(!1):s(!1),(h=c.current)==null||h.focus())},m=h=>{l.current&&!l.current.contains(h.target)&&!e&&f()};return C.useEffect(()=>{if(!e)return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}},[e]),i.jsxs(i.Fragment,{children:[i.jsx("aside",{ref:l,className:A("bg-white z-50 h-full shadow-md flex flex-col fixed top-0 left-0 transition-all duration-300 ease-in-out overflow-auto",{"w-72":e||d},{"w-0":!d&&!e},{"translate-x-0":d},{"-translate-x-full":!d&&!e},o),"aria-hidden":!d,children:r}),e&&i.jsx("div",{className:"w-72 relative"})]})},kP=({children:e,className:t})=>i.jsx("header",{className:A("p-4 flex justify-between items-center border-b",t),"aria-label":"Sidebar header",children:e}),PP=({children:e,className:t})=>i.jsx("nav",{"aria-label":"Sidebar navigation",className:t,children:e}),TP=({children:e,className:t})=>i.jsx("ul",{className:A("flex flex-col gap-2 my-4 px-4",t),children:e}),MP=({children:e,className:t,onClick:n})=>i.jsx("li",{className:A("flex items-center gap-2 hover:bg-gray-100 rounded transition-colors",t),onClick:n,children:e}),jP=({children:e,className:t})=>i.jsx("footer",{className:A("mt-auto p-4 text-sm",t),"aria-label":"Sidebar footer",children:e});N.Accordion=R1,N.AccordionContent=Wd,N.AccordionItem=zd,N.AccordionTrigger=Vd,N.AdaptiveInput=ao,N.Alert=$1,N.AlertDialog=sN,N.AlertDialogAction=Rf,N.AlertDialogCancel=Df,N.AlertDialogContent=Mf,N.AlertDialogDescription=If,N.AlertDialogFooter=_f,N.AlertDialogHeader=jf,N.AlertDialogOverlay=ps,N.AlertDialogPortal=Tf,N.AlertDialogTitle=Af,N.AlertDialogTrigger=iN,N.Autocomplete=lN,N.Avatar=qf,N.AvatarFallback=Qf,N.AvatarImage=Xf,N.Badge=on,N.BentoCard=Wb,N.BentoGrid=Vb,N.Button=de,N.Calendar=YN,N.Card=Zf,N.CardContent=nm,N.CardDescription=tm,N.CardFooter=rm,N.CardHeader=Jf,N.CardTitle=em,N.Checkbox=eo,N.Command=bo,N.CommandDialog=wS,N.CommandEmpty=Ps,N.CommandGroup=wo,N.CommandInput=Es,N.CommandItem=yn,N.CommandList=ks,N.CommandSeparator=Ts,N.CommandShortcut=bm,N.CurrencyInput=wm,N.DataTable=vP,N.Dialog=po,N.DialogClose=bS,N.DialogContent=Zn,N.DialogDescription=vo,N.DialogFooter=vm,N.DialogHeader=ho,N.DialogOverlay=Ss,N.DialogPortal=gm,N.DialogProvider=Bk,N.DialogTitle=go,N.DialogTrigger=hm,N.DropdownMenu=Cu,N.DropdownMenuCheckboxItem=Ba,N.DropdownMenuContent=Fa,N.DropdownMenuGroup=EC,N.DropdownMenuItem=ku,N.DropdownMenuLabel=za,N.DropdownMenuPortal=kC,N.DropdownMenuRadioGroup=TC,N.DropdownMenuRadioItem=Pu,N.DropdownMenuSeparator=Ur,N.DropdownMenuShortcut=Tu,N.DropdownMenuSub=PC,N.DropdownMenuSubContent=Eu,N.DropdownMenuSubTrigger=Su,N.DropdownMenuTrigger=Nu,N.EmptyItems=cg,N.HelpCarousel=bP,N.HtmlTextArea=wP,N.HtmlTextEditor=xP,N.Input=gn,N.Label=Cm,N.LazyImageGallery=CP,N.MonthNavigator=NP,N.MultiSelect=zm,N.NavigationMenu=pp,N.NavigationMenuContent=bp,N.NavigationMenuIndicator=wp,N.NavigationMenuItem=nE,N.NavigationMenuLink=rE,N.NavigationMenuList=hp,N.NavigationMenuTrigger=vp,N.NavigationMenuViewport=Vs,N.NumberInput=aE,N.PaginatedItems=SP,N.Pagination=Cp,N.PaginationContent=Np,N.PaginationControls=si,N.PaginationEllipsis=Pp,N.PaginationItem=Sp,N.PaginationLink=So,N.PaginationNext=kp,N.PaginationPrevious=Ep,N.PasswordInput=mE,N.Popover=Dm,N.PopoverAnchor=DS,N.PopoverContent=js,N.PopoverTrigger=Om,N.Progress=Gs,N.RadioGroup=qp,N.RadioGroupItem=Xp,N.Select=Ka,N.SelectContent=Zr,N.SelectGroup=r1,N.SelectItem=Pt,N.SelectLabel=pd,N.SelectScrollDownButton=Qa,N.SelectScrollUpButton=Xa,N.SelectSeparator=hd,N.SelectTrigger=Qr,N.SelectValue=qa,N.Separator=xo,N.Sidebar=EP,N.SidebarFooter=jP,N.SidebarHeader=kP,N.SidebarList=TP,N.SidebarListItem=MP,N.SidebarNav=PP,N.Skeleton=Oe,N.Spinner=Zp,N.Switch=ah,N.Table=mr,N.TableBody=hr,N.TableCaption=il,N.TableCell=nn,N.TableFooter=sl,N.TableHead=jn,N.TableHeader=pr,N.TableRow=tn,N.Tabs=RE,N.TabsContent=xh,N.TabsList=wh,N.TabsTrigger=yh,N.Textarea=Ch,N.Toaster=ck,N.Toggle=Ph,N.ToggleGroup=Lh,N.ToggleGroupItem=Fh,N.Tooltip=Dk,N.TooltipContent=$k,N.TooltipProvider=qh,N.TooltipTrigger=Ok,N.badgeVariants=vl,N.buttonVariants=fr,N.capitalize=zb,N.cn=A,N.containSearchStrings=Ji,N.formatCurrency=Cb,N.formatDateAndMonth=_b,N.formatDateAndTime=kb,N.formatDateAndWeekday=Mb,N.formatDateAndWeekdayAndYear=jb,N.formatDateDayMonth=Eb,N.formatDateMonthYear=Sb,N.formatDateUTC=Nb,N.formatLongDate=Ab,N.formatShortDate=Ib,N.formatWeekDayAndShortDate=Db,N.getLongDate=Tb,N.getMonthName=Pb,N.getMonthYearFromISODate=Rb,N.mergeObjects=ea,N.navigationMenuTriggerStyle=gp,N.normalizeString=Ie,N.normalizeStringToCompare=ta,N.padString=Jo,N.replaceTemplateWithVariables=el,N.sortByField=Lb,N.sortByFieldDesc=Fb,N.sortByName=$b,N.sortByNestedField=Bb,N.sortNormalize=Ob,N.spinnerColors=SE,N.spinnerSizes=EE,N.toast=lk,N.toggleVariants=Xs,N.useArray=Lk,N.useCopyToClipboard=Fk,N.useDebounce=Xh,N.useDialog=zk,N.useDisclosure=Vk,N.useDisclosureBool=Wk,N.useFileUtilities=uP,N.useIsMobile=pP,N.useKeyPress=dP,N.useLocalStorage=fP,N.useMediaQuery=mP,N.usePWAInstall=hP,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|