aravint-ui-navigation 1.0.60 → 1.0.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("react/jsx-runtime"),se=require("react"),gn=require("react-dom");function yn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const y=yn(se),vn=yn(gn),ko=({tabs:e,defaultValue:t,value:r,onValueChange:n,className:i="",tabListClassName:s="",tabButtonClassName:a="",contentClassName:c="thin-scrollbar",showTabNumbers:l=!0,showContent:f=!0,animated:u=!0})=>{var S;const p=r!==void 0,[m,h]=se.useState(t||((S=e[0])==null?void 0:S.id)||""),b=p?r:m,x=$=>{p||h($),n==null||n($)},_=e.find($=>$.id===b),w={display:"flex",alignItems:"flex-end",borderBottom:"1px solid #059669",position:"sticky",top:0,zIndex:100,flexShrink:0},v={display:"flex",alignItems:"center",fontFamily:"inherit",background:"transparent",cursor:"pointer",outline:"none",transition:"all .2s ease",position:"relative"},T={background:"#E8F7F1",color:"#059669",fontWeight:700,borderTop:"3px solid #059669",borderLeft:"1px solid #059669",borderRight:"1px solid #059669",borderBottom:"1px solid #E8F7F1",borderTopLeftRadius:8,borderTopRightRadius:8,marginBottom:-1,zIndex:2},j={background:"transparent",color:"#2D3748",borderTop:"3px solid transparent",borderLeft:"1px solid transparent",borderRight:"1px solid transparent",borderBottom:"1px solid transparent",borderTopLeftRadius:8,borderTopRightRadius:8},F={background:"#ECFDF5",color:"#059669",fontWeight:700,border:"1px solid #059669"},D={background:"#FFFFFF",color:"#1F2937",fontWeight:"500",border:"1px solid #1F2937"},R={background:"#FFFFFF",border:"1px solid #D9E1E7",borderTop:"none",borderBottomLeftRadius:12,borderBottomRightRadius:12,boxShadow:"0 2px 6px rgba(0,0,0,.05)",transition:u?"opacity .2s ease":void 0,opacity:1,flex:1,overflowY:"auto",minHeight:0};return Y.jsxs("div",{className:i,style:{display:"flex",flexDirection:"column",width:"100%",height:"100%",minHeight:0,overflow:"hidden"},children:[Y.jsx("style",{children:`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("react/jsx-runtime"),me=require("react"),Ir=require("react-dom");function Mr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const m=Mr(me),Wr=Mr(Ir),mo=({tabs:e,defaultValue:t,value:r,onValueChange:n,className:o="",tabListClassName:s="",tabButtonClassName:i="",contentClassName:c="thin-scrollbar",showTabNumbers:a=!0,showContent:d=!0,animated:u=!0})=>{var k;const f=r!==void 0,[p,h]=me.useState(t||((k=e[0])==null?void 0:k.id)||""),g=f?r:p,y=N=>{f||h(N),n==null||n(N)},b=e.find(N=>N.id===g),x={display:"flex",alignItems:"flex-end",borderBottom:"1px solid #059669",position:"sticky",top:0,zIndex:100,flexShrink:0},w={display:"flex",alignItems:"center",fontFamily:"inherit",background:"transparent",cursor:"pointer",outline:"none",transition:"all .2s ease",position:"relative"},C={background:"#E8F7F1",color:"#059669",fontWeight:700,borderTop:"3px solid #059669",borderLeft:"1px solid #059669",borderRight:"1px solid #059669",borderBottom:"1px solid #E8F7F1",borderTopLeftRadius:8,borderTopRightRadius:8,marginBottom:-1,zIndex:2},T={background:"transparent",color:"#2D3748",borderTop:"3px solid transparent",borderLeft:"1px solid transparent",borderRight:"1px solid transparent",borderBottom:"1px solid transparent",borderTopLeftRadius:8,borderTopRightRadius:8},D={background:"#ECFDF5",color:"#059669",fontWeight:700,border:"1px solid #059669"},P={background:"#FFFFFF",color:"#1F2937",fontWeight:"500",border:"1px solid #1F2937"},E={background:"#FFFFFF",border:"1px solid #D9E1E7",borderTop:"none",borderBottomLeftRadius:12,borderBottomRightRadius:12,boxShadow:"0 2px 6px rgba(0,0,0,.05)",transition:u?"opacity .2s ease":void 0,opacity:1,flex:1,overflowY:"auto",minHeight:0};return F.jsxs("div",{className:o,style:{display:"flex",flexDirection:"column",width:"100%",height:"100%",minHeight:0,overflow:"hidden"},children:[F.jsx("style",{children:`
2
2
  .ctabs-list {
3
3
  padding: 0 10px;
4
4
  gap: 0px;
@@ -72,7 +72,7 @@
72
72
  font-size: 10px;
73
73
  }
74
74
  }
75
- `}),Y.jsx("div",{style:w,className:`ctabs-list ${s}`,children:e.map(($,H)=>{const Z=b===$.id;return Y.jsxs("button",{role:"tab","aria-selected":Z,disabled:$.disabled,onClick:()=>!$.disabled&&x($.id),style:{...v,...Z?T:j,opacity:$.disabled?.5:1,cursor:$.disabled?"not-allowed":"pointer"},className:`ctabs-btn ${a}`,children:[l&&Y.jsx("span",{className:"ctabs-badge",style:Z?F:D,children:H+1}),$.icon,Y.jsx("span",{className:"ctabs-label",children:$.label})]},$.id)})}),f&&_&&Y.jsx("div",{style:R,className:c,children:_.content})]})},_o=e=>y.createElement("svg",{viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{d:"M2 6.2L4.6 8.8L10 3",stroke:"#ffffff",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round"})),bn=se.memo(({computed:e,showTime:t})=>{const{step:r,index:n,status:i}=e,s=i==="active"||i==="current",a="label"in r?r.label:r.title,c="num"in r?r.num:n,l=["rs-stepper__circle",i==="completed"?"rs-stepper__circle--completed":"",s?"rs-stepper__circle--active":"",i==="rejected"?"rs-stepper__circle--rejected":"",n===0&&i==="pending"?"rs-stepper__circle--start":""].filter(Boolean).join(" "),f=["rs-stepper__title",i==="pending"?"rs-stepper__title--pending":"",s?"rs-stepper__title--active":"",i==="rejected"?"rs-stepper__title--rejected":"",n===0&&i==="pending"?"rs-stepper__title--start":""].filter(Boolean).join(" ");return Y.jsxs("div",{className:"rs-stepper__step",children:[Y.jsxs("div",{className:"rs-stepper__circle-wrap",children:[Y.jsx("div",{className:l,children:c}),(i==="completed"||i==="rejected")&&Y.jsx("span",{className:`rs-stepper__check${i==="rejected"?" rs-stepper__check--rejected":""}`,"aria-hidden":"true",children:Y.jsx(_o,{})})]}),Y.jsx("div",{className:f,children:a}),r.date&&Y.jsx("div",{className:"rs-stepper__date",children:r.date}),t&&r.time&&Y.jsx("div",{className:"rs-stepper__time",children:r.time})]})});bn.displayName="StepCircle";const So=({steps:e,currentStep:t,completedColor:r="#059669",pendingColor:n="#9ca3af",activeColor:i="#059669",lineColor:s="#e5e7eb",showTime:a=!0,orientation:c="responsive"})=>{const l=e.length,f=t??1,u=t!==void 0&&t>l&&e.every(R=>!("status"in R)),p=Math.max(1,Math.min(f,l)),m=u?Math.max(0,l-1):Math.max(0,Math.min(l-1,p-1)),h=se.useMemo(()=>e.map((R,S)=>{let $;return"status"in R?$=R.status:u||S<m?$="completed":S===m?$="active":$="pending",{step:R,index:S,status:$}}),[e,m,u]),b=h.length>0&&h.every(R=>R.status==="completed"),x=u||b,_=l>0?100/l/2:0,w=h.reduce((R,S)=>S.status==="completed"||S.status==="active"||S.status==="current"||S.status==="rejected"?S.index:R,-1),v=l>1?x?100:Math.max(0,w)/(l-1)*100:0,T=w>=0?r:s,j=x?r:s,F={"--rs-completed-color":r,"--rs-pending-color":n,"--rs-active-color":i,"--rs-rejected-color":"#ef4444","--rs-line-color":s,"--rs-half-step":`${_}%`,"--rs-progress":`${v}%`,"--rs-left-side-color":T,"--rs-right-side-color":j};if(l===0)return null;const D=c==="vertical"?"rs-stepper--vertical":c==="horizontal"?"rs-stepper--horizontal":"rs-stepper--responsive";return Y.jsxs("div",{className:"border border-[#E5E7EB] py-2 mx-2 rounded-lg bg-[#F9FAFB] shadow-[0px_2px_4px_-1px_#00000008,0px_4px_6px_-1px_#0000000D]",children:[Y.jsx("div",{className:"pl-2 pt-2 pb-3 text-[14px] font-bold",children:"Workflow Progress"}),Y.jsx("div",{className:`rs-stepper ${D}`,style:F,children:Y.jsx("div",{className:"rs-stepper__scroll",children:Y.jsxs("div",{className:"rs-stepper__row",children:[Y.jsx("div",{className:"rs-stepper__track",children:Y.jsx("div",{className:"rs-stepper__progress"})}),h.map(R=>Y.jsx(bn,{computed:R,showTime:a},"key"in R.step?R.step.key:R.step.id))]})})})]})},Eo=se.memo(So);var mr={exports:{}},wt={};/**
75
+ `}),F.jsx("div",{style:x,className:`ctabs-list ${s}`,children:e.map((N,B)=>{const J=g===N.id;return F.jsxs("button",{role:"tab","aria-selected":J,disabled:N.disabled,onClick:()=>!N.disabled&&y(N.id),style:{...w,...J?C:T,opacity:N.disabled?.5:1,cursor:N.disabled?"not-allowed":"pointer"},className:`ctabs-btn ${i}`,children:[a&&F.jsx("span",{className:"ctabs-badge",style:J?D:P,children:B+1}),N.icon,F.jsx("span",{className:"ctabs-label",children:N.label})]},N.id)})}),d&&b&&F.jsx("div",{style:E,className:c,children:b.content})]})},ho=e=>m.createElement("svg",{viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M2 6.2L4.6 8.8L10 3",stroke:"#ffffff",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round"})),Br=me.memo(({computed:e,showTime:t})=>{const{step:r,index:n,status:o}=e,s=o==="active"||o==="current",i="label"in r?r.label:r.title,c="num"in r?r.num:n,a=["rs-stepper__circle",o==="completed"?"rs-stepper__circle--completed":"",s?"rs-stepper__circle--active":"",o==="rejected"?"rs-stepper__circle--rejected":"",n===0&&o==="pending"?"rs-stepper__circle--start":""].filter(Boolean).join(" "),d=["rs-stepper__title",o==="pending"?"rs-stepper__title--pending":"",s?"rs-stepper__title--active":"",o==="rejected"?"rs-stepper__title--rejected":"",n===0&&o==="pending"?"rs-stepper__title--start":""].filter(Boolean).join(" ");return F.jsxs("div",{className:"rs-stepper__step",children:[F.jsxs("div",{className:"rs-stepper__circle-wrap",children:[F.jsx("div",{className:a,children:c}),(o==="completed"||o==="rejected")&&F.jsx("span",{className:`rs-stepper__check${o==="rejected"?" rs-stepper__check--rejected":""}`,"aria-hidden":"true",children:F.jsx(ho,{})})]}),F.jsx("div",{className:d,children:i}),r.date&&F.jsx("div",{className:"rs-stepper__date",children:r.date}),t&&r.time&&F.jsx("div",{className:"rs-stepper__time",children:r.time})]})});Br.displayName="StepCircle";const go=({steps:e,currentStep:t,completedColor:r="#059669",pendingColor:n="#9ca3af",activeColor:o="#059669",lineColor:s="#e5e7eb",showTime:i=!0,orientation:c="responsive"})=>{const a=e.length,d=t??1,u=t!==void 0&&t>a&&e.every(E=>!("status"in E)),f=Math.max(1,Math.min(d,a)),p=u?Math.max(0,a-1):Math.max(0,Math.min(a-1,f-1)),h=me.useMemo(()=>e.map((E,k)=>{let N;return"status"in E?N=E.status:u||k<p?N="completed":k===p?N="active":N="pending",{step:E,index:k,status:N}}),[e,p,u]),g=h.length>0&&h.every(E=>E.status==="completed"),y=u||g,b=a>0?100/a/2:0,x=h.reduce((E,k)=>k.status==="completed"||k.status==="active"||k.status==="current"||k.status==="rejected"?k.index:E,-1),w=a>1?y?100:Math.max(0,x)/(a-1)*100:0,C=x>=0?r:s,T=y?r:s,D={"--rs-completed-color":r,"--rs-pending-color":n,"--rs-active-color":o,"--rs-rejected-color":"#ef4444","--rs-line-color":s,"--rs-half-step":`${b}%`,"--rs-progress":`${w}%`,"--rs-left-side-color":C,"--rs-right-side-color":T};if(a===0)return null;const P=c==="vertical"?"rs-stepper--vertical":c==="horizontal"?"rs-stepper--horizontal":"rs-stepper--responsive";return F.jsxs("div",{className:"border border-[#E5E7EB] py-2 mx-2 rounded-lg bg-[#F9FAFB] shadow-[0px_2px_4px_-1px_#00000008,0px_4px_6px_-1px_#0000000D]",children:[F.jsx("div",{className:"pl-2 pt-2 pb-3 text-[14px] font-bold",children:"Workflow Progress"}),F.jsx("div",{className:`rs-stepper ${P}`,style:D,children:F.jsx("div",{className:"rs-stepper__scroll",children:F.jsxs("div",{className:"rs-stepper__row",children:[F.jsx("div",{className:"rs-stepper__track",children:F.jsx("div",{className:"rs-stepper__progress"})}),h.map(E=>F.jsx(Br,{computed:E,showTime:i},"key"in E.step?E.step.key:E.step.id))]})})})]})},yo=me.memo(go);var Ct={exports:{}},qe={};/**
76
76
  * @license React
77
77
  * react-jsx-runtime.production.min.js
78
78
  *
@@ -80,7 +80,7 @@
80
80
  *
81
81
  * This source code is licensed under the MIT license found in the
82
82
  * LICENSE file in the root directory of this source tree.
83
- */var Ur;function Ro(){if(Ur)return wt;Ur=1;var e=se,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(c,l,f){var u,p={},m=null,h=null;f!==void 0&&(m=""+f),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(h=l.ref);for(u in l)n.call(l,u)&&!s.hasOwnProperty(u)&&(p[u]=l[u]);if(c&&c.defaultProps)for(u in l=c.defaultProps,l)p[u]===void 0&&(p[u]=l[u]);return{$$typeof:t,type:c,key:m,ref:h,props:p,_owner:i.current}}return wt.Fragment=r,wt.jsx=a,wt.jsxs=a,wt}var Ot={};/**
83
+ */var hr;function vo(){if(hr)return qe;hr=1;var e=me,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(c,a,d){var u,f={},p=null,h=null;d!==void 0&&(p=""+d),a.key!==void 0&&(p=""+a.key),a.ref!==void 0&&(h=a.ref);for(u in a)n.call(a,u)&&!s.hasOwnProperty(u)&&(f[u]=a[u]);if(c&&c.defaultProps)for(u in a=c.defaultProps,a)f[u]===void 0&&(f[u]=a[u]);return{$$typeof:t,type:c,key:p,ref:h,props:f,_owner:o.current}}return qe.Fragment=r,qe.jsx=i,qe.jsxs=i,qe}var it={};/**
84
84
  * @license React
85
85
  * react-jsx-runtime.development.js
86
86
  *
@@ -88,46 +88,17 @@
88
88
  *
89
89
  * This source code is licensed under the MIT license found in the
90
90
  * LICENSE file in the root directory of this source tree.
91
- */var Yr;function jo(){return Yr||(Yr=1,process.env.NODE_ENV!=="production"&&(function(){var e=se,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),b=Symbol.iterator,x="@@iterator";function _(o){if(o===null||typeof o!="object")return null;var d=b&&o[b]||o[x];return typeof d=="function"?d:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(o){{for(var d=arguments.length,g=new Array(d>1?d-1:0),k=1;k<d;k++)g[k-1]=arguments[k];T("error",o,g)}}function T(o,d,g){{var k=w.ReactDebugCurrentFrame,z=k.getStackAddendum();z!==""&&(d+="%s",g=g.concat([z]));var I=g.map(function(C){return String(C)});I.unshift("Warning: "+d),Function.prototype.apply.call(console[o],console,I)}}var j=!1,F=!1,D=!1,R=!1,S=!1,$;$=Symbol.for("react.module.reference");function H(o){return!!(typeof o=="string"||typeof o=="function"||o===n||o===s||S||o===i||o===f||o===u||R||o===h||j||F||D||typeof o=="object"&&o!==null&&(o.$$typeof===m||o.$$typeof===p||o.$$typeof===a||o.$$typeof===c||o.$$typeof===l||o.$$typeof===$||o.getModuleId!==void 0))}function Z(o,d,g){var k=o.displayName;if(k)return k;var z=d.displayName||d.name||"";return z!==""?g+"("+z+")":g}function Q(o){return o.displayName||"Context"}function U(o){if(o==null)return null;if(typeof o.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case i:return"StrictMode";case f:return"Suspense";case u:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case c:var d=o;return Q(d)+".Consumer";case a:var g=o;return Q(g._context)+".Provider";case l:return Z(o,o.render,"ForwardRef");case p:var k=o.displayName||null;return k!==null?k:U(o.type)||"Memo";case m:{var z=o,I=z._payload,C=z._init;try{return U(C(I))}catch{return null}}}return null}var A=Object.assign,X=0,V,G,E,ee,oe,be,xe;function te(){}te.__reactDisabledLog=!0;function ne(){{if(X===0){V=console.log,G=console.info,E=console.warn,ee=console.error,oe=console.group,be=console.groupCollapsed,xe=console.groupEnd;var o={configurable:!0,enumerable:!0,value:te,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}X++}}function we(){{if(X--,X===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},o,{value:V}),info:A({},o,{value:G}),warn:A({},o,{value:E}),error:A({},o,{value:ee}),group:A({},o,{value:oe}),groupCollapsed:A({},o,{value:be}),groupEnd:A({},o,{value:xe})})}X<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=w.ReactCurrentDispatcher,J;function ce(o,d,g){{if(J===void 0)try{throw Error()}catch(z){var k=z.stack.trim().match(/\n( *(at )?)/);J=k&&k[1]||""}return`
92
- `+J+o}}var ue=!1,ae;{var Te=typeof WeakMap=="function"?WeakMap:Map;ae=new Te}function ve(o,d){if(!o||ue)return"";{var g=ae.get(o);if(g!==void 0)return g}var k;ue=!0;var z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=ye.current,ye.current=null,ne();try{if(d){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(q){k=q}Reflect.construct(o,[],C)}else{try{C.call()}catch(q){k=q}o.call(C.prototype)}}else{try{throw Error()}catch(q){k=q}o()}}catch(q){if(q&&k&&typeof q.stack=="string"){for(var O=q.stack.split(`
93
- `),K=k.stack.split(`
94
- `),M=O.length-1,W=K.length-1;M>=1&&W>=0&&O[M]!==K[W];)W--;for(;M>=1&&W>=0;M--,W--)if(O[M]!==K[W]){if(M!==1||W!==1)do if(M--,W--,W<0||O[M]!==K[W]){var re=`
95
- `+O[M].replace(" at new "," at ");return o.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",o.displayName)),typeof o=="function"&&ae.set(o,re),re}while(M>=1&&W>=0);break}}}finally{ue=!1,ye.current=I,we(),Error.prepareStackTrace=z}var me=o?o.displayName||o.name:"",le=me?ce(me):"";return typeof o=="function"&&ae.set(o,le),le}function Ce(o,d,g){return ve(o,!1)}function lt(o){var d=o.prototype;return!!(d&&d.isReactComponent)}function ke(o,d,g){if(o==null)return"";if(typeof o=="function")return ve(o,lt(o));if(typeof o=="string")return ce(o);switch(o){case f:return ce("Suspense");case u:return ce("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case l:return Ce(o.render);case p:return ke(o.type,d,g);case m:{var k=o,z=k._payload,I=k._init;try{return ke(I(z),d,g)}catch{}}}return""}var de=Object.prototype.hasOwnProperty,Be={},Ue=w.ReactDebugCurrentFrame;function fe(o){if(o){var d=o._owner,g=ke(o.type,o._source,d?d.type:null);Ue.setExtraStackFrame(g)}else Ue.setExtraStackFrame(null)}function Ht(o,d,g,k,z){{var I=Function.call.bind(de);for(var C in o)if(I(o,C)){var O=void 0;try{if(typeof o[C]!="function"){var K=Error((k||"React class")+": "+g+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw K.name="Invariant Violation",K}O=o[C](d,C,k,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(M){O=M}O&&!(O instanceof Error)&&(fe(z),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",k||"React class",g,C,typeof O),fe(null)),O instanceof Error&&!(O.message in Be)&&(Be[O.message]=!0,fe(z),v("Failed %s type: %s",g,O.message),fe(null))}}}var Gt=Array.isArray;function Ye(o){return Gt(o)}function Xt(o){{var d=typeof Symbol=="function"&&Symbol.toStringTag,g=d&&o[Symbol.toStringTag]||o.constructor.name||"Object";return g}}function Kt(o){try{return ct(o),!1}catch{return!0}}function ct(o){return""+o}function ut(o){if(Kt(o))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xt(o)),ct(o)}var ft=w.ReactCurrentOwner,Jt={key:!0,ref:!0,__self:!0,__source:!0},dt,pt;function Qt(o){if(de.call(o,"ref")){var d=Object.getOwnPropertyDescriptor(o,"ref").get;if(d&&d.isReactWarning)return!1}return o.ref!==void 0}function qt(o){if(de.call(o,"key")){var d=Object.getOwnPropertyDescriptor(o,"key").get;if(d&&d.isReactWarning)return!1}return o.key!==void 0}function Zt(o,d){typeof o.ref=="string"&&ft.current}function er(o,d){{var g=function(){dt||(dt=!0,v("%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://reactjs.org/link/special-props)",d))};g.isReactWarning=!0,Object.defineProperty(o,"key",{get:g,configurable:!0})}}function tr(o,d){{var g=function(){pt||(pt=!0,v("%s: `ref` 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://reactjs.org/link/special-props)",d))};g.isReactWarning=!0,Object.defineProperty(o,"ref",{get:g,configurable:!0})}}var rr=function(o,d,g,k,z,I,C){var O={$$typeof:t,type:o,key:d,ref:g,props:C,_owner:I};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function nr(o,d,g,k,z){{var I,C={},O=null,K=null;g!==void 0&&(ut(g),O=""+g),qt(d)&&(ut(d.key),O=""+d.key),Qt(d)&&(K=d.ref,Zt(d));for(I in d)de.call(d,I)&&!Jt.hasOwnProperty(I)&&(C[I]=d[I]);if(o&&o.defaultProps){var M=o.defaultProps;for(I in M)C[I]===void 0&&(C[I]=M[I])}if(O||K){var W=typeof o=="function"?o.displayName||o.name||"Unknown":o;O&&er(C,W),K&&tr(C,W)}return rr(o,O,K,z,k,ft.current,C)}}var Ve=w.ReactCurrentOwner,mt=w.ReactDebugCurrentFrame;function pe(o){if(o){var d=o._owner,g=ke(o.type,o._source,d?d.type:null);mt.setExtraStackFrame(g)}else mt.setExtraStackFrame(null)}var He;He=!1;function Ge(o){return typeof o=="object"&&o!==null&&o.$$typeof===t}function ht(){{if(Ve.current){var o=U(Ve.current.type);if(o)return`
91
+ */var gr;function bo(){return gr||(gr=1,process.env.NODE_ENV!=="production"&&(function(){var e=me,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,y="@@iterator";function b(l){if(l===null||typeof l!="object")return null;var v=g&&l[g]||l[y];return typeof v=="function"?v:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(l){{for(var v=arguments.length,R=new Array(v>1?v-1:0),A=1;A<v;A++)R[A-1]=arguments[A];C("error",l,R)}}function C(l,v,R){{var A=x.ReactDebugCurrentFrame,H=A.getStackAddendum();H!==""&&(v+="%s",R=R.concat([H]));var U=R.map(function(I){return String(I)});U.unshift("Warning: "+v),Function.prototype.apply.call(console[l],console,U)}}var T=!1,D=!1,P=!1,E=!1,k=!1,N;N=Symbol.for("react.module.reference");function B(l){return!!(typeof l=="string"||typeof l=="function"||l===n||l===s||k||l===o||l===d||l===u||E||l===h||T||D||P||typeof l=="object"&&l!==null&&(l.$$typeof===p||l.$$typeof===f||l.$$typeof===i||l.$$typeof===c||l.$$typeof===a||l.$$typeof===N||l.getModuleId!==void 0))}function J(l,v,R){var A=l.displayName;if(A)return A;var H=v.displayName||v.name||"";return H!==""?R+"("+H+")":R}function Y(l){return l.displayName||"Context"}function V(l){if(l==null)return null;if(typeof l.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case u:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case c:var v=l;return Y(v)+".Consumer";case i:var R=l;return Y(R._context)+".Provider";case a:return J(l,l.render,"ForwardRef");case f:var A=l.displayName||null;return A!==null?A:V(l.type)||"Memo";case p:{var H=l,U=H._payload,I=H._init;try{return V(I(U))}catch{return null}}}return null}var L=Object.assign,X=0,M,W,_,K,re,Re,Te;function Q(){}Q.__reactDisabledLog=!0;function q(){{if(X===0){M=console.log,W=console.info,_=console.warn,K=console.error,re=console.group,Re=console.groupCollapsed,Te=console.groupEnd;var l={configurable:!0,enumerable:!0,value:Q,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}X++}}function ge(){{if(X--,X===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},l,{value:M}),info:L({},l,{value:W}),warn:L({},l,{value:_}),error:L({},l,{value:K}),group:L({},l,{value:re}),groupCollapsed:L({},l,{value:Re}),groupEnd:L({},l,{value:Te})})}X<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var je=x.ReactCurrentDispatcher,G;function ye(l,v,R){{if(G===void 0)try{throw Error()}catch(H){var A=H.stack.trim().match(/\n( *(at )?)/);G=A&&A[1]||""}return`
92
+ `+G+l}}var de=!1,le;{var De=typeof WeakMap=="function"?WeakMap:Map;le=new De}function ve(l,v){if(!l||de)return"";{var R=le.get(l);if(R!==void 0)return R}var A;de=!0;var H=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var U;U=je.current,je.current=null,q();try{if(v){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(oe){A=oe}Reflect.construct(l,[],I)}else{try{I.call()}catch(oe){A=oe}l.call(I.prototype)}}else{try{throw Error()}catch(oe){A=oe}l()}}catch(oe){if(oe&&A&&typeof oe.stack=="string"){for(var $=oe.stack.split(`
93
+ `),ne=A.stack.split(`
94
+ `),Z=$.length-1,ee=ne.length-1;Z>=1&&ee>=0&&$[Z]!==ne[ee];)ee--;for(;Z>=1&&ee>=0;Z--,ee--)if($[Z]!==ne[ee]){if(Z!==1||ee!==1)do if(Z--,ee--,ee<0||$[Z]!==ne[ee]){var ae=`
95
+ `+$[Z].replace(" at new "," at ");return l.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",l.displayName)),typeof l=="function"&&le.set(l,ae),ae}while(Z>=1&&ee>=0);break}}}finally{de=!1,je.current=U,ge(),Error.prepareStackTrace=H}var He=l?l.displayName||l.name:"",Fe=He?ye(He):"";return typeof l=="function"&&le.set(l,Fe),Fe}function Ae(l,v,R){return ve(l,!1)}function _t(l){var v=l.prototype;return!!(v&&v.isReactComponent)}function We(l,v,R){if(l==null)return"";if(typeof l=="function")return ve(l,_t(l));if(typeof l=="string")return ye(l);switch(l){case d:return ye("Suspense");case u:return ye("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case a:return Ae(l.render);case f:return We(l.type,v,R);case p:{var A=l,H=A._payload,U=A._init;try{return We(U(H),v,R)}catch{}}}return""}var ze=Object.prototype.hasOwnProperty,ot={},st=x.ReactDebugCurrentFrame;function be(l){if(l){var v=l._owner,R=We(l.type,l._source,v?v.type:null);st.setExtraStackFrame(R)}else st.setExtraStackFrame(null)}function Un(l,v,R,A,H){{var U=Function.call.bind(ze);for(var I in l)if(U(l,I)){var $=void 0;try{if(typeof l[I]!="function"){var ne=Error((A||"React class")+": "+R+" type `"+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[I]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ne.name="Invariant Violation",ne}$=l[I](v,I,A,R,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Z){$=Z}$&&!($ instanceof Error)&&(be(H),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",A||"React class",R,I,typeof $),be(null)),$ instanceof Error&&!($.message in ot)&&(ot[$.message]=!0,be(H),w("Failed %s type: %s",R,$.message),be(null))}}}var Yn=Array.isArray;function Et(l){return Yn(l)}function Gn(l){{var v=typeof Symbol=="function"&&Symbol.toStringTag,R=v&&l[Symbol.toStringTag]||l.constructor.name||"Object";return R}}function Xn(l){try{return nr(l),!1}catch{return!0}}function nr(l){return""+l}function or(l){if(Xn(l))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Gn(l)),nr(l)}var sr=x.ReactCurrentOwner,Kn={key:!0,ref:!0,__self:!0,__source:!0},ir,ar;function Jn(l){if(ze.call(l,"ref")){var v=Object.getOwnPropertyDescriptor(l,"ref").get;if(v&&v.isReactWarning)return!1}return l.ref!==void 0}function Qn(l){if(ze.call(l,"key")){var v=Object.getOwnPropertyDescriptor(l,"key").get;if(v&&v.isReactWarning)return!1}return l.key!==void 0}function qn(l,v){typeof l.ref=="string"&&sr.current}function Zn(l,v){{var R=function(){ir||(ir=!0,w("%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://reactjs.org/link/special-props)",v))};R.isReactWarning=!0,Object.defineProperty(l,"key",{get:R,configurable:!0})}}function eo(l,v){{var R=function(){ar||(ar=!0,w("%s: `ref` 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://reactjs.org/link/special-props)",v))};R.isReactWarning=!0,Object.defineProperty(l,"ref",{get:R,configurable:!0})}}var to=function(l,v,R,A,H,U,I){var $={$$typeof:t,type:l,key:v,ref:R,props:I,_owner:U};return $._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($,"_self",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.defineProperty($,"_source",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$};function ro(l,v,R,A,H){{var U,I={},$=null,ne=null;R!==void 0&&(or(R),$=""+R),Qn(v)&&(or(v.key),$=""+v.key),Jn(v)&&(ne=v.ref,qn(v));for(U in v)ze.call(v,U)&&!Kn.hasOwnProperty(U)&&(I[U]=v[U]);if(l&&l.defaultProps){var Z=l.defaultProps;for(U in Z)I[U]===void 0&&(I[U]=Z[U])}if($||ne){var ee=typeof l=="function"?l.displayName||l.name||"Unknown":l;$&&Zn(I,ee),ne&&eo(I,ee)}return to(l,$,ne,H,A,sr.current,I)}}var Rt=x.ReactCurrentOwner,lr=x.ReactDebugCurrentFrame;function Be(l){if(l){var v=l._owner,R=We(l.type,l._source,v?v.type:null);lr.setExtraStackFrame(R)}else lr.setExtraStackFrame(null)}var Tt;Tt=!1;function jt(l){return typeof l=="object"&&l!==null&&l.$$typeof===t}function cr(){{if(Rt.current){var l=V(Rt.current.type);if(l)return`
96
96
 
97
- Check the render method of \``+o+"`."}return""}}function or(o){return""}var gt={};function ir(o){{var d=ht();if(!d){var g=typeof o=="string"?o:o.displayName||o.name;g&&(d=`
97
+ Check the render method of \``+l+"`."}return""}}function no(l){return""}var ur={};function oo(l){{var v=cr();if(!v){var R=typeof l=="string"?l:l.displayName||l.name;R&&(v=`
98
98
 
99
- Check the top-level render call using <`+g+">.")}return d}}function yt(o,d){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var g=ir(d);if(gt[g])return;gt[g]=!0;var k="";o&&o._owner&&o._owner!==Ve.current&&(k=" It was passed a child from "+U(o._owner.type)+"."),pe(o),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',g,k),pe(null)}}function vt(o,d){{if(typeof o!="object")return;if(Ye(o))for(var g=0;g<o.length;g++){var k=o[g];Ge(k)&&yt(k,d)}else if(Ge(o))o._store&&(o._store.validated=!0);else if(o){var z=_(o);if(typeof z=="function"&&z!==o.entries)for(var I=z.call(o),C;!(C=I.next()).done;)Ge(C.value)&&yt(C.value,d)}}}function sr(o){{var d=o.type;if(d==null||typeof d=="string")return;var g;if(typeof d=="function")g=d.propTypes;else if(typeof d=="object"&&(d.$$typeof===l||d.$$typeof===p))g=d.propTypes;else return;if(g){var k=U(d);Ht(g,o.props,"prop",k,o)}else if(d.PropTypes!==void 0&&!He){He=!0;var z=U(d);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",z||"Unknown")}typeof d.getDefaultProps=="function"&&!d.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ar(o){{for(var d=Object.keys(o.props),g=0;g<d.length;g++){var k=d[g];if(k!=="children"&&k!=="key"){pe(o),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",k),pe(null);break}}o.ref!==null&&(pe(o),v("Invalid attribute `ref` supplied to `React.Fragment`."),pe(null))}}var bt={};function xt(o,d,g,k,z,I){{var C=H(o);if(!C){var O="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var K=or();K?O+=K:O+=ht();var M;o===null?M="null":Ye(o)?M="array":o!==void 0&&o.$$typeof===t?(M="<"+(U(o.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):M=typeof o,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",M,O)}var W=nr(o,d,g,z,I);if(W==null)return W;if(C){var re=d.children;if(re!==void 0)if(k)if(Ye(re)){for(var me=0;me<re.length;me++)vt(re[me],o);Object.freeze&&Object.freeze(re)}else v("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 vt(re,o)}if(de.call(d,"key")){var le=U(o),q=Object.keys(d).filter(function(pr){return pr!=="key"}),Xe=q.length>0?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}";if(!bt[le+Xe]){var dr=q.length>0?"{"+q.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
99
+ Check the top-level render call using <`+R+">.")}return v}}function dr(l,v){{if(!l._store||l._store.validated||l.key!=null)return;l._store.validated=!0;var R=oo(v);if(ur[R])return;ur[R]=!0;var A="";l&&l._owner&&l._owner!==Rt.current&&(A=" It was passed a child from "+V(l._owner.type)+"."),Be(l),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',R,A),Be(null)}}function fr(l,v){{if(typeof l!="object")return;if(Et(l))for(var R=0;R<l.length;R++){var A=l[R];jt(A)&&dr(A,v)}else if(jt(l))l._store&&(l._store.validated=!0);else if(l){var H=b(l);if(typeof H=="function"&&H!==l.entries)for(var U=H.call(l),I;!(I=U.next()).done;)jt(I.value)&&dr(I.value,v)}}}function so(l){{var v=l.type;if(v==null||typeof v=="string")return;var R;if(typeof v=="function")R=v.propTypes;else if(typeof v=="object"&&(v.$$typeof===a||v.$$typeof===f))R=v.propTypes;else return;if(R){var A=V(v);Un(R,l.props,"prop",A,l)}else if(v.PropTypes!==void 0&&!Tt){Tt=!0;var H=V(v);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H||"Unknown")}typeof v.getDefaultProps=="function"&&!v.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function io(l){{for(var v=Object.keys(l.props),R=0;R<v.length;R++){var A=v[R];if(A!=="children"&&A!=="key"){Be(l),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",A),Be(null);break}}l.ref!==null&&(Be(l),w("Invalid attribute `ref` supplied to `React.Fragment`."),Be(null))}}var pr={};function mr(l,v,R,A,H,U){{var I=B(l);if(!I){var $="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&($+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ne=no();ne?$+=ne:$+=cr();var Z;l===null?Z="null":Et(l)?Z="array":l!==void 0&&l.$$typeof===t?(Z="<"+(V(l.type)||"Unknown")+" />",$=" Did you accidentally export a JSX literal instead of a component?"):Z=typeof l,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Z,$)}var ee=ro(l,v,R,H,U);if(ee==null)return ee;if(I){var ae=v.children;if(ae!==void 0)if(A)if(Et(ae)){for(var He=0;He<ae.length;He++)fr(ae[He],l);Object.freeze&&Object.freeze(ae)}else w("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 fr(ae,l)}if(ze.call(v,"key")){var Fe=V(l),oe=Object.keys(v).filter(function(po){return po!=="key"}),St=oe.length>0?"{key: someKey, "+oe.join(": ..., ")+": ...}":"{key: someKey}";if(!pr[Fe+St]){var fo=oe.length>0?"{"+oe.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
100
100
  let props = %s;
101
101
  <%s {...props} />
102
102
  React keys must be passed directly to JSX without using spread:
103
103
  let props = %s;
104
- <%s key={someKey} {...props} />`,Xe,le,dr,le),bt[le+Xe]=!0}}return o===n?ar(W):sr(W),W}}function lr(o,d,g){return xt(o,d,g,!0)}function cr(o,d,g){return xt(o,d,g,!1)}var ur=cr,fr=lr;Ot.Fragment=n,Ot.jsx=ur,Ot.jsxs=fr})()),Ot}var Vr;function Oo(){return Vr||(Vr=1,process.env.NODE_ENV==="production"?mr.exports=Ro():mr.exports=jo()),mr.exports}var L=Oo();function xn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=xn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function wn(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=xn(e))&&(n&&(n+=" "),n+=t);return n}const Hr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Gr=wn,To=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Gr(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:s}=t,a=Object.keys(i).map(f=>{const u=r==null?void 0:r[f],p=s==null?void 0:s[f];if(u===null)return null;const m=Hr(u)||Hr(p);return i[f][m]}),c=r&&Object.entries(r).reduce((f,u)=>{let[p,m]=u;return m===void 0||(f[p]=m),f},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((f,u)=>{let{class:p,className:m,...h}=u;return Object.entries(h).every(b=>{let[x,_]=b;return Array.isArray(_)?_.includes({...s,...c}[x]):{...s,...c}[x]===_})?[...f,p,m]:f},[]);return Gr(e,a,l,r==null?void 0:r.class,r==null?void 0:r.className)},Cr="-",Co=e=>{const t=Po(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const s=i.split(Cr);return s[0]===""&&s.length!==1&&s.shift(),kn(s,t)||No(i)},getConflictingClassGroupIds:(i,s)=>{const a=r[i]||[];return s&&n[i]?[...a,...n[i]]:a}}},kn=(e,t)=>{var r;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),s=i?kn(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;const a=e.join(Cr);return(r=t.validators.find(({validator:c})=>c(a)))==null?void 0:r.classGroupId},Xr=/^\[(.+)\]$/,No=e=>{if(Xr.test(e)){const t=Xr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Po=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const i in r)wr(r[i],n,i,t);return n},wr=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Kr(t,i);s.classGroupId=r;return}if(typeof i=="function"){if(Do(i)){wr(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([s,a])=>{wr(a,Kr(t,s),r,n)})})},Kr=(e,t)=>{let r=e;return t.split(Cr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Do=e=>e.isThemeGetter,$o=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(s,a)=>{r.set(s,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let a=r.get(s);if(a!==void 0)return a;if((a=n.get(s))!==void 0)return i(s,a),a},set(s,a){r.has(s)?r.set(s,a):i(s,a)}}},kr="!",_r=":",zo=_r.length,Fo=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const s=[];let a=0,c=0,l=0,f;for(let b=0;b<i.length;b++){let x=i[b];if(a===0&&c===0){if(x===_r){s.push(i.slice(l,b)),l=b+zo;continue}if(x==="/"){f=b;continue}}x==="["?a++:x==="]"?a--:x==="("?c++:x===")"&&c--}const u=s.length===0?i:i.substring(l),p=Io(u),m=p!==u,h=f&&f>l?f-l:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:h}};if(t){const i=t+_r,s=n;n=a=>a.startsWith(i)?s(a.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(r){const i=n;n=s=>r({className:s,parseClassName:i})}return n},Io=e=>e.endsWith(kr)?e.substring(0,e.length-1):e.startsWith(kr)?e.substring(1):e,Lo=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const n=[];let i=[];return r.forEach(s=>{s[0]==="["||t[s]?(n.push(...i.sort(),s),i=[]):i.push(s)}),n.push(...i.sort()),n}},Mo=e=>({cache:$o(e.cacheSize),parseClassName:Fo(e),sortModifiers:Lo(e),...Co(e)}),Ao=/\s+/,Wo=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:s}=t,a=[],c=e.trim().split(Ao);let l="";for(let f=c.length-1;f>=0;f-=1){const u=c[f],{isExternal:p,modifiers:m,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:x}=r(u);if(p){l=u+(l.length>0?" "+l:l);continue}let _=!!x,w=n(_?b.substring(0,x):b);if(!w){if(!_){l=u+(l.length>0?" "+l:l);continue}if(w=n(b),!w){l=u+(l.length>0?" "+l:l);continue}_=!1}const v=s(m).join(":"),T=h?v+kr:v,j=T+w;if(a.includes(j))continue;a.push(j);const F=i(w,_);for(let D=0;D<F.length;++D){const R=F[D];a.push(T+R)}l=u+(l.length>0?" "+l:l)}return l};function Bo(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=_n(t))&&(n&&(n+=" "),n+=r);return n}const _n=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=_n(e[n]))&&(r&&(r+=" "),r+=t);return r};function Uo(e,...t){let r,n,i,s=a;function a(l){const f=t.reduce((u,p)=>p(u),e());return r=Mo(f),n=r.cache.get,i=r.cache.set,s=c,c(l)}function c(l){const f=n(l);if(f)return f;const u=Wo(l,r);return i(l,u),u}return function(){return s(Bo.apply(null,arguments))}}const ie=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Sn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,En=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Yo=/^\d+\/\d+$/,Vo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ho=/\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$/,Go=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Xo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ko=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ze=e=>Yo.test(e),B=e=>!!e&&!Number.isNaN(Number(e)),Fe=e=>!!e&&Number.isInteger(Number(e)),hr=e=>e.endsWith("%")&&B(e.slice(0,-1)),Ne=e=>Vo.test(e),Jo=()=>!0,Qo=e=>Ho.test(e)&&!Go.test(e),Rn=()=>!1,qo=e=>Xo.test(e),Zo=e=>Ko.test(e),ei=e=>!N(e)&&!P(e),ti=e=>ot(e,Tn,Rn),N=e=>Sn.test(e),Ke=e=>ot(e,Cn,Qo),gr=e=>ot(e,si,B),Jr=e=>ot(e,jn,Rn),ri=e=>ot(e,On,Zo),Tt=e=>ot(e,Nn,qo),P=e=>En.test(e),kt=e=>it(e,Cn),ni=e=>it(e,ai),Qr=e=>it(e,jn),oi=e=>it(e,Tn),ii=e=>it(e,On),Ct=e=>it(e,Nn,!0),ot=(e,t,r)=>{const n=Sn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},it=(e,t,r=!1)=>{const n=En.exec(e);return n?n[1]?t(n[1]):r:!1},jn=e=>e==="position"||e==="percentage",On=e=>e==="image"||e==="url",Tn=e=>e==="length"||e==="size"||e==="bg-size",Cn=e=>e==="length",si=e=>e==="number",ai=e=>e==="family-name",Nn=e=>e==="shadow",li=()=>{const e=ie("color"),t=ie("font"),r=ie("text"),n=ie("font-weight"),i=ie("tracking"),s=ie("leading"),a=ie("breakpoint"),c=ie("container"),l=ie("spacing"),f=ie("radius"),u=ie("shadow"),p=ie("inset-shadow"),m=ie("text-shadow"),h=ie("drop-shadow"),b=ie("blur"),x=ie("perspective"),_=ie("aspect"),w=ie("ease"),v=ie("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...j(),P,N],D=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],S=()=>[P,N,l],$=()=>[Ze,"full","auto",...S()],H=()=>[Fe,"none","subgrid",P,N],Z=()=>["auto",{span:["full",Fe,P,N]},Fe,P,N],Q=()=>[Fe,"auto",P,N],U=()=>["auto","min","max","fr",P,N],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...S()],G=()=>[Ze,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],E=()=>[e,P,N],ee=()=>[...j(),Qr,Jr,{position:[P,N]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],be=()=>["auto","cover","contain",oi,ti,{size:[P,N]}],xe=()=>[hr,kt,Ke],te=()=>["","none","full",f,P,N],ne=()=>["",B,kt,Ke],we=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[B,hr,Qr,Jr],ce=()=>["","none",b,P,N],ue=()=>["none",B,P,N],ae=()=>["none",B,P,N],Te=()=>[B,P,N],ve=()=>[Ze,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ne],breakpoint:[Ne],color:[Jo],container:[Ne],"drop-shadow":[Ne],ease:["in","out","in-out"],font:[ei],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ne],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ne],shadow:[Ne],spacing:["px",B],text:[Ne],"text-shadow":[Ne],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ze,N,P,_]}],container:["container"],columns:[{columns:[B,N,P,c]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:F()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],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:[Fe,"auto",P,N]}],basis:[{basis:[Ze,"full","auto",c,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[B,Ze,"auto","initial","none",N]}],grow:[{grow:["",B,P,N]}],shrink:[{shrink:["",B,P,N]}],order:[{order:[Fe,"first","last","none",P,N]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],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":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[c,"screen",...G()]}],"min-w":[{"min-w":[c,"screen","none",...G()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[a]},...G()]}],h:[{h:["screen",...G()]}],"min-h":[{"min-h":["screen","none",...G()]}],"max-h":[{"max-h":["screen",...G()]}],"font-size":[{text:["base",r,kt,Ke]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,P,gr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hr,N]}],"font-family":[{font:[ni,N,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:[i,P,N]}],"line-clamp":[{"line-clamp":[B,"none",P,gr]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",P,N]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[B,"from-font","auto",P,Ke]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[B,"auto",P,N]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,N]}],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",P,N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:be()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fe,P,N],radial:["",P,N],conic:[Fe,P,N]},ii,ri]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:xe()}],"gradient-via-pos":[{via:xe()}],"gradient-to-pos":[{to:xe()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...we(),"hidden","none"]}],"divide-style":[{divide:[...we(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[B,P,N]}],"outline-w":[{outline:["",B,kt,Ke]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",u,Ct,Tt]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",p,Ct,Tt]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[B,Ke]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",m,Ct,Tt]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[B,P,N]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"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":[B]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[P,N]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"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":j()}],"mask-image-conic-pos":[{"mask-conic":[B]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:be()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,N]}],filter:[{filter:["","none",P,N]}],blur:[{blur:ce()}],brightness:[{brightness:[B,P,N]}],contrast:[{contrast:[B,P,N]}],"drop-shadow":[{"drop-shadow":["","none",h,Ct,Tt]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",B,P,N]}],"hue-rotate":[{"hue-rotate":[B,P,N]}],invert:[{invert:["",B,P,N]}],saturate:[{saturate:[B,P,N]}],sepia:[{sepia:["",B,P,N]}],"backdrop-filter":[{"backdrop-filter":["","none",P,N]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[B,P,N]}],"backdrop-contrast":[{"backdrop-contrast":[B,P,N]}],"backdrop-grayscale":[{"backdrop-grayscale":["",B,P,N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[B,P,N]}],"backdrop-invert":[{"backdrop-invert":["",B,P,N]}],"backdrop-opacity":[{"backdrop-opacity":[B,P,N]}],"backdrop-saturate":[{"backdrop-saturate":[B,P,N]}],"backdrop-sepia":[{"backdrop-sepia":["",B,P,N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,N]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[B,"initial",P,N]}],ease:[{ease:["linear","initial",w,P,N]}],delay:[{delay:[B,P,N]}],animate:[{animate:["none",v,P,N]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,P,N]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:Te()}],"skew-x":[{"skew-x":Te()}],"skew-y":[{"skew-y":Te()}],transform:[{transform:[P,N,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"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",P,N]}],"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":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",P,N]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[B,kt,Ke,gr]}],stroke:[{stroke:["none",...E()]}],"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"]}},ci=Uo(li);function ui(...e){return ci(wn(e))}function Pe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function qr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pn(...e){return t=>{let r=!1;const n=e.map(i=>{const s=qr(i,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let i=0;i<n.length;i++){const s=n[i];typeof s=="function"?s():qr(e[i],null)}}}}function qe(...e){return y.useCallback(Pn(...e),e)}function Dn(e,t=[]){let r=[];function n(s,a){const c=y.createContext(a),l=r.length;r=[...r,a];const f=p=>{var m;const{scope:h,children:b,...x}=p,_=((m=h==null?void 0:h[e])==null?void 0:m[l])||c,w=y.useMemo(()=>x,Object.values(x));return L.jsx(_.Provider,{value:w,children:b})};f.displayName=s+"Provider";function u(p,m){var h;const b=((h=m==null?void 0:m[e])==null?void 0:h[l])||c,x=y.useContext(b);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[f,u]}const i=()=>{const s=r.map(a=>y.createContext(a));return function(a){const c=(a==null?void 0:a[e])||s;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return i.scopeName=e,[n,fi(i,...t)]}function fi(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(i){const s=n.reduce((a,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...a,...f}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function di(e){const t=pi(e),r=y.forwardRef((n,i)=>{const{children:s,...a}=n,c=y.Children.toArray(s),l=c.find(hi);if(l){const f=l.props.children,u=c.map(p=>p===l?y.Children.count(f)>1?y.Children.only(null):y.isValidElement(f)?f.props.children:null:p);return L.jsx(t,{...a,ref:i,children:y.isValidElement(f)?y.cloneElement(f,void 0,u):null})}return L.jsx(t,{...a,ref:i,children:s})});return r.displayName=`${e}.Slot`,r}function pi(e){const t=y.forwardRef((r,n)=>{const{children:i,...s}=r;if(y.isValidElement(i)){const a=yi(i),c=gi(s,i.props);return i.type!==y.Fragment&&(c.ref=n?Pn(n,a):a),y.cloneElement(i,c)}return y.Children.count(i)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $n=Symbol("radix.slottable");function mi(e){const t=({children:r})=>L.jsx(L.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=$n,t}function hi(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$n}function gi(e,t){const r={...t};for(const n in t){const i=e[n],s=t[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...a)=>{const c=s(...a);return i(...a),c}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}function yi(e){var t,r;let n=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(n=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,i=n&&"isReactWarning"in n&&n.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var vi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=vi.reduce((e,t)=>{const r=di(`Primitive.${t}`),n=y.forwardRef((i,s)=>{const{asChild:a,...c}=i,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),L.jsx(l,{...c,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function bi(e,t){e&&vn.flushSync(()=>e.dispatchEvent(t))}function Mt(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function xi(e,t=globalThis==null?void 0:globalThis.document){const r=Mt(e);y.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var wi="DismissableLayer",Sr="dismissableLayer.update",ki="dismissableLayer.pointerDownOutside",_i="dismissableLayer.focusOutside",Zr,zn=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Fn=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,f=y.useContext(zn),[u,p]=y.useState(null),m=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=y.useState({}),b=qe(t,R=>p(R)),x=Array.from(f.layers),[_]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(_),v=u?x.indexOf(u):-1,T=f.layersWithOutsidePointerEventsDisabled.size>0,j=v>=w,F=Ri(R=>{const S=R.target,$=[...f.branches].some(H=>H.contains(S));!j||$||(i==null||i(R),a==null||a(R),R.defaultPrevented||c==null||c())},m),D=ji(R=>{const S=R.target;[...f.branches].some($=>$.contains(S))||(s==null||s(R),a==null||a(R),R.defaultPrevented||c==null||c())},m);return xi(R=>{v===f.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&c&&(R.preventDefault(),c()))},m),y.useEffect(()=>{if(u)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Zr=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),en(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Zr)}},[u,m,r,f]),y.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),en())},[u,f]),y.useEffect(()=>{const R=()=>h({});return document.addEventListener(Sr,R),()=>document.removeEventListener(Sr,R)},[]),L.jsx(We.div,{...l,ref:b,style:{pointerEvents:T?j?"auto":"none":void 0,...e.style},onFocusCapture:Pe(e.onFocusCapture,D.onFocusCapture),onBlurCapture:Pe(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:Pe(e.onPointerDownCapture,F.onPointerDownCapture)})});Fn.displayName=wi;var Si="DismissableLayerBranch",Ei=y.forwardRef((e,t)=>{const r=y.useContext(zn),n=y.useRef(null),i=qe(t,n);return y.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),L.jsx(We.div,{...e,ref:i})});Ei.displayName=Si;function Ri(e,t=globalThis==null?void 0:globalThis.document){const r=Mt(e),n=y.useRef(!1),i=y.useRef(()=>{});return y.useEffect(()=>{const s=c=>{if(c.target&&!n.current){let l=function(){In(ki,r,f,{discrete:!0})};const f={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function ji(e,t=globalThis==null?void 0:globalThis.document){const r=Mt(e),n=y.useRef(!1);return y.useEffect(()=>{const i=s=>{s.target&&!n.current&&In(_i,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function en(){const e=new CustomEvent(Sr);document.dispatchEvent(e)}function In(e,t,r,{discrete:n}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?bi(i,s):i.dispatchEvent(s)}var Le=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},Oi=y[" useId ".trim().toString()]||(()=>{}),Ti=0;function Ci(e){const[t,r]=y.useState(Oi());return Le(()=>{r(n=>n??String(Ti++))},[e]),t?`radix-${t}`:""}const Ni=["top","right","bottom","left"],Me=Math.min,he=Math.max,zt=Math.round,Nt=Math.floor,je=e=>({x:e,y:e}),Pi={left:"right",right:"left",bottom:"top",top:"bottom"};function Er(e,t,r){return he(e,Me(t,r))}function De(e,t){return typeof e=="function"?e(t):e}function $e(e){return e.split("-")[0]}function st(e){return e.split("-")[1]}function Nr(e){return e==="x"?"y":"x"}function Pr(e){return e==="y"?"height":"width"}function Re(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Dr(e){return Nr(Re(e))}function Di(e,t,r){r===void 0&&(r=!1);const n=st(e),i=Dr(e),s=Pr(i);let a=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Ft(a)),[a,Ft(a)]}function $i(e){const t=Ft(e);return[Rr(e),t,Rr(t)]}function Rr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const tn=["left","right"],rn=["right","left"],zi=["top","bottom"],Fi=["bottom","top"];function Ii(e,t,r){switch(e){case"top":case"bottom":return r?t?rn:tn:t?tn:rn;case"left":case"right":return t?zi:Fi;default:return[]}}function Li(e,t,r,n){const i=st(e);let s=Ii($e(e),r==="start",n);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(Rr)))),s}function Ft(e){const t=$e(e);return Pi[t]+e.slice(t.length)}function Mi(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ln(e){return typeof e!="number"?Mi(e):{top:e,right:e,bottom:e,left:e}}function It(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function nn(e,t,r){let{reference:n,floating:i}=e;const s=Re(t),a=Dr(t),c=Pr(a),l=$e(t),f=s==="y",u=n.x+n.width/2-i.width/2,p=n.y+n.height/2-i.height/2,m=n[c]/2-i[c]/2;let h;switch(l){case"top":h={x:u,y:n.y-i.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:p};break;case"left":h={x:n.x-i.width,y:p};break;default:h={x:n.x,y:n.y}}switch(st(t)){case"start":h[a]-=m*(r&&f?-1:1);break;case"end":h[a]+=m*(r&&f?-1:1);break}return h}async function Ai(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:s,rects:a,elements:c,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:m=!1,padding:h=0}=De(t,e),b=Ln(h),x=c[m?p==="floating"?"reference":"floating":p],_=It(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(x)))==null||r?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:l})),w=p==="floating"?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),T=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},j=It(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:v,strategy:l}):w);return{top:(_.top-j.top+b.top)/T.y,bottom:(j.bottom-_.bottom+b.bottom)/T.y,left:(_.left-j.left+b.left)/T.x,right:(j.right-_.right+b.right)/T.x}}const Wi=50,Bi=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:a}=r,c=a.detectOverflow?a:{...a,detectOverflow:Ai},l=await(a.isRTL==null?void 0:a.isRTL(t));let f=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:p}=nn(f,n,l),m=n,h=0;const b={};for(let x=0;x<s.length;x++){const _=s[x];if(!_)continue;const{name:w,fn:v}=_,{x:T,y:j,data:F,reset:D}=await v({x:u,y:p,initialPlacement:n,placement:m,strategy:i,middlewareData:b,rects:f,platform:c,elements:{reference:e,floating:t}});u=T??u,p=j??p,b[w]={...b[w],...F},D&&h<Wi&&(h++,typeof D=="object"&&(D.placement&&(m=D.placement),D.rects&&(f=D.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):D.rects),{x:u,y:p}=nn(f,m,l)),x=-1)}return{x:u,y:p,placement:m,strategy:i,middlewareData:b}},Ui=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:s,platform:a,elements:c,middlewareData:l}=t,{element:f,padding:u=0}=De(e,t)||{};if(f==null)return{};const p=Ln(u),m={x:r,y:n},h=Dr(i),b=Pr(h),x=await a.getDimensions(f),_=h==="y",w=_?"top":"left",v=_?"bottom":"right",T=_?"clientHeight":"clientWidth",j=s.reference[b]+s.reference[h]-m[h]-s.floating[b],F=m[h]-s.reference[h],D=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f));let R=D?D[T]:0;(!R||!await(a.isElement==null?void 0:a.isElement(D)))&&(R=c.floating[T]||s.floating[b]);const S=j/2-F/2,$=R/2-x[b]/2-1,H=Me(p[w],$),Z=Me(p[v],$),Q=H,U=R-x[b]-Z,A=R/2-x[b]/2+S,X=Er(Q,A,U),V=!l.arrow&&st(i)!=null&&A!==X&&s.reference[b]/2-(A<Q?H:Z)-x[b]/2<0,G=V?A<Q?A-Q:A-U:0;return{[h]:m[h]+G,data:{[h]:X,centerOffset:A-X-G,...V&&{alignmentOffset:G}},reset:V}}}),Yi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:s,rects:a,initialPlacement:c,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,..._}=De(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const w=$e(i),v=Re(c),T=$e(c)===c,j=await(l.isRTL==null?void 0:l.isRTL(f.floating)),F=m||(T||!x?[Ft(c)]:$i(c)),D=b!=="none";!m&&D&&F.push(...Li(c,x,b,j));const R=[c,...F],S=await l.detectOverflow(t,_),$=[];let H=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&$.push(S[w]),p){const A=Di(i,a,j);$.push(S[A[0]],S[A[1]])}if(H=[...H,{placement:i,overflows:$}],!$.every(A=>A<=0)){var Z,Q;const A=(((Z=s.flip)==null?void 0:Z.index)||0)+1,X=R[A];if(X&&(!(p==="alignment"&&v!==Re(X))||H.every(G=>Re(G.placement)===v?G.overflows[0]>0:!0)))return{data:{index:A,overflows:H},reset:{placement:X}};let V=(Q=H.filter(G=>G.overflows[0]<=0).sort((G,E)=>G.overflows[1]-E.overflows[1])[0])==null?void 0:Q.placement;if(!V)switch(h){case"bestFit":{var U;const G=(U=H.filter(E=>{if(D){const ee=Re(E.placement);return ee===v||ee==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(ee=>ee>0).reduce((ee,oe)=>ee+oe,0)]).sort((E,ee)=>E[1]-ee[1])[0])==null?void 0:U[0];G&&(V=G);break}case"initialPlacement":V=c;break}if(i!==V)return{reset:{placement:V}}}return{}}}};function on(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sn(e){return Ni.some(t=>e[t]>=0)}const Vi=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:i="referenceHidden",...s}=De(e,t);switch(i){case"referenceHidden":{const a=await n.detectOverflow(t,{...s,elementContext:"reference"}),c=on(a,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:sn(c)}}}case"escaped":{const a=await n.detectOverflow(t,{...s,altBoundary:!0}),c=on(a,r.floating);return{data:{escapedOffsets:c,escaped:sn(c)}}}default:return{}}}}},Mn=new Set(["left","top"]);async function Hi(e,t){const{placement:r,platform:n,elements:i}=e,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=$e(r),c=st(r),l=Re(r)==="y",f=Mn.has(a)?-1:1,u=s&&l?-1:1,p=De(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof b=="number"&&(h=c==="end"?b*-1:b),l?{x:h*u,y:m*f}:{x:m*f,y:h*u}}const Gi=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:s,placement:a,middlewareData:c}=t,l=await Hi(t,e);return a===((r=c.offset)==null?void 0:r.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:a}}}}},Xi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i,platform:s}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:l={fn:w=>{let{x:v,y:T}=w;return{x:v,y:T}}},...f}=De(e,t),u={x:r,y:n},p=await s.detectOverflow(t,f),m=Re($e(i)),h=Nr(m);let b=u[h],x=u[m];if(a){const w=h==="y"?"top":"left",v=h==="y"?"bottom":"right",T=b+p[w],j=b-p[v];b=Er(T,b,j)}if(c){const w=m==="y"?"top":"left",v=m==="y"?"bottom":"right",T=x+p[w],j=x-p[v];x=Er(T,x,j)}const _=l.fn({...t,[h]:b,[m]:x});return{..._,data:{x:_.x-r,y:_.y-n,enabled:{[h]:a,[m]:c}}}}}},Ki=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:l=!0,crossAxis:f=!0}=De(e,t),u={x:r,y:n},p=Re(i),m=Nr(p);let h=u[m],b=u[p];const x=De(c,t),_=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(l){const T=m==="y"?"height":"width",j=s.reference[m]-s.floating[T]+_.mainAxis,F=s.reference[m]+s.reference[T]-_.mainAxis;h<j?h=j:h>F&&(h=F)}if(f){var w,v;const T=m==="y"?"width":"height",j=Mn.has($e(i)),F=s.reference[p]-s.floating[T]+(j&&((w=a.offset)==null?void 0:w[p])||0)+(j?0:_.crossAxis),D=s.reference[p]+s.reference[T]+(j?0:((v=a.offset)==null?void 0:v[p])||0)-(j?_.crossAxis:0);b<F?b=F:b>D&&(b=D)}return{[m]:h,[p]:b}}}},Ji=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:s,platform:a,elements:c}=t,{apply:l=()=>{},...f}=De(e,t),u=await a.detectOverflow(t,f),p=$e(i),m=st(i),h=Re(i)==="y",{width:b,height:x}=s.floating;let _,w;p==="top"||p==="bottom"?(_=p,w=m===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(w=p,_=m==="end"?"top":"bottom");const v=x-u.top-u.bottom,T=b-u.left-u.right,j=Me(x-u[_],v),F=Me(b-u[w],T),D=!t.middlewareData.shift;let R=j,S=F;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(S=T),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(R=v),D&&!m){const H=he(u.left,0),Z=he(u.right,0),Q=he(u.top,0),U=he(u.bottom,0);h?S=b-2*(H!==0||Z!==0?H+Z:he(u.left,u.right)):R=x-2*(Q!==0||U!==0?Q+U:he(u.top,u.bottom))}await l({...t,availableWidth:S,availableHeight:R});const $=await a.getDimensions(c.floating);return b!==$.width||x!==$.height?{reset:{rects:!0}}:{}}}};function At(){return typeof window<"u"}function at(e){return An(e)?(e.nodeName||"").toLowerCase():"#document"}function ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oe(e){var t;return(t=(An(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function An(e){return At()?e instanceof Node||e instanceof ge(e).Node:!1}function _e(e){return At()?e instanceof Element||e instanceof ge(e).Element:!1}function ze(e){return At()?e instanceof HTMLElement||e instanceof ge(e).HTMLElement:!1}function an(e){return!At()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ge(e).ShadowRoot}function Rt(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=Se(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function Qi(e){return/^(table|td|th)$/.test(at(e))}function Wt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const qi=/transform|translate|scale|rotate|perspective|filter/,Zi=/paint|layout|strict|content/,Je=e=>!!e&&e!=="none";let yr;function $r(e){const t=_e(e)?Se(e):e;return Je(t.transform)||Je(t.translate)||Je(t.scale)||Je(t.rotate)||Je(t.perspective)||!zr()&&(Je(t.backdropFilter)||Je(t.filter))||qi.test(t.willChange||"")||Zi.test(t.contain||"")}function es(e){let t=Ae(e);for(;ze(t)&&!rt(t);){if($r(t))return t;if(Wt(t))return null;t=Ae(t)}return null}function zr(){return yr==null&&(yr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),yr}function rt(e){return/^(html|body|#document)$/.test(at(e))}function Se(e){return ge(e).getComputedStyle(e)}function Bt(e){return _e(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ae(e){if(at(e)==="html")return e;const t=e.assignedSlot||e.parentNode||an(e)&&e.host||Oe(e);return an(t)?t.host:t}function Wn(e){const t=Ae(e);return rt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ze(t)&&Rt(t)?t:Wn(t)}function St(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=Wn(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),a=ge(i);if(s){const c=jr(a);return t.concat(a,a.visualViewport||[],Rt(i)?i:[],c&&r?St(c):[])}else return t.concat(i,St(i,[],r))}function jr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Bn(e){const t=Se(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=ze(e),s=i?e.offsetWidth:r,a=i?e.offsetHeight:n,c=zt(r)!==s||zt(n)!==a;return c&&(r=s,n=a),{width:r,height:n,$:c}}function Fr(e){return _e(e)?e:e.contextElement}function tt(e){const t=Fr(e);if(!ze(t))return je(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:s}=Bn(t);let a=(s?zt(r.width):r.width)/n,c=(s?zt(r.height):r.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const ts=je(0);function Un(e){const t=ge(e);return!zr()||!t.visualViewport?ts:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rs(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ge(e)?!1:t}function Qe(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),s=Fr(e);let a=je(1);t&&(n?_e(n)&&(a=tt(n)):a=tt(e));const c=rs(s,r,n)?Un(s):je(0);let l=(i.left+c.x)/a.x,f=(i.top+c.y)/a.y,u=i.width/a.x,p=i.height/a.y;if(s){const m=ge(s),h=n&&_e(n)?ge(n):n;let b=m,x=jr(b);for(;x&&n&&h!==b;){const _=tt(x),w=x.getBoundingClientRect(),v=Se(x),T=w.left+(x.clientLeft+parseFloat(v.paddingLeft))*_.x,j=w.top+(x.clientTop+parseFloat(v.paddingTop))*_.y;l*=_.x,f*=_.y,u*=_.x,p*=_.y,l+=T,f+=j,b=ge(x),x=jr(b)}}return It({width:u,height:p,x:l,y:f})}function Ut(e,t){const r=Bt(e).scrollLeft;return t?t.left+r:Qe(Oe(e)).left+r}function Yn(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Ut(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function ns(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const s=i==="fixed",a=Oe(n),c=t?Wt(t.floating):!1;if(n===a||c&&s)return r;let l={scrollLeft:0,scrollTop:0},f=je(1);const u=je(0),p=ze(n);if((p||!p&&!s)&&((at(n)!=="body"||Rt(a))&&(l=Bt(n)),p)){const h=Qe(n);f=tt(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const m=a&&!p&&!s?Yn(a,l):je(0);return{width:r.width*f.x,height:r.height*f.y,x:r.x*f.x-l.scrollLeft*f.x+u.x+m.x,y:r.y*f.y-l.scrollTop*f.y+u.y+m.y}}function os(e){return Array.from(e.getClientRects())}function is(e){const t=Oe(e),r=Bt(e),n=e.ownerDocument.body,i=he(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=he(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Ut(e);const c=-r.scrollTop;return Se(n).direction==="rtl"&&(a+=he(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:a,y:c}}const ln=25;function ss(e,t){const r=ge(e),n=Oe(e),i=r.visualViewport;let s=n.clientWidth,a=n.clientHeight,c=0,l=0;if(i){s=i.width,a=i.height;const u=zr();(!u||u&&t==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}const f=Ut(n);if(f<=0){const u=n.ownerDocument,p=u.body,m=getComputedStyle(p),h=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(n.clientWidth-p.clientWidth-h);b<=ln&&(s-=b)}else f<=ln&&(s+=f);return{width:s,height:a,x:c,y:l}}function as(e,t){const r=Qe(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=ze(e)?tt(e):je(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,l=i*s.x,f=n*s.y;return{width:a,height:c,x:l,y:f}}function cn(e,t,r){let n;if(t==="viewport")n=ss(e,r);else if(t==="document")n=is(Oe(e));else if(_e(t))n=as(t,r);else{const i=Un(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return It(n)}function Vn(e,t){const r=Ae(e);return r===t||!_e(r)||rt(r)?!1:Se(r).position==="fixed"||Vn(r,t)}function ls(e,t){const r=t.get(e);if(r)return r;let n=St(e,[],!1).filter(c=>_e(c)&&at(c)!=="body"),i=null;const s=Se(e).position==="fixed";let a=s?Ae(e):e;for(;_e(a)&&!rt(a);){const c=Se(a),l=$r(a);!l&&c.position==="fixed"&&(i=null),(s?!l&&!i:!l&&c.position==="static"&&i&&(i.position==="absolute"||i.position==="fixed")||Rt(a)&&!l&&Vn(e,a))?n=n.filter(f=>f!==a):i=c,a=Ae(a)}return t.set(e,n),n}function cs(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const s=[...r==="clippingAncestors"?Wt(t)?[]:ls(t,this._c):[].concat(r),n],a=cn(t,s[0],i);let c=a.top,l=a.right,f=a.bottom,u=a.left;for(let p=1;p<s.length;p++){const m=cn(t,s[p],i);c=he(m.top,c),l=Me(m.right,l),f=Me(m.bottom,f),u=he(m.left,u)}return{width:l-u,height:f-c,x:u,y:c}}function us(e){const{width:t,height:r}=Bn(e);return{width:t,height:r}}function fs(e,t,r){const n=ze(t),i=Oe(t),s=r==="fixed",a=Qe(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=je(0);function f(){l.x=Ut(i)}if(n||!n&&!s)if((at(t)!=="body"||Rt(i))&&(c=Bt(t)),n){const h=Qe(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&f();s&&!n&&i&&f();const u=i&&!n&&!s?Yn(i,c):je(0),p=a.left+c.scrollLeft-l.x-u.x,m=a.top+c.scrollTop-l.y-u.y;return{x:p,y:m,width:a.width,height:a.height}}function vr(e){return Se(e).position==="static"}function un(e,t){if(!ze(e)||Se(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Oe(e)===r&&(r=r.ownerDocument.body),r}function Hn(e,t){const r=ge(e);if(Wt(e))return r;if(!ze(e)){let i=Ae(e);for(;i&&!rt(i);){if(_e(i)&&!vr(i))return i;i=Ae(i)}return r}let n=un(e,t);for(;n&&Qi(n)&&vr(n);)n=un(n,t);return n&&rt(n)&&vr(n)&&!$r(n)?r:n||es(e)||r}const ds=async function(e){const t=this.getOffsetParent||Hn,r=this.getDimensions,n=await r(e.floating);return{reference:fs(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ps(e){return Se(e).direction==="rtl"}const ms={convertOffsetParentRelativeRectToViewportRelativeRect:ns,getDocumentElement:Oe,getClippingRect:cs,getOffsetParent:Hn,getElementRects:ds,getClientRects:os,getDimensions:us,getScale:tt,isElement:_e,isRTL:ps};function Gn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function hs(e,t){let r=null,n;const i=Oe(e);function s(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function a(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const f=e.getBoundingClientRect(),{left:u,top:p,width:m,height:h}=f;if(c||t(),!m||!h)return;const b=Nt(p),x=Nt(i.clientWidth-(u+m)),_=Nt(i.clientHeight-(p+h)),w=Nt(u),v={rootMargin:-b+"px "+-x+"px "+-_+"px "+-w+"px",threshold:he(0,Me(1,l))||1};let T=!0;function j(F){const D=F[0].intersectionRatio;if(D!==l){if(!T)return a();D?a(!1,D):n=setTimeout(()=>{a(!1,1e-7)},1e3)}D===1&&!Gn(f,e.getBoundingClientRect())&&a(),T=!1}try{r=new IntersectionObserver(j,{...v,root:i.ownerDocument})}catch{r=new IntersectionObserver(j,v)}r.observe(e)}return a(!0),s}function gs(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,f=Fr(e),u=i||s?[...f?St(f):[],...t?St(t):[]]:[];u.forEach(w=>{i&&w.addEventListener("scroll",r,{passive:!0}),s&&w.addEventListener("resize",r)});const p=f&&c?hs(f,r):null;let m=-1,h=null;a&&(h=new ResizeObserver(w=>{let[v]=w;v&&v.target===f&&h&&t&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var T;(T=h)==null||T.observe(t)})),r()}),f&&!l&&h.observe(f),t&&h.observe(t));let b,x=l?Qe(e):null;l&&_();function _(){const w=Qe(e);x&&!Gn(x,w)&&r(),x=w,b=requestAnimationFrame(_)}return r(),()=>{var w;u.forEach(v=>{i&&v.removeEventListener("scroll",r),s&&v.removeEventListener("resize",r)}),p==null||p(),(w=h)==null||w.disconnect(),h=null,l&&cancelAnimationFrame(b)}}const ys=Gi,vs=Xi,bs=Yi,xs=Ji,ws=Vi,fn=Ui,ks=Ki,_s=(e,t,r)=>{const n=new Map,i={platform:ms,...r},s={...i.platform,_c:n};return Bi(e,t,{...i,platform:s})};var Ss=typeof document<"u",Es=function(){},$t=Ss?se.useLayoutEffect:Es;function Lt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Lt(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const s=i[n];if(!(s==="_owner"&&e.$$typeof)&&!Lt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Xn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dn(e,t){const r=Xn(e);return Math.round(t*r)/r}function br(e){const t=y.useRef(e);return $t(()=>{t.current=e}),t}function Rs(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:l,open:f}=e,[u,p]=y.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=y.useState(n);Lt(m,n)||h(n);const[b,x]=y.useState(null),[_,w]=y.useState(null),v=y.useCallback(E=>{E!==D.current&&(D.current=E,x(E))},[]),T=y.useCallback(E=>{E!==R.current&&(R.current=E,w(E))},[]),j=s||b,F=a||_,D=y.useRef(null),R=y.useRef(null),S=y.useRef(u),$=l!=null,H=br(l),Z=br(i),Q=br(f),U=y.useCallback(()=>{if(!D.current||!R.current)return;const E={placement:t,strategy:r,middleware:m};Z.current&&(E.platform=Z.current),_s(D.current,R.current,E).then(ee=>{const oe={...ee,isPositioned:Q.current!==!1};A.current&&!Lt(S.current,oe)&&(S.current=oe,vn.flushSync(()=>{p(oe)}))})},[m,t,r,Z,Q]);$t(()=>{f===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,p(E=>({...E,isPositioned:!1})))},[f]);const A=y.useRef(!1);$t(()=>(A.current=!0,()=>{A.current=!1}),[]),$t(()=>{if(j&&(D.current=j),F&&(R.current=F),j&&F){if(H.current)return H.current(j,F,U);U()}},[j,F,U,H,$]);const X=y.useMemo(()=>({reference:D,floating:R,setReference:v,setFloating:T}),[v,T]),V=y.useMemo(()=>({reference:j,floating:F}),[j,F]),G=y.useMemo(()=>{const E={position:r,left:0,top:0};if(!V.floating)return E;const ee=dn(V.floating,u.x),oe=dn(V.floating,u.y);return c?{...E,transform:"translate("+ee+"px, "+oe+"px)",...Xn(V.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ee,top:oe}},[r,c,V.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:U,refs:X,elements:V,floatingStyles:G}),[u,U,X,V,G])}const js=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?fn({element:n.current,padding:i}).fn(r):{}:n?fn({element:n,padding:i}).fn(r):{}}}},Os=(e,t)=>{const r=ys(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ts=(e,t)=>{const r=vs(e);return{name:r.name,fn:r.fn,options:[e,t]}},Cs=(e,t)=>({fn:ks(e).fn,options:[e,t]}),Ns=(e,t)=>{const r=bs(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ps=(e,t)=>{const r=xs(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ds=(e,t)=>{const r=ws(e);return{name:r.name,fn:r.fn,options:[e,t]}},$s=(e,t)=>{const r=js(e);return{name:r.name,fn:r.fn,options:[e,t]}};var zs="Arrow",Kn=y.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...s}=e;return L.jsx(We.svg,{...s,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:L.jsx("polygon",{points:"0,0 30,0 15,10"})})});Kn.displayName=zs;var Fs=Kn;function Is(e){const[t,r]=y.useState(void 0);return Le(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let a,c;if("borderBoxSize"in s){const l=s.borderBoxSize,f=Array.isArray(l)?l[0]:l;a=f.inlineSize,c=f.blockSize}else a=e.offsetWidth,c=e.offsetHeight;r({width:a,height:c})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Ir="Popper",[Jn,Qn]=Dn(Ir),[Ls,qn]=Jn(Ir),Zn=e=>{const{__scopePopper:t,children:r}=e,[n,i]=y.useState(null);return L.jsx(Ls,{scope:t,anchor:n,onAnchorChange:i,children:r})};Zn.displayName=Ir;var eo="PopperAnchor",to=y.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,s=qn(eo,r),a=y.useRef(null),c=qe(t,a),l=y.useRef(null);return y.useEffect(()=>{const f=l.current;l.current=(n==null?void 0:n.current)||a.current,f!==l.current&&s.onAnchorChange(l.current)}),n?null:L.jsx(We.div,{...i,ref:c})});to.displayName=eo;var Lr="PopperContent",[Ms,As]=Jn(Lr),ro=y.forwardRef((e,t)=>{var r,n,i,s,a,c;const{__scopePopper:l,side:f="bottom",sideOffset:u=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:b=!0,collisionBoundary:x=[],collisionPadding:_=0,sticky:w="partial",hideWhenDetached:v=!1,updatePositionStrategy:T="optimized",onPlaced:j,...F}=e,D=qn(Lr,l),[R,S]=y.useState(null),$=qe(t,Ce=>S(Ce)),[H,Z]=y.useState(null),Q=Is(H),U=(Q==null?void 0:Q.width)??0,A=(Q==null?void 0:Q.height)??0,X=f+(p!=="center"?"-"+p:""),V=typeof _=="number"?_:{top:0,right:0,bottom:0,left:0,..._},G=Array.isArray(x)?x:[x],E=G.length>0,ee={padding:V,boundary:G.filter(Bs),altBoundary:E},{refs:oe,floatingStyles:be,placement:xe,isPositioned:te,middlewareData:ne}=Rs({strategy:"fixed",placement:X,whileElementsMounted:(...Ce)=>gs(...Ce,{animationFrame:T==="always"}),elements:{reference:D.anchor},middleware:[Os({mainAxis:u+A,alignmentAxis:m}),b&&Ts({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?Cs():void 0,...ee}),b&&Ns({...ee}),Ps({...ee,apply:({elements:Ce,rects:lt,availableWidth:ke,availableHeight:de})=>{const{width:Be,height:Ue}=lt.reference,fe=Ce.floating.style;fe.setProperty("--radix-popper-available-width",`${ke}px`),fe.setProperty("--radix-popper-available-height",`${de}px`),fe.setProperty("--radix-popper-anchor-width",`${Be}px`),fe.setProperty("--radix-popper-anchor-height",`${Ue}px`)}}),H&&$s({element:H,padding:h}),Us({arrowWidth:U,arrowHeight:A}),v&&Ds({strategy:"referenceHidden",...ee})]}),[we,ye]=io(xe),J=Mt(j);Le(()=>{te&&(J==null||J())},[te,J]);const ce=(r=ne.arrow)==null?void 0:r.x,ue=(n=ne.arrow)==null?void 0:n.y,ae=((i=ne.arrow)==null?void 0:i.centerOffset)!==0,[Te,ve]=y.useState();return Le(()=>{R&&ve(window.getComputedStyle(R).zIndex)},[R]),L.jsx("div",{ref:oe.setFloating,"data-radix-popper-content-wrapper":"",style:{...be,transform:te?be.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Te,"--radix-popper-transform-origin":[(s=ne.transformOrigin)==null?void 0:s.x,(a=ne.transformOrigin)==null?void 0:a.y].join(" "),...((c=ne.hide)==null?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:L.jsx(Ms,{scope:l,placedSide:we,onArrowChange:Z,arrowX:ce,arrowY:ue,shouldHideArrow:ae,children:L.jsx(We.div,{"data-side":we,"data-align":ye,...F,ref:$,style:{...F.style,animation:te?void 0:"none"}})})})});ro.displayName=Lr;var no="PopperArrow",Ws={top:"bottom",right:"left",bottom:"top",left:"right"},oo=y.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,i=As(no,r),s=Ws[i.placedSide];return L.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:L.jsx(Fs,{...n,ref:t,style:{...n.style,display:"block"}})})});oo.displayName=no;function Bs(e){return e!==null}var Us=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i;const{placement:s,rects:a,middlewareData:c}=t,l=((r=c.arrow)==null?void 0:r.centerOffset)!==0,f=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[p,m]=io(s),h={start:"0%",center:"50%",end:"100%"}[m],b=(((n=c.arrow)==null?void 0:n.x)??0)+f/2,x=(((i=c.arrow)==null?void 0:i.y)??0)+u/2;let _="",w="";return p==="bottom"?(_=l?h:`${b}px`,w=`${-u}px`):p==="top"?(_=l?h:`${b}px`,w=`${a.floating.height+u}px`):p==="right"?(_=`${-u}px`,w=l?h:`${x}px`):p==="left"&&(_=`${a.floating.width+u}px`,w=l?h:`${x}px`),{data:{x:_,y:w}}}});function io(e){const[t,r="center"]=e.split("-");return[t,r]}var Ys=Zn,Vs=to,Hs=ro,Gs=oo,Xs="Portal",so=y.forwardRef((e,t)=>{var r;const{container:n,...i}=e,[s,a]=y.useState(!1);Le(()=>a(!0),[]);const c=n||s&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return c?gn.createPortal(L.jsx(We.div,{...i,ref:t}),c):null});so.displayName=Xs;function Ks(e,t){return y.useReducer((r,n)=>t[r][n]??r,e)}var Mr=e=>{const{present:t,children:r}=e,n=Js(t),i=typeof r=="function"?r({present:n.isPresent}):y.Children.only(r),s=qe(n.ref,Qs(i));return typeof r=="function"||n.isPresent?y.cloneElement(i,{ref:s}):null};Mr.displayName="Presence";function Js(e){const[t,r]=y.useState(),n=y.useRef(null),i=y.useRef(e),s=y.useRef("none"),a=e?"mounted":"unmounted",[c,l]=Ks(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const f=Pt(n.current);s.current=c==="mounted"?f:"none"},[c]),Le(()=>{const f=n.current,u=i.current;if(u!==e){const p=s.current,m=Pt(f);e?l("MOUNT"):m==="none"||(f==null?void 0:f.display)==="none"?l("UNMOUNT"):l(u&&p!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Le(()=>{if(t){let f;const u=t.ownerDocument.defaultView??window,p=h=>{const b=Pt(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&b&&(l("ANIMATION_END"),!i.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",f=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=h=>{h.target===t&&(s.current=Pt(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(f),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:y.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function Pt(e){return(e==null?void 0:e.animationName)||"none"}function Qs(e){var t,r;let n=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(n=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,i=n&&"isReactWarning"in n&&n.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var qs=y[" useInsertionEffect ".trim().toString()]||Le;function Zs({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,s,a]=ea({defaultProp:t,onChange:r}),c=e!==void 0,l=c?e:i;{const u=y.useRef(e!==void 0);y.useEffect(()=>{const p=u.current;p!==c&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${c?"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.`),u.current=c},[c,n])}const f=y.useCallback(u=>{var p;if(c){const m=ta(u)?u(e):u;m!==e&&((p=a.current)==null||p.call(a,m))}else s(u)},[c,e,s,a]);return[l,f]}function ea({defaultProp:e,onChange:t}){const[r,n]=y.useState(e),i=y.useRef(r),s=y.useRef(t);return qs(()=>{s.current=t},[t]),y.useEffect(()=>{var a;i.current!==r&&((a=s.current)==null||a.call(s,r),i.current=r)},[r,i]),[r,n,s]}function ta(e){return typeof e=="function"}var ra=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"}),na="VisuallyHidden",ao=y.forwardRef((e,t)=>L.jsx(We.span,{...e,ref:t,style:{...ra,...e.style}}));ao.displayName=na;var oa=ao,[Yt]=Dn("Tooltip",[Qn]),Vt=Qn(),lo="TooltipProvider",ia=700,Or="tooltip.open",[sa,Ar]=Yt(lo),co=e=>{const{__scopeTooltip:t,delayDuration:r=ia,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:s}=e,a=y.useRef(!0),c=y.useRef(!1),l=y.useRef(0);return y.useEffect(()=>{const f=l.current;return()=>window.clearTimeout(f)},[]),L.jsx(sa,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:y.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:y.useCallback(f=>{c.current=f},[]),disableHoverableContent:i,children:s})};co.displayName=lo;var Et="Tooltip",[aa,jt]=Yt(Et),uo=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:i,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,l=Ar(Et,e.__scopeTooltip),f=Vt(t),[u,p]=y.useState(null),m=Ci(),h=y.useRef(0),b=a??l.disableHoverableContent,x=c??l.delayDuration,_=y.useRef(!1),[w,v]=Zs({prop:n,defaultProp:i??!1,onChange:R=>{R?(l.onOpen(),document.dispatchEvent(new CustomEvent(Or))):l.onClose(),s==null||s(R)},caller:Et}),T=y.useMemo(()=>w?_.current?"delayed-open":"instant-open":"closed",[w]),j=y.useCallback(()=>{window.clearTimeout(h.current),h.current=0,_.current=!1,v(!0)},[v]),F=y.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v(!1)},[v]),D=y.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{_.current=!0,v(!0),h.current=0},x)},[x,v]);return y.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),L.jsx(Ys,{...f,children:L.jsx(aa,{scope:t,contentId:m,open:w,stateAttribute:T,trigger:u,onTriggerChange:p,onTriggerEnter:y.useCallback(()=>{l.isOpenDelayedRef.current?D():j()},[l.isOpenDelayedRef,D,j]),onTriggerLeave:y.useCallback(()=>{b?F():(window.clearTimeout(h.current),h.current=0)},[F,b]),onOpen:j,onClose:F,disableHoverableContent:b,children:r})})};uo.displayName=Et;var Tr="TooltipTrigger",fo=y.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=jt(Tr,r),s=Ar(Tr,r),a=Vt(r),c=y.useRef(null),l=qe(t,c,i.onTriggerChange),f=y.useRef(!1),u=y.useRef(!1),p=y.useCallback(()=>f.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),L.jsx(Vs,{asChild:!0,...a,children:L.jsx(We.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:l,onPointerMove:Pe(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:Pe(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:Pe(e.onPointerDown,()=>{i.open&&i.onClose(),f.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Pe(e.onFocus,()=>{f.current||i.onOpen()}),onBlur:Pe(e.onBlur,i.onClose),onClick:Pe(e.onClick,i.onClose)})})});fo.displayName=Tr;var Wr="TooltipPortal",[la,ca]=Yt(Wr,{forceMount:void 0}),po=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,s=jt(Wr,t);return L.jsx(la,{scope:t,forceMount:r,children:L.jsx(Mr,{present:r||s.open,children:L.jsx(so,{asChild:!0,container:i,children:n})})})};po.displayName=Wr;var nt="TooltipContent",mo=y.forwardRef((e,t)=>{const r=ca(nt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...s}=e,a=jt(nt,e.__scopeTooltip);return L.jsx(Mr,{present:n||a.open,children:a.disableHoverableContent?L.jsx(ho,{side:i,...s,ref:t}):L.jsx(ua,{side:i,...s,ref:t})})}),ua=y.forwardRef((e,t)=>{const r=jt(nt,e.__scopeTooltip),n=Ar(nt,e.__scopeTooltip),i=y.useRef(null),s=qe(t,i),[a,c]=y.useState(null),{trigger:l,onClose:f}=r,u=i.current,{onPointerInTransitChange:p}=n,m=y.useCallback(()=>{c(null),p(!1)},[p]),h=y.useCallback((b,x)=>{const _=b.currentTarget,w={x:b.clientX,y:b.clientY},v=ma(w,_.getBoundingClientRect()),T=ha(w,v),j=ga(x.getBoundingClientRect()),F=va([...T,...j]);c(F),p(!0)},[p]);return y.useEffect(()=>()=>m(),[m]),y.useEffect(()=>{if(l&&u){const b=_=>h(_,u),x=_=>h(_,l);return l.addEventListener("pointerleave",b),u.addEventListener("pointerleave",x),()=>{l.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",x)}}},[l,u,h,m]),y.useEffect(()=>{if(a){const b=x=>{const _=x.target,w={x:x.clientX,y:x.clientY},v=(l==null?void 0:l.contains(_))||(u==null?void 0:u.contains(_)),T=!ya(w,a);v?m():T&&(m(),f())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,u,a,f,m]),L.jsx(ho,{...e,ref:s})}),[fa,da]=Yt(Et,{isInside:!1}),pa=mi("TooltipContent"),ho=y.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,l=jt(nt,r),f=Vt(r),{onClose:u}=l;return y.useEffect(()=>(document.addEventListener(Or,u),()=>document.removeEventListener(Or,u)),[u]),y.useEffect(()=>{if(l.trigger){const p=m=>{const h=m.target;h!=null&&h.contains(l.trigger)&&u()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,u]),L.jsx(Fn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:u,children:L.jsxs(Hs,{"data-state":l.stateAttribute,...f,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[L.jsx(pa,{children:n}),L.jsx(fa,{scope:r,isInside:!0,children:L.jsx(oa,{id:l.contentId,role:"tooltip",children:i||n})})]})})});mo.displayName=nt;var go="TooltipArrow",yo=y.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=Vt(r);return da(go,r).isInside?null:L.jsx(Gs,{...i,...n,ref:t})});yo.displayName=go;function ma(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,i,s)){case s:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function ha(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function ga(e){const{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}function ya(e,t){const{x:r,y:n}=e;let i=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],l=t[a],f=c.x,u=c.y,p=l.x,m=l.y;u>n!=m>n&&r<(p-f)*(n-u)/(m-u)+f&&(i=!i)}return i}function va(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),ba(t)}function ba(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const i=e[n];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const i=e[n];for(;r.length>=2;){const s=r[r.length-1],a=r[r.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))r.pop();else break}r.push(i)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var xa=co,wa=uo,ka=fo,_a=po,vo=mo,Sa=yo;const bo=xa,xo=wa,wo=ka,Br=y.forwardRef(({className:e,sideOffset:t=6,style:r,...n},i)=>{const s={backgroundColor:"#000000",color:"#ffffff",zIndex:99999,...r};return L.jsx(_a,{children:L.jsxs(vo,{ref:i,sideOffset:t,className:`overflow-hidden rounded-lg border border-slate-950 px-3 py-1 text-xs text-white ${e??""}`,style:s,...n,children:[n.children,L.jsx(Sa,{style:{fill:"#000000"}})]})})});Br.displayName=vo.displayName;const Ea=To("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-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-blue-500 text-white",save:"text-white",delete:"text-white",update:"text-white",cancel:"text-[#414651] border border-[#D5D7DA]",outline:"text-[#003B71]"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-8",icon:"h-10 w-10",xs:"h-5 px-1 text-xs rounded"}},defaultVariants:{variant:"default",size:"default"}}),Ra=se.forwardRef(({className:e,variant:t,size:r,loading:n=!1,disabled:i,children:s,leftIcon:a,datatestid:c,rightIcon:l,style:f,iconButton:u=!1,tooltipLabel:p,saveColor:m="#003B71",deleteColor:h="#FF6070",updateColor:b="#003B71",cancelColor:x="#ffffff",outlineColor:_="#003B71",...w},v)=>{const T={...t&&{save:{backgroundColor:m},delete:{backgroundColor:h},update:{backgroundColor:b},cancel:{backgroundColor:x},outline:{backgroundColor:_}}[t],...f},j=L.jsx("button",{ref:v,"data-testid":c,className:ui(Ea({variant:t,size:r}),e),style:T,disabled:i||n,...w,children:L.jsxs(L.Fragment,{children:[n&&L.jsx("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),!n&&a&&a,s,!n&&l&&l]})});return u?L.jsx(bo,{children:L.jsxs(xo,{children:[L.jsx(wo,{asChild:!0,children:j}),p&&L.jsx(Br,{children:p})]})}):j});Ra.displayName="Button";const ja=({text:e="",maxLength:t=20,className:r=""})=>{const n=String(e??""),i=n.length>t,s=i?`${n.slice(0,t)}..`:n;return i?L.jsx(bo,{children:L.jsxs(xo,{children:[L.jsx(wo,{asChild:!0,children:L.jsx("div",{className:`flex items-center cursor-pointer ${r}`,children:s})}),n&&L.jsx(Br,{children:n})]})}):L.jsx("div",{className:`flex items-center ${r}`,children:s})};var xr={exports:{}},_t={};/**
105
- * @license React
106
- * react-jsx-runtime.production.min.js
107
- *
108
- * Copyright (c) Facebook, Inc. and its affiliates.
109
- *
110
- * This source code is licensed under the MIT license found in the
111
- * LICENSE file in the root directory of this source tree.
112
- */var pn;function Oa(){if(pn)return _t;pn=1;var e=se,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(c,l,f){var u,p={},m=null,h=null;f!==void 0&&(m=""+f),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(h=l.ref);for(u in l)n.call(l,u)&&!s.hasOwnProperty(u)&&(p[u]=l[u]);if(c&&c.defaultProps)for(u in l=c.defaultProps,l)p[u]===void 0&&(p[u]=l[u]);return{$$typeof:t,type:c,key:m,ref:h,props:p,_owner:i.current}}return _t.Fragment=r,_t.jsx=a,_t.jsxs=a,_t}var Dt={};/**
113
- * @license React
114
- * react-jsx-runtime.development.js
115
- *
116
- * Copyright (c) Facebook, Inc. and its affiliates.
117
- *
118
- * This source code is licensed under the MIT license found in the
119
- * LICENSE file in the root directory of this source tree.
120
- */var mn;function Ta(){return mn||(mn=1,process.env.NODE_ENV!=="production"&&(function(){var e=se,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),b=Symbol.iterator,x="@@iterator";function _(o){if(o===null||typeof o!="object")return null;var d=b&&o[b]||o[x];return typeof d=="function"?d:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(o){{for(var d=arguments.length,g=new Array(d>1?d-1:0),k=1;k<d;k++)g[k-1]=arguments[k];T("error",o,g)}}function T(o,d,g){{var k=w.ReactDebugCurrentFrame,z=k.getStackAddendum();z!==""&&(d+="%s",g=g.concat([z]));var I=g.map(function(C){return String(C)});I.unshift("Warning: "+d),Function.prototype.apply.call(console[o],console,I)}}var j=!1,F=!1,D=!1,R=!1,S=!1,$;$=Symbol.for("react.module.reference");function H(o){return!!(typeof o=="string"||typeof o=="function"||o===n||o===s||S||o===i||o===f||o===u||R||o===h||j||F||D||typeof o=="object"&&o!==null&&(o.$$typeof===m||o.$$typeof===p||o.$$typeof===a||o.$$typeof===c||o.$$typeof===l||o.$$typeof===$||o.getModuleId!==void 0))}function Z(o,d,g){var k=o.displayName;if(k)return k;var z=d.displayName||d.name||"";return z!==""?g+"("+z+")":g}function Q(o){return o.displayName||"Context"}function U(o){if(o==null)return null;if(typeof o.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case i:return"StrictMode";case f:return"Suspense";case u:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case c:var d=o;return Q(d)+".Consumer";case a:var g=o;return Q(g._context)+".Provider";case l:return Z(o,o.render,"ForwardRef");case p:var k=o.displayName||null;return k!==null?k:U(o.type)||"Memo";case m:{var z=o,I=z._payload,C=z._init;try{return U(C(I))}catch{return null}}}return null}var A=Object.assign,X=0,V,G,E,ee,oe,be,xe;function te(){}te.__reactDisabledLog=!0;function ne(){{if(X===0){V=console.log,G=console.info,E=console.warn,ee=console.error,oe=console.group,be=console.groupCollapsed,xe=console.groupEnd;var o={configurable:!0,enumerable:!0,value:te,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}X++}}function we(){{if(X--,X===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},o,{value:V}),info:A({},o,{value:G}),warn:A({},o,{value:E}),error:A({},o,{value:ee}),group:A({},o,{value:oe}),groupCollapsed:A({},o,{value:be}),groupEnd:A({},o,{value:xe})})}X<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=w.ReactCurrentDispatcher,J;function ce(o,d,g){{if(J===void 0)try{throw Error()}catch(z){var k=z.stack.trim().match(/\n( *(at )?)/);J=k&&k[1]||""}return`
121
- `+J+o}}var ue=!1,ae;{var Te=typeof WeakMap=="function"?WeakMap:Map;ae=new Te}function ve(o,d){if(!o||ue)return"";{var g=ae.get(o);if(g!==void 0)return g}var k;ue=!0;var z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=ye.current,ye.current=null,ne();try{if(d){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(q){k=q}Reflect.construct(o,[],C)}else{try{C.call()}catch(q){k=q}o.call(C.prototype)}}else{try{throw Error()}catch(q){k=q}o()}}catch(q){if(q&&k&&typeof q.stack=="string"){for(var O=q.stack.split(`
122
- `),K=k.stack.split(`
123
- `),M=O.length-1,W=K.length-1;M>=1&&W>=0&&O[M]!==K[W];)W--;for(;M>=1&&W>=0;M--,W--)if(O[M]!==K[W]){if(M!==1||W!==1)do if(M--,W--,W<0||O[M]!==K[W]){var re=`
124
- `+O[M].replace(" at new "," at ");return o.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",o.displayName)),typeof o=="function"&&ae.set(o,re),re}while(M>=1&&W>=0);break}}}finally{ue=!1,ye.current=I,we(),Error.prepareStackTrace=z}var me=o?o.displayName||o.name:"",le=me?ce(me):"";return typeof o=="function"&&ae.set(o,le),le}function Ce(o,d,g){return ve(o,!1)}function lt(o){var d=o.prototype;return!!(d&&d.isReactComponent)}function ke(o,d,g){if(o==null)return"";if(typeof o=="function")return ve(o,lt(o));if(typeof o=="string")return ce(o);switch(o){case f:return ce("Suspense");case u:return ce("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case l:return Ce(o.render);case p:return ke(o.type,d,g);case m:{var k=o,z=k._payload,I=k._init;try{return ke(I(z),d,g)}catch{}}}return""}var de=Object.prototype.hasOwnProperty,Be={},Ue=w.ReactDebugCurrentFrame;function fe(o){if(o){var d=o._owner,g=ke(o.type,o._source,d?d.type:null);Ue.setExtraStackFrame(g)}else Ue.setExtraStackFrame(null)}function Ht(o,d,g,k,z){{var I=Function.call.bind(de);for(var C in o)if(I(o,C)){var O=void 0;try{if(typeof o[C]!="function"){var K=Error((k||"React class")+": "+g+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw K.name="Invariant Violation",K}O=o[C](d,C,k,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(M){O=M}O&&!(O instanceof Error)&&(fe(z),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",k||"React class",g,C,typeof O),fe(null)),O instanceof Error&&!(O.message in Be)&&(Be[O.message]=!0,fe(z),v("Failed %s type: %s",g,O.message),fe(null))}}}var Gt=Array.isArray;function Ye(o){return Gt(o)}function Xt(o){{var d=typeof Symbol=="function"&&Symbol.toStringTag,g=d&&o[Symbol.toStringTag]||o.constructor.name||"Object";return g}}function Kt(o){try{return ct(o),!1}catch{return!0}}function ct(o){return""+o}function ut(o){if(Kt(o))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xt(o)),ct(o)}var ft=w.ReactCurrentOwner,Jt={key:!0,ref:!0,__self:!0,__source:!0},dt,pt;function Qt(o){if(de.call(o,"ref")){var d=Object.getOwnPropertyDescriptor(o,"ref").get;if(d&&d.isReactWarning)return!1}return o.ref!==void 0}function qt(o){if(de.call(o,"key")){var d=Object.getOwnPropertyDescriptor(o,"key").get;if(d&&d.isReactWarning)return!1}return o.key!==void 0}function Zt(o,d){typeof o.ref=="string"&&ft.current}function er(o,d){{var g=function(){dt||(dt=!0,v("%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://reactjs.org/link/special-props)",d))};g.isReactWarning=!0,Object.defineProperty(o,"key",{get:g,configurable:!0})}}function tr(o,d){{var g=function(){pt||(pt=!0,v("%s: `ref` 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://reactjs.org/link/special-props)",d))};g.isReactWarning=!0,Object.defineProperty(o,"ref",{get:g,configurable:!0})}}var rr=function(o,d,g,k,z,I,C){var O={$$typeof:t,type:o,key:d,ref:g,props:C,_owner:I};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function nr(o,d,g,k,z){{var I,C={},O=null,K=null;g!==void 0&&(ut(g),O=""+g),qt(d)&&(ut(d.key),O=""+d.key),Qt(d)&&(K=d.ref,Zt(d));for(I in d)de.call(d,I)&&!Jt.hasOwnProperty(I)&&(C[I]=d[I]);if(o&&o.defaultProps){var M=o.defaultProps;for(I in M)C[I]===void 0&&(C[I]=M[I])}if(O||K){var W=typeof o=="function"?o.displayName||o.name||"Unknown":o;O&&er(C,W),K&&tr(C,W)}return rr(o,O,K,z,k,ft.current,C)}}var Ve=w.ReactCurrentOwner,mt=w.ReactDebugCurrentFrame;function pe(o){if(o){var d=o._owner,g=ke(o.type,o._source,d?d.type:null);mt.setExtraStackFrame(g)}else mt.setExtraStackFrame(null)}var He;He=!1;function Ge(o){return typeof o=="object"&&o!==null&&o.$$typeof===t}function ht(){{if(Ve.current){var o=U(Ve.current.type);if(o)return`
125
-
126
- Check the render method of \``+o+"`."}return""}}function or(o){return""}var gt={};function ir(o){{var d=ht();if(!d){var g=typeof o=="string"?o:o.displayName||o.name;g&&(d=`
127
-
128
- Check the top-level render call using <`+g+">.")}return d}}function yt(o,d){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var g=ir(d);if(gt[g])return;gt[g]=!0;var k="";o&&o._owner&&o._owner!==Ve.current&&(k=" It was passed a child from "+U(o._owner.type)+"."),pe(o),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',g,k),pe(null)}}function vt(o,d){{if(typeof o!="object")return;if(Ye(o))for(var g=0;g<o.length;g++){var k=o[g];Ge(k)&&yt(k,d)}else if(Ge(o))o._store&&(o._store.validated=!0);else if(o){var z=_(o);if(typeof z=="function"&&z!==o.entries)for(var I=z.call(o),C;!(C=I.next()).done;)Ge(C.value)&&yt(C.value,d)}}}function sr(o){{var d=o.type;if(d==null||typeof d=="string")return;var g;if(typeof d=="function")g=d.propTypes;else if(typeof d=="object"&&(d.$$typeof===l||d.$$typeof===p))g=d.propTypes;else return;if(g){var k=U(d);Ht(g,o.props,"prop",k,o)}else if(d.PropTypes!==void 0&&!He){He=!0;var z=U(d);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",z||"Unknown")}typeof d.getDefaultProps=="function"&&!d.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ar(o){{for(var d=Object.keys(o.props),g=0;g<d.length;g++){var k=d[g];if(k!=="children"&&k!=="key"){pe(o),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",k),pe(null);break}}o.ref!==null&&(pe(o),v("Invalid attribute `ref` supplied to `React.Fragment`."),pe(null))}}var bt={};function xt(o,d,g,k,z,I){{var C=H(o);if(!C){var O="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var K=or();K?O+=K:O+=ht();var M;o===null?M="null":Ye(o)?M="array":o!==void 0&&o.$$typeof===t?(M="<"+(U(o.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):M=typeof o,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",M,O)}var W=nr(o,d,g,z,I);if(W==null)return W;if(C){var re=d.children;if(re!==void 0)if(k)if(Ye(re)){for(var me=0;me<re.length;me++)vt(re[me],o);Object.freeze&&Object.freeze(re)}else v("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 vt(re,o)}if(de.call(d,"key")){var le=U(o),q=Object.keys(d).filter(function(pr){return pr!=="key"}),Xe=q.length>0?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}";if(!bt[le+Xe]){var dr=q.length>0?"{"+q.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
129
- let props = %s;
130
- <%s {...props} />
131
- React keys must be passed directly to JSX without using spread:
132
- let props = %s;
133
- <%s key={someKey} {...props} />`,Xe,le,dr,le),bt[le+Xe]=!0}}return o===n?ar(W):sr(W),W}}function lr(o,d,g){return xt(o,d,g,!0)}function cr(o,d,g){return xt(o,d,g,!1)}var ur=cr,fr=lr;Dt.Fragment=n,Dt.jsx=ur,Dt.jsxs=fr})()),Dt}var hn;function Ca(){return hn||(hn=1,process.env.NODE_ENV==="production"?xr.exports=Oa():xr.exports=Ta()),xr.exports}var Ee=Ca();const et=7,Ie=6,Na=({text:e,maxLength:t=40,maxWidth:r=280,position:n="top",bgColor:i="#1a1a1a",textColor:s="#fff",borderColor:a="#1a1a1a",className:c,style:l})=>{const[f,u]=se.useState(!1),[p,m]=se.useState({box:{x:0,y:0},arrow:{x:0,y:0},rotate:0}),h=se.useRef(null),b=se.useRef(null),x=e.length>t,_=x?e.slice(0,t)+"…":e,w=se.useCallback(()=>{if(!h.current||!b.current)return;const v=h.current.getBoundingClientRect(),T=b.current.offsetWidth||r,j=b.current.offsetHeight||44;let F=0,D=0,R=0,S=0,$=0;n==="top"?(F=v.left+v.width/2-T/2,D=v.top-j-et-Ie,R=v.left+v.width/2-6,S=v.top-et-Ie,$=0):n==="bottom"?(F=v.left+v.width/2-T/2,D=v.bottom+et+Ie,R=v.left+v.width/2-6,S=v.bottom+Ie,$=180):n==="left"?(F=v.left-T-et-Ie,D=v.top+v.height/2-j/2,R=v.left-et-Ie,S=v.top+v.height/2-6,$=90):n==="right"&&(F=v.right+et+Ie,D=v.top+v.height/2-j/2,R=v.right+Ie,S=v.top+v.height/2-6,$=-90);const H=window.innerWidth,Z=window.innerHeight;F=Math.max(8,Math.min(F,H-T-8)),D=Math.max(8,Math.min(D,Z-j-8)),m({box:{x:F,y:D},arrow:{x:R,y:S},rotate:$})},[n,r]);return se.useEffect(()=>{f&&setTimeout(w,0)},[f,w]),x?Ee.jsxs(Ee.Fragment,{children:[Ee.jsx("span",{ref:h,className:c,style:{display:"block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"default",maxWidth:"100%",...l},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:_}),f&&Ee.jsxs(Ee.Fragment,{children:[Ee.jsx("div",{ref:b,style:{position:"fixed",left:p.box.x,top:p.box.y,background:i,border:`1px solid ${a}`,borderRadius:8,padding:"8px 12px",fontSize:13,color:s,maxWidth:r,lineHeight:1.5,zIndex:99999,pointerEvents:"none",boxShadow:"0 2px 8px rgba(0,0,0,0.12)",wordBreak:"break-word",whiteSpace:"normal"},children:e}),Ee.jsx("div",{style:{position:"fixed",left:p.arrow.x,top:p.arrow.y,width:12,height:7,zIndex:1e5,pointerEvents:"none",transform:`rotate(${p.rotate}deg)`,transformOrigin:"center"},children:Ee.jsx("svg",{width:"12",height:"7",viewBox:"0 0 12 7",xmlns:"http://www.w3.org/2000/svg",children:Ee.jsx("polygon",{points:"6,7 0,0 12,0",fill:i})})})]})]}):Ee.jsx("span",{className:c,style:l,children:e})},Pa=({rows:e,className:t="mt-2 mx-2"})=>Y.jsx("div",{className:`summary-detail-card ${t}`.trim(),children:e.map((r,n)=>Y.jsx("div",{className:"summary-detail-card__row",children:r.map((i,s)=>Y.jsxs("div",{className:"summary-detail-card__field",style:{"--dc-span":i.span??1},children:[Y.jsx("p",{className:"summary-detail-card__label",children:i.label}),Y.jsx("p",{className:`summary-detail-card__value${i.size==="lg"?" summary-detail-card__value--lg":""}`,children:i.value!=null&&String(i.value).length>60?Y.jsx("div",{children:Y.jsx(Na,{text:i.value==null?"":String(i.value),maxLength:20,maxWidth:380})}):Y.jsx("div",{children:Y.jsx(ja,{text:i.value==null?"":String(i.value),maxLength:100})})})]},s))},n))}),Da=({title:e,description:t,icon:r,className:n="",children:i})=>Y.jsxs("div",{className:`flex flex-col items-center justify-center py-4 px-4 text-center ${n}`,children:[r&&Y.jsx("div",{className:"mb-2",children:r}),Y.jsx("div",{className:"text-[14px] font-semibold text-[#34343F]",children:e}),(t||i)&&Y.jsx("div",{className:"mt-2 max-w-[650px]",style:{fontSize:"12px",lineHeight:1.6,color:"#A19D9D"},children:i??t})]});exports.CustomTabs=ko;exports.EmptyState=Da;exports.Stepper=Eo;exports.SummaryDetailsCard=Pa;
104
+ <%s key={someKey} {...props} />`,St,Fe,fo,Fe),pr[Fe+St]=!0}}return l===n?io(ee):so(ee),ee}}function ao(l,v,R){return mr(l,v,R,!0)}function lo(l,v,R){return mr(l,v,R,!1)}var co=lo,uo=ao;it.Fragment=n,it.jsx=co,it.jsxs=uo})()),it}var yr;function xo(){return yr||(yr=1,process.env.NODE_ENV==="production"?Ct.exports=vo():Ct.exports=bo()),Ct.exports}var O=xo();function Hr(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Hr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Vr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Hr(e))&&(n&&(n+=" "),n+=t);return n}const vr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,br=Vr,wo=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return br(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(d=>{const u=r==null?void 0:r[d],f=s==null?void 0:s[d];if(u===null)return null;const p=vr(u)||vr(f);return o[d][p]}),c=r&&Object.entries(r).reduce((d,u)=>{let[f,p]=u;return p===void 0||(d[f]=p),d},{}),a=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,u)=>{let{class:f,className:p,...h}=u;return Object.entries(h).every(g=>{let[y,b]=g;return Array.isArray(b)?b.includes({...s,...c}[y]):{...s,...c}[y]===b})?[...d,f,p]:d},[]);return br(e,i,a,r==null?void 0:r.class,r==null?void 0:r.className)},Vt="-",ko=e=>{const t=Eo(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(Vt);return s[0]===""&&s.length!==1&&s.shift(),Ur(s,t)||_o(o)},getConflictingClassGroupIds:(o,s)=>{const i=r[o]||[];return s&&n[o]?[...i,...n[o]]:i}}},Ur=(e,t)=>{var r;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),s=o?Ur(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Vt);return(r=t.validators.find(({validator:c})=>c(i)))==null?void 0:r.classGroupId},xr=/^\[(.+)\]$/,_o=e=>{if(xr.test(e)){const t=xr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Eo=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)zt(r[o],n,o,t);return n},zt=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:wr(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(Ro(o)){zt(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,i])=>{zt(i,wr(t,s),r,n)})})},wr=(e,t)=>{let r=e;return t.split(Vt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Ro=e=>e.isThemeGetter,To=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(s,i)=>{r.set(s,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return o(s,i),i},set(s,i){r.has(s)?r.set(s,i):o(s,i)}}},Ft="!",$t=":",jo=$t.length,So=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let i=0,c=0,a=0,d;for(let g=0;g<o.length;g++){let y=o[g];if(i===0&&c===0){if(y===$t){s.push(o.slice(a,g)),a=g+jo;continue}if(y==="/"){d=g;continue}}y==="["?i++:y==="]"?i--:y==="("?c++:y===")"&&c--}const u=s.length===0?o:o.substring(a),f=Co(u),p=f!==u,h=d&&d>a?d-a:void 0;return{modifiers:s,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:h}};if(t){const o=t+$t,s=n;n=i=>i.startsWith(o)?s(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},Co=e=>e.endsWith(Ft)?e.substring(0,e.length-1):e.startsWith(Ft)?e.substring(1):e,Oo=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const n=[];let o=[];return r.forEach(s=>{s[0]==="["||t[s]?(n.push(...o.sort(),s),o=[]):o.push(s)}),n.push(...o.sort()),n}},Po=e=>({cache:To(e.cacheSize),parseClassName:So(e),sortModifiers:Oo(e),...ko(e)}),No=/\s+/,Do=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],c=e.trim().split(No);let a="";for(let d=c.length-1;d>=0;d-=1){const u=c[d],{isExternal:f,modifiers:p,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:y}=r(u);if(f){a=u+(a.length>0?" "+a:a);continue}let b=!!y,x=n(b?g.substring(0,y):g);if(!x){if(!b){a=u+(a.length>0?" "+a:a);continue}if(x=n(g),!x){a=u+(a.length>0?" "+a:a);continue}b=!1}const w=s(p).join(":"),C=h?w+Ft:w,T=C+x;if(i.includes(T))continue;i.push(T);const D=o(x,b);for(let P=0;P<D.length;++P){const E=D[P];i.push(C+E)}a=u+(a.length>0?" "+a:a)}return a};function Ao(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Yr(t))&&(n&&(n+=" "),n+=r);return n}const Yr=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Yr(e[n]))&&(r&&(r+=" "),r+=t);return r};function zo(e,...t){let r,n,o,s=i;function i(a){const d=t.reduce((u,f)=>f(u),e());return r=Po(d),n=r.cache.get,o=r.cache.set,s=c,c(a)}function c(a){const d=n(a);if(d)return d;const u=Do(a,r);return o(a,u),u}return function(){return s(Ao.apply(null,arguments))}}const te=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Gr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fo=/^\d+\/\d+$/,$o=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Lo=/\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$/,Io=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Mo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Wo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>Fo.test(e),z=e=>!!e&&!Number.isNaN(Number(e)),Se=e=>!!e&&Number.isInteger(Number(e)),Ot=e=>e.endsWith("%")&&z(e.slice(0,-1)),xe=e=>$o.test(e),Bo=()=>!0,Ho=e=>Lo.test(e)&&!Io.test(e),Kr=()=>!1,Vo=e=>Mo.test(e),Uo=e=>Wo.test(e),Yo=e=>!j(e)&&!S(e),Go=e=>Xe(e,qr,Kr),j=e=>Gr.test(e),$e=e=>Xe(e,Zr,Ho),Pt=e=>Xe(e,qo,z),kr=e=>Xe(e,Jr,Kr),Xo=e=>Xe(e,Qr,Uo),at=e=>Xe(e,en,Vo),S=e=>Xr.test(e),Ze=e=>Ke(e,Zr),Ko=e=>Ke(e,Zo),_r=e=>Ke(e,Jr),Jo=e=>Ke(e,qr),Qo=e=>Ke(e,Qr),lt=e=>Ke(e,en,!0),Xe=(e,t,r)=>{const n=Gr.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ke=(e,t,r=!1)=>{const n=Xr.exec(e);return n?n[1]?t(n[1]):r:!1},Jr=e=>e==="position"||e==="percentage",Qr=e=>e==="image"||e==="url",qr=e=>e==="length"||e==="size"||e==="bg-size",Zr=e=>e==="length",qo=e=>e==="number",Zo=e=>e==="family-name",en=e=>e==="shadow",es=()=>{const e=te("color"),t=te("font"),r=te("text"),n=te("font-weight"),o=te("tracking"),s=te("leading"),i=te("breakpoint"),c=te("container"),a=te("spacing"),d=te("radius"),u=te("shadow"),f=te("inset-shadow"),p=te("text-shadow"),h=te("drop-shadow"),g=te("blur"),y=te("perspective"),b=te("aspect"),x=te("ease"),w=te("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...T(),S,j],P=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],k=()=>[S,j,a],N=()=>[Ve,"full","auto",...k()],B=()=>[Se,"none","subgrid",S,j],J=()=>["auto",{span:["full",Se,S,j]},Se,S,j],Y=()=>[Se,"auto",S,j],V=()=>["auto","min","max","fr",S,j],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...k()],W=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],_=()=>[e,S,j],K=()=>[...T(),_r,kr,{position:[S,j]}],re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Re=()=>["auto","cover","contain",Jo,Go,{size:[S,j]}],Te=()=>[Ot,Ze,$e],Q=()=>["","none","full",d,S,j],q=()=>["",z,Ze,$e],ge=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[z,Ot,_r,kr],ye=()=>["","none",g,S,j],de=()=>["none",z,S,j],le=()=>["none",z,S,j],De=()=>[z,S,j],ve=()=>[Ve,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xe],breakpoint:[xe],color:[Bo],container:[xe],"drop-shadow":[xe],ease:["in","out","in-out"],font:[Yo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xe],shadow:[xe],spacing:["px",z],text:[xe],"text-shadow":[xe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,j,S,b]}],container:["container"],columns:[{columns:[z,j,S,c]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:D()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[Se,"auto",S,j]}],basis:[{basis:[Ve,"full","auto",c,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[z,Ve,"auto","initial","none",j]}],grow:[{grow:["",z,S,j]}],shrink:[{shrink:["",z,S,j]}],order:[{order:[Se,"first","last","none",S,j]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[c,"screen",...W()]}],"min-w":[{"min-w":[c,"screen","none",...W()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...W()]}],h:[{h:["screen",...W()]}],"min-h":[{"min-h":["screen","none",...W()]}],"max-h":[{"max-h":["screen",...W()]}],"font-size":[{text:["base",r,Ze,$e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,S,Pt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ot,j]}],"font-family":[{font:[Ko,j,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,S,j]}],"line-clamp":[{"line-clamp":[z,"none",S,Pt]}],leading:[{leading:[s,...k()]}],"list-image":[{"list-image":["none",S,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",S,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[z,"from-font","auto",S,$e]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[z,"auto",S,j]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",S,j]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",S,j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:K()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:Re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Se,S,j],radial:["",S,j],conic:[Se,S,j]},Qo,Xo]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:Te()}],"gradient-via-pos":[{via:Te()}],"gradient-to-pos":[{to:Te()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:q()}],"border-w-x":[{"border-x":q()}],"border-w-y":[{"border-y":q()}],"border-w-s":[{"border-s":q()}],"border-w-e":[{"border-e":q()}],"border-w-t":[{"border-t":q()}],"border-w-r":[{"border-r":q()}],"border-w-b":[{"border-b":q()}],"border-w-l":[{"border-l":q()}],"divide-x":[{"divide-x":q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[z,S,j]}],"outline-w":[{outline:["",z,Ze,$e]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",u,lt,at]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",f,lt,at]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[z,$e]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":q()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",p,lt,at]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[z,S,j]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"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":[z]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[S,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"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":T()}],"mask-image-conic-pos":[{"mask-conic":[z]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:K()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:Re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",S,j]}],filter:[{filter:["","none",S,j]}],blur:[{blur:ye()}],brightness:[{brightness:[z,S,j]}],contrast:[{contrast:[z,S,j]}],"drop-shadow":[{"drop-shadow":["","none",h,lt,at]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",z,S,j]}],"hue-rotate":[{"hue-rotate":[z,S,j]}],invert:[{invert:["",z,S,j]}],saturate:[{saturate:[z,S,j]}],sepia:[{sepia:["",z,S,j]}],"backdrop-filter":[{"backdrop-filter":["","none",S,j]}],"backdrop-blur":[{"backdrop-blur":ye()}],"backdrop-brightness":[{"backdrop-brightness":[z,S,j]}],"backdrop-contrast":[{"backdrop-contrast":[z,S,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",z,S,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[z,S,j]}],"backdrop-invert":[{"backdrop-invert":["",z,S,j]}],"backdrop-opacity":[{"backdrop-opacity":[z,S,j]}],"backdrop-saturate":[{"backdrop-saturate":[z,S,j]}],"backdrop-sepia":[{"backdrop-sepia":["",z,S,j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",S,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[z,"initial",S,j]}],ease:[{ease:["linear","initial",x,S,j]}],delay:[{delay:[z,S,j]}],animate:[{animate:["none",w,S,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,S,j]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:De()}],"skew-x":[{"skew-x":De()}],"skew-y":[{"skew-y":De()}],transform:[{transform:[S,j,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"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",S,j]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",S,j]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[z,Ze,$e,Pt]}],stroke:[{stroke:["none",..._()]}],"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"]}},ts=zo(es);function rs(...e){return ts(Vr(e))}function we(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function Er(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function tn(...e){return t=>{let r=!1;const n=e.map(o=>{const s=Er(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():Er(e[o],null)}}}}function Me(...e){return m.useCallback(tn(...e),e)}function rn(e,t=[]){let r=[];function n(s,i){const c=m.createContext(i),a=r.length;r=[...r,i];const d=f=>{var p;const{scope:h,children:g,...y}=f,b=((p=h==null?void 0:h[e])==null?void 0:p[a])||c,x=m.useMemo(()=>y,Object.values(y));return O.jsx(b.Provider,{value:x,children:g})};d.displayName=s+"Provider";function u(f,p){var h;const g=((h=p==null?void 0:p[e])==null?void 0:h[a])||c,y=m.useContext(g);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[d,u]}const o=()=>{const s=r.map(i=>m.createContext(i));return function(i){const c=(i==null?void 0:i[e])||s;return m.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[n,ns(o,...t)]}function ns(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const s=n.reduce((i,{useScope:c,scopeName:a})=>{const d=c(o)[`__scope${a}`];return{...i,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function os(e){const t=ss(e),r=m.forwardRef((n,o)=>{const{children:s,...i}=n,c=m.Children.toArray(s),a=c.find(as);if(a){const d=a.props.children,u=c.map(f=>f===a?m.Children.count(d)>1?m.Children.only(null):m.isValidElement(d)?d.props.children:null:f);return O.jsx(t,{...i,ref:o,children:m.isValidElement(d)?m.cloneElement(d,void 0,u):null})}return O.jsx(t,{...i,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}function ss(e){const t=m.forwardRef((r,n)=>{const{children:o,...s}=r;if(m.isValidElement(o)){const i=cs(o),c=ls(s,o.props);return o.type!==m.Fragment&&(c.ref=n?tn(n,i):i),m.cloneElement(o,c)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var nn=Symbol("radix.slottable");function is(e){const t=({children:r})=>O.jsx(O.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=nn,t}function as(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nn}function ls(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function cs(e){var t,r;let n=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(n=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=n&&"isReactWarning"in n&&n.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var us=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ne=us.reduce((e,t)=>{const r=os(`Primitive.${t}`),n=m.forwardRef((o,s)=>{const{asChild:i,...c}=o,a=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),O.jsx(a,{...c,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ds(e,t){e&&Wr.flushSync(()=>e.dispatchEvent(t))}function gt(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function fs(e,t=globalThis==null?void 0:globalThis.document){const r=gt(e);m.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var ps="DismissableLayer",Lt="dismissableLayer.update",ms="dismissableLayer.pointerDownOutside",hs="dismissableLayer.focusOutside",Rr,on=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sn=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:c,...a}=e,d=m.useContext(on),[u,f]=m.useState(null),p=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=m.useState({}),g=Me(t,E=>f(E)),y=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(b),w=u?y.indexOf(u):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,T=w>=x,D=vs(E=>{const k=E.target,N=[...d.branches].some(B=>B.contains(k));!T||N||(o==null||o(E),i==null||i(E),E.defaultPrevented||c==null||c())},p),P=bs(E=>{const k=E.target;[...d.branches].some(N=>N.contains(k))||(s==null||s(E),i==null||i(E),E.defaultPrevented||c==null||c())},p);return fs(E=>{w===d.layers.size-1&&(n==null||n(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},p),m.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Rr=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Tr(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Rr)}},[u,p,r,d]),m.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Tr())},[u,d]),m.useEffect(()=>{const E=()=>h({});return document.addEventListener(Lt,E),()=>document.removeEventListener(Lt,E)},[]),O.jsx(Ne.div,{...a,ref:g,style:{pointerEvents:C?T?"auto":"none":void 0,...e.style},onFocusCapture:we(e.onFocusCapture,P.onFocusCapture),onBlurCapture:we(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:we(e.onPointerDownCapture,D.onPointerDownCapture)})});sn.displayName=ps;var gs="DismissableLayerBranch",ys=m.forwardRef((e,t)=>{const r=m.useContext(on),n=m.useRef(null),o=Me(t,n);return m.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),O.jsx(Ne.div,{...e,ref:o})});ys.displayName=gs;function vs(e,t=globalThis==null?void 0:globalThis.document){const r=gt(e),n=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const s=c=>{if(c.target&&!n.current){let a=function(){an(ms,r,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function bs(e,t=globalThis==null?void 0:globalThis.document){const r=gt(e),n=m.useRef(!1);return m.useEffect(()=>{const o=s=>{s.target&&!n.current&&an(hs,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Tr(){const e=new CustomEvent(Lt);document.dispatchEvent(e)}function an(e,t,r,{discrete:n}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?ds(o,s):o.dispatchEvent(s)}var Ce=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},xs=m[" useId ".trim().toString()]||(()=>{}),ws=0;function ks(e){const[t,r]=m.useState(xs());return Ce(()=>{r(n=>n??String(ws++))},[e]),t?`radix-${t}`:""}const _s=["top","right","bottom","left"],Oe=Math.min,se=Math.max,ft=Math.round,ct=Math.floor,pe=e=>({x:e,y:e}),Es={left:"right",right:"left",bottom:"top",top:"bottom"};function It(e,t,r){return se(e,Oe(t,r))}function ke(e,t){return typeof e=="function"?e(t):e}function _e(e){return e.split("-")[0]}function Je(e){return e.split("-")[1]}function Ut(e){return e==="x"?"y":"x"}function Yt(e){return e==="y"?"height":"width"}function fe(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Gt(e){return Ut(fe(e))}function Rs(e,t,r){r===void 0&&(r=!1);const n=Je(e),o=Gt(e),s=Yt(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=pt(i)),[i,pt(i)]}function Ts(e){const t=pt(e);return[Mt(e),t,Mt(t)]}function Mt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const jr=["left","right"],Sr=["right","left"],js=["top","bottom"],Ss=["bottom","top"];function Cs(e,t,r){switch(e){case"top":case"bottom":return r?t?Sr:jr:t?jr:Sr;case"left":case"right":return t?js:Ss;default:return[]}}function Os(e,t,r,n){const o=Je(e);let s=Cs(_e(e),r==="start",n);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Mt)))),s}function pt(e){const t=_e(e);return Es[t]+e.slice(t.length)}function Ps(e){return{top:0,right:0,bottom:0,left:0,...e}}function ln(e){return typeof e!="number"?Ps(e):{top:e,right:e,bottom:e,left:e}}function mt(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Cr(e,t,r){let{reference:n,floating:o}=e;const s=fe(t),i=Gt(t),c=Yt(i),a=_e(t),d=s==="y",u=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,p=n[c]/2-o[c]/2;let h;switch(a){case"top":h={x:u,y:n.y-o.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-o.width,y:f};break;default:h={x:n.x,y:n.y}}switch(Je(t)){case"start":h[i]-=p*(r&&d?-1:1);break;case"end":h[i]+=p*(r&&d?-1:1);break}return h}async function Ns(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:s,rects:i,elements:c,strategy:a}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=ke(t,e),g=ln(h),y=c[p?f==="floating"?"reference":"floating":f],b=mt(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(y)))==null||r?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:u,strategy:a})),x=f==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),C=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},T=mt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:w,strategy:a}):x);return{top:(b.top-T.top+g.top)/C.y,bottom:(T.bottom-b.bottom+g.bottom)/C.y,left:(b.left-T.left+g.left)/C.x,right:(T.right-b.right+g.right)/C.x}}const Ds=50,As=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:i}=r,c=i.detectOverflow?i:{...i,detectOverflow:Ns},a=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Cr(d,n,a),p=n,h=0;const g={};for(let y=0;y<s.length;y++){const b=s[y];if(!b)continue;const{name:x,fn:w}=b,{x:C,y:T,data:D,reset:P}=await w({x:u,y:f,initialPlacement:n,placement:p,strategy:o,middlewareData:g,rects:d,platform:c,elements:{reference:e,floating:t}});u=C??u,f=T??f,g[x]={...g[x],...D},P&&h<Ds&&(h++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(d=P.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:u,y:f}=Cr(d,p,a)),y=-1)}return{x:u,y:f,placement:p,strategy:o,middlewareData:g}},zs=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:s,platform:i,elements:c,middlewareData:a}=t,{element:d,padding:u=0}=ke(e,t)||{};if(d==null)return{};const f=ln(u),p={x:r,y:n},h=Gt(o),g=Yt(h),y=await i.getDimensions(d),b=h==="y",x=b?"top":"left",w=b?"bottom":"right",C=b?"clientHeight":"clientWidth",T=s.reference[g]+s.reference[h]-p[h]-s.floating[g],D=p[h]-s.reference[h],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let E=P?P[C]:0;(!E||!await(i.isElement==null?void 0:i.isElement(P)))&&(E=c.floating[C]||s.floating[g]);const k=T/2-D/2,N=E/2-y[g]/2-1,B=Oe(f[x],N),J=Oe(f[w],N),Y=B,V=E-y[g]-J,L=E/2-y[g]/2+k,X=It(Y,L,V),M=!a.arrow&&Je(o)!=null&&L!==X&&s.reference[g]/2-(L<Y?B:J)-y[g]/2<0,W=M?L<Y?L-Y:L-V:0;return{[h]:p[h]+W,data:{[h]:X,centerOffset:L-X-W,...M&&{alignmentOffset:W}},reset:M}}}),Fs=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:s,rects:i,initialPlacement:c,platform:a,elements:d}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...b}=ke(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const x=_e(o),w=fe(c),C=_e(c)===c,T=await(a.isRTL==null?void 0:a.isRTL(d.floating)),D=p||(C||!y?[pt(c)]:Ts(c)),P=g!=="none";!p&&P&&D.push(...Os(c,y,g,T));const E=[c,...D],k=await a.detectOverflow(t,b),N=[];let B=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&N.push(k[x]),f){const L=Rs(o,i,T);N.push(k[L[0]],k[L[1]])}if(B=[...B,{placement:o,overflows:N}],!N.every(L=>L<=0)){var J,Y;const L=(((J=s.flip)==null?void 0:J.index)||0)+1,X=E[L];if(X&&(!(f==="alignment"&&w!==fe(X))||B.every(W=>fe(W.placement)===w?W.overflows[0]>0:!0)))return{data:{index:L,overflows:B},reset:{placement:X}};let M=(Y=B.filter(W=>W.overflows[0]<=0).sort((W,_)=>W.overflows[1]-_.overflows[1])[0])==null?void 0:Y.placement;if(!M)switch(h){case"bestFit":{var V;const W=(V=B.filter(_=>{if(P){const K=fe(_.placement);return K===w||K==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(K=>K>0).reduce((K,re)=>K+re,0)]).sort((_,K)=>_[1]-K[1])[0])==null?void 0:V[0];W&&(M=W);break}case"initialPlacement":M=c;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Or(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pr(e){return _s.some(t=>e[t]>=0)}const $s=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...s}=ke(e,t);switch(o){case"referenceHidden":{const i=await n.detectOverflow(t,{...s,elementContext:"reference"}),c=Or(i,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Pr(c)}}}case"escaped":{const i=await n.detectOverflow(t,{...s,altBoundary:!0}),c=Or(i,r.floating);return{data:{escapedOffsets:c,escaped:Pr(c)}}}default:return{}}}}},cn=new Set(["left","top"]);async function Ls(e,t){const{placement:r,platform:n,elements:o}=e,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=_e(r),c=Je(r),a=fe(r)==="y",d=cn.has(i)?-1:1,u=s&&a?-1:1,f=ke(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof g=="number"&&(h=c==="end"?g*-1:g),a?{x:h*u,y:p*d}:{x:p*d,y:h*u}}const Is=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:s,placement:i,middlewareData:c}=t,a=await Ls(t,e);return i===((r=c.offset)==null?void 0:r.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:o+a.x,y:s+a.y,data:{...a,placement:i}}}}},Ms=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:a={fn:x=>{let{x:w,y:C}=x;return{x:w,y:C}}},...d}=ke(e,t),u={x:r,y:n},f=await s.detectOverflow(t,d),p=fe(_e(o)),h=Ut(p);let g=u[h],y=u[p];if(i){const x=h==="y"?"top":"left",w=h==="y"?"bottom":"right",C=g+f[x],T=g-f[w];g=It(C,g,T)}if(c){const x=p==="y"?"top":"left",w=p==="y"?"bottom":"right",C=y+f[x],T=y-f[w];y=It(C,y,T)}const b=a.fn({...t,[h]:g,[p]:y});return{...b,data:{x:b.x-r,y:b.y-n,enabled:{[h]:i,[p]:c}}}}}},Ws=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:s,middlewareData:i}=t,{offset:c=0,mainAxis:a=!0,crossAxis:d=!0}=ke(e,t),u={x:r,y:n},f=fe(o),p=Ut(f);let h=u[p],g=u[f];const y=ke(c,t),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(a){const C=p==="y"?"height":"width",T=s.reference[p]-s.floating[C]+b.mainAxis,D=s.reference[p]+s.reference[C]-b.mainAxis;h<T?h=T:h>D&&(h=D)}if(d){var x,w;const C=p==="y"?"width":"height",T=cn.has(_e(o)),D=s.reference[f]-s.floating[C]+(T&&((x=i.offset)==null?void 0:x[f])||0)+(T?0:b.crossAxis),P=s.reference[f]+s.reference[C]+(T?0:((w=i.offset)==null?void 0:w[f])||0)-(T?b.crossAxis:0);g<D?g=D:g>P&&(g=P)}return{[p]:h,[f]:g}}}},Bs=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:s,platform:i,elements:c}=t,{apply:a=()=>{},...d}=ke(e,t),u=await i.detectOverflow(t,d),f=_e(o),p=Je(o),h=fe(o)==="y",{width:g,height:y}=s.floating;let b,x;f==="top"||f==="bottom"?(b=f,x=p===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(x=f,b=p==="end"?"top":"bottom");const w=y-u.top-u.bottom,C=g-u.left-u.right,T=Oe(y-u[b],w),D=Oe(g-u[x],C),P=!t.middlewareData.shift;let E=T,k=D;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(k=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(E=w),P&&!p){const B=se(u.left,0),J=se(u.right,0),Y=se(u.top,0),V=se(u.bottom,0);h?k=g-2*(B!==0||J!==0?B+J:se(u.left,u.right)):E=y-2*(Y!==0||V!==0?Y+V:se(u.top,u.bottom))}await a({...t,availableWidth:k,availableHeight:E});const N=await i.getDimensions(c.floating);return g!==N.width||y!==N.height?{reset:{rects:!0}}:{}}}};function yt(){return typeof window<"u"}function Qe(e){return un(e)?(e.nodeName||"").toLowerCase():"#document"}function ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function he(e){var t;return(t=(un(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function un(e){return yt()?e instanceof Node||e instanceof ie(e).Node:!1}function ce(e){return yt()?e instanceof Element||e instanceof ie(e).Element:!1}function Ee(e){return yt()?e instanceof HTMLElement||e instanceof ie(e).HTMLElement:!1}function Nr(e){return!yt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ie(e).ShadowRoot}function rt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ue(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&o!=="inline"&&o!=="contents"}function Hs(e){return/^(table|td|th)$/.test(Qe(e))}function vt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Vs=/transform|translate|scale|rotate|perspective|filter/,Us=/paint|layout|strict|content/,Le=e=>!!e&&e!=="none";let Nt;function Xt(e){const t=ce(e)?ue(e):e;return Le(t.transform)||Le(t.translate)||Le(t.scale)||Le(t.rotate)||Le(t.perspective)||!Kt()&&(Le(t.backdropFilter)||Le(t.filter))||Vs.test(t.willChange||"")||Us.test(t.contain||"")}function Ys(e){let t=Pe(e);for(;Ee(t)&&!Ye(t);){if(Xt(t))return t;if(vt(t))return null;t=Pe(t)}return null}function Kt(){return Nt==null&&(Nt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Nt}function Ye(e){return/^(html|body|#document)$/.test(Qe(e))}function ue(e){return ie(e).getComputedStyle(e)}function bt(e){return ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pe(e){if(Qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nr(e)&&e.host||he(e);return Nr(t)?t.host:t}function dn(e){const t=Pe(e);return Ye(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ee(t)&&rt(t)?t:dn(t)}function et(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=dn(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=ie(o);if(s){const c=Wt(i);return t.concat(i,i.visualViewport||[],rt(o)?o:[],c&&r?et(c):[])}else return t.concat(o,et(o,[],r))}function Wt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function fn(e){const t=ue(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ee(e),s=o?e.offsetWidth:r,i=o?e.offsetHeight:n,c=ft(r)!==s||ft(n)!==i;return c&&(r=s,n=i),{width:r,height:n,$:c}}function Jt(e){return ce(e)?e:e.contextElement}function Ue(e){const t=Jt(e);if(!Ee(t))return pe(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:s}=fn(t);let i=(s?ft(r.width):r.width)/n,c=(s?ft(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const Gs=pe(0);function pn(e){const t=ie(e);return!Kt()||!t.visualViewport?Gs:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Xs(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ie(e)?!1:t}function Ie(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=Jt(e);let i=pe(1);t&&(n?ce(n)&&(i=Ue(n)):i=Ue(e));const c=Xs(s,r,n)?pn(s):pe(0);let a=(o.left+c.x)/i.x,d=(o.top+c.y)/i.y,u=o.width/i.x,f=o.height/i.y;if(s){const p=ie(s),h=n&&ce(n)?ie(n):n;let g=p,y=Wt(g);for(;y&&n&&h!==g;){const b=Ue(y),x=y.getBoundingClientRect(),w=ue(y),C=x.left+(y.clientLeft+parseFloat(w.paddingLeft))*b.x,T=x.top+(y.clientTop+parseFloat(w.paddingTop))*b.y;a*=b.x,d*=b.y,u*=b.x,f*=b.y,a+=C,d+=T,g=ie(y),y=Wt(g)}}return mt({width:u,height:f,x:a,y:d})}function xt(e,t){const r=bt(e).scrollLeft;return t?t.left+r:Ie(he(e)).left+r}function mn(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-xt(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Ks(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const s=o==="fixed",i=he(n),c=t?vt(t.floating):!1;if(n===i||c&&s)return r;let a={scrollLeft:0,scrollTop:0},d=pe(1);const u=pe(0),f=Ee(n);if((f||!f&&!s)&&((Qe(n)!=="body"||rt(i))&&(a=bt(n)),f)){const h=Ie(n);d=Ue(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const p=i&&!f&&!s?mn(i,a):pe(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-a.scrollLeft*d.x+u.x+p.x,y:r.y*d.y-a.scrollTop*d.y+u.y+p.y}}function Js(e){return Array.from(e.getClientRects())}function Qs(e){const t=he(e),r=bt(e),n=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=se(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+xt(e);const c=-r.scrollTop;return ue(n).direction==="rtl"&&(i+=se(t.clientWidth,n.clientWidth)-o),{width:o,height:s,x:i,y:c}}const Dr=25;function qs(e,t){const r=ie(e),n=he(e),o=r.visualViewport;let s=n.clientWidth,i=n.clientHeight,c=0,a=0;if(o){s=o.width,i=o.height;const u=Kt();(!u||u&&t==="fixed")&&(c=o.offsetLeft,a=o.offsetTop)}const d=xt(n);if(d<=0){const u=n.ownerDocument,f=u.body,p=getComputedStyle(f),h=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(n.clientWidth-f.clientWidth-h);g<=Dr&&(s-=g)}else d<=Dr&&(s+=d);return{width:s,height:i,x:c,y:a}}function Zs(e,t){const r=Ie(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,s=Ee(e)?Ue(e):pe(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,a=o*s.x,d=n*s.y;return{width:i,height:c,x:a,y:d}}function Ar(e,t,r){let n;if(t==="viewport")n=qs(e,r);else if(t==="document")n=Qs(he(e));else if(ce(t))n=Zs(t,r);else{const o=pn(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return mt(n)}function hn(e,t){const r=Pe(e);return r===t||!ce(r)||Ye(r)?!1:ue(r).position==="fixed"||hn(r,t)}function ei(e,t){const r=t.get(e);if(r)return r;let n=et(e,[],!1).filter(c=>ce(c)&&Qe(c)!=="body"),o=null;const s=ue(e).position==="fixed";let i=s?Pe(e):e;for(;ce(i)&&!Ye(i);){const c=ue(i),a=Xt(i);!a&&c.position==="fixed"&&(o=null),(s?!a&&!o:!a&&c.position==="static"&&o&&(o.position==="absolute"||o.position==="fixed")||rt(i)&&!a&&hn(e,i))?n=n.filter(d=>d!==i):o=c,i=Pe(i)}return t.set(e,n),n}function ti(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?vt(t)?[]:ei(t,this._c):[].concat(r),n],i=Ar(t,s[0],o);let c=i.top,a=i.right,d=i.bottom,u=i.left;for(let f=1;f<s.length;f++){const p=Ar(t,s[f],o);c=se(p.top,c),a=Oe(p.right,a),d=Oe(p.bottom,d),u=se(p.left,u)}return{width:a-u,height:d-c,x:u,y:c}}function ri(e){const{width:t,height:r}=fn(e);return{width:t,height:r}}function ni(e,t,r){const n=Ee(t),o=he(t),s=r==="fixed",i=Ie(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const a=pe(0);function d(){a.x=xt(o)}if(n||!n&&!s)if((Qe(t)!=="body"||rt(o))&&(c=bt(t)),n){const h=Ie(t,!0,s,t);a.x=h.x+t.clientLeft,a.y=h.y+t.clientTop}else o&&d();s&&!n&&o&&d();const u=o&&!n&&!s?mn(o,c):pe(0),f=i.left+c.scrollLeft-a.x-u.x,p=i.top+c.scrollTop-a.y-u.y;return{x:f,y:p,width:i.width,height:i.height}}function Dt(e){return ue(e).position==="static"}function zr(e,t){if(!Ee(e)||ue(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return he(e)===r&&(r=r.ownerDocument.body),r}function gn(e,t){const r=ie(e);if(vt(e))return r;if(!Ee(e)){let o=Pe(e);for(;o&&!Ye(o);){if(ce(o)&&!Dt(o))return o;o=Pe(o)}return r}let n=zr(e,t);for(;n&&Hs(n)&&Dt(n);)n=zr(n,t);return n&&Ye(n)&&Dt(n)&&!Xt(n)?r:n||Ys(e)||r}const oi=async function(e){const t=this.getOffsetParent||gn,r=this.getDimensions,n=await r(e.floating);return{reference:ni(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function si(e){return ue(e).direction==="rtl"}const ii={convertOffsetParentRelativeRectToViewportRelativeRect:Ks,getDocumentElement:he,getClippingRect:ti,getOffsetParent:gn,getElementRects:oi,getClientRects:Js,getDimensions:ri,getScale:Ue,isElement:ce,isRTL:si};function yn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ai(e,t){let r=null,n;const o=he(e);function s(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function i(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),s();const d=e.getBoundingClientRect(),{left:u,top:f,width:p,height:h}=d;if(c||t(),!p||!h)return;const g=ct(f),y=ct(o.clientWidth-(u+p)),b=ct(o.clientHeight-(f+h)),x=ct(u),w={rootMargin:-g+"px "+-y+"px "+-b+"px "+-x+"px",threshold:se(0,Oe(1,a))||1};let C=!0;function T(D){const P=D[0].intersectionRatio;if(P!==a){if(!C)return i();P?i(!1,P):n=setTimeout(()=>{i(!1,1e-7)},1e3)}P===1&&!yn(d,e.getBoundingClientRect())&&i(),C=!1}try{r=new IntersectionObserver(T,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(T,w)}r.observe(e)}return i(!0),s}function li(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,d=Jt(e),u=o||s?[...d?et(d):[],...t?et(t):[]]:[];u.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),s&&x.addEventListener("resize",r)});const f=d&&c?ai(d,r):null;let p=-1,h=null;i&&(h=new ResizeObserver(x=>{let[w]=x;w&&w.target===d&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=h)==null||C.observe(t)})),r()}),d&&!a&&h.observe(d),t&&h.observe(t));let g,y=a?Ie(e):null;a&&b();function b(){const x=Ie(e);y&&!yn(y,x)&&r(),y=x,g=requestAnimationFrame(b)}return r(),()=>{var x;u.forEach(w=>{o&&w.removeEventListener("scroll",r),s&&w.removeEventListener("resize",r)}),f==null||f(),(x=h)==null||x.disconnect(),h=null,a&&cancelAnimationFrame(g)}}const ci=Is,ui=Ms,di=Fs,fi=Bs,pi=$s,Fr=zs,mi=Ws,hi=(e,t,r)=>{const n=new Map,o={platform:ii,...r},s={...o.platform,_c:n};return As(e,t,{...o,platform:s})};var gi=typeof document<"u",yi=function(){},dt=gi?me.useLayoutEffect:yi;function ht(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!ht(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const s=o[n];if(!(s==="_owner"&&e.$$typeof)&&!ht(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function vn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $r(e,t){const r=vn(e);return Math.round(t*r)/r}function At(e){const t=m.useRef(e);return dt(()=>{t.current=e}),t}function vi(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:i}={},transform:c=!0,whileElementsMounted:a,open:d}=e,[u,f]=m.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=m.useState(n);ht(p,n)||h(n);const[g,y]=m.useState(null),[b,x]=m.useState(null),w=m.useCallback(_=>{_!==P.current&&(P.current=_,y(_))},[]),C=m.useCallback(_=>{_!==E.current&&(E.current=_,x(_))},[]),T=s||g,D=i||b,P=m.useRef(null),E=m.useRef(null),k=m.useRef(u),N=a!=null,B=At(a),J=At(o),Y=At(d),V=m.useCallback(()=>{if(!P.current||!E.current)return;const _={placement:t,strategy:r,middleware:p};J.current&&(_.platform=J.current),hi(P.current,E.current,_).then(K=>{const re={...K,isPositioned:Y.current!==!1};L.current&&!ht(k.current,re)&&(k.current=re,Wr.flushSync(()=>{f(re)}))})},[p,t,r,J,Y]);dt(()=>{d===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,f(_=>({..._,isPositioned:!1})))},[d]);const L=m.useRef(!1);dt(()=>(L.current=!0,()=>{L.current=!1}),[]),dt(()=>{if(T&&(P.current=T),D&&(E.current=D),T&&D){if(B.current)return B.current(T,D,V);V()}},[T,D,V,B,N]);const X=m.useMemo(()=>({reference:P,floating:E,setReference:w,setFloating:C}),[w,C]),M=m.useMemo(()=>({reference:T,floating:D}),[T,D]),W=m.useMemo(()=>{const _={position:r,left:0,top:0};if(!M.floating)return _;const K=$r(M.floating,u.x),re=$r(M.floating,u.y);return c?{..._,transform:"translate("+K+"px, "+re+"px)",...vn(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:K,top:re}},[r,c,M.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:V,refs:X,elements:M,floatingStyles:W}),[u,V,X,M,W])}const bi=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Fr({element:n.current,padding:o}).fn(r):{}:n?Fr({element:n,padding:o}).fn(r):{}}}},xi=(e,t)=>{const r=ci(e);return{name:r.name,fn:r.fn,options:[e,t]}},wi=(e,t)=>{const r=ui(e);return{name:r.name,fn:r.fn,options:[e,t]}},ki=(e,t)=>({fn:mi(e).fn,options:[e,t]}),_i=(e,t)=>{const r=di(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ei=(e,t)=>{const r=fi(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ri=(e,t)=>{const r=pi(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ti=(e,t)=>{const r=bi(e);return{name:r.name,fn:r.fn,options:[e,t]}};var ji="Arrow",bn=m.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...s}=e;return O.jsx(Ne.svg,{...s,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:O.jsx("polygon",{points:"0,0 30,0 15,10"})})});bn.displayName=ji;var Si=bn;function Ci(e){const[t,r]=m.useState(void 0);return Ce(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,c;if("borderBoxSize"in s){const a=s.borderBoxSize,d=Array.isArray(a)?a[0]:a;i=d.inlineSize,c=d.blockSize}else i=e.offsetWidth,c=e.offsetHeight;r({width:i,height:c})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Qt="Popper",[xn,wn]=rn(Qt),[Oi,kn]=xn(Qt),_n=e=>{const{__scopePopper:t,children:r}=e,[n,o]=m.useState(null);return O.jsx(Oi,{scope:t,anchor:n,onAnchorChange:o,children:r})};_n.displayName=Qt;var En="PopperAnchor",Rn=m.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,s=kn(En,r),i=m.useRef(null),c=Me(t,i),a=m.useRef(null);return m.useEffect(()=>{const d=a.current;a.current=(n==null?void 0:n.current)||i.current,d!==a.current&&s.onAnchorChange(a.current)}),n?null:O.jsx(Ne.div,{...o,ref:c})});Rn.displayName=En;var qt="PopperContent",[Pi,Ni]=xn(qt),Tn=m.forwardRef((e,t)=>{var r,n,o,s,i,c;const{__scopePopper:a,side:d="bottom",sideOffset:u=0,align:f="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:y=[],collisionPadding:b=0,sticky:x="partial",hideWhenDetached:w=!1,updatePositionStrategy:C="optimized",onPlaced:T,...D}=e,P=kn(qt,a),[E,k]=m.useState(null),N=Me(t,Ae=>k(Ae)),[B,J]=m.useState(null),Y=Ci(B),V=(Y==null?void 0:Y.width)??0,L=(Y==null?void 0:Y.height)??0,X=d+(f!=="center"?"-"+f:""),M=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},W=Array.isArray(y)?y:[y],_=W.length>0,K={padding:M,boundary:W.filter(Ai),altBoundary:_},{refs:re,floatingStyles:Re,placement:Te,isPositioned:Q,middlewareData:q}=vi({strategy:"fixed",placement:X,whileElementsMounted:(...Ae)=>li(...Ae,{animationFrame:C==="always"}),elements:{reference:P.anchor},middleware:[xi({mainAxis:u+L,alignmentAxis:p}),g&&wi({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?ki():void 0,...K}),g&&_i({...K}),Ei({...K,apply:({elements:Ae,rects:_t,availableWidth:We,availableHeight:ze})=>{const{width:ot,height:st}=_t.reference,be=Ae.floating.style;be.setProperty("--radix-popper-available-width",`${We}px`),be.setProperty("--radix-popper-available-height",`${ze}px`),be.setProperty("--radix-popper-anchor-width",`${ot}px`),be.setProperty("--radix-popper-anchor-height",`${st}px`)}}),B&&Ti({element:B,padding:h}),zi({arrowWidth:V,arrowHeight:L}),w&&Ri({strategy:"referenceHidden",...K})]}),[ge,je]=Cn(Te),G=gt(T);Ce(()=>{Q&&(G==null||G())},[Q,G]);const ye=(r=q.arrow)==null?void 0:r.x,de=(n=q.arrow)==null?void 0:n.y,le=((o=q.arrow)==null?void 0:o.centerOffset)!==0,[De,ve]=m.useState();return Ce(()=>{E&&ve(window.getComputedStyle(E).zIndex)},[E]),O.jsx("div",{ref:re.setFloating,"data-radix-popper-content-wrapper":"",style:{...Re,transform:Q?Re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:De,"--radix-popper-transform-origin":[(s=q.transformOrigin)==null?void 0:s.x,(i=q.transformOrigin)==null?void 0:i.y].join(" "),...((c=q.hide)==null?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:O.jsx(Pi,{scope:a,placedSide:ge,onArrowChange:J,arrowX:ye,arrowY:de,shouldHideArrow:le,children:O.jsx(Ne.div,{"data-side":ge,"data-align":je,...D,ref:N,style:{...D.style,animation:Q?void 0:"none"}})})})});Tn.displayName=qt;var jn="PopperArrow",Di={top:"bottom",right:"left",bottom:"top",left:"right"},Sn=m.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=Ni(jn,r),s=Di[o.placedSide];return O.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:O.jsx(Si,{...n,ref:t,style:{...n.style,display:"block"}})})});Sn.displayName=jn;function Ai(e){return e!==null}var zi=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o;const{placement:s,rects:i,middlewareData:c}=t,a=((r=c.arrow)==null?void 0:r.centerOffset)!==0,d=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[f,p]=Cn(s),h={start:"0%",center:"50%",end:"100%"}[p],g=(((n=c.arrow)==null?void 0:n.x)??0)+d/2,y=(((o=c.arrow)==null?void 0:o.y)??0)+u/2;let b="",x="";return f==="bottom"?(b=a?h:`${g}px`,x=`${-u}px`):f==="top"?(b=a?h:`${g}px`,x=`${i.floating.height+u}px`):f==="right"?(b=`${-u}px`,x=a?h:`${y}px`):f==="left"&&(b=`${i.floating.width+u}px`,x=a?h:`${y}px`),{data:{x:b,y:x}}}});function Cn(e){const[t,r="center"]=e.split("-");return[t,r]}var Fi=_n,$i=Rn,Li=Tn,Ii=Sn,Mi="Portal",On=m.forwardRef((e,t)=>{var r;const{container:n,...o}=e,[s,i]=m.useState(!1);Ce(()=>i(!0),[]);const c=n||s&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return c?Ir.createPortal(O.jsx(Ne.div,{...o,ref:t}),c):null});On.displayName=Mi;function Wi(e,t){return m.useReducer((r,n)=>t[r][n]??r,e)}var Zt=e=>{const{present:t,children:r}=e,n=Bi(t),o=typeof r=="function"?r({present:n.isPresent}):m.Children.only(r),s=Me(n.ref,Hi(o));return typeof r=="function"||n.isPresent?m.cloneElement(o,{ref:s}):null};Zt.displayName="Presence";function Bi(e){const[t,r]=m.useState(),n=m.useRef(null),o=m.useRef(e),s=m.useRef("none"),i=e?"mounted":"unmounted",[c,a]=Wi(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const d=ut(n.current);s.current=c==="mounted"?d:"none"},[c]),Ce(()=>{const d=n.current,u=o.current;if(u!==e){const f=s.current,p=ut(d);e?a("MOUNT"):p==="none"||(d==null?void 0:d.display)==="none"?a("UNMOUNT"):a(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Ce(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,f=h=>{const g=ut(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&g&&(a("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},p=h=>{h.target===t&&(s.current=ut(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:m.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function ut(e){return(e==null?void 0:e.animationName)||"none"}function Hi(e){var t,r;let n=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(n=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=n&&"isReactWarning"in n&&n.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Vi=m[" useInsertionEffect ".trim().toString()]||Ce;function Ui({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,s,i]=Yi({defaultProp:t,onChange:r}),c=e!==void 0,a=c?e:o;{const u=m.useRef(e!==void 0);m.useEffect(()=>{const f=u.current;f!==c&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${c?"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.`),u.current=c},[c,n])}const d=m.useCallback(u=>{var f;if(c){const p=Gi(u)?u(e):u;p!==e&&((f=i.current)==null||f.call(i,p))}else s(u)},[c,e,s,i]);return[a,d]}function Yi({defaultProp:e,onChange:t}){const[r,n]=m.useState(e),o=m.useRef(r),s=m.useRef(t);return Vi(()=>{s.current=t},[t]),m.useEffect(()=>{var i;o.current!==r&&((i=s.current)==null||i.call(s,r),o.current=r)},[r,o]),[r,n,s]}function Gi(e){return typeof e=="function"}var Xi=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"}),Ki="VisuallyHidden",Pn=m.forwardRef((e,t)=>O.jsx(Ne.span,{...e,ref:t,style:{...Xi,...e.style}}));Pn.displayName=Ki;var Ji=Pn,[wt]=rn("Tooltip",[wn]),kt=wn(),Nn="TooltipProvider",Qi=700,Bt="tooltip.open",[qi,er]=wt(Nn),Dn=e=>{const{__scopeTooltip:t,delayDuration:r=Qi,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:s}=e,i=m.useRef(!0),c=m.useRef(!1),a=m.useRef(0);return m.useEffect(()=>{const d=a.current;return()=>window.clearTimeout(d)},[]),O.jsx(qi,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:m.useCallback(()=>{window.clearTimeout(a.current),i.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:m.useCallback(d=>{c.current=d},[]),disableHoverableContent:o,children:s})};Dn.displayName=Nn;var tt="Tooltip",[Zi,nt]=wt(tt),An=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:c}=e,a=er(tt,e.__scopeTooltip),d=kt(t),[u,f]=m.useState(null),p=ks(),h=m.useRef(0),g=i??a.disableHoverableContent,y=c??a.delayDuration,b=m.useRef(!1),[x,w]=Ui({prop:n,defaultProp:o??!1,onChange:E=>{E?(a.onOpen(),document.dispatchEvent(new CustomEvent(Bt))):a.onClose(),s==null||s(E)},caller:tt}),C=m.useMemo(()=>x?b.current?"delayed-open":"instant-open":"closed",[x]),T=m.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,w(!0)},[w]),D=m.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),P=m.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,w(!0),h.current=0},y)},[y,w]);return m.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),O.jsx(Fi,{...d,children:O.jsx(Zi,{scope:t,contentId:p,open:x,stateAttribute:C,trigger:u,onTriggerChange:f,onTriggerEnter:m.useCallback(()=>{a.isOpenDelayedRef.current?P():T()},[a.isOpenDelayedRef,P,T]),onTriggerLeave:m.useCallback(()=>{g?D():(window.clearTimeout(h.current),h.current=0)},[D,g]),onOpen:T,onClose:D,disableHoverableContent:g,children:r})})};An.displayName=tt;var Ht="TooltipTrigger",zn=m.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=nt(Ht,r),s=er(Ht,r),i=kt(r),c=m.useRef(null),a=Me(t,c,o.onTriggerChange),d=m.useRef(!1),u=m.useRef(!1),f=m.useCallback(()=>d.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),O.jsx($i,{asChild:!0,...i,children:O.jsx(Ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:a,onPointerMove:we(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:we(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:we(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:we(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:we(e.onBlur,o.onClose),onClick:we(e.onClick,o.onClose)})})});zn.displayName=Ht;var tr="TooltipPortal",[ea,ta]=wt(tr,{forceMount:void 0}),Fn=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,s=nt(tr,t);return O.jsx(ea,{scope:t,forceMount:r,children:O.jsx(Zt,{present:r||s.open,children:O.jsx(On,{asChild:!0,container:o,children:n})})})};Fn.displayName=tr;var Ge="TooltipContent",$n=m.forwardRef((e,t)=>{const r=ta(Ge,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...s}=e,i=nt(Ge,e.__scopeTooltip);return O.jsx(Zt,{present:n||i.open,children:i.disableHoverableContent?O.jsx(Ln,{side:o,...s,ref:t}):O.jsx(ra,{side:o,...s,ref:t})})}),ra=m.forwardRef((e,t)=>{const r=nt(Ge,e.__scopeTooltip),n=er(Ge,e.__scopeTooltip),o=m.useRef(null),s=Me(t,o),[i,c]=m.useState(null),{trigger:a,onClose:d}=r,u=o.current,{onPointerInTransitChange:f}=n,p=m.useCallback(()=>{c(null),f(!1)},[f]),h=m.useCallback((g,y)=>{const b=g.currentTarget,x={x:g.clientX,y:g.clientY},w=ia(x,b.getBoundingClientRect()),C=aa(x,w),T=la(y.getBoundingClientRect()),D=ua([...C,...T]);c(D),f(!0)},[f]);return m.useEffect(()=>()=>p(),[p]),m.useEffect(()=>{if(a&&u){const g=b=>h(b,u),y=b=>h(b,a);return a.addEventListener("pointerleave",g),u.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",y)}}},[a,u,h,p]),m.useEffect(()=>{if(i){const g=y=>{const b=y.target,x={x:y.clientX,y:y.clientY},w=(a==null?void 0:a.contains(b))||(u==null?void 0:u.contains(b)),C=!ca(x,i);w?p():C&&(p(),d())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[a,u,i,d,p]),O.jsx(Ln,{...e,ref:s})}),[na,oa]=wt(tt,{isInside:!1}),sa=is("TooltipContent"),Ln=m.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...c}=e,a=nt(Ge,r),d=kt(r),{onClose:u}=a;return m.useEffect(()=>(document.addEventListener(Bt,u),()=>document.removeEventListener(Bt,u)),[u]),m.useEffect(()=>{if(a.trigger){const f=p=>{const h=p.target;h!=null&&h.contains(a.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,u]),O.jsx(sn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:O.jsxs(Li,{"data-state":a.stateAttribute,...d,...c,ref:t,style:{...c.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:[O.jsx(sa,{children:n}),O.jsx(na,{scope:r,isInside:!0,children:O.jsx(Ji,{id:a.contentId,role:"tooltip",children:o||n})})]})})});$n.displayName=Ge;var In="TooltipArrow",Mn=m.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=kt(r);return oa(In,r).isInside?null:O.jsx(Ii,{...o,...n,ref:t})});Mn.displayName=In;function ia(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,o,s)){case s:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function aa(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function la(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function ca(e,t){const{x:r,y:n}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const c=t[s],a=t[i],d=c.x,u=c.y,f=a.x,p=a.y;u>n!=p>n&&r<(f-d)*(n-u)/(p-u)+d&&(o=!o)}return o}function ua(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),da(t)}function da(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const s=r[r.length-1],i=r[r.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var fa=Dn,pa=An,ma=zn,ha=Fn,Wn=$n,ga=Mn;const Bn=fa,Hn=pa,Vn=ma,rr=m.forwardRef(({className:e,sideOffset:t=6,variant:r="default",showArrow:n,style:o,children:s,...i},c)=>{const a=r==="rich",d=n??!a,u={zIndex:99999,backgroundColor:a?"#FFFFFF":"#000000",color:a?"#111827":"#FFFFFF",border:a?"1px solid #E5E7EB":"1px solid #020617",borderRadius:"8px",boxShadow:a?"0px 4px 6px -1px rgba(0, 0, 0, 0.10), 0px 2px 4px -1px rgba(0, 0, 0, 0.06)":void 0,paddingLeft:a?"4px":"12px",paddingRight:a?"4px":"12px",paddingTop:"4px",paddingBottom:"4px",fontSize:a?"14px":"12px",lineHeight:a?"20px":"16px",overflow:"hidden",...o};return O.jsx(ha,{children:O.jsxs(Wn,{ref:c,sideOffset:t,style:u,className:e??"",...i,children:[s,d&&O.jsx(ga,{width:10,height:5,style:{fill:a?"#FFFFFF":"#000000"}})]})})});rr.displayName=Wn.displayName;const ya=wo("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-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-blue-500 text-white",save:"text-white",delete:"text-white",update:"text-white",cancel:"text-[#414651] border border-[#D5D7DA]",outline:"text-[#003B71]"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-8",icon:"h-10 w-10",xs:"h-5 px-1 text-xs rounded"}},defaultVariants:{variant:"default",size:"default"}}),va=me.forwardRef(({className:e,variant:t,size:r,loading:n=!1,disabled:o,children:s,leftIcon:i,datatestid:c,rightIcon:a,style:d,iconButton:u=!1,tooltipLabel:f,saveColor:p="#003B71",deleteColor:h="#FF6070",updateColor:g="#003B71",cancelColor:y="#ffffff",outlineColor:b="#003B71",...x},w)=>{const C={...t&&{save:{backgroundColor:p},delete:{backgroundColor:h},update:{backgroundColor:g},cancel:{backgroundColor:y},outline:{backgroundColor:b}}[t],...d},T=O.jsx("button",{ref:w,"data-testid":c,className:rs(ya({variant:t,size:r}),e),style:C,disabled:o||n,...x,children:O.jsxs(O.Fragment,{children:[n&&O.jsx("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),!n&&i&&i,s,!n&&a&&a]})});return u?O.jsx(Bn,{children:O.jsxs(Hn,{children:[O.jsx(Vn,{asChild:!0,children:T}),f&&O.jsx(rr,{children:f})]})}):T});va.displayName="Button";const ba=({text:e="",maxLength:t=20,className:r=""})=>{const n=String(e??""),o=n.length>t,s=o?`${n.slice(0,t)}..`:n;return o?O.jsx(Bn,{children:O.jsxs(Hn,{children:[O.jsx(Vn,{asChild:!0,children:O.jsx("div",{className:`flex items-center cursor-pointer ${r}`,children:s})}),n&&O.jsx(rr,{style:n.length>50?{maxWidth:"300px",whiteSpace:"normal",overflowWrap:"anywhere"}:void 0,children:n})]})}):O.jsx("div",{className:`flex items-center ${r}`,children:s})},xa=({text:e,limit:t=50})=>{const[r,n]=me.useState(!1);return e.length<=t?F.jsx(F.Fragment,{children:e}):F.jsxs("div",{className:`expandable-text${r?" expandable-text--expanded":""}`,children:[r?e:`${e.slice(0,t).trimEnd()}...`," ",F.jsx("button",{type:"button",className:"expandable-text__toggle",onClick:()=>n(o=>!o),children:r?"See less":"See more"})]})},Lr=50,wa=({rows:e,className:t="mt-2 mx-2"})=>F.jsx("div",{className:`summary-detail-card ${t}`.trim(),children:e.map((r,n)=>F.jsx("div",{className:"summary-detail-card__row",children:r.map((o,s)=>{const i=o.value==null?"":String(o.value);return F.jsxs("div",{className:"summary-detail-card__field",style:{"--dc-span":o.span??1},children:[F.jsx("p",{className:"summary-detail-card__label",children:o.label}),F.jsx("div",{className:`summary-detail-card__value ${o.size==="lg"?" summary-detail-card__value--lg":""}`,style:{color:o.valueColor},children:i.length>Lr&&o.label==="Description"?F.jsx(xa,{text:i,limit:Lr}):F.jsx(ba,{text:i,maxLength:20})})]},s)})},n))}),ka=({title:e,description:t,icon:r,className:n="",children:o})=>F.jsxs("div",{className:`flex flex-col items-center justify-center py-4 px-4 text-center ${n}`,children:[r&&F.jsx("div",{className:"mb-2",children:r}),F.jsx("div",{className:"text-[14px] font-semibold text-[#34343F]",children:e}),(t||o)&&F.jsx("div",{className:"mt-2 max-w-[650px]",style:{fontSize:"12px",lineHeight:1.6,color:"#A19D9D"},children:o??t})]});exports.CustomTabs=mo;exports.EmptyState=ka;exports.Stepper=yo;exports.SummaryDetailsCard=wa;