ui-mathilde-web 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/images/file.svg +9 -0
- package/dist/assets/images/fileSVG.svg +17 -0
- package/dist/style.css +1 -1
- package/dist/ui-mathilde-web.d.ts +11 -3
- package/dist/ui-mathilde-web.js +1017 -809
- package/dist/ui-mathilde-web.umd.cjs +9 -9
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(re,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],p):(re=typeof globalThis<"u"?globalThis:re||self,p(re["ui-mathilde-web"]={},re.jsxRuntime,re.React,re.ReactDOM))})(this,function(re,p,k,Va){"use strict";var PC=Object.defineProperty;var AC=(re,p,k)=>p in re?PC(re,p,{enumerable:!0,configurable:!0,writable:!0,value:k}):re[p]=k;var ee=(re,p,k)=>AC(re,typeof p!="symbol"?p+"":p,k);var Li,rr,Wa;function Ra(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const C=Ra(k),Yg=Ra(Va),Qn={"mth-btn-default":"button-module__mth-btn-default__cda3k",mthBtnDefault:"button-module__mth-btn-default__cda3k","mth-btn-border":"button-module__mth-btn-border__-pdSm",mthBtnBorder:"button-module__mth-btn-border__-pdSm","mth-btn":"button-module__mth-btn__LkrNk",mthBtn:"button-module__mth-btn__LkrNk","mth-btn-full":"button-module__mth-btn-full__7QycJ",mthBtnFull:"button-module__mth-btn-full__7QycJ"},Ug=({txtBtn:t,typeButton:e,full:r,onClick:n,disabled:o,type:i})=>p.jsx("div",{className:`${r?Qn["mth-btn-full"]:""}`,children:p.jsx("button",{type:i,className:`${Qn["mth-btn"]} ${Qn[`mth-btn-${e}`]} ${r?Qn["mth-btn-full"]:""}`,onClick:n,disabled:o,children:t})}),eo={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY"},qg=({label:t,value:e,checked:r,onChange:n})=>p.jsxs("label",{className:eo["checkbox-container"],children:[p.jsx("input",{type:"checkbox",value:e,checked:r,onChange:n}),p.jsx("span",{className:eo.checkmark}),t&&p.jsx("span",{className:"ml-2",children:t})]}),Er=({src:t,alt:e,width:r,height:n,classIm:o})=>p.jsx("img",{className:o,src:t,alt:e,width:r,height:n}),Ya=k.forwardRef(({placeholder:t,label:e,error:r,type:n,classInclude:o,maxLength:i,onChange:s,...a},l)=>p.jsxs("div",{className:"mb-5",children:[e&&p.jsx("label",{className:" mb-1 block font-semibold",children:e}),p.jsx("input",{ref:l,type:n,placeholder:t,className:`w-full p-2 border ${o||""}`,maxLength:i,onChange:s,...a}),r&&p.jsx("p",{className:"text-red-500 text-sm mt-1",children:r})]}));Ya.displayName="InputForm";var Ua={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},qa=k.createContext&&k.createContext(Ua),Kg=["attr","size","title"];function Gg(t,e){if(t==null)return{};var r=Xg(t,e),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Xg(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,i;for(i=0;i<n.length;i++)o=n[i],!(e.indexOf(o)>=0)&&(r[o]=t[o]);return r}function to(){return to=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},to.apply(this,arguments)}function Ka(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function ro(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ka(Object(r),!0).forEach(function(n){Zg(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ka(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Zg(t,e,r){return e=Jg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jg(t){var e=Qg(t,"string");return typeof e=="symbol"?e:String(e)}function Qg(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ga(t){return t&&t.map((e,r)=>k.createElement(e.tag,ro({key:r},e.attr),Ga(e.child)))}function pe(t){return e=>k.createElement(ep,to({attr:ro({},t.attr)},e),Ga(t.child))}function ep(t){var e=r=>{var{attr:n,size:o,title:i}=t,s=Gg(t,Kg),a=o||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),k.createElement("svg",to({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:l,style:ro(ro({color:t.color||r.color},r.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&k.createElement("title",null,i),t.children)};return qa!==void 0?k.createElement(qa.Consumer,null,r=>e(r)):e(Ua)}function tp(t){return pe({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(t)}function rp(t){return pe({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(t)}function np(t){return pe({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(t)}function op(t){return pe({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},child:[]}]})(t)}function ip(t){return pe({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},child:[]}]})(t)}function sp(t){return pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM128 120c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm288-136v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12z"},child:[]}]})(t)}function ap(t){return pe({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"},child:[]}]})(t)}const lp={"mth-password":"passwordInput-module__mth-password__R6DoN"},zi=({placeholder:t,onChange:e,value:r,...n})=>{const[o,i]=k.useState(!1),s=()=>{i(!o)};return p.jsx("div",{className:"mb-5",children:p.jsxs("div",{className:"w-full relative inline-block",children:[p.jsx("input",{type:o?"text":"password",value:r,className:"w-full pr-10 p-2 border",onChange:e,placeholder:t,...n}),p.jsx("button",{type:"button",onClick:s,className:lp["mth-password"],children:o?p.jsx(op,{}):p.jsx(ip,{})})]})})},Xa={"progress-check":"progressBar-module__progress-check__TVlHq","progress-no-check":"progressBar-module__progress-no-check__YeVq1"},Za=({start:t,end:e,current:r})=>{const n=(r-t)/(e-t)*100;return p.jsxs("div",{className:"relative w-full h-4 bg-gray-200 rounded-full overflow-hidden",children:[p.jsx("div",{className:`absolute top-0 left-0 h-full rounded-full ${n<50?Xa["progress-no-check"]:Xa["progress-check"]}`,style:{width:`${Math.min(n,100)}%`}}),p.jsx("div",{className:"absolute inset-0 flex items-center px-2",children:p.jsxs("span",{className:"text-sm font-medium text-gray-900 z-10",children:[r.toFixed(2),"%"]})})]})},Ja=k.forwardRef(({options:t,label:e,error:r,value:n,onChange:o,...i},s)=>p.jsxs("div",{className:"mb-5",children:[e&&p.jsx("label",{className:"block mb-1 font-semibold",children:e}),p.jsxs("select",{ref:s,className:"w-full p-2 border rounded",value:n,onChange:o,...i,children:[p.jsx("option",{disabled:!0,value:"",children:"Seleccione una opción"}),t==null?void 0:t.map(a=>p.jsx("option",{value:a.value,children:a.label},a.value))]}),r&&p.jsx("p",{className:"text-red-500 text-sm mt-1",children:r})]}));Ja.displayName="SelectForm";const no=()=>{const{protocol:t,host:e}=window.location;return`${t}//${e}/`},cp=no(),dp=({logo:t,number:e,title:r,start:n,end:o,current:i})=>{const s=a=>new Intl.NumberFormat("es-ES",{maximumFractionDigits:2,minimumFractionDigits:0}).format(a);return p.jsxs("div",{className:"flex flex-col border px-3.5 py-7 bg-white",children:[p.jsx("div",{className:"flex justify-end",children:p.jsx(Er,{src:`${cp}/public/assets/images/${t}.svg`,alt:"Icon",width:30,height:30})}),p.jsx("h2",{className:"my-3 font-bold",children:r}),p.jsx("small",{className:"text-3xl",children:s(e)}),p.jsx("div",{className:"mt-2 w-full",children:p.jsx(Za,{start:n,end:o,current:i})})]})};/*!
|
|
1
|
+
(function(re,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],p):(re=typeof globalThis<"u"?globalThis:re||self,p(re["ui-mathilde-web"]={},re.jsxRuntime,re.React,re.ReactDOM))})(this,function(re,p,k,Va){"use strict";var AC=Object.defineProperty;var DC=(re,p,k)=>p in re?AC(re,p,{enumerable:!0,configurable:!0,writable:!0,value:k}):re[p]=k;var ee=(re,p,k)=>DC(re,typeof p!="symbol"?p+"":p,k);var Li,rr,Wa;function Ra(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const C=Ra(k),Yg=Ra(Va),Qn={"mth-btn-default":"button-module__mth-btn-default__cda3k",mthBtnDefault:"button-module__mth-btn-default__cda3k","mth-btn-border":"button-module__mth-btn-border__-pdSm",mthBtnBorder:"button-module__mth-btn-border__-pdSm","mth-btn":"button-module__mth-btn__LkrNk",mthBtn:"button-module__mth-btn__LkrNk","mth-btn-full":"button-module__mth-btn-full__7QycJ",mthBtnFull:"button-module__mth-btn-full__7QycJ"},Ug=({txtBtn:t,typeButton:e,full:r,onClick:n,disabled:o,type:i,leftIcon:s,rightIcon:a,iconSize:l=20})=>p.jsx("div",{className:`${r?Qn["mth-btn-full"]:""}`,children:p.jsxs("button",{type:i,className:`${Qn["mth-btn"]} ${Qn[`mth-btn-${e}`]} ${r?Qn["mth-btn-full"]:""} flex items-center justify-center gap-2`,onClick:n,disabled:o,children:[s&&p.jsx(s,{size:l}),t,a&&p.jsx(a,{size:l})]})}),eo={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY"},qg=({label:t,value:e,checked:r,onChange:n})=>p.jsxs("label",{className:eo["checkbox-container"],children:[p.jsx("input",{type:"checkbox",value:e,checked:r,onChange:n}),p.jsx("span",{className:eo.checkmark}),t&&p.jsx("span",{className:"ml-2",children:t})]}),Er=({src:t,alt:e,width:r,height:n,classIm:o})=>p.jsx("img",{className:o,src:t,alt:e,width:r,height:n}),Ya=k.forwardRef(({placeholder:t,label:e,error:r,type:n,classInclude:o,maxLength:i,onChange:s,...a},l)=>p.jsxs("div",{className:"mb-5",children:[e&&p.jsx("label",{className:" mb-1 block font-semibold",children:e}),p.jsx("input",{ref:l,type:n,placeholder:t,className:`w-full border p-2 ${o||""}`,maxLength:i,onChange:s,...a}),r&&p.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));Ya.displayName="InputForm";var Ua={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},qa=k.createContext&&k.createContext(Ua),Kg=["attr","size","title"];function Gg(t,e){if(t==null)return{};var r=Xg(t,e),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Xg(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,i;for(i=0;i<n.length;i++)o=n[i],!(e.indexOf(o)>=0)&&(r[o]=t[o]);return r}function to(){return to=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},to.apply(this,arguments)}function Ka(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function ro(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ka(Object(r),!0).forEach(function(n){Zg(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ka(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Zg(t,e,r){return e=Jg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jg(t){var e=Qg(t,"string");return typeof e=="symbol"?e:String(e)}function Qg(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ga(t){return t&&t.map((e,r)=>k.createElement(e.tag,ro({key:r},e.attr),Ga(e.child)))}function pe(t){return e=>k.createElement(ep,to({attr:ro({},t.attr)},e),Ga(t.child))}function ep(t){var e=r=>{var{attr:n,size:o,title:i}=t,s=Gg(t,Kg),a=o||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),k.createElement("svg",to({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:l,style:ro(ro({color:t.color||r.color},r.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&k.createElement("title",null,i),t.children)};return qa!==void 0?k.createElement(qa.Consumer,null,r=>e(r)):e(Ua)}function tp(t){return pe({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(t)}function rp(t){return pe({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(t)}function np(t){return pe({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(t)}function op(t){return pe({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},child:[]}]})(t)}function ip(t){return pe({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},child:[]}]})(t)}function sp(t){return pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM128 120c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm288-136v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12z"},child:[]}]})(t)}function ap(t){return pe({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"},child:[]}]})(t)}const lp={"mth-password":"passwordInput-module__mth-password__R6DoN"},zi=({placeholder:t,onChange:e,value:r,...n})=>{const[o,i]=k.useState(!1),s=()=>{i(!o)};return p.jsx("div",{className:"mb-5",children:p.jsxs("div",{className:"relative inline-block w-full",children:[p.jsx("input",{type:o?"text":"password",value:r,className:"w-full border p-2 pr-10",onChange:e,placeholder:t,...n}),p.jsx("button",{type:"button",onClick:s,className:lp["mth-password"],children:o?p.jsx(op,{}):p.jsx(ip,{})})]})})},Xa={"progress-check":"progressBar-module__progress-check__TVlHq","progress-no-check":"progressBar-module__progress-no-check__YeVq1"},Za=({start:t,end:e,current:r})=>{const n=(r-t)/(e-t)*100;return p.jsxs("div",{className:"relative h-4 w-full overflow-hidden rounded-full bg-gray-200",children:[p.jsx("div",{className:`absolute left-0 top-0 h-full rounded-full ${n<50?Xa["progress-no-check"]:Xa["progress-check"]}`,style:{width:`${Math.min(n,100)}%`}}),p.jsx("div",{className:"absolute inset-0 flex items-center px-2",children:p.jsxs("span",{className:"z-10 text-sm font-medium text-gray-900",children:[r.toFixed(2),"%"]})})]})},Ja=k.forwardRef(({options:t,label:e,error:r,value:n,onChange:o,...i},s)=>p.jsxs("div",{className:"mb-5",children:[e&&p.jsx("label",{className:"mb-1 block font-semibold",children:e}),p.jsxs("select",{ref:s,className:"w-full rounded border p-2",value:n,onChange:o,...i,children:[p.jsx("option",{disabled:!0,value:"",children:"Seleccione una opción"}),t==null?void 0:t.map(a=>p.jsx("option",{value:a.value,children:a.label},a.value))]}),r&&p.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));Ja.displayName="SelectForm";const no=()=>{const{protocol:t,host:e}=window.location;return`${t}//${e}/`},cp=no(),dp=({logo:t,number:e,title:r,start:n,end:o,current:i})=>{const s=a=>new Intl.NumberFormat("es-ES",{maximumFractionDigits:2,minimumFractionDigits:0}).format(a);return p.jsxs("div",{className:"flex flex-col border bg-white px-3.5 py-7",children:[p.jsx("div",{className:"flex justify-end",children:p.jsx(Er,{src:`${cp}/public/assets/images/${t}.svg`,alt:"Icon",width:30,height:30})}),p.jsx("h2",{className:"my-3 font-bold",children:r}),p.jsx("small",{className:"text-3xl",children:s(e)}),p.jsx("div",{className:"mt-2 w-full",children:p.jsx(Za,{start:n,end:o,current:i})})]})};/*!
|
|
2
2
|
* @kurkle/color v0.3.4
|
|
3
3
|
* https://github.com/kurkle/color#readme
|
|
4
4
|
* (c) 2024 Jukka Kurkela
|
|
@@ -477,7 +477,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
477
477
|
|
|
478
478
|
`,`;
|
|
479
479
|
}
|
|
480
|
-
`])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},ae.button,function(t){var e=t.level,r=t.disabled,n=t.active,o=t.collapsed,i=t.rtl;return hu({level:e,disabled:r,active:n,collapsed:o,rtl:i})},function(t){var e=t.buttonStyles;return e}),Mx=function(t,e){var r,n=t.children,o=t.icon,i=t.className,s=t.prefix,a=t.suffix,l=t.active,c=l===void 0?!1:l,d=t.disabled,u=d===void 0?!1:d,f=t.component,h=t.rootStyles,g=fr(t,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),m=k.useContext(Go),b=k.useContext(Ko),v=b.collapsed,y=b.rtl,_=b.transitionDuration,x=Ns().menuItemStyles,w=function(T){if(x){var M={level:m,disabled:u,active:c,isSubmenu:!1},N=x.root,E=x.button,I=x.label,A=x.icon,D=x.prefix,O=x.suffix;switch(T){case"root":return typeof N=="function"?N(M):N;case"button":return typeof E=="function"?E(M):E;case"label":return typeof I=="function"?I(M):I;case"icon":return typeof A=="function"?A(M):A;case"prefix":return typeof D=="function"?D(M):D;case"suffix":return typeof O=="function"?O(M):O;default:return}}},S=(r={},r[ae.active]=c,r[ae.disabled]=u,r);return k.createElement(Nx,{ref:e,className:Ne(ae.menuItemRoot,S,i),menuItemStyles:w("root"),level:m,collapsed:v,rtl:y,disabled:u,active:c,buttonStyles:w("button"),rootStyles:h},k.createElement(gu,tt({className:Ne(ae.button,S),"data-testid":"".concat(ae.button,"-test-id"),component:f,tabIndex:0},g),o&&k.createElement(Bd,{rtl:y,className:Ne(ae.icon,S),rootStyles:w("icon")},o),s&&k.createElement(jd,{collapsed:v,transitionDuration:_,firstLevel:m===0,className:Ne(ae.prefix,S),rtl:y,rootStyles:w("prefix")},s),k.createElement(Fd,{className:Ne(ae.label,S),rootStyles:w("label")},n),a&&k.createElement(Wd,{collapsed:v,transitionDuration:_,firstLevel:m===0,className:Ne(ae.suffix,S),rootStyles:w("suffix")},a)))},$r=k.forwardRef(Mx),mu;const Px=no(),ti=k.forwardRef((t,e)=>{const{image:r,icon:n,title:o,description:i}=t;return p.jsxs("div",{className
|
|
480
|
+
`])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},ae.button,function(t){var e=t.level,r=t.disabled,n=t.active,o=t.collapsed,i=t.rtl;return hu({level:e,disabled:r,active:n,collapsed:o,rtl:i})},function(t){var e=t.buttonStyles;return e}),Mx=function(t,e){var r,n=t.children,o=t.icon,i=t.className,s=t.prefix,a=t.suffix,l=t.active,c=l===void 0?!1:l,d=t.disabled,u=d===void 0?!1:d,f=t.component,h=t.rootStyles,g=fr(t,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),m=k.useContext(Go),b=k.useContext(Ko),v=b.collapsed,y=b.rtl,_=b.transitionDuration,x=Ns().menuItemStyles,w=function(T){if(x){var M={level:m,disabled:u,active:c,isSubmenu:!1},N=x.root,E=x.button,I=x.label,A=x.icon,D=x.prefix,O=x.suffix;switch(T){case"root":return typeof N=="function"?N(M):N;case"button":return typeof E=="function"?E(M):E;case"label":return typeof I=="function"?I(M):I;case"icon":return typeof A=="function"?A(M):A;case"prefix":return typeof D=="function"?D(M):D;case"suffix":return typeof O=="function"?O(M):O;default:return}}},S=(r={},r[ae.active]=c,r[ae.disabled]=u,r);return k.createElement(Nx,{ref:e,className:Ne(ae.menuItemRoot,S,i),menuItemStyles:w("root"),level:m,collapsed:v,rtl:y,disabled:u,active:c,buttonStyles:w("button"),rootStyles:h},k.createElement(gu,tt({className:Ne(ae.button,S),"data-testid":"".concat(ae.button,"-test-id"),component:f,tabIndex:0},g),o&&k.createElement(Bd,{rtl:y,className:Ne(ae.icon,S),rootStyles:w("icon")},o),s&&k.createElement(jd,{collapsed:v,transitionDuration:_,firstLevel:m===0,className:Ne(ae.prefix,S),rtl:y,rootStyles:w("prefix")},s),k.createElement(Fd,{className:Ne(ae.label,S),rootStyles:w("label")},n),a&&k.createElement(Wd,{collapsed:v,transitionDuration:_,firstLevel:m===0,className:Ne(ae.suffix,S),rootStyles:w("suffix")},a)))},$r=k.forwardRef(Mx),mu;const Px={cardFormat:"card-module__cardFormat__LNrgl"},Ax=no(),ti=k.forwardRef((t,e)=>{const{image:r,icon:n,title:o,description:i}=t;return p.jsxs("div",{className:`${Px.cardFormat} border px-3.5 py-7`,ref:e,children:[(r==null?void 0:r.type)==="image"?p.jsx(Er,{classIm:"mx-auto",src:`${Ax}public/assets/images/${r.name}.svg`,alt:r.name,width:74,height:74}):n?p.jsx("div",{className:"flex justify-center",children:p.jsx(n,{size:74})}):null,p.jsx("h3",{className:"my-3 font-bold",children:o}),p.jsx("p",{children:i})]})});ti.displayName="CardFormat";function Dx(t){return pe({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M15.528 2.973a.75.75 0 0 1 .472.696v8.662a.75.75 0 0 1-.472.696l-7.25 2.9a.75.75 0 0 1-.557 0l-7.25-2.9A.75.75 0 0 1 0 12.331V3.669a.75.75 0 0 1 .471-.696L7.443.184l.01-.003.268-.108a.75.75 0 0 1 .558 0l.269.108.01.003 6.97 2.789ZM10.404 2 4.25 4.461 1.846 3.5 1 3.839v.4l6.5 2.6v7.922l.5.2.5-.2V6.84l6.5-2.6v-.4l-.846-.339L8 5.961 5.596 5l6.154-2.461L10.404 2Z"},child:[]}]})(t)}function Ix(t){return pe({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M12 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM5 4h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1zm-.5 2.5A.5.5 0 0 1 5 6h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zM5 8h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1zm0 2h3a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1z"},child:[]}]})(t)}function Lx(t){return pe({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M863.1 518.5H505.5V160.9c0-4.4-3.6-8-8-8h-26a398.57 398.57 0 0 0-282.5 117 397.47 397.47 0 0 0-85.6 127C82.6 446.2 72 498.5 72 552.5S82.6 658.7 103.4 708c20.1 47.5 48.9 90.3 85.6 127 36.7 36.7 79.4 65.5 127 85.6a396.64 396.64 0 0 0 155.6 31.5 398.57 398.57 0 0 0 282.5-117c36.7-36.7 65.5-79.4 85.6-127a396.64 396.64 0 0 0 31.5-155.6v-26c-.1-4.4-3.7-8-8.1-8zM951 463l-2.6-28.2c-8.5-92-49.3-178.8-115.1-244.3A398.5 398.5 0 0 0 588.4 75.6L560.1 73c-4.7-.4-8.7 3.2-8.7 7.9v383.7c0 4.4 3.6 8 8 8l383.6-1c4.7-.1 8.4-4 8-8.6z"},child:[]}]})(t)}function Fx(t){return pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 176a80 80 0 1 0 80 80 80.24 80.24 0 0 0-80-80zm172.72 80a165.53 165.53 0 0 1-1.64 22.34l48.69 38.12a11.59 11.59 0 0 1 2.63 14.78l-46.06 79.52a11.64 11.64 0 0 1-14.14 4.93l-57.25-23a176.56 176.56 0 0 1-38.82 22.67l-8.56 60.78a11.93 11.93 0 0 1-11.51 9.86h-92.12a12 12 0 0 1-11.51-9.53l-8.56-60.78A169.3 169.3 0 0 1 151.05 393L93.8 416a11.64 11.64 0 0 1-14.14-4.92L33.6 331.57a11.59 11.59 0 0 1 2.63-14.78l48.69-38.12A174.58 174.58 0 0 1 83.28 256a165.53 165.53 0 0 1 1.64-22.34l-48.69-38.12a11.59 11.59 0 0 1-2.63-14.78l46.06-79.52a11.64 11.64 0 0 1 14.14-4.93l57.25 23a176.56 176.56 0 0 1 38.82-22.67l8.56-60.78A11.93 11.93 0 0 1 209.94 26h92.12a12 12 0 0 1 11.51 9.53l8.56 60.78A169.3 169.3 0 0 1 361 119l57.2-23a11.64 11.64 0 0 1 14.14 4.92l46.06 79.52a11.59 11.59 0 0 1-2.63 14.78l-48.69 38.12a174.58 174.58 0 0 1 1.64 22.66z"},child:[]}]})(t)}function bu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var $s={};Object.defineProperty($s,"__esModule",{value:!0}),$s.parse=Vx,$s.serialize=Rx;const zx=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,Bx=/^[\u0021-\u003A\u003C-\u007E]*$/,$x=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,jx=/^[\u0020-\u003A\u003D-\u007E]*$/,Hx=Object.prototype.toString,Wx=(()=>{const t=function(){};return t.prototype=Object.create(null),t})();function Vx(t,e){const r=new Wx,n=t.length;if(n<2)return r;const o=(e==null?void 0:e.decode)||Yx;let i=0;do{const s=t.indexOf("=",i);if(s===-1)break;const a=t.indexOf(";",i),l=a===-1?n:a;if(s>l){i=t.lastIndexOf(";",s-1)+1;continue}const c=yu(t,i,s),d=vu(t,s,c),u=t.slice(c,d);if(r[u]===void 0){let f=yu(t,s+1,l),h=vu(t,l,f);const g=o(t.slice(f,h));r[u]=g}i=l+1}while(i<n);return r}function yu(t,e,r){do{const n=t.charCodeAt(e);if(n!==32&&n!==9)return e}while(++e<r);return r}function vu(t,e,r){for(;e>r;){const n=t.charCodeAt(--e);if(n!==32&&n!==9)return e+1}return r}function Rx(t,e,r){const n=(r==null?void 0:r.encode)||encodeURIComponent;if(!zx.test(t))throw new TypeError(`argument name is invalid: ${t}`);const o=n(e);if(!Bx.test(o))throw new TypeError(`argument val is invalid: ${e}`);let i=t+"="+o;if(!r)return i;if(r.maxAge!==void 0){if(!Number.isInteger(r.maxAge))throw new TypeError(`option maxAge is invalid: ${r.maxAge}`);i+="; Max-Age="+r.maxAge}if(r.domain){if(!$x.test(r.domain))throw new TypeError(`option domain is invalid: ${r.domain}`);i+="; Domain="+r.domain}if(r.path){if(!jx.test(r.path))throw new TypeError(`option path is invalid: ${r.path}`);i+="; Path="+r.path}if(r.expires){if(!Ux(r.expires)||!Number.isFinite(r.expires.valueOf()))throw new TypeError(`option expires is invalid: ${r.expires}`);i+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.partitioned&&(i+="; Partitioned"),r.priority)switch(typeof r.priority=="string"?r.priority.toLowerCase():void 0){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${r.priority}`)}if(r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:case"strict":i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"none":i+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${r.sameSite}`)}return i}function Yx(t){if(t.indexOf("%")===-1)return t;try{return decodeURIComponent(t)}catch{return t}}function Ux(t){return Hx.call(t)==="[object Date]"}/**
|
|
481
481
|
* react-router v7.4.0
|
|
482
482
|
*
|
|
483
483
|
* Copyright (c) Remix Software Inc.
|
|
@@ -486,18 +486,18 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
486
486
|
* LICENSE.md file in the root directory of this source tree.
|
|
487
487
|
*
|
|
488
488
|
* @license MIT
|
|
489
|
-
*/function Be(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Ft(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function js({pathname:t="/",search:e="",hash:r=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Hs(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substring(r),t=t.substring(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substring(n),t=t.substring(0,n)),t&&(e.pathname=t)}return e}function xu(t,e,r="/"){return
|
|
489
|
+
*/function Be(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Ft(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function js({pathname:t="/",search:e="",hash:r=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Hs(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substring(r),t=t.substring(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substring(n),t=t.substring(0,n)),t&&(e.pathname=t)}return e}function xu(t,e,r="/"){return qx(t,e,r,!1)}function qx(t,e,r,n){let o=typeof e=="string"?Hs(e):e,i=Xt(o.pathname||"/",r);if(i==null)return null;let s=wu(t);Kx(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let c=iw(i);a=nw(s[l],c,n)}return a}function wu(t,e=[],r=[],n=""){let o=(i,s,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(Be(l.relativePath.startsWith(n),`Absolute route path "${l.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(n.length));let c=zt([n,l.relativePath]),d=r.concat(l);i.children&&i.children.length>0&&(Be(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),wu(i.children,e,d,c)),!(i.path==null&&!i.index)&&e.push({path:c,score:tw(c,i.index),routesMeta:d})};return t.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of ku(i.path))o(i,s,l)}),e}function ku(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let s=ku(n.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function Kx(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:rw(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var Gx=/^:[\w-]+$/,Xx=3,Zx=2,Jx=1,Qx=10,ew=-2,Cu=t=>t==="*";function tw(t,e){let r=t.split("/"),n=r.length;return r.some(Cu)&&(n+=ew),e&&(n+=Zx),r.filter(o=>!Cu(o)).reduce((o,i)=>o+(Gx.test(i)?Xx:i===""?Jx:Qx),n)}function rw(t,e){return t.length===e.length&&t.slice(0,-1).every((n,o)=>n===e[o])?t[t.length-1]-e[e.length-1]:0}function nw(t,e,r=!1){let{routesMeta:n}=t,o={},i="/",s=[];for(let a=0;a<n.length;++a){let l=n[a],c=a===n.length-1,d=i==="/"?e:e.slice(i.length)||"/",u=ri({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),f=l.route;if(!u&&c&&r&&!n[n.length-1].route.index&&(u=ri({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!u)return null;Object.assign(o,u.params),s.push({params:o,pathname:zt([i,u.pathname]),pathnameBase:cw(zt([i,u.pathnameBase])),route:f}),u.pathnameBase!=="/"&&(i=zt([i,u.pathnameBase]))}return s}function ri(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=ow(t.path,t.caseSensitive,t.end),o=e.match(r);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:n.reduce((c,{paramName:d,isOptional:u},f)=>{if(d==="*"){let g=a[f]||"";s=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const h=a[f];return u&&!h?c[d]=void 0:c[d]=(h||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:t}}function ow(t,e=!1,r=!0){Ft(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let n=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),n]}function iw(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Ft(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function Xt(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function sw(t,e="/"){let{pathname:r,search:n="",hash:o=""}=typeof t=="string"?Hs(t):t;return{pathname:r?r.startsWith("/")?r:aw(r,e):e,search:dw(n),hash:uw(o)}}function aw(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Ws(t,e,r,n){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function lw(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function _u(t){let e=lw(t);return e.map((r,n)=>n===e.length-1?r.pathname:r.pathnameBase)}function Su(t,e,r,n=!1){let o;typeof t=="string"?o=Hs(t):(o={...t},Be(!o.pathname||!o.pathname.includes("?"),Ws("?","pathname","search",o)),Be(!o.pathname||!o.pathname.includes("#"),Ws("#","pathname","hash",o)),Be(!o.search||!o.search.includes("#"),Ws("#","search","hash",o)));let i=t===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=r;else{let u=e.length-1;if(!n&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),u-=1;o.pathname=f.join("/")}a=u>=0?e[u]:"/"}let l=sw(o,a),c=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}var zt=t=>t.join("/").replace(/\/\/+/g,"/"),cw=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),dw=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,uw=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function fw(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var Eu=["POST","PUT","PATCH","DELETE"];new Set(Eu);var hw=["GET",...Eu];new Set(hw);var jr=C.createContext(null);jr.displayName="DataRouter";var ni=C.createContext(null);ni.displayName="DataRouterState";var Ou=C.createContext({isTransitioning:!1});Ou.displayName="ViewTransition";var gw=C.createContext(new Map);gw.displayName="Fetchers";var pw=C.createContext(null);pw.displayName="Await";var Bt=C.createContext(null);Bt.displayName="Navigation";var Vs=C.createContext(null);Vs.displayName="Location";var $t=C.createContext({outlet:null,matches:[],isDataRoute:!1});$t.displayName="Route";var Rs=C.createContext(null);Rs.displayName="RouteError";function mw(t,{relative:e}={}){Be(oi(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=C.useContext(Bt),{hash:o,pathname:i,search:s}=Bn(t,{relative:e}),a=i;return r!=="/"&&(a=i==="/"?r:zt([r,i])),n.createHref({pathname:a,search:s,hash:o})}function oi(){return C.useContext(Vs)!=null}function br(){return Be(oi(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(Vs).location}var Tu="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nu(t){C.useContext(Bt).static||C.useLayoutEffect(t)}function bw(){let{isDataRoute:t}=C.useContext($t);return t?Mw():yw()}function yw(){Be(oi(),"useNavigate() may be used only in the context of a <Router> component.");let t=C.useContext(jr),{basename:e,navigator:r}=C.useContext(Bt),{matches:n}=C.useContext($t),{pathname:o}=br(),i=JSON.stringify(_u(n)),s=C.useRef(!1);return Nu(()=>{s.current=!0}),C.useCallback((l,c={})=>{if(Ft(s.current,Tu),!s.current)return;if(typeof l=="number"){r.go(l);return}let d=Su(l,JSON.parse(i),o,c.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:zt([e,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[e,r,i,o,t])}C.createContext(null);function Bn(t,{relative:e}={}){let{matches:r}=C.useContext($t),{pathname:n}=br(),o=JSON.stringify(_u(r));return C.useMemo(()=>Su(t,JSON.parse(o),n,e==="path"),[t,o,n,e])}function vw(t,e,r,n){Be(oi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o,static:i}=C.useContext(Bt),{matches:s}=C.useContext($t),a=s[s.length-1],l=a?a.params:{},c=a?a.pathname:"/",d=a?a.pathnameBase:"/",u=a&&a.route;{let y=u&&u.path||"";Pu(c,!u||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
490
490
|
|
|
491
|
-
Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let f=br(),h;h=f;let g=h.pathname||"/",m=g;if(d!=="/"){let y=d.replace(/^\//,"").split("/");m="/"+g.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=!i&&r&&r.matches&&r.matches.length>0?r.matches:xu(t,{pathname:m});return Ft(u||b!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Ft(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),Cw(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:zt([d,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?d:zt([d,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),s,r,n)}function vw(){let t=Tw(),e=uw(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:i},"ErrorBoundary")," or"," ",C.createElement("code",{style:i},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},e),r?C.createElement("pre",{style:o},r):null,s)}var xw=C.createElement(vw,null),ww=class extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return this.state.error!==void 0?C.createElement($t.Provider,{value:this.props.routeContext},C.createElement(Rs.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function kw({routeContext:t,match:e,children:r}){let n=C.useContext(jr);return n&&n.static&&n.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=e.route.id),C.createElement($t.Provider,{value:t},r)}function Cw(t,e=[],r=null,n=null){if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,i=r==null?void 0:r.errors;if(i!=null){let l=o.findIndex(c=>c.route.id&&(i==null?void 0:i[c.route.id])!==void 0);Be(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,l+1))}let s=!1,a=-1;if(r)for(let l=0;l<o.length;l++){let c=o[l];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(a=l),c.route.id){let{loaderData:d,errors:u}=r,f=c.route.loader&&!d.hasOwnProperty(c.route.id)&&(!u||u[c.route.id]===void 0);if(c.route.lazy||f){s=!0,a>=0?o=o.slice(0,a+1):o=[o[0]];break}}}return o.reduceRight((l,c,d)=>{let u,f=!1,h=null,g=null;r&&(u=i&&c.route.id?i[c.route.id]:void 0,h=c.route.errorElement||xw,s&&(a<0&&d===0?(Pu("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,g=null):a===d&&(f=!0,g=c.route.hydrateFallbackElement||null)));let m=e.concat(o.slice(0,d+1)),b=()=>{let v;return u?v=h:f?v=g:c.route.Component?v=C.createElement(c.route.Component,null):c.route.element?v=c.route.element:v=l,C.createElement(kw,{match:c,routeContext:{outlet:l,matches:m,isDataRoute:r!=null},children:v})};return r&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?C.createElement(ww,{location:r.location,revalidation:r.revalidation,component:h,error:u,children:b(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):b()},null)}function Ys(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _w(t){let e=C.useContext(jr);return Be(e,Ys(t)),e}function Sw(t){let e=C.useContext(ni);return Be(e,Ys(t)),e}function Ew(t){let e=C.useContext($t);return Be(e,Ys(t)),e}function Us(t){let e=Ew(t),r=e.matches[e.matches.length-1];return Be(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function Ow(){return Us("useRouteId")}function Tw(){var n;let t=C.useContext(Rs),e=Sw("useRouteError"),r=Us("useRouteError");return t!==void 0?t:(n=e.errors)==null?void 0:n[r]}function Nw(){let{router:t}=_w("useNavigate"),e=Us("useNavigate"),r=C.useRef(!1);return Nu(()=>{r.current=!0}),C.useCallback(async(o,i={})=>{Ft(r.current,Tu),r.current&&(typeof o=="number"?t.navigate(o):await t.navigate(o,{fromRouteId:e,...i}))},[t,e])}var Mu={};function Pu(t,e,r){!e&&!Mu[t]&&(Mu[t]=!0,Ft(!1,r))}C.memo(Mw);function Mw({routes:t,future:e,state:r}){return yw(t,void 0,r,e)}var ii="get",si="application/x-www-form-urlencoded";function ai(t){return t!=null&&typeof t.tagName=="string"}function Pw(t){return ai(t)&&t.tagName.toLowerCase()==="button"}function Aw(t){return ai(t)&&t.tagName.toLowerCase()==="form"}function Dw(t){return ai(t)&&t.tagName.toLowerCase()==="input"}function Iw(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Lw(t,e){return t.button===0&&(!e||e==="_self")&&!Iw(t)}var li=null;function Fw(){if(li===null)try{new FormData(document.createElement("form"),0),li=!1}catch{li=!0}return li}var zw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qs(t){return t!=null&&!zw.has(t)?(Ft(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${si}"`),null):t}function Bw(t,e){let r,n,o,i,s;if(Aw(t)){let a=t.getAttribute("action");n=a?Xt(a,e):null,r=t.getAttribute("method")||ii,o=qs(t.getAttribute("enctype"))||si,i=new FormData(t)}else if(Pw(t)||Dw(t)&&(t.type==="submit"||t.type==="image")){let a=t.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||a.getAttribute("action");if(n=l?Xt(l,e):null,r=t.getAttribute("formmethod")||a.getAttribute("method")||ii,o=qs(t.getAttribute("formenctype"))||qs(a.getAttribute("enctype"))||si,i=new FormData(a,t),!Fw()){let{name:c,type:d,value:u}=t;if(d==="image"){let f=c?`${c}.`:"";i.append(`${f}x`,"0"),i.append(`${f}y`,"0")}else c&&i.append(c,u)}}else{if(ai(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ii,n=null,o=si,s=t}return i&&o==="text/plain"&&(s=i,i=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:i,body:s}}function Ks(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}async function $w(t,e){if(t.id in e)return e[t.id];try{let r=await import(t.module);return e[t.id]=r,r}catch(r){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function jw(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Hw(t,e,r){let n=await Promise.all(t.map(async o=>{let i=e.routes[o.route.id];if(i){let s=await $w(i,r);return s.links?s.links():[]}return[]}));return Yw(n.flat(1).filter(jw).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Au(t,e,r,n,o,i){let s=(l,c)=>r[c]?l.route.id!==r[c].route.id:!0,a=(l,c)=>{var d;return r[c].pathname!==l.pathname||((d=r[c].route.path)==null?void 0:d.endsWith("*"))&&r[c].params["*"]!==l.params["*"]};return i==="assets"?e.filter((l,c)=>s(l,c)||a(l,c)):i==="data"?e.filter((l,c)=>{var u;let d=n.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(s(l,c)||a(l,c))return!0;if(l.route.shouldRevalidate){let f=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((u=r[0])==null?void 0:u.params)||{},nextUrl:new URL(t,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function Ww(t,e,{includeHydrateFallback:r}={}){return Vw(t.map(n=>{let o=e.routes[n.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function Vw(t){return[...new Set(t)]}function Rw(t){let e={},r=Object.keys(t).sort();for(let n of r)e[n]=t[n];return e}function Yw(t,e){let r=new Set;return new Set(e),t.reduce((n,o)=>{let i=JSON.stringify(Rw(o));return r.has(i)||(r.add(i),n.push({key:i,link:o})),n},[])}function Uw(t,e){let r=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return r.pathname==="/"?r.pathname="_root.data":e&&Xt(r.pathname,e)==="/"?r.pathname=`${e.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Du(){let t=C.useContext(jr);return Ks(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function qw(){let t=C.useContext(ni);return Ks(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Gs=C.createContext(void 0);Gs.displayName="FrameworkContext";function Iu(){let t=C.useContext(Gs);return Ks(t,"You must render this element inside a <HydratedRouter> element"),t}function Kw(t,e){let r=C.useContext(Gs),[n,o]=C.useState(!1),[i,s]=C.useState(!1),{onFocus:a,onBlur:l,onMouseEnter:c,onMouseLeave:d,onTouchStart:u}=e,f=C.useRef(null);C.useEffect(()=>{if(t==="render"&&s(!0),t==="viewport"){let m=v=>{v.forEach(y=>{s(y.isIntersecting)})},b=new IntersectionObserver(m,{threshold:.5});return f.current&&b.observe(f.current),()=>{b.disconnect()}}},[t]),C.useEffect(()=>{if(n){let m=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(m)}}},[n]);let h=()=>{o(!0)},g=()=>{o(!1),s(!1)};return r?t!=="intent"?[i,f,{}]:[i,f,{onFocus:$n(a,h),onBlur:$n(l,g),onMouseEnter:$n(c,h),onMouseLeave:$n(d,g),onTouchStart:$n(u,h)}]:[!1,f,{}]}function $n(t,e){return r=>{t&&t(r),r.defaultPrevented||e(r)}}function Gw({page:t,...e}){let{router:r}=Du(),n=C.useMemo(()=>xu(r.routes,t,r.basename),[r.routes,t,r.basename]);return n?C.createElement(Zw,{page:t,matches:n,...e}):null}function Xw(t){let{manifest:e,routeModules:r}=Iu(),[n,o]=C.useState([]);return C.useEffect(()=>{let i=!1;return Hw(t,e,r).then(s=>{i||o(s)}),()=>{i=!0}},[t,e,r]),n}function Zw({page:t,matches:e,...r}){let n=br(),{manifest:o,routeModules:i}=Iu(),{basename:s}=Du(),{loaderData:a,matches:l}=qw(),c=C.useMemo(()=>Au(t,e,l,o,n,"data"),[t,e,l,o,n]),d=C.useMemo(()=>Au(t,e,l,o,n,"assets"),[t,e,l,o,n]),u=C.useMemo(()=>{if(t===n.pathname+n.search+n.hash)return[];let g=new Set,m=!1;if(e.forEach(v=>{var _;let y=o.routes[v.route.id];!y||!y.hasLoader||(!c.some(x=>x.route.id===v.route.id)&&v.route.id in a&&((_=i[v.route.id])!=null&&_.shouldRevalidate)||y.hasClientLoader?m=!0:g.add(v.route.id))}),g.size===0)return[];let b=Uw(t,s);return m&&g.size>0&&b.searchParams.set("_routes",e.filter(v=>g.has(v.route.id)).map(v=>v.route.id).join(",")),[b.pathname+b.search]},[s,a,n,o,c,e,t,i]),f=C.useMemo(()=>Ww(d,o),[d,o]),h=Xw(d);return C.createElement(C.Fragment,null,u.map(g=>C.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...r})),f.map(g=>C.createElement("link",{key:g,rel:"modulepreload",href:g,...r})),h.map(({key:g,link:m})=>C.createElement("link",{key:g,...m})))}function Jw(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}var Lu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Lu&&(window.__reactRouterVersion="7.4.0")}catch{}var Fu=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hr=C.forwardRef(function({onClick:e,discover:r="render",prefetch:n="none",relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:d,viewTransition:u,...f},h){let{basename:g}=C.useContext(Bt),m=typeof c=="string"&&Fu.test(c),b,v=!1;if(typeof c=="string"&&m&&(b=c,Lu))try{let N=new URL(window.location.href),E=c.startsWith("//")?new URL(N.protocol+c):new URL(c),I=Xt(E.pathname,g);E.origin===N.origin&&I!=null?c=I+E.search+E.hash:v=!0}catch{Ft(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let y=pw(c,{relative:o}),[_,x,w]=Kw(n,f),S=r1(c,{replace:s,state:a,target:l,preventScrollReset:d,relative:o,viewTransition:u});function T(N){e&&e(N),N.defaultPrevented||S(N)}let M=C.createElement("a",{...f,...w,href:b||y,onClick:v||i?e:T,ref:Jw(h,x),target:l,"data-discover":!m&&r==="render"?"true":void 0});return _&&!m?C.createElement(C.Fragment,null,M,C.createElement(Gw,{page:y})):M});Hr.displayName="Link";var Qw=C.forwardRef(function({"aria-current":e="page",caseSensitive:r=!1,className:n="",end:o=!1,style:i,to:s,viewTransition:a,children:l,...c},d){let u=Bn(s,{relative:c.relative}),f=br(),h=C.useContext(ni),{navigator:g,basename:m}=C.useContext(Bt),b=h!=null&&a1(u)&&a===!0,v=g.encodeLocation?g.encodeLocation(u).pathname:u.pathname,y=f.pathname,_=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;r||(y=y.toLowerCase(),_=_?_.toLowerCase():null,v=v.toLowerCase()),_&&m&&(_=Xt(_,m)||_);const x=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let w=y===v||!o&&y.startsWith(v)&&y.charAt(x)==="/",S=_!=null&&(_===v||!o&&_.startsWith(v)&&_.charAt(v.length)==="/"),T={isActive:w,isPending:S,isTransitioning:b},M=w?e:void 0,N;typeof n=="function"?N=n(T):N=[n,w?"active":null,S?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let E=typeof i=="function"?i(T):i;return C.createElement(Hr,{...c,"aria-current":M,className:N,ref:d,style:E,to:s,viewTransition:a},typeof l=="function"?l(T):l)});Qw.displayName="NavLink";var e1=C.forwardRef(({discover:t="render",fetcherKey:e,navigate:r,reloadDocument:n,replace:o,state:i,method:s=ii,action:a,onSubmit:l,relative:c,preventScrollReset:d,viewTransition:u,...f},h)=>{let g=i1(),m=s1(a,{relative:c}),b=s.toLowerCase()==="get"?"get":"post",v=typeof a=="string"&&Fu.test(a),y=_=>{if(l&&l(_),_.defaultPrevented)return;_.preventDefault();let x=_.nativeEvent.submitter,w=(x==null?void 0:x.getAttribute("formmethod"))||s;g(x||_.currentTarget,{fetcherKey:e,method:w,navigate:r,replace:o,state:i,relative:c,preventScrollReset:d,viewTransition:u})};return C.createElement("form",{ref:h,method:b,action:m,onSubmit:n?l:y,...f,"data-discover":!v&&t==="render"?"true":void 0})});e1.displayName="Form";function t1(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zu(t){let e=C.useContext(jr);return Be(e,t1(t)),e}function r1(t,{target:e,replace:r,state:n,preventScrollReset:o,relative:i,viewTransition:s}={}){let a=mw(),l=br(),c=Bn(t,{relative:i});return C.useCallback(d=>{if(Lw(d,e)){d.preventDefault();let u=r!==void 0?r:js(l)===js(c);a(t,{replace:u,state:n,preventScrollReset:o,relative:i,viewTransition:s})}},[l,a,c,r,n,e,t,o,i,s])}var n1=0,o1=()=>`__${String(++n1)}__`;function i1(){let{router:t}=zu("useSubmit"),{basename:e}=C.useContext(Bt),r=Ow();return C.useCallback(async(n,o={})=>{let{action:i,method:s,encType:a,formData:l,body:c}=Bw(n,e);if(o.navigate===!1){let d=o.fetcherKey||o1();await t.fetch(d,r,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||s,formEncType:o.encType||a,flushSync:o.flushSync})}else await t.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||s,formEncType:o.encType||a,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[t,e,r])}function s1(t,{relative:e}={}){let{basename:r}=C.useContext(Bt),n=C.useContext($t);Be(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),i={...Bn(t||".",{relative:e})},s=br();if(t==null){i.search=s.search;let a=new URLSearchParams(i.search),l=a.getAll("index");if(l.some(d=>d==="")){a.delete("index"),l.filter(u=>u).forEach(u=>a.append("index",u));let d=a.toString();i.search=d?`?${d}`:""}}return(!t||t===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(i.pathname=i.pathname==="/"?r:zt([r,i.pathname])),js(i)}function a1(t,e={}){let r=C.useContext(Ou);Be(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=zu("useViewTransitionState"),o=Bn(t,{relative:e.relative});if(!r.isTransitioning)return!1;let i=Xt(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=Xt(r.nextLocation.pathname,n)||r.nextLocation.pathname;return ri(o.pathname,s)!=null||ri(o.pathname,i)!=null}new TextEncoder;const l1=no(),c1=()=>{const[t,e]=k.useState(!0),[r,n]=k.useState(null),o=()=>{r||e(!1)},i=()=>{r||e(!0)},s=a=>{n(r===a?null:a)};return p.jsx("div",{className:"fixed top-0 left-0 h-full z-40",children:p.jsxs("div",{className:"flex flex-col",onMouseEnter:o,onMouseLeave:i,children:[p.jsxs(sv,{collapsed:t,rootStyles:{[`.${xe.container}`]:{backgroundColor:"#483FFF",color:"#483FFF",height:"100vh",display:"flex",flexDirection:"column"}},children:[p.jsx(Hr,{to:"/dashboard",children:p.jsx("div",{children:p.jsx(Er,{classIm:"mx-auto",src:`${l1}/public/assets/images/logo mathilde.png`,alt:"Logo Mathilde ads",width:74,height:74})})}),p.jsxs(cv,{children:[p.jsx($r,{icon:p.jsx(sp,{className:"text-2xl"}),onClick:()=>s("campanas"),className:"bg-white my-1 mx-2 rounded-lg hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:" Campañas "}),p.jsx(Hr,{to:"https://dsp.mathilde-ads.com/login",children:p.jsx($r,{icon:p.jsx(Ax,{className:"text-xl"}),className:"bg-white my-1 mx-2 rounded-lg hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:" Medios "})}),p.jsx($r,{icon:p.jsx(ap,{className:"text-xl"}),onClick:()=>s("audiencias"),className:"bg-white my-1 mx-2 rounded-lg hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:" Audiencias "}),p.jsx($r,{icon:p.jsx(Ix,{className:"text-xl"}),onClick:()=>s("reportes"),className:"bg-white my-1 mx-2 rounded-lg hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:" Reportes "}),p.jsx($r,{icon:p.jsx(Dx,{className:"text-xl"}),onClick:()=>s("facturacion"),className:"bg-white my-1 mx-2 rounded-lg hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:" Facturación "}),p.jsx(Hr,{to:"/settings",children:p.jsx($r,{icon:p.jsx(Lx,{className:"text-xl"}),className:"bg-white my-1 mx-2 rounded-lg hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:" Configuración "})})]}),p.jsx("div",{className:"mt-auto self-end p-4",children:p.jsx("div",{className:"flex justify-center bg-white rounded-lg p-2",children:p.jsx("button",{className:"cursor-pointer text-3xl",style:{color:"#483FFF"},children:p.jsx(Fb,{})})})})]}),p.jsx(Ar,{width:"40%",isOpen:r==="campanas",onClose:()=>n(null),children:p.jsxs("div",{className:"flex flex-col p-10",children:[p.jsx("h2",{className:"text-center font-bold mb-3",children:"Selecciona el tipo de campaña que quieres crear"}),p.jsxs("div",{className:"flex",children:[p.jsx("div",{className:"w-3/6 p-2",children:p.jsx(ti,{image:{type:"image",name:"medios-propios"},title:"Medios Propios",description:"Crea y administra campañas a los usuarios que ingresan a tus canales."})}),p.jsx("div",{className:"w-3/6 p-2",children:p.jsx(Hr,{to:"/thirdPartyCampaign",children:p.jsx(ti,{image:{type:"image",name:"medios-pagos"},title:"Medios Pagos",description:"Activa campañas de Marketing Digital usando inventario de Redes Sociales y Google."})})})]})]})}),p.jsx(Ar,{isOpen:r==="audiencias",onClose:()=>n(null),children:p.jsx("h2",{children:"Audiencias"})}),p.jsx(Ar,{isOpen:r==="reportes",onClose:()=>n(null),children:p.jsx("h2",{children:"Reportes"})}),p.jsx(Ar,{isOpen:r==="facturacion",onClose:()=>n(null),children:p.jsx("h2",{children:"Facturación"})}),p.jsx(Ar,{isOpen:r==="configuracion",onClose:()=>n(null),children:p.jsx("h2",{children:"Configuración"})})]})})};function d1(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"},child:[]}]})(t)}function u1(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function f1(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"},child:[]}]})(t)}function Bu(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function $u(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"},child:[]}]})(t)}function ju(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"},child:[]}]})(t)}function h1(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"},child:[]}]})(t)}function g1(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"},child:[]}]})(t)}function p1(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function Hu(t){return pe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"},child:[]}]})(t)}function m1(t){return pe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"},child:[]}]})(t)}function Wu(t){return pe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"},child:[]}]})(t)}function b1(t){return pe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 15l7-7 7 7"},child:[]}]})(t)}function y1(t){return pe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"},child:[]}]})(t)}const Xs="-";function v1(t){const e=w1(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;function o(s){const a=s.split(Xs);return a[0]===""&&a.length!==1&&a.shift(),Vu(a,e)||x1(s)}function i(s,a){const l=r[s]||[];return a&&n[s]?[...l,...n[s]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function Vu(t,e){var s;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?Vu(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const i=t.join(Xs);return(s=e.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId}const Ru=/^\[(.+)\]$/;function x1(t){if(Ru.test(t)){const e=Ru.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}}function w1(t){const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return C1(Object.entries(t.classGroups),r).forEach(([i,s])=>{Zs(s,n,i,e)}),n}function Zs(t,e,r,n){t.forEach(o=>{if(typeof o=="string"){const i=o===""?e:Yu(e,o);i.classGroupId=r;return}if(typeof o=="function"){if(k1(o)){Zs(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Zs(s,Yu(e,i),r,n)})})}function Yu(t,e){let r=t;return e.split(Xs).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function k1(t){return t.isThemeGetter}function C1(t,e){return e?t.map(([r,n])=>{const o=n.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[e+s,a])):i);return[r,o]}):t}function _1(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;function o(i,s){r.set(i,s),e++,e>t&&(e=0,n=r,r=new Map)}return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}}const Uu="!";function S1(t){const e=t.separator,r=e.length===1,n=e[0],o=e.length;return function(s){const a=[];let l=0,c=0,d;for(let m=0;m<s.length;m++){let b=s[m];if(l===0){if(b===n&&(r||s.slice(m,m+o)===e)){a.push(s.slice(c,m)),c=m+o;continue}if(b==="/"){d=m;continue}}b==="["?l++:b==="]"&&l--}const u=a.length===0?s:s.substring(c),f=u.startsWith(Uu),h=f?u.substring(1):u,g=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:g}}}function E1(t){if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e}function O1(t){return{cache:_1(t.cacheSize),splitModifiers:S1(t),...v1(t)}}const T1=/\s+/;function N1(t,e){const{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:o}=e,i=new Set;return t.trim().split(T1).map(s=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:d}=r(s);let u=n(d?c.substring(0,d):c),f=!!d;if(!u){if(!d)return{isTailwindClass:!1,originalClassName:s};if(u=n(c),!u)return{isTailwindClass:!1,originalClassName:s};f=!1}const h=E1(a).join(":");return{isTailwindClass:!0,modifierId:l?h+Uu:h,classGroupId:u,originalClassName:s,hasPostfixModifier:f}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:c}=s,d=a+l;return i.has(d)?!1:(i.add(d),o(l,c).forEach(u=>i.add(a+u)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function M1(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=qu(e))&&(n&&(n+=" "),n+=r);return n}function qu(t){if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=qu(t[n]))&&(r&&(r+=" "),r+=e);return r}function P1(t,...e){let r,n,o,i=s;function s(l){const c=e.reduce((d,u)=>u(d),t());return r=O1(c),n=r.cache.get,o=r.cache.set,i=a,a(l)}function a(l){const c=n(l);if(c)return c;const d=N1(l,r);return o(l,d),d}return function(){return i(M1.apply(null,arguments))}}function ye(t){const e=r=>r[t]||[];return e.isThemeGetter=!0,e}const Ku=/^\[(?:([a-z-]+):)?(.+)\]$/i,A1=/^\d+\/\d+$/,D1=new Set(["px","full","screen"]),I1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,L1=/\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$/,F1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,z1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,B1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function jt(t){return yr(t)||D1.has(t)||A1.test(t)}function Zt(t){return Wr(t,"length",U1)}function yr(t){return!!t&&!Number.isNaN(Number(t))}function ci(t){return Wr(t,"number",yr)}function jn(t){return!!t&&Number.isInteger(Number(t))}function $1(t){return t.endsWith("%")&&yr(t.slice(0,-1))}function Z(t){return Ku.test(t)}function Jt(t){return I1.test(t)}const j1=new Set(["length","size","percentage"]);function H1(t){return Wr(t,j1,Gu)}function W1(t){return Wr(t,"position",Gu)}const V1=new Set(["image","url"]);function R1(t){return Wr(t,V1,K1)}function Y1(t){return Wr(t,"",q1)}function Hn(){return!0}function Wr(t,e,r){const n=Ku.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1}function U1(t){return L1.test(t)&&!F1.test(t)}function Gu(){return!1}function q1(t){return z1.test(t)}function K1(t){return B1.test(t)}function G1(){const t=ye("colors"),e=ye("spacing"),r=ye("blur"),n=ye("brightness"),o=ye("borderColor"),i=ye("borderRadius"),s=ye("borderSpacing"),a=ye("borderWidth"),l=ye("contrast"),c=ye("grayscale"),d=ye("hueRotate"),u=ye("invert"),f=ye("gap"),h=ye("gradientColorStops"),g=ye("gradientColorStopPositions"),m=ye("inset"),b=ye("margin"),v=ye("opacity"),y=ye("padding"),_=ye("saturate"),x=ye("scale"),w=ye("sepia"),S=ye("skew"),T=ye("space"),M=ye("translate"),N=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",Z,e],A=()=>[Z,e],D=()=>["",jt,Zt],O=()=>["auto",yr,Z],P=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],B=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",Z],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[yr,ci],V=()=>[yr,Z];return{cacheSize:500,separator:":",theme:{colors:[Hn],spacing:[jt,Zt],blur:["none","",Jt,Z],brightness:W(),borderColor:[t],borderRadius:["none","","full",Jt,Z],borderSpacing:A(),borderWidth:D(),contrast:W(),grayscale:j(),hueRotate:V(),invert:j(),gap:A(),gradientColorStops:[t],gradientColorStopPositions:[$1,Zt],inset:I(),margin:I(),opacity:W(),padding:A(),saturate:W(),scale:W(),sepia:j(),skew:V(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[Jt]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...P(),Z]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",jn,Z]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",jn,Z]}],"grid-cols":[{"grid-cols":[Hn]}],"col-start-end":[{col:["auto",{span:["full",jn,Z]},Z]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Hn]}],"row-start-end":[{row:["auto",{span:[jn,Z]},Z]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Z,e]}],"min-w":[{"min-w":[Z,e,"min","max","fit"]}],"max-w":[{"max-w":[Z,e,"none","full","min","max","fit","prose",{screen:[Jt]},Jt]}],h:[{h:[Z,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Z,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Z,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Z,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Jt,Zt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ci]}],"font-family":[{font:[Hn]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Z]}],"line-clamp":[{"line-clamp":["none",yr,ci]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",jt,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",jt,Zt]}],"underline-offset":[{"underline-offset":["auto",jt,Z]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...P(),W1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",H1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},R1]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:L()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[jt,Z]}],"outline-w":[{outline:[jt,Zt]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[jt,Zt]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Jt,Y1]}],"shadow-color":[{shadow:[Hn]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":z()}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Jt,Z]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[_]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[jn,Z]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",Z]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[jt,Zt,ci]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const F=P1(G1);function vr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function Wn(t){if(!vr(t))return t;const e={};for(const r in t)e[r]=Wn(t[r]);return e}function H(t,e){if(vr(e)&&Object.keys(e).length===0)return Wn({...t,...e});const r={...t,...e};if(vr(e)&&vr(t))for(const n in e)vr(e[n])&&n in t&&vr(t[n])?r[n]=H(t[n],e[n]):r[n]=vr(e[n])?Wn(e[n]):e[n];return r}function WC(t){return t}const X1={root:{base:"divide-y divide-gray-200 border-gray-200 dark:divide-gray-700 dark:border-gray-700",flush:{off:"rounded-lg border",on:"border-b"}},content:{base:"p-5 first:rounded-t-lg last:rounded-b-lg dark:bg-gray-900"},title:{arrow:{base:"h-6 w-6 shrink-0",open:{off:"",on:"rotate-180"}},base:"flex w-full items-center justify-between p-5 text-left font-medium text-gray-500 first:rounded-t-lg last:rounded-b-lg dark:text-gray-400",flush:{off:"hover:bg-gray-100 focus:ring-4 focus:ring-gray-200 dark:hover:bg-gray-800 dark:focus:ring-gray-800",on:"bg-transparent dark:bg-transparent"},heading:"",open:{off:"",on:"bg-gray-100 text-gray-900 dark:bg-gray-800 dark:text-white"}}},Z1={base:"flex flex-col gap-2 p-4 text-sm",borderAccent:"border-t-4",closeButton:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg p-1.5 focus:ring-2",icon:"h-5 w-5",color:{info:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",gray:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-white",failure:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",success:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",warning:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",red:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",green:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",yellow:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",blue:"bg-blue-100 text-blue-500 hover:bg-blue-200 focus:ring-blue-400 dark:bg-blue-200 dark:text-blue-600 dark:hover:bg-blue-300",cyan:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",pink:"bg-pink-100 text-pink-500 hover:bg-pink-200 focus:ring-pink-400 dark:bg-pink-200 dark:text-pink-600 dark:hover:bg-pink-300",lime:"bg-lime-100 text-lime-500 hover:bg-lime-200 focus:ring-lime-400 dark:bg-lime-200 dark:text-lime-600 dark:hover:bg-lime-300",dark:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-200 dark:text-gray-600 dark:hover:bg-gray-300",indigo:"bg-indigo-100 text-indigo-500 hover:bg-indigo-200 focus:ring-indigo-400 dark:bg-indigo-200 dark:text-indigo-600 dark:hover:bg-indigo-300",purple:"bg-purple-100 text-purple-500 hover:bg-purple-200 focus:ring-purple-400 dark:bg-purple-200 dark:text-purple-600 dark:hover:bg-purple-300",teal:"bg-teal-100 text-teal-500 hover:bg-teal-200 focus:ring-teal-400 dark:bg-teal-200 dark:text-teal-600 dark:hover:bg-teal-300",light:"bg-gray-50 text-gray-500 hover:bg-gray-100 focus:ring-gray-200 dark:bg-gray-600 dark:text-gray-200 dark:hover:bg-gray-700 dark:hover:text-white"}},color:{info:"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800",gray:"border-gray-500 bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300",failure:"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800",success:"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800",warning:"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800",red:"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800",green:"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800",yellow:"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800",blue:"border-blue-500 bg-blue-100 text-blue-700 dark:bg-blue-200 dark:text-blue-800",cyan:"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800",pink:"border-pink-500 bg-pink-100 text-pink-700 dark:bg-pink-200 dark:text-pink-800",lime:"border-lime-500 bg-lime-100 text-lime-700 dark:bg-lime-200 dark:text-lime-800",dark:"border-gray-600 bg-gray-800 text-gray-200 dark:bg-gray-900 dark:text-gray-300",indigo:"border-indigo-500 bg-indigo-100 text-indigo-700 dark:bg-indigo-200 dark:text-indigo-800",purple:"border-purple-500 bg-purple-100 text-purple-700 dark:bg-purple-200 dark:text-purple-800",teal:"border-teal-500 bg-teal-100 text-teal-700 dark:bg-teal-200 dark:text-teal-800",light:"border-gray-400 bg-gray-50 text-gray-600 dark:bg-gray-500 dark:text-gray-200"},icon:"mr-3 inline h-5 w-5 flex-shrink-0",rounded:"rounded-lg",wrapper:"flex items-center"},J1={root:{base:"flex items-center justify-center space-x-4 rounded",bordered:"p-1 ring-2",rounded:"rounded-full",color:{dark:"ring-gray-800 dark:ring-gray-800",failure:"ring-red-500 dark:ring-red-700",gray:"ring-gray-500 dark:ring-gray-400",info:"ring-cyan-400 dark:ring-cyan-800",light:"ring-gray-300 dark:ring-gray-500",purple:"ring-purple-500 dark:ring-purple-600",success:"ring-green-500 dark:ring-green-500",warning:"ring-yellow-300 dark:ring-yellow-500",pink:"ring-pink-500 dark:ring-pink-500"},img:{base:"rounded",off:"relative overflow-hidden bg-gray-100 dark:bg-gray-600",on:"",placeholder:"absolute -bottom-1 h-auto w-auto text-gray-400"},size:{xs:"h-6 w-6",sm:"h-8 w-8",md:"h-10 w-10",lg:"h-20 w-20",xl:"h-36 w-36"},stacked:"ring-2 ring-gray-300 dark:ring-gray-500",statusPosition:{"bottom-left":"-bottom-1 -left-1","bottom-center":"-bottom-1","bottom-right":"-bottom-1 -right-1","top-left":"-left-1 -top-1","top-center":"-top-1","top-right":"-right-1 -top-1","center-right":"-right-1",center:"","center-left":"-left-1"},status:{away:"bg-yellow-400",base:"absolute h-3.5 w-3.5 rounded-full border-2 border-white dark:border-gray-800",busy:"bg-red-400",offline:"bg-gray-400",online:"bg-green-400"},initials:{text:"font-medium text-gray-600 dark:text-gray-300",base:"relative inline-flex items-center justify-center overflow-hidden bg-gray-100 dark:bg-gray-600"}},group:{base:"flex -space-x-4"},groupCounter:{base:"relative flex h-10 w-10 items-center justify-center rounded-full bg-gray-700 text-xs font-medium text-white ring-2 ring-gray-300 hover:bg-gray-600 dark:ring-gray-500"}},Q1={root:{base:"flex h-fit items-center gap-1 font-semibold",color:{info:"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-800 dark:group-hover:bg-cyan-300",gray:"bg-gray-100 text-gray-800 group-hover:bg-gray-200 dark:bg-gray-700 dark:text-gray-300 dark:group-hover:bg-gray-600",failure:"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300",success:"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300",warning:"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300",indigo:"bg-indigo-100 text-indigo-800 group-hover:bg-indigo-200 dark:bg-indigo-200 dark:text-indigo-900 dark:group-hover:bg-indigo-300",purple:"bg-purple-100 text-purple-800 group-hover:bg-purple-200 dark:bg-purple-200 dark:text-purple-900 dark:group-hover:bg-purple-300",pink:"bg-pink-100 text-pink-800 group-hover:bg-pink-200 dark:bg-pink-200 dark:text-pink-900 dark:group-hover:bg-pink-300",blue:"bg-blue-100 text-blue-800 group-hover:bg-blue-200 dark:bg-blue-200 dark:text-blue-900 dark:group-hover:bg-blue-300",cyan:"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-900 dark:group-hover:bg-cyan-300",dark:"bg-gray-600 text-gray-100 group-hover:bg-gray-500 dark:bg-gray-900 dark:text-gray-200 dark:group-hover:bg-gray-700",light:"bg-gray-200 text-gray-800 group-hover:bg-gray-300 dark:bg-gray-400 dark:text-gray-900 dark:group-hover:bg-gray-500",green:"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300",lime:"bg-lime-100 text-lime-800 group-hover:bg-lime-200 dark:bg-lime-200 dark:text-lime-900 dark:group-hover:bg-lime-300",red:"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300",teal:"bg-teal-100 text-teal-800 group-hover:bg-teal-200 dark:bg-teal-200 dark:text-teal-900 dark:group-hover:bg-teal-300",yellow:"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300"},href:"group",size:{xs:"p-1 text-xs",sm:"p-1.5 text-sm"}},icon:{off:"rounded px-2 py-0.5",on:"rounded-full p-1.5",size:{xs:"h-3 w-3",sm:"h-3.5 w-3.5"}}},ek={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},tk={root:{base:"",list:"flex items-center"},item:{base:"group flex items-center",chevron:"mx-1 h-4 w-4 text-gray-400 group-first:hidden md:mx-2",href:{off:"flex items-center text-sm font-medium text-gray-500 dark:text-gray-400",on:"flex items-center text-sm font-medium text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white"},icon:"mr-2 h-4 w-4"}},rk={base:"group relative flex items-stretch justify-center p-0.5 text-center font-medium transition-[color,background-color,border-color,text-decoration-color,fill,stroke,box-shadow] focus:z-10 focus:outline-none",fullSized:"w-full",color:{dark:"border border-transparent bg-gray-800 text-white focus:ring-4 focus:ring-gray-300 enabled:hover:bg-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:focus:ring-gray-800 dark:enabled:hover:bg-gray-700",failure:"border border-transparent bg-red-700 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-800 dark:bg-red-600 dark:focus:ring-red-900 dark:enabled:hover:bg-red-700",gray:":ring-cyan-700 border border-gray-200 bg-white text-gray-900 focus:text-cyan-700 focus:ring-4 enabled:hover:bg-gray-100 enabled:hover:text-cyan-700 dark:border-gray-600 dark:bg-transparent dark:text-gray-400 dark:enabled:hover:bg-gray-700 dark:enabled:hover:text-white",info:"border border-transparent bg-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-800 dark:bg-cyan-600 dark:focus:ring-cyan-800 dark:enabled:hover:bg-cyan-700",light:"border border-gray-300 bg-white text-gray-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-600 dark:text-white dark:focus:ring-gray-700 dark:enabled:hover:border-gray-700 dark:enabled:hover:bg-gray-700",purple:"border border-transparent bg-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-purple-800 dark:bg-purple-600 dark:focus:ring-purple-900 dark:enabled:hover:bg-purple-700",success:"border border-transparent bg-green-700 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-800 dark:bg-green-600 dark:focus:ring-green-800 dark:enabled:hover:bg-green-700",warning:"border border-transparent bg-yellow-400 text-white focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-500 dark:focus:ring-yellow-900",blue:"border border-transparent bg-blue-700 text-white focus:ring-4 focus:ring-blue-300 enabled:hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",cyan:"border border-cyan-300 bg-white text-cyan-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-100 dark:border-cyan-600 dark:bg-cyan-600 dark:text-white dark:focus:ring-cyan-700 dark:enabled:hover:border-cyan-700 dark:enabled:hover:bg-cyan-700",green:"border border-green-300 bg-white text-green-900 focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-100 dark:border-green-600 dark:bg-green-600 dark:text-white dark:focus:ring-green-700 dark:enabled:hover:border-green-700 dark:enabled:hover:bg-green-700",indigo:"border border-indigo-300 bg-white text-indigo-900 focus:ring-4 focus:ring-indigo-300 enabled:hover:bg-indigo-100 dark:border-indigo-600 dark:bg-indigo-600 dark:text-white dark:focus:ring-indigo-700 dark:enabled:hover:border-indigo-700 dark:enabled:hover:bg-indigo-700",lime:"border border-lime-300 bg-white text-lime-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-lime-100 dark:border-lime-600 dark:bg-lime-600 dark:text-white dark:focus:ring-lime-700 dark:enabled:hover:border-lime-700 dark:enabled:hover:bg-lime-700",pink:"border border-pink-300 bg-white text-pink-900 focus:ring-4 focus:ring-pink-300 enabled:hover:bg-pink-100 dark:border-pink-600 dark:bg-pink-600 dark:text-white dark:focus:ring-pink-700 dark:enabled:hover:border-pink-700 dark:enabled:hover:bg-pink-700",red:"border border-red-300 bg-white text-red-900 focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-100 dark:border-red-600 dark:bg-red-600 dark:text-white dark:focus:ring-red-700 dark:enabled:hover:border-red-700 dark:enabled:hover:bg-red-700",teal:"border border-teal-300 bg-white text-teal-900 focus:ring-4 focus:ring-teal-300 enabled:hover:bg-teal-100 dark:border-teal-600 dark:bg-teal-600 dark:text-white dark:focus:ring-teal-700 dark:enabled:hover:border-teal-700 dark:enabled:hover:bg-teal-700",yellow:"border border-yellow-300 bg-white text-yellow-900 focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-100 dark:border-yellow-600 dark:bg-yellow-600 dark:text-white dark:focus:ring-yellow-700 dark:enabled:hover:border-yellow-700 dark:enabled:hover:bg-yellow-700"},disabled:"cursor-not-allowed opacity-50",isProcessing:"cursor-wait",spinnerSlot:"absolute top-0 flex h-full items-center",spinnerLeftPosition:{xs:"left-2",sm:"left-3",md:"left-4",lg:"left-5",xl:"left-6"},gradient:{cyan:"bg-gradient-to-r from-cyan-400 via-cyan-500 to-cyan-600 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800",failure:"bg-gradient-to-r from-red-400 via-red-500 to-red-600 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-gradient-to-br dark:focus:ring-red-800",info:"bg-gradient-to-r from-cyan-500 via-cyan-600 to-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800 ",lime:"bg-gradient-to-r from-lime-200 via-lime-400 to-lime-500 text-gray-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-gradient-to-br dark:focus:ring-lime-800",pink:"bg-gradient-to-r from-pink-400 via-pink-500 to-pink-600 text-white focus:ring-4 focus:ring-pink-300 enabled:hover:bg-gradient-to-br dark:focus:ring-pink-800",purple:"bg-gradient-to-r from-purple-500 via-purple-600 to-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-gradient-to-br dark:focus:ring-purple-800",success:"bg-gradient-to-r from-green-400 via-green-500 to-green-600 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-gradient-to-br dark:focus:ring-green-800",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 text-white focus:ring-4 focus:ring-teal-300 enabled:hover:bg-gradient-to-br dark:focus:ring-teal-800"},gradientDuoTone:{cyanToBlue:"bg-gradient-to-r from-cyan-500 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800",greenToBlue:"bg-gradient-to-br from-green-400 to-cyan-600 text-white focus:ring-4 focus:ring-green-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-green-800",pinkToOrange:"bg-gradient-to-br from-pink-500 to-orange-400 text-white focus:ring-4 focus:ring-pink-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-pink-800",purpleToBlue:"bg-gradient-to-br from-purple-600 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800",purpleToPink:"bg-gradient-to-r from-purple-500 to-pink-500 text-white focus:ring-4 focus:ring-purple-200 enabled:hover:bg-gradient-to-l dark:focus:ring-purple-800",redToYellow:"bg-gradient-to-r from-red-200 via-red-300 to-yellow-200 text-gray-900 focus:ring-4 focus:ring-red-100 enabled:hover:bg-gradient-to-bl dark:focus:ring-red-400",tealToLime:"bg-gradient-to-r from-teal-200 to-lime-200 text-gray-900 focus:ring-4 focus:ring-lime-200 enabled:hover:bg-gradient-to-l enabled:hover:from-teal-200 enabled:hover:to-lime-200 enabled:hover:text-gray-900 dark:focus:ring-teal-700"},inner:{base:"flex items-stretch transition-all duration-200",position:{none:"",start:"rounded-r-none",middle:"rounded-none",end:"rounded-l-none"},outline:"border border-transparent",isProcessingPadding:{xs:"pl-8",sm:"pl-10",md:"pl-12",lg:"pl-16",xl:"pl-20"}},label:"ml-2 inline-flex h-4 w-4 items-center justify-center rounded-full bg-cyan-200 text-xs font-semibold text-cyan-800",outline:{color:{gray:"border border-gray-900 dark:border-white",default:"border-0",light:""},off:"",on:"flex w-full justify-center bg-white text-gray-900 transition-all duration-75 ease-in group-enabled:group-hover:bg-opacity-0 group-enabled:group-hover:text-inherit dark:bg-gray-900 dark:text-white",pill:{off:"rounded-md",on:"rounded-full"}},pill:{off:"rounded-lg",on:"rounded-full"},size:{xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-5 py-2.5 text-base",xl:"px-6 py-3 text-base"}},nk={base:"inline-flex",position:{none:"",start:"rounded-r-none focus:ring-2",middle:"rounded-none border-l-0 pl-0 focus:ring-2",end:"rounded-l-none border-l-0 pl-0 focus:ring-2"}},ok={root:{base:"flex rounded-lg border border-gray-200 bg-white shadow-md dark:border-gray-700 dark:bg-gray-800",children:"flex h-full flex-col justify-center gap-4 p-6",horizontal:{off:"flex-col",on:"flex-col md:max-w-xl md:flex-row"},href:"hover:bg-gray-100 dark:hover:bg-gray-700"},img:{base:"",horizontal:{off:"rounded-t-lg",on:"h-96 w-full rounded-t-lg object-cover md:h-auto md:w-48 md:rounded-none md:rounded-l-lg"}}},ik={root:{base:"relative h-full w-full",leftControl:"absolute left-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none",rightControl:"absolute right-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none"},indicators:{active:{off:"bg-white/50 hover:bg-white dark:bg-gray-800/50 dark:hover:bg-gray-800",on:"bg-white dark:bg-gray-800"},base:"h-3 w-3 rounded-full",wrapper:"absolute bottom-5 left-1/2 flex -translate-x-1/2 space-x-3"},item:{base:"absolute left-1/2 top-1/2 block w-full -translate-x-1/2 -translate-y-1/2",wrapper:{off:"w-full flex-shrink-0 transform cursor-default snap-center",on:"w-full flex-shrink-0 transform cursor-grab snap-center"}},control:{base:"inline-flex h-8 w-8 items-center justify-center rounded-full bg-white/30 group-hover:bg-white/50 group-focus:outline-none group-focus:ring-4 group-focus:ring-white dark:bg-gray-800/30 dark:group-hover:bg-gray-800/60 dark:group-focus:ring-gray-800/70 sm:h-10 sm:w-10",icon:"h-5 w-5 text-white dark:text-gray-800 sm:h-6 sm:w-6"},scrollContainer:{base:"flex h-full snap-mandatory overflow-y-hidden overflow-x-scroll scroll-smooth rounded-lg",snap:"snap-x"}},sk={root:{base:"h-4 w-4 rounded border border-gray-300 bg-gray-100 focus:ring-2 dark:border-gray-600 dark:bg-gray-700",color:{default:"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-gray-800 dark:focus:ring-cyan-600",dark:"text-gray-800 focus:ring-gray-800 dark:ring-offset-gray-800 dark:focus:ring-gray-800",failure:"text-red-900 focus:ring-red-900 dark:ring-offset-red-900 dark:focus:ring-red-900",gray:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",info:"text-cyan-800 focus:ring-cyan-800 dark:ring-offset-gray-800 dark:focus:ring-cyan-800",light:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",purple:"text-purple-600 focus:ring-purple-600 dark:ring-offset-purple-600 dark:focus:ring-purple-600",success:"text-green-800 focus:ring-green-800 dark:ring-offset-green-800 dark:focus:ring-green-800",warning:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400",blue:"text-blue-700 focus:ring-blue-600 dark:ring-offset-blue-700 dark:focus:ring-blue-700",cyan:"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-cyan-600 dark:focus:ring-cyan-600",green:"text-green-600 focus:ring-green-600 dark:ring-offset-green-600 dark:focus:ring-green-600",indigo:"text-indigo-700 focus:ring-indigo-700 dark:ring-offset-indigo-700 dark:focus:ring-indigo-700",lime:"text-lime-700 focus:ring-lime-700 dark:ring-offset-lime-700 dark:focus:ring-lime-700",pink:"text-pink-600 focus:ring-pink-600 dark:ring-offset-pink-600 dark:focus:ring-pink-600",red:"text-red-600 focus:ring-red-600 dark:ring-offset-red-600 dark:focus:ring-red-600",teal:"text-teal-600 focus:ring-teal-600 dark:ring-offset-teal-600 dark:focus:ring-teal-600",yellow:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400"}}},ak={root:{base:"rounded-lg p-2.5 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700",icon:"h-5 w-5"}},lk={root:{base:"relative"},popup:{root:{base:"absolute top-10 z-50 block pt-2",inline:"relative top-0 z-auto",inner:"inline-block rounded-lg bg-white p-4 shadow-lg dark:bg-gray-700"},header:{base:"",title:"px-2 py-3 text-center font-semibold text-gray-900 dark:text-white",selectors:{base:"mb-2 flex justify-between",button:{base:"rounded-lg bg-white px-5 py-2.5 text-sm font-semibold text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600",prev:"",next:"",view:""}}},view:{base:"p-1"},footer:{base:"mt-2 flex space-x-2",button:{base:"w-full rounded-lg px-5 py-2 text-center text-sm font-medium focus:ring-4 focus:ring-cyan-300",today:"bg-cyan-700 text-white hover:bg-cyan-800 dark:bg-cyan-600 dark:hover:bg-cyan-700",clear:"border border-gray-300 bg-white text-gray-900 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600"}}},views:{days:{header:{base:"mb-1 grid grid-cols-7",title:"h-6 text-center text-sm font-medium leading-6 text-gray-500 dark:text-gray-400"},items:{base:"grid w-64 grid-cols-7",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600 ",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},months:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},years:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},decades:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}}}},ck={arrowIcon:"ml-2 h-4 w-4",content:"py-1 focus:outline-none",floating:{animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"z-10 w-fit divide-y divide-gray-100 rounded shadow focus:outline-none",content:"py-1 text-sm text-gray-700 dark:text-gray-200",divider:"my-1 h-px bg-gray-100 dark:bg-gray-600",header:"block px-4 py-2 text-sm text-gray-700 dark:text-gray-200",hidden:"invisible opacity-0",item:{container:"",base:"flex w-full cursor-pointer items-center justify-start px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:bg-gray-600 dark:focus:text-white",icon:"mr-2 h-4 w-4"},style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},target:"w-fit"},inlineWrapper:"flex items-center"},dk={root:{base:"flex"},field:{base:"relative w-full",input:{base:"block w-full overflow-hidden rounded-lg border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"sm:text-xs",md:"text-sm",lg:"sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}},uk={input:{default:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500"}},success:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500"}},error:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500"}}},label:{default:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500"}},success:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500"}},error:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500"}}},helperText:{default:"mt-2 text-xs text-gray-600 dark:text-gray-400",success:"mt-2 text-xs text-green-600 dark:text-green-400",error:"mt-2 text-xs text-red-600 dark:text-red-400"}},fk={root:{base:"w-full rounded-lg bg-white shadow dark:bg-gray-800 md:flex md:items-center md:justify-between",container:"w-full p-6",bgDark:"bg-gray-800"},groupLink:{base:"flex flex-wrap text-sm text-gray-500 dark:text-white",link:{base:"me-4 last:mr-0 md:mr-6",href:"hover:underline"},col:"flex-col space-y-4"},icon:{base:"text-gray-500 dark:hover:text-white",size:"h-5 w-5"},title:{base:"mb-6 text-sm font-semibold uppercase text-gray-500 dark:text-white"},divider:{base:"my-6 w-full border-gray-200 dark:border-gray-700 sm:mx-auto lg:my-8"},copyright:{base:"text-sm text-gray-500 dark:text-gray-400 sm:text-center",href:"ml-1 hover:underline",span:"ml-1"},brand:{base:"mb-4 flex items-center sm:mb-0",img:"mr-3 h-8",span:"self-center whitespace-nowrap text-2xl font-semibold text-gray-800 dark:text-white"}},hk={root:{base:"mt-2 text-sm",colors:{gray:"text-gray-500 dark:text-gray-400",info:"text-cyan-700 dark:text-cyan-800",success:"text-green-600 dark:text-green-500",failure:"text-red-600 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600"}}},gk={root:{base:"rounded-lg border border-gray-200 bg-gray-100 px-2 py-1.5 text-xs font-semibold text-gray-800 dark:border-gray-500 dark:bg-gray-600 dark:text-gray-100",icon:"inline-block"}},pk={root:{base:"text-sm font-medium",disabled:"opacity-50",colors:{default:"text-gray-900 dark:text-white",info:"text-cyan-500 dark:text-cyan-600",failure:"text-red-700 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600",success:"text-green-700 dark:text-green-500"}}},mk={root:{base:"list-inside space-y-1 text-gray-500 dark:text-gray-400",ordered:{off:"list-disc",on:"list-decimal"},horizontal:"flex list-none flex-wrap items-center justify-center space-x-4 space-y-0",unstyled:"list-none",nested:"mt-2 ps-5"},item:{withIcon:{off:"",on:"flex items-center"},icon:"me-2 h-3.5 w-3.5 flex-shrink-0"}},bk={root:{base:"list-none rounded-lg border border-gray-200 bg-white text-left text-sm font-medium text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-white"},item:{base:"[&>*]:first:rounded-t-lg [&>*]:last:rounded-b-lg [&>*]:last:border-b-0",link:{base:"flex w-full items-center border-b border-gray-200 px-4 py-2 dark:border-gray-600",active:{off:"hover:bg-gray-100 hover:text-cyan-700 focus:text-cyan-700 focus:outline-none focus:ring-2 focus:ring-cyan-700 dark:border-gray-600 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:text-white dark:focus:ring-gray-500",on:"bg-cyan-700 text-white dark:bg-gray-800"},disabled:{off:"",on:"cursor-not-allowed bg-gray-100 text-gray-900 hover:bg-gray-100 hover:text-gray-900 focus:text-gray-900"},href:{off:"",on:""},icon:"mr-2 h-4 w-4 fill-current"}}},yk={root:{base:"fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full",show:{on:"flex bg-gray-900 bg-opacity-50 dark:bg-opacity-80",off:"hidden"},sizes:{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl"},positions:{"top-left":"items-start justify-start","top-center":"items-start justify-center","top-right":"items-start justify-end","center-left":"items-center justify-start",center:"items-center justify-center","center-right":"items-center justify-end","bottom-right":"items-end justify-end","bottom-center":"items-end justify-center","bottom-left":"items-end justify-start"}},content:{base:"relative h-full w-full p-4 md:h-auto",inner:"relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow dark:bg-gray-700"},body:{base:"flex-1 overflow-auto p-6",popup:"pt-0"},header:{base:"flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600",popup:"border-b-0 p-2",title:"text-xl font-medium text-gray-900 dark:text-white",close:{base:"ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white",icon:"h-5 w-5"}},footer:{base:"flex items-center space-x-2 rounded-b border-gray-200 p-6 dark:border-gray-600",popup:"border-t"}},vk={root:{base:"bg-white px-2 py-2.5 dark:border-gray-700 dark:bg-gray-800 sm:px-4",rounded:{on:"rounded",off:""},bordered:{on:"border",off:""},inner:{base:"mx-auto flex flex-wrap items-center justify-between",fluid:{on:"",off:"container"}}},brand:{base:"flex items-center"},collapse:{base:"w-full md:block md:w-auto",list:"mt-4 flex flex-col md:mt-0 md:flex-row md:space-x-8 md:text-sm md:font-medium",hidden:{on:"hidden",off:""}},link:{base:"block py-2 pl-3 pr-4 md:p-0",active:{on:"bg-cyan-700 text-white dark:text-white md:bg-transparent md:text-cyan-700",off:"border-b border-gray-100 text-gray-700 hover:bg-gray-50 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white md:border-0 md:hover:bg-transparent md:hover:text-cyan-700 md:dark:hover:bg-transparent md:dark:hover:text-white"},disabled:{on:"text-gray-400 hover:cursor-not-allowed dark:text-gray-600",off:""}},toggle:{base:"inline-flex items-center rounded-lg p-2 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600 md:hidden",icon:"h-6 w-6 shrink-0"}},xk={base:"",layout:{table:{base:"text-sm text-gray-700 dark:text-gray-400",span:"font-semibold text-gray-900 dark:text-white"}},pages:{base:"xs:mt-0 mt-2 inline-flex items-center -space-x-px",showIcon:"inline-flex",previous:{base:"ml-0 rounded-l-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",icon:"h-5 w-5"},next:{base:"rounded-r-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",icon:"h-5 w-5"},selector:{base:"w-12 border border-gray-300 bg-white py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",active:"bg-cyan-50 text-cyan-600 hover:bg-cyan-100 hover:text-cyan-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white",disabled:"cursor-not-allowed opacity-50"}}},wk={base:"absolute z-20 inline-block w-max max-w-[100vw] bg-white outline-none border border-gray-200 rounded-lg shadow-sm dark:border-gray-600 dark:bg-gray-800",content:"z-10 overflow-hidden rounded-[7px]",arrow:{base:"absolute h-2 w-2 z-0 rotate-45 mix-blend-lighten bg-white border border-gray-200 dark:border-gray-600 dark:bg-gray-800 dark:mix-blend-color",placement:"-4px"}},kk={base:"w-full overflow-hidden rounded-full bg-gray-200 dark:bg-gray-700",label:"mb-1 flex justify-between font-medium dark:text-white",bar:"space-x-2 rounded-full text-center font-medium leading-none text-cyan-300 dark:text-cyan-100",color:{dark:"bg-gray-600 dark:bg-gray-300",blue:"bg-blue-600",red:"bg-red-600 dark:bg-red-500",green:"bg-green-600 dark:bg-green-500",yellow:"bg-yellow-400",indigo:"bg-indigo-600 dark:bg-indigo-500",purple:"bg-purple-600 dark:bg-purple-500",cyan:"bg-cyan-600",gray:"bg-gray-500",lime:"bg-lime-600",pink:"bg-pink-500",teal:"bg-teal-600"},size:{sm:"h-1.5",md:"h-2.5",lg:"h-4",xl:"h-6"}},Ck={root:{base:"h-4 w-4 border border-gray-300 text-cyan-600 focus:ring-2 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:focus:bg-cyan-600 dark:focus:ring-cyan-600"}},_k={root:{base:"flex"},field:{base:"relative w-full",input:{base:"w-full cursor-pointer appearance-none rounded-lg bg-gray-200 dark:bg-gray-700",sizes:{sm:"h-1",md:"h-2",lg:"h-3"}}}},Sk={root:{base:"flex items-center"},star:{empty:"text-gray-300 dark:text-gray-500",filled:"text-yellow-400",sizes:{sm:"h-5 w-5",md:"h-7 w-7",lg:"h-10 w-10"}}},Ek={base:"flex items-center",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500",progress:{base:"mx-4 h-5 w-2/4 rounded bg-gray-200 dark:bg-gray-700",fill:"h-5 rounded bg-yellow-400",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500"}},Ok={base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},select:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""},sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}},Tk={root:{base:"h-full",collapsed:{on:"w-16",off:"w-64"},inner:"h-full overflow-y-auto overflow-x-hidden rounded bg-gray-50 px-3 py-4 dark:bg-gray-800"},collapse:{button:"group flex w-full items-center rounded-lg p-2 text-base font-normal text-gray-900 transition duration-75 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",icon:{base:"h-6 w-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",open:{off:"",on:"text-gray-900"}},label:{base:"ml-3 flex-1 whitespace-nowrap text-left",icon:{base:"h-6 w-6 transition delay-0 ease-in-out",open:{on:"rotate-180",off:""}}},list:"space-y-2 py-2"},cta:{base:"mt-6 rounded-lg bg-gray-100 p-4 dark:bg-gray-700",color:{blue:"bg-cyan-50 dark:bg-cyan-900",dark:"bg-dark-50 dark:bg-dark-900",failure:"bg-red-50 dark:bg-red-900",gray:"bg-alternative-50 dark:bg-alternative-900",green:"bg-green-50 dark:bg-green-900",light:"bg-light-50 dark:bg-light-900",red:"bg-red-50 dark:bg-red-900",purple:"bg-purple-50 dark:bg-purple-900",success:"bg-green-50 dark:bg-green-900",yellow:"bg-yellow-50 dark:bg-yellow-900",warning:"bg-yellow-50 dark:bg-yellow-900"}},item:{base:"flex items-center justify-center rounded-lg p-2 text-base font-normal text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",active:"bg-gray-100 dark:bg-gray-700",collapsed:{insideCollapse:"group w-full pl-8 transition duration-75",noIcon:"font-bold"},content:{base:"flex-1 whitespace-nowrap px-3"},icon:{base:"h-6 w-6 flex-shrink-0 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",active:"text-gray-700 dark:text-gray-100"},label:"",listItem:""},items:{base:""},itemGroup:{base:"mt-4 space-y-2 border-t border-gray-200 pt-4 first:mt-0 first:border-t-0 first:pt-0 dark:border-gray-700"},logo:{base:"mb-5 flex items-center pl-2.5",collapsed:{on:"hidden",off:"self-center whitespace-nowrap text-xl font-semibold dark:text-white"},img:"mr-3 h-6 sm:h-7"}},Nk={base:"inline animate-spin text-gray-200",color:{failure:"fill-red-600",gray:"fill-gray-600",info:"fill-cyan-600",pink:"fill-pink-600",purple:"fill-purple-600",success:"fill-green-500",warning:"fill-yellow-400"},light:{off:{base:"dark:text-gray-600",color:{failure:"",gray:"dark:fill-gray-300",info:"",pink:"",purple:"",success:"",warning:""}},on:{base:"",color:{failure:"",gray:"",info:"",pink:"",purple:"",success:"",warning:""}}},size:{xs:"h-3 w-3",sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"}},Mk={root:{base:"w-full text-left text-sm text-gray-500 dark:text-gray-400",shadow:"absolute left-0 top-0 -z-10 h-full w-full rounded-lg bg-white drop-shadow-md dark:bg-black",wrapper:"relative"},body:{base:"group/body",cell:{base:"px-6 py-4 group-first/body:group-first/row:first:rounded-tl-lg group-first/body:group-first/row:last:rounded-tr-lg group-last/body:group-last/row:first:rounded-bl-lg group-last/body:group-last/row:last:rounded-br-lg"}},head:{base:"group/head text-xs uppercase text-gray-700 dark:text-gray-400",cell:{base:"bg-gray-50 px-6 py-3 group-first/head:first:rounded-tl-lg group-first/head:last:rounded-tr-lg dark:bg-gray-700"}},row:{base:"group/row",hovered:"hover:bg-gray-50 dark:hover:bg-gray-600",striped:"odd:bg-white even:bg-gray-50 odd:dark:bg-gray-800 even:dark:bg-gray-700"}},Pk={base:"flex flex-col gap-2",tablist:{base:"flex text-center",styles:{default:"flex-wrap border-b border-gray-200 dark:border-gray-700",underline:"-mb-px flex-wrap border-b border-gray-200 dark:border-gray-700",pills:"flex-wrap space-x-2 text-sm font-medium text-gray-500 dark:text-gray-400",fullWidth:"grid w-full grid-flow-col divide-x divide-gray-200 rounded-none text-sm font-medium shadow dark:divide-gray-700 dark:text-gray-400"},tabitem:{base:"flex items-center justify-center rounded-t-lg p-4 text-sm font-medium first:ml-0 focus:outline-none focus:ring-4 focus:ring-cyan-300 disabled:cursor-not-allowed disabled:text-gray-400 disabled:dark:text-gray-500",styles:{default:{base:"rounded-t-lg",active:{on:"bg-gray-100 text-cyan-600 dark:bg-gray-800 dark:text-cyan-500",off:"text-gray-500 hover:bg-gray-50 hover:text-gray-600 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300"}},underline:{base:"rounded-t-lg",active:{on:"active rounded-t-lg border-b-2 border-cyan-600 text-cyan-600 dark:border-cyan-500 dark:text-cyan-500",off:"border-b-2 border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300"}},pills:{base:"",active:{on:"rounded-lg bg-cyan-600 text-white",off:"rounded-lg hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-white"}},fullWidth:{base:"ml-0 flex w-full rounded-none first:ml-0",active:{on:"active rounded-none bg-gray-100 p-4 text-gray-900 dark:bg-gray-700 dark:text-white",off:"rounded-none bg-white hover:bg-gray-50 hover:text-gray-700 dark:bg-gray-800 dark:hover:bg-gray-700 dark:hover:text-white"}}},icon:"mr-2 h-5 w-5"}},tabitemcontainer:{base:"",styles:{default:"",underline:"",pills:"",fullWidth:""}},tabpanel:"py-3"},Ak={base:"block w-full rounded-lg border text-sm disabled:cursor-not-allowed disabled:opacity-50",colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}},Dk={base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},rightIcon:{base:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},input:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withRightIcon:{on:"pr-10",off:""},withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}}}},Ik={root:{direction:{horizontal:"sm:flex",vertical:"relative border-l border-gray-200 dark:border-gray-700"}},item:{root:{horizontal:"relative mb-6 sm:mb-0",vertical:"mb-10 ml-6"},content:{root:{base:"mt-3 sm:pr-8"},body:{base:"mb-4 text-base font-normal text-gray-500 dark:text-gray-400"},time:{base:"mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"},title:{base:"text-lg font-semibold text-gray-900 dark:text-white"}},point:{horizontal:"flex items-center",line:"hidden h-0.5 w-full bg-gray-200 dark:bg-gray-700 sm:flex",marker:{base:{horizontal:"absolute -left-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700",vertical:"absolute -left-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700"},icon:{base:"h-3 w-3 text-cyan-600 dark:text-cyan-300",wrapper:"absolute -left-3 flex h-6 w-6 items-center justify-center rounded-full bg-cyan-200 ring-8 ring-white dark:bg-cyan-900 dark:ring-gray-900"}},vertical:""}}},Lk={root:{base:"flex w-full max-w-xs items-center rounded-lg bg-white p-4 text-gray-500 shadow dark:bg-gray-800 dark:text-gray-400",closed:"opacity-0 ease-out"},toggle:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",icon:"h-5 w-5 shrink-0"}},Fk={root:{base:"group relative flex items-center rounded-lg focus:outline-none",active:{on:"cursor-pointer",off:"cursor-not-allowed opacity-50"},label:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300"},toggle:{base:"rounded-full border group-focus:ring-4 group-focus:ring-cyan-500/25",checked:{on:"after:translate-x-full after:border-white",off:"border-gray-200 bg-gray-200 dark:border-gray-600 dark:bg-gray-700",color:{blue:"border-cyan-700 bg-cyan-700",dark:"bg-dark-700 border-dark-900",failure:"border-red-900 bg-red-700",gray:"border-gray-600 bg-gray-500",green:"border-green-700 bg-green-600",light:"bg-light-700 border-light-900",red:"border-red-900 bg-red-700",purple:"border-purple-900 bg-purple-700",success:"border-green-500 bg-green-500",yellow:"border-yellow-400 bg-yellow-400",warning:"border-yellow-600 bg-yellow-600",cyan:"border-cyan-500 bg-cyan-500",lime:"border-lime-400 bg-lime-400",indigo:"border-indigo-400 bg-indigo-400",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 hover:bg-gradient-to-br focus:ring-4",info:"border-cyan-600 bg-cyan-600",pink:"border-pink-600 bg-pink-600"}},sizes:{sm:"h-5 w-9 after:absolute after:left-[2px] after:top-[2px] after:h-4 after:w-4",md:"h-6 w-11 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5",lg:"h-7 w-14 after:absolute after:left-[4px] after:top-0.5 after:h-6 after:w-6"}}},zk={target:"w-fit",animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"absolute z-10 inline-block rounded-lg px-3 py-2 text-sm font-medium shadow-sm",hidden:"invisible opacity-0",style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},content:"relative z-20"},Bk={theme:Wn({accordion:X1,alert:Z1,avatar:J1,badge:Q1,blockquote:ek,breadcrumb:tk,button:rk,buttonGroup:nk,card:ok,carousel:ik,checkbox:sk,datepicker:lk,darkThemeToggle:ak,dropdown:ck,fileInput:dk,floatingLabel:uk,footer:fk,helperText:hk,kbd:gk,label:pk,listGroup:bk,list:mk,modal:yk,navbar:vk,pagination:xk,popover:wk,progress:kk,radio:Ck,rangeSlider:_k,rating:Sk,ratingAdvanced:Ek,select:Ok,textInput:Dk,textarea:Ak,toggleSwitch:Fk,sidebar:Tk,spinner:Nk,table:Mk,tabs:Pk,timeline:Ik,toast:Lk,tooltip:zk})};function K(){return Wn(Bk.theme)}const Xu=k.createContext(void 0);function Zu(){const t=k.useContext(Xu);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const Ju=({children:t,className:e,theme:r={},...n})=>{const{isOpen:o}=Zu(),i=H(K().accordion.content,r);return p.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-accordion-content",hidden:!o,...n,children:t})},Qu=({children:t,...e})=>{const{alwaysOpen:r}=e,[n,o]=k.useState(e.isOpen),i=r?{...e,isOpen:n,setOpen:()=>o(!n)}:e;return p.jsx(Xu.Provider,{value:i,children:t})},ef=({as:t="h2",children:e,className:r,theme:n={},...o})=>{const{arrowIcon:i,flush:s,isOpen:a,setOpen:l}=Zu(),c=()=>typeof l<"u"&&l(),d=H(K().accordion.title,n);return p.jsxs("button",{className:F(d.base,d.flush[s?"on":"off"],d.open[a?"on":"off"],r),onClick:c,type:"button",...o,children:[p.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),i&&p.jsx(i,{"aria-hidden":!0,className:F(d.arrow.base,d.arrow.open[a?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},tf=({alwaysOpen:t=!1,arrowIcon:e=Bu,children:r,flush:n=!1,collapseAll:o=!1,className:i,theme:s={},...a})=>{const[l,c]=k.useState(o?-1:0),d=k.useMemo(()=>k.Children.map(r,(f,h)=>k.cloneElement(f,{alwaysOpen:t,arrowIcon:e,flush:n,isOpen:l===h,setOpen:()=>c(l===h?-1:h)})),[t,e,r,n,l]),u=H(K().accordion.root,s);return p.jsx("div",{className:F(u.base,u.flush[n?"on":"off"],i),"data-testid":"flowbite-accordion",...a,children:d})};tf.displayName="Accordion",Qu.displayName="Accordion.Panel",ef.displayName="Accordion.Title",Ju.displayName="Accordion.Content",Object.assign(tf,{Panel:Qu,Title:ef,Content:Ju});const rf=({children:t,className:e,theme:r={},...n})=>{const o=H(K().avatar.group,r);return p.jsx("div",{"data-testid":"avatar-group-element",className:F(o.base,e),...n,children:t})};rf.displayName="Avatar.Group";const nf=({className:t,href:e,theme:r={},total:n,...o})=>{const i=H(K().avatar.groupCounter,r);return p.jsxs("a",{href:e,className:F(i.base,t),...o,children:["+",n]})};nf.displayName="Avatar.GroupCounter";const of=({alt:t="",bordered:e=!1,children:r,className:n,color:o="light",img:i,placeholderInitials:s="",rounded:a=!1,size:l="md",stacked:c=!1,status:d,statusPosition:u="top-left",theme:f={},...h})=>{const g=H(K().avatar,f),m=F(g.root.img.base,e&&g.root.bordered,e&&g.root.color[o],a&&g.root.rounded,c&&g.root.stacked,g.root.img.on,g.root.size[l]),b={className:F(m,g.root.img.on),"data-testid":"flowbite-avatar-img"};return p.jsxs("div",{className:F(g.root.base,n),"data-testid":"flowbite-avatar",...h,children:[p.jsxs("div",{className:"relative",children:[i?typeof i=="string"?p.jsx("img",{alt:t,src:i,...b}):i({alt:t,...b}):s?p.jsx("div",{className:F(g.root.img.off,g.root.initials.base,c&&g.root.stacked,e&&g.root.bordered,e&&g.root.color[o],g.root.size[l],a&&g.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:p.jsx("span",{className:F(g.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:s})}):p.jsx("div",{className:F(m,g.root.img.off),"data-testid":"flowbite-avatar-img",children:p.jsx("svg",{className:g.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})}),d&&p.jsx("span",{"data-testid":"flowbite-avatar-status",className:F(g.root.status.base,g.root.status[d],g.root.statusPosition[u])})]}),r&&p.jsx("div",{children:r})]})};of.displayName="Avatar",Object.assign(of,{Group:rf,Counter:nf});const sf=({children:t,color:e="info",href:r,icon:n,size:o="xs",className:i,theme:s={},...a})=>{const l=H(K().badge,s),c=()=>p.jsxs("span",{className:F(l.root.base,l.root.color[e],l.root.size[o],l.icon[n?"on":"off"],i),"data-testid":"flowbite-badge",...a,children:[n&&p.jsx(n,{"aria-hidden":!0,className:l.icon.size[o],"data-testid":"flowbite-badge-icon"}),t&&p.jsx("span",{children:t})]});return r?p.jsx("a",{className:l.root.href,href:r,children:p.jsx(c,{})}):p.jsx(c,{})};sf.displayName="Badge";const af=({className:t,color:e="info",light:r,size:n="md",theme:o={},...i})=>{const s=H(K().spinner,o);return p.jsx("span",{role:"status",...i,children:p.jsxs("svg",{fill:"none",viewBox:"0 0 100 101",className:F(s.base,s.color[e],s.light[r?"on":"off"].base,s.light[r?"on":"off"].color[e],s.size[n],t),children:[p.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),p.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})};af.displayName="Spinner";const Js=k.forwardRef(({children:t,as:e,href:r,type:n="button",...o},i)=>{const s=e||(r?"a":"button");return k.createElement(s,{ref:i,href:r,type:n,...o},t)});Js.displayName="ButtonBaseComponent";const lf=(t,e,r)=>k.Children.map(t,(n,o)=>k.isValidElement(n)?n.props.children?k.cloneElement(n,{...n.props,children:lf(n.props.children,e,r),positionInGroup:cf(o,k.Children.count(t))}):k.cloneElement(n,{outline:e,pill:r,positionInGroup:cf(o,k.Children.count(t))}):n),cf=(t,e)=>t===0?"start":t===e-1?"end":"middle",df=({children:t,className:e,outline:r,pill:n,theme:o={},...i})=>{const s=k.useMemo(()=>lf(t,r,n),[t,r,n]),a=H(K().buttonGroup,o);return p.jsx("div",{className:F(a.base,e),role:"group",...i,children:s})};df.displayName="Button.Group";const uf=k.forwardRef(({children:t,className:e,color:r="info",disabled:n,fullSized:o,isProcessing:i=!1,processingLabel:s="Loading...",processingSpinner:a,gradientDuoTone:l,gradientMonochrome:c,label:d,outline:u=!1,pill:f=!1,positionInGroup:h="none",size:g="md",theme:m={},...b},v)=>{const{buttonGroup:y,button:_}=K(),x=H(_,m),w=b;return p.jsx(Js,{ref:v,disabled:n,className:F(x.base,n&&x.disabled,!l&&!c&&x.color[r],l&&!c&&x.gradientDuoTone[l],!l&&c&&x.gradient[c],u&&(x.outline.color[r]??x.outline.color.default),x.pill[f?"on":"off"],o&&x.fullSized,y.position[h],e),...w,children:p.jsx("span",{className:F(x.inner.base,x.outline[u?"on":"off"],x.outline.pill[u&&f?"on":"off"],x.size[g],u&&!x.outline.color[r]&&x.inner.outline,i&&x.isProcessing,i&&x.inner.isProcessingPadding[g],x.inner.position[h]),children:p.jsxs(p.Fragment,{children:[i&&p.jsx("span",{className:F(x.spinnerSlot,x.spinnerLeftPosition[g]),children:a||p.jsx(af,{size:g})}),typeof t<"u"?t:p.jsx("span",{"data-testid":"flowbite-button-label",className:F(x.label),children:i?s:d})]})})})});uf.displayName="Button";const ff=Object.assign(uf,{Group:df}),hf=({children:t,...e})=>{const r=n=>{const i=n.target.closest('[role="banner"]');i==null||i.remove()};return p.jsx(ff,{onClick:r,...e,children:t})};hf.displayName="Banner.CollapseButton";const gf=({children:t,...e})=>p.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});gf.displayName="Banner",Object.assign(gf,{CollapseButton:hf});const pf=k.forwardRef(({children:t,className:e,href:r,icon:n,theme:o={},...i},s)=>{const a=typeof r<"u",l=a?"a":"span",c=H(K().breadcrumb.item,o);return p.jsxs("li",{className:F(c.base,e),...i,children:[p.jsx(Wu,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),p.jsxs(l,{ref:s,className:c.href[a?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:r,children:[n&&p.jsx(n,{"aria-hidden":!0,className:c.icon}),t]})]})});pf.displayName="Breadcrumb.Item";const mf=({children:t,className:e,theme:r={},...n})=>{const o=H(K().breadcrumb.root,r);return p.jsx("nav",{"aria-label":"Breadcrumb",className:F(o.base,e),...n,children:p.jsx("ol",{className:o.list,children:t})})};mf.displayName="Breadcrumb",Object.assign(mf,{Item:pf});var bf={exports:{}};/*!
|
|
491
|
+
Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let f=br(),h;h=f;let g=h.pathname||"/",m=g;if(d!=="/"){let y=d.replace(/^\//,"").split("/");m="/"+g.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=!i&&r&&r.matches&&r.matches.length>0?r.matches:xu(t,{pathname:m});return Ft(u||b!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Ft(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),_w(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:zt([d,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?d:zt([d,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),s,r,n)}function xw(){let t=Nw(),e=fw(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:i},"ErrorBoundary")," or"," ",C.createElement("code",{style:i},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},e),r?C.createElement("pre",{style:o},r):null,s)}var ww=C.createElement(xw,null),kw=class extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return this.state.error!==void 0?C.createElement($t.Provider,{value:this.props.routeContext},C.createElement(Rs.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Cw({routeContext:t,match:e,children:r}){let n=C.useContext(jr);return n&&n.static&&n.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=e.route.id),C.createElement($t.Provider,{value:t},r)}function _w(t,e=[],r=null,n=null){if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,i=r==null?void 0:r.errors;if(i!=null){let l=o.findIndex(c=>c.route.id&&(i==null?void 0:i[c.route.id])!==void 0);Be(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,l+1))}let s=!1,a=-1;if(r)for(let l=0;l<o.length;l++){let c=o[l];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(a=l),c.route.id){let{loaderData:d,errors:u}=r,f=c.route.loader&&!d.hasOwnProperty(c.route.id)&&(!u||u[c.route.id]===void 0);if(c.route.lazy||f){s=!0,a>=0?o=o.slice(0,a+1):o=[o[0]];break}}}return o.reduceRight((l,c,d)=>{let u,f=!1,h=null,g=null;r&&(u=i&&c.route.id?i[c.route.id]:void 0,h=c.route.errorElement||ww,s&&(a<0&&d===0?(Pu("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,g=null):a===d&&(f=!0,g=c.route.hydrateFallbackElement||null)));let m=e.concat(o.slice(0,d+1)),b=()=>{let v;return u?v=h:f?v=g:c.route.Component?v=C.createElement(c.route.Component,null):c.route.element?v=c.route.element:v=l,C.createElement(Cw,{match:c,routeContext:{outlet:l,matches:m,isDataRoute:r!=null},children:v})};return r&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?C.createElement(kw,{location:r.location,revalidation:r.revalidation,component:h,error:u,children:b(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):b()},null)}function Ys(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Sw(t){let e=C.useContext(jr);return Be(e,Ys(t)),e}function Ew(t){let e=C.useContext(ni);return Be(e,Ys(t)),e}function Ow(t){let e=C.useContext($t);return Be(e,Ys(t)),e}function Us(t){let e=Ow(t),r=e.matches[e.matches.length-1];return Be(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function Tw(){return Us("useRouteId")}function Nw(){var n;let t=C.useContext(Rs),e=Ew("useRouteError"),r=Us("useRouteError");return t!==void 0?t:(n=e.errors)==null?void 0:n[r]}function Mw(){let{router:t}=Sw("useNavigate"),e=Us("useNavigate"),r=C.useRef(!1);return Nu(()=>{r.current=!0}),C.useCallback(async(o,i={})=>{Ft(r.current,Tu),r.current&&(typeof o=="number"?t.navigate(o):await t.navigate(o,{fromRouteId:e,...i}))},[t,e])}var Mu={};function Pu(t,e,r){!e&&!Mu[t]&&(Mu[t]=!0,Ft(!1,r))}C.memo(Pw);function Pw({routes:t,future:e,state:r}){return vw(t,void 0,r,e)}var ii="get",si="application/x-www-form-urlencoded";function ai(t){return t!=null&&typeof t.tagName=="string"}function Aw(t){return ai(t)&&t.tagName.toLowerCase()==="button"}function Dw(t){return ai(t)&&t.tagName.toLowerCase()==="form"}function Iw(t){return ai(t)&&t.tagName.toLowerCase()==="input"}function Lw(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Fw(t,e){return t.button===0&&(!e||e==="_self")&&!Lw(t)}var li=null;function zw(){if(li===null)try{new FormData(document.createElement("form"),0),li=!1}catch{li=!0}return li}var Bw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qs(t){return t!=null&&!Bw.has(t)?(Ft(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${si}"`),null):t}function $w(t,e){let r,n,o,i,s;if(Dw(t)){let a=t.getAttribute("action");n=a?Xt(a,e):null,r=t.getAttribute("method")||ii,o=qs(t.getAttribute("enctype"))||si,i=new FormData(t)}else if(Aw(t)||Iw(t)&&(t.type==="submit"||t.type==="image")){let a=t.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||a.getAttribute("action");if(n=l?Xt(l,e):null,r=t.getAttribute("formmethod")||a.getAttribute("method")||ii,o=qs(t.getAttribute("formenctype"))||qs(a.getAttribute("enctype"))||si,i=new FormData(a,t),!zw()){let{name:c,type:d,value:u}=t;if(d==="image"){let f=c?`${c}.`:"";i.append(`${f}x`,"0"),i.append(`${f}y`,"0")}else c&&i.append(c,u)}}else{if(ai(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ii,n=null,o=si,s=t}return i&&o==="text/plain"&&(s=i,i=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:i,body:s}}function Ks(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}async function jw(t,e){if(t.id in e)return e[t.id];try{let r=await import(t.module);return e[t.id]=r,r}catch(r){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Hw(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Ww(t,e,r){let n=await Promise.all(t.map(async o=>{let i=e.routes[o.route.id];if(i){let s=await jw(i,r);return s.links?s.links():[]}return[]}));return Uw(n.flat(1).filter(Hw).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Au(t,e,r,n,o,i){let s=(l,c)=>r[c]?l.route.id!==r[c].route.id:!0,a=(l,c)=>{var d;return r[c].pathname!==l.pathname||((d=r[c].route.path)==null?void 0:d.endsWith("*"))&&r[c].params["*"]!==l.params["*"]};return i==="assets"?e.filter((l,c)=>s(l,c)||a(l,c)):i==="data"?e.filter((l,c)=>{var u;let d=n.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(s(l,c)||a(l,c))return!0;if(l.route.shouldRevalidate){let f=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((u=r[0])==null?void 0:u.params)||{},nextUrl:new URL(t,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function Vw(t,e,{includeHydrateFallback:r}={}){return Rw(t.map(n=>{let o=e.routes[n.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function Rw(t){return[...new Set(t)]}function Yw(t){let e={},r=Object.keys(t).sort();for(let n of r)e[n]=t[n];return e}function Uw(t,e){let r=new Set;return new Set(e),t.reduce((n,o)=>{let i=JSON.stringify(Yw(o));return r.has(i)||(r.add(i),n.push({key:i,link:o})),n},[])}function qw(t,e){let r=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return r.pathname==="/"?r.pathname="_root.data":e&&Xt(r.pathname,e)==="/"?r.pathname=`${e.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Du(){let t=C.useContext(jr);return Ks(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Kw(){let t=C.useContext(ni);return Ks(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Gs=C.createContext(void 0);Gs.displayName="FrameworkContext";function Iu(){let t=C.useContext(Gs);return Ks(t,"You must render this element inside a <HydratedRouter> element"),t}function Gw(t,e){let r=C.useContext(Gs),[n,o]=C.useState(!1),[i,s]=C.useState(!1),{onFocus:a,onBlur:l,onMouseEnter:c,onMouseLeave:d,onTouchStart:u}=e,f=C.useRef(null);C.useEffect(()=>{if(t==="render"&&s(!0),t==="viewport"){let m=v=>{v.forEach(y=>{s(y.isIntersecting)})},b=new IntersectionObserver(m,{threshold:.5});return f.current&&b.observe(f.current),()=>{b.disconnect()}}},[t]),C.useEffect(()=>{if(n){let m=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(m)}}},[n]);let h=()=>{o(!0)},g=()=>{o(!1),s(!1)};return r?t!=="intent"?[i,f,{}]:[i,f,{onFocus:$n(a,h),onBlur:$n(l,g),onMouseEnter:$n(c,h),onMouseLeave:$n(d,g),onTouchStart:$n(u,h)}]:[!1,f,{}]}function $n(t,e){return r=>{t&&t(r),r.defaultPrevented||e(r)}}function Xw({page:t,...e}){let{router:r}=Du(),n=C.useMemo(()=>xu(r.routes,t,r.basename),[r.routes,t,r.basename]);return n?C.createElement(Jw,{page:t,matches:n,...e}):null}function Zw(t){let{manifest:e,routeModules:r}=Iu(),[n,o]=C.useState([]);return C.useEffect(()=>{let i=!1;return Ww(t,e,r).then(s=>{i||o(s)}),()=>{i=!0}},[t,e,r]),n}function Jw({page:t,matches:e,...r}){let n=br(),{manifest:o,routeModules:i}=Iu(),{basename:s}=Du(),{loaderData:a,matches:l}=Kw(),c=C.useMemo(()=>Au(t,e,l,o,n,"data"),[t,e,l,o,n]),d=C.useMemo(()=>Au(t,e,l,o,n,"assets"),[t,e,l,o,n]),u=C.useMemo(()=>{if(t===n.pathname+n.search+n.hash)return[];let g=new Set,m=!1;if(e.forEach(v=>{var _;let y=o.routes[v.route.id];!y||!y.hasLoader||(!c.some(x=>x.route.id===v.route.id)&&v.route.id in a&&((_=i[v.route.id])!=null&&_.shouldRevalidate)||y.hasClientLoader?m=!0:g.add(v.route.id))}),g.size===0)return[];let b=qw(t,s);return m&&g.size>0&&b.searchParams.set("_routes",e.filter(v=>g.has(v.route.id)).map(v=>v.route.id).join(",")),[b.pathname+b.search]},[s,a,n,o,c,e,t,i]),f=C.useMemo(()=>Vw(d,o),[d,o]),h=Zw(d);return C.createElement(C.Fragment,null,u.map(g=>C.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...r})),f.map(g=>C.createElement("link",{key:g,rel:"modulepreload",href:g,...r})),h.map(({key:g,link:m})=>C.createElement("link",{key:g,...m})))}function Qw(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}var Lu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Lu&&(window.__reactRouterVersion="7.4.0")}catch{}var Fu=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hr=C.forwardRef(function({onClick:e,discover:r="render",prefetch:n="none",relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:d,viewTransition:u,...f},h){let{basename:g}=C.useContext(Bt),m=typeof c=="string"&&Fu.test(c),b,v=!1;if(typeof c=="string"&&m&&(b=c,Lu))try{let N=new URL(window.location.href),E=c.startsWith("//")?new URL(N.protocol+c):new URL(c),I=Xt(E.pathname,g);E.origin===N.origin&&I!=null?c=I+E.search+E.hash:v=!0}catch{Ft(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let y=mw(c,{relative:o}),[_,x,w]=Gw(n,f),S=n1(c,{replace:s,state:a,target:l,preventScrollReset:d,relative:o,viewTransition:u});function T(N){e&&e(N),N.defaultPrevented||S(N)}let M=C.createElement("a",{...f,...w,href:b||y,onClick:v||i?e:T,ref:Qw(h,x),target:l,"data-discover":!m&&r==="render"?"true":void 0});return _&&!m?C.createElement(C.Fragment,null,M,C.createElement(Xw,{page:y})):M});Hr.displayName="Link";var e1=C.forwardRef(function({"aria-current":e="page",caseSensitive:r=!1,className:n="",end:o=!1,style:i,to:s,viewTransition:a,children:l,...c},d){let u=Bn(s,{relative:c.relative}),f=br(),h=C.useContext(ni),{navigator:g,basename:m}=C.useContext(Bt),b=h!=null&&l1(u)&&a===!0,v=g.encodeLocation?g.encodeLocation(u).pathname:u.pathname,y=f.pathname,_=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;r||(y=y.toLowerCase(),_=_?_.toLowerCase():null,v=v.toLowerCase()),_&&m&&(_=Xt(_,m)||_);const x=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let w=y===v||!o&&y.startsWith(v)&&y.charAt(x)==="/",S=_!=null&&(_===v||!o&&_.startsWith(v)&&_.charAt(v.length)==="/"),T={isActive:w,isPending:S,isTransitioning:b},M=w?e:void 0,N;typeof n=="function"?N=n(T):N=[n,w?"active":null,S?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let E=typeof i=="function"?i(T):i;return C.createElement(Hr,{...c,"aria-current":M,className:N,ref:d,style:E,to:s,viewTransition:a},typeof l=="function"?l(T):l)});e1.displayName="NavLink";var t1=C.forwardRef(({discover:t="render",fetcherKey:e,navigate:r,reloadDocument:n,replace:o,state:i,method:s=ii,action:a,onSubmit:l,relative:c,preventScrollReset:d,viewTransition:u,...f},h)=>{let g=s1(),m=a1(a,{relative:c}),b=s.toLowerCase()==="get"?"get":"post",v=typeof a=="string"&&Fu.test(a),y=_=>{if(l&&l(_),_.defaultPrevented)return;_.preventDefault();let x=_.nativeEvent.submitter,w=(x==null?void 0:x.getAttribute("formmethod"))||s;g(x||_.currentTarget,{fetcherKey:e,method:w,navigate:r,replace:o,state:i,relative:c,preventScrollReset:d,viewTransition:u})};return C.createElement("form",{ref:h,method:b,action:m,onSubmit:n?l:y,...f,"data-discover":!v&&t==="render"?"true":void 0})});t1.displayName="Form";function r1(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zu(t){let e=C.useContext(jr);return Be(e,r1(t)),e}function n1(t,{target:e,replace:r,state:n,preventScrollReset:o,relative:i,viewTransition:s}={}){let a=bw(),l=br(),c=Bn(t,{relative:i});return C.useCallback(d=>{if(Fw(d,e)){d.preventDefault();let u=r!==void 0?r:js(l)===js(c);a(t,{replace:u,state:n,preventScrollReset:o,relative:i,viewTransition:s})}},[l,a,c,r,n,e,t,o,i,s])}var o1=0,i1=()=>`__${String(++o1)}__`;function s1(){let{router:t}=zu("useSubmit"),{basename:e}=C.useContext(Bt),r=Tw();return C.useCallback(async(n,o={})=>{let{action:i,method:s,encType:a,formData:l,body:c}=$w(n,e);if(o.navigate===!1){let d=o.fetcherKey||i1();await t.fetch(d,r,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||s,formEncType:o.encType||a,flushSync:o.flushSync})}else await t.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||s,formEncType:o.encType||a,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[t,e,r])}function a1(t,{relative:e}={}){let{basename:r}=C.useContext(Bt),n=C.useContext($t);Be(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),i={...Bn(t||".",{relative:e})},s=br();if(t==null){i.search=s.search;let a=new URLSearchParams(i.search),l=a.getAll("index");if(l.some(d=>d==="")){a.delete("index"),l.filter(u=>u).forEach(u=>a.append("index",u));let d=a.toString();i.search=d?`?${d}`:""}}return(!t||t===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(i.pathname=i.pathname==="/"?r:zt([r,i.pathname])),js(i)}function l1(t,e={}){let r=C.useContext(Ou);Be(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=zu("useViewTransitionState"),o=Bn(t,{relative:e.relative});if(!r.isTransitioning)return!1;let i=Xt(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=Xt(r.nextLocation.pathname,n)||r.nextLocation.pathname;return ri(o.pathname,s)!=null||ri(o.pathname,i)!=null}new TextEncoder;const c1=no(),d1=()=>{const[t,e]=k.useState(!0),[r,n]=k.useState(null),o=()=>{r||e(!1)},i=()=>{r||e(!0)},s=a=>{n(r===a?null:a)};return p.jsx("div",{className:"fixed left-0 top-0 z-40 h-full",children:p.jsxs("div",{className:"flex flex-col",onMouseEnter:o,onMouseLeave:i,children:[p.jsxs(sv,{collapsed:t,rootStyles:{[`.${xe.container}`]:{backgroundColor:"#483FFF",color:"#483FFF",height:"100vh",display:"flex",flexDirection:"column"}},children:[p.jsx(Hr,{to:"/dashboard",children:p.jsx("div",{children:p.jsx(Er,{classIm:"mx-auto",src:`${c1}/public/assets/images/logo mathilde.png`,alt:"Logo Mathilde ads",width:74,height:74})})}),p.jsxs(cv,{children:[p.jsxs($r,{icon:p.jsx(sp,{className:"text-2xl"}),onClick:()=>s("campanas"),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Campañas"," "]}),p.jsx(Hr,{to:"https://dsp.mathilde-ads.com/login",children:p.jsxs($r,{icon:p.jsx(Dx,{className:"text-xl"}),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Medios"," "]})}),p.jsxs($r,{icon:p.jsx(ap,{className:"text-xl"}),onClick:()=>s("audiencias"),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Audiencias"," "]}),p.jsxs($r,{icon:p.jsx(Lx,{className:"text-xl"}),onClick:()=>s("reportes"),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Reportes"," "]}),p.jsxs($r,{icon:p.jsx(Ix,{className:"text-xl"}),onClick:()=>s("facturacion"),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Facturación"," "]}),p.jsx(Hr,{to:"/settings",children:p.jsxs($r,{icon:p.jsx(Fx,{className:"text-xl"}),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Configuración"," "]})})]}),p.jsx("div",{className:"mt-auto self-end p-4",children:p.jsx("div",{className:"flex justify-center rounded-lg bg-white p-2",children:p.jsx("button",{className:"cursor-pointer text-3xl",style:{color:"#483FFF"},children:p.jsx(Fb,{})})})})]}),p.jsx(Ar,{width:"40%",isOpen:r==="campanas",onClose:()=>n(null),children:p.jsxs("div",{className:"flex flex-col p-10",children:[p.jsx("h2",{className:"mb-3 text-center font-bold",children:"Selecciona el tipo de campaña que quieres crear"}),p.jsxs("div",{className:"flex",children:[p.jsx("div",{className:"w-3/6 p-2",children:p.jsx(ti,{image:{type:"image",name:"medios-propios"},title:"Medios Propios",description:"Crea y administra campañas a los usuarios que ingresan a tus canales."})}),p.jsx("div",{className:"w-3/6 p-2",children:p.jsx(Hr,{to:"/thirdPartyCampaign",children:p.jsx(ti,{image:{type:"image",name:"medios-pagos"},title:"Medios Pagos",description:"Activa campañas de Marketing Digital usando inventario de Redes Sociales y Google."})})})]})]})}),p.jsx(Ar,{isOpen:r==="audiencias",onClose:()=>n(null),children:p.jsx("h2",{children:"Audiencias"})}),p.jsx(Ar,{isOpen:r==="reportes",onClose:()=>n(null),children:p.jsx("h2",{children:"Reportes"})}),p.jsx(Ar,{isOpen:r==="facturacion",onClose:()=>n(null),children:p.jsx("h2",{children:"Facturación"})}),p.jsx(Ar,{isOpen:r==="configuracion",onClose:()=>n(null),children:p.jsx("h2",{children:"Configuración"})})]})})};function u1(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"},child:[]}]})(t)}function f1(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function h1(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"},child:[]}]})(t)}function Bu(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function $u(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"},child:[]}]})(t)}function ju(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"},child:[]}]})(t)}function g1(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"},child:[]}]})(t)}function p1(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"},child:[]}]})(t)}function m1(t){return pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function Hu(t){return pe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"},child:[]}]})(t)}function b1(t){return pe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"},child:[]}]})(t)}function Wu(t){return pe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"},child:[]}]})(t)}function y1(t){return pe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 15l7-7 7 7"},child:[]}]})(t)}function v1(t){return pe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"},child:[]}]})(t)}const Xs="-";function x1(t){const e=k1(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;function o(s){const a=s.split(Xs);return a[0]===""&&a.length!==1&&a.shift(),Vu(a,e)||w1(s)}function i(s,a){const l=r[s]||[];return a&&n[s]?[...l,...n[s]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function Vu(t,e){var s;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?Vu(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const i=t.join(Xs);return(s=e.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId}const Ru=/^\[(.+)\]$/;function w1(t){if(Ru.test(t)){const e=Ru.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}}function k1(t){const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return _1(Object.entries(t.classGroups),r).forEach(([i,s])=>{Zs(s,n,i,e)}),n}function Zs(t,e,r,n){t.forEach(o=>{if(typeof o=="string"){const i=o===""?e:Yu(e,o);i.classGroupId=r;return}if(typeof o=="function"){if(C1(o)){Zs(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Zs(s,Yu(e,i),r,n)})})}function Yu(t,e){let r=t;return e.split(Xs).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function C1(t){return t.isThemeGetter}function _1(t,e){return e?t.map(([r,n])=>{const o=n.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[e+s,a])):i);return[r,o]}):t}function S1(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;function o(i,s){r.set(i,s),e++,e>t&&(e=0,n=r,r=new Map)}return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}}const Uu="!";function E1(t){const e=t.separator,r=e.length===1,n=e[0],o=e.length;return function(s){const a=[];let l=0,c=0,d;for(let m=0;m<s.length;m++){let b=s[m];if(l===0){if(b===n&&(r||s.slice(m,m+o)===e)){a.push(s.slice(c,m)),c=m+o;continue}if(b==="/"){d=m;continue}}b==="["?l++:b==="]"&&l--}const u=a.length===0?s:s.substring(c),f=u.startsWith(Uu),h=f?u.substring(1):u,g=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:g}}}function O1(t){if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e}function T1(t){return{cache:S1(t.cacheSize),splitModifiers:E1(t),...x1(t)}}const N1=/\s+/;function M1(t,e){const{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:o}=e,i=new Set;return t.trim().split(N1).map(s=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:d}=r(s);let u=n(d?c.substring(0,d):c),f=!!d;if(!u){if(!d)return{isTailwindClass:!1,originalClassName:s};if(u=n(c),!u)return{isTailwindClass:!1,originalClassName:s};f=!1}const h=O1(a).join(":");return{isTailwindClass:!0,modifierId:l?h+Uu:h,classGroupId:u,originalClassName:s,hasPostfixModifier:f}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:c}=s,d=a+l;return i.has(d)?!1:(i.add(d),o(l,c).forEach(u=>i.add(a+u)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function P1(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=qu(e))&&(n&&(n+=" "),n+=r);return n}function qu(t){if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=qu(t[n]))&&(r&&(r+=" "),r+=e);return r}function A1(t,...e){let r,n,o,i=s;function s(l){const c=e.reduce((d,u)=>u(d),t());return r=T1(c),n=r.cache.get,o=r.cache.set,i=a,a(l)}function a(l){const c=n(l);if(c)return c;const d=M1(l,r);return o(l,d),d}return function(){return i(P1.apply(null,arguments))}}function ye(t){const e=r=>r[t]||[];return e.isThemeGetter=!0,e}const Ku=/^\[(?:([a-z-]+):)?(.+)\]$/i,D1=/^\d+\/\d+$/,I1=new Set(["px","full","screen"]),L1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,F1=/\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$/,z1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,B1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function jt(t){return yr(t)||I1.has(t)||D1.test(t)}function Zt(t){return Wr(t,"length",q1)}function yr(t){return!!t&&!Number.isNaN(Number(t))}function ci(t){return Wr(t,"number",yr)}function jn(t){return!!t&&Number.isInteger(Number(t))}function j1(t){return t.endsWith("%")&&yr(t.slice(0,-1))}function Z(t){return Ku.test(t)}function Jt(t){return L1.test(t)}const H1=new Set(["length","size","percentage"]);function W1(t){return Wr(t,H1,Gu)}function V1(t){return Wr(t,"position",Gu)}const R1=new Set(["image","url"]);function Y1(t){return Wr(t,R1,G1)}function U1(t){return Wr(t,"",K1)}function Hn(){return!0}function Wr(t,e,r){const n=Ku.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1}function q1(t){return F1.test(t)&&!z1.test(t)}function Gu(){return!1}function K1(t){return B1.test(t)}function G1(t){return $1.test(t)}function X1(){const t=ye("colors"),e=ye("spacing"),r=ye("blur"),n=ye("brightness"),o=ye("borderColor"),i=ye("borderRadius"),s=ye("borderSpacing"),a=ye("borderWidth"),l=ye("contrast"),c=ye("grayscale"),d=ye("hueRotate"),u=ye("invert"),f=ye("gap"),h=ye("gradientColorStops"),g=ye("gradientColorStopPositions"),m=ye("inset"),b=ye("margin"),v=ye("opacity"),y=ye("padding"),_=ye("saturate"),x=ye("scale"),w=ye("sepia"),S=ye("skew"),T=ye("space"),M=ye("translate"),N=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",Z,e],A=()=>[Z,e],D=()=>["",jt,Zt],O=()=>["auto",yr,Z],P=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],B=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",Z],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[yr,ci],V=()=>[yr,Z];return{cacheSize:500,separator:":",theme:{colors:[Hn],spacing:[jt,Zt],blur:["none","",Jt,Z],brightness:W(),borderColor:[t],borderRadius:["none","","full",Jt,Z],borderSpacing:A(),borderWidth:D(),contrast:W(),grayscale:j(),hueRotate:V(),invert:j(),gap:A(),gradientColorStops:[t],gradientColorStopPositions:[j1,Zt],inset:I(),margin:I(),opacity:W(),padding:A(),saturate:W(),scale:W(),sepia:j(),skew:V(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[Jt]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...P(),Z]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",jn,Z]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",jn,Z]}],"grid-cols":[{"grid-cols":[Hn]}],"col-start-end":[{col:["auto",{span:["full",jn,Z]},Z]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Hn]}],"row-start-end":[{row:["auto",{span:[jn,Z]},Z]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Z,e]}],"min-w":[{"min-w":[Z,e,"min","max","fit"]}],"max-w":[{"max-w":[Z,e,"none","full","min","max","fit","prose",{screen:[Jt]},Jt]}],h:[{h:[Z,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Z,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Z,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Z,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Jt,Zt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ci]}],"font-family":[{font:[Hn]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Z]}],"line-clamp":[{"line-clamp":["none",yr,ci]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",jt,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",jt,Zt]}],"underline-offset":[{"underline-offset":["auto",jt,Z]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...P(),V1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",W1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Y1]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:L()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[jt,Z]}],"outline-w":[{outline:[jt,Zt]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[jt,Zt]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Jt,U1]}],"shadow-color":[{shadow:[Hn]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":z()}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Jt,Z]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[_]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[jn,Z]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",Z]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[jt,Zt,ci]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const F=A1(X1);function vr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function Wn(t){if(!vr(t))return t;const e={};for(const r in t)e[r]=Wn(t[r]);return e}function H(t,e){if(vr(e)&&Object.keys(e).length===0)return Wn({...t,...e});const r={...t,...e};if(vr(e)&&vr(t))for(const n in e)vr(e[n])&&n in t&&vr(t[n])?r[n]=H(t[n],e[n]):r[n]=vr(e[n])?Wn(e[n]):e[n];return r}function RC(t){return t}const Z1={root:{base:"divide-y divide-gray-200 border-gray-200 dark:divide-gray-700 dark:border-gray-700",flush:{off:"rounded-lg border",on:"border-b"}},content:{base:"p-5 first:rounded-t-lg last:rounded-b-lg dark:bg-gray-900"},title:{arrow:{base:"h-6 w-6 shrink-0",open:{off:"",on:"rotate-180"}},base:"flex w-full items-center justify-between p-5 text-left font-medium text-gray-500 first:rounded-t-lg last:rounded-b-lg dark:text-gray-400",flush:{off:"hover:bg-gray-100 focus:ring-4 focus:ring-gray-200 dark:hover:bg-gray-800 dark:focus:ring-gray-800",on:"bg-transparent dark:bg-transparent"},heading:"",open:{off:"",on:"bg-gray-100 text-gray-900 dark:bg-gray-800 dark:text-white"}}},J1={base:"flex flex-col gap-2 p-4 text-sm",borderAccent:"border-t-4",closeButton:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg p-1.5 focus:ring-2",icon:"h-5 w-5",color:{info:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",gray:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-white",failure:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",success:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",warning:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",red:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",green:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",yellow:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",blue:"bg-blue-100 text-blue-500 hover:bg-blue-200 focus:ring-blue-400 dark:bg-blue-200 dark:text-blue-600 dark:hover:bg-blue-300",cyan:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",pink:"bg-pink-100 text-pink-500 hover:bg-pink-200 focus:ring-pink-400 dark:bg-pink-200 dark:text-pink-600 dark:hover:bg-pink-300",lime:"bg-lime-100 text-lime-500 hover:bg-lime-200 focus:ring-lime-400 dark:bg-lime-200 dark:text-lime-600 dark:hover:bg-lime-300",dark:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-200 dark:text-gray-600 dark:hover:bg-gray-300",indigo:"bg-indigo-100 text-indigo-500 hover:bg-indigo-200 focus:ring-indigo-400 dark:bg-indigo-200 dark:text-indigo-600 dark:hover:bg-indigo-300",purple:"bg-purple-100 text-purple-500 hover:bg-purple-200 focus:ring-purple-400 dark:bg-purple-200 dark:text-purple-600 dark:hover:bg-purple-300",teal:"bg-teal-100 text-teal-500 hover:bg-teal-200 focus:ring-teal-400 dark:bg-teal-200 dark:text-teal-600 dark:hover:bg-teal-300",light:"bg-gray-50 text-gray-500 hover:bg-gray-100 focus:ring-gray-200 dark:bg-gray-600 dark:text-gray-200 dark:hover:bg-gray-700 dark:hover:text-white"}},color:{info:"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800",gray:"border-gray-500 bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300",failure:"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800",success:"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800",warning:"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800",red:"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800",green:"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800",yellow:"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800",blue:"border-blue-500 bg-blue-100 text-blue-700 dark:bg-blue-200 dark:text-blue-800",cyan:"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800",pink:"border-pink-500 bg-pink-100 text-pink-700 dark:bg-pink-200 dark:text-pink-800",lime:"border-lime-500 bg-lime-100 text-lime-700 dark:bg-lime-200 dark:text-lime-800",dark:"border-gray-600 bg-gray-800 text-gray-200 dark:bg-gray-900 dark:text-gray-300",indigo:"border-indigo-500 bg-indigo-100 text-indigo-700 dark:bg-indigo-200 dark:text-indigo-800",purple:"border-purple-500 bg-purple-100 text-purple-700 dark:bg-purple-200 dark:text-purple-800",teal:"border-teal-500 bg-teal-100 text-teal-700 dark:bg-teal-200 dark:text-teal-800",light:"border-gray-400 bg-gray-50 text-gray-600 dark:bg-gray-500 dark:text-gray-200"},icon:"mr-3 inline h-5 w-5 flex-shrink-0",rounded:"rounded-lg",wrapper:"flex items-center"},Q1={root:{base:"flex items-center justify-center space-x-4 rounded",bordered:"p-1 ring-2",rounded:"rounded-full",color:{dark:"ring-gray-800 dark:ring-gray-800",failure:"ring-red-500 dark:ring-red-700",gray:"ring-gray-500 dark:ring-gray-400",info:"ring-cyan-400 dark:ring-cyan-800",light:"ring-gray-300 dark:ring-gray-500",purple:"ring-purple-500 dark:ring-purple-600",success:"ring-green-500 dark:ring-green-500",warning:"ring-yellow-300 dark:ring-yellow-500",pink:"ring-pink-500 dark:ring-pink-500"},img:{base:"rounded",off:"relative overflow-hidden bg-gray-100 dark:bg-gray-600",on:"",placeholder:"absolute -bottom-1 h-auto w-auto text-gray-400"},size:{xs:"h-6 w-6",sm:"h-8 w-8",md:"h-10 w-10",lg:"h-20 w-20",xl:"h-36 w-36"},stacked:"ring-2 ring-gray-300 dark:ring-gray-500",statusPosition:{"bottom-left":"-bottom-1 -left-1","bottom-center":"-bottom-1","bottom-right":"-bottom-1 -right-1","top-left":"-left-1 -top-1","top-center":"-top-1","top-right":"-right-1 -top-1","center-right":"-right-1",center:"","center-left":"-left-1"},status:{away:"bg-yellow-400",base:"absolute h-3.5 w-3.5 rounded-full border-2 border-white dark:border-gray-800",busy:"bg-red-400",offline:"bg-gray-400",online:"bg-green-400"},initials:{text:"font-medium text-gray-600 dark:text-gray-300",base:"relative inline-flex items-center justify-center overflow-hidden bg-gray-100 dark:bg-gray-600"}},group:{base:"flex -space-x-4"},groupCounter:{base:"relative flex h-10 w-10 items-center justify-center rounded-full bg-gray-700 text-xs font-medium text-white ring-2 ring-gray-300 hover:bg-gray-600 dark:ring-gray-500"}},ek={root:{base:"flex h-fit items-center gap-1 font-semibold",color:{info:"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-800 dark:group-hover:bg-cyan-300",gray:"bg-gray-100 text-gray-800 group-hover:bg-gray-200 dark:bg-gray-700 dark:text-gray-300 dark:group-hover:bg-gray-600",failure:"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300",success:"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300",warning:"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300",indigo:"bg-indigo-100 text-indigo-800 group-hover:bg-indigo-200 dark:bg-indigo-200 dark:text-indigo-900 dark:group-hover:bg-indigo-300",purple:"bg-purple-100 text-purple-800 group-hover:bg-purple-200 dark:bg-purple-200 dark:text-purple-900 dark:group-hover:bg-purple-300",pink:"bg-pink-100 text-pink-800 group-hover:bg-pink-200 dark:bg-pink-200 dark:text-pink-900 dark:group-hover:bg-pink-300",blue:"bg-blue-100 text-blue-800 group-hover:bg-blue-200 dark:bg-blue-200 dark:text-blue-900 dark:group-hover:bg-blue-300",cyan:"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-900 dark:group-hover:bg-cyan-300",dark:"bg-gray-600 text-gray-100 group-hover:bg-gray-500 dark:bg-gray-900 dark:text-gray-200 dark:group-hover:bg-gray-700",light:"bg-gray-200 text-gray-800 group-hover:bg-gray-300 dark:bg-gray-400 dark:text-gray-900 dark:group-hover:bg-gray-500",green:"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300",lime:"bg-lime-100 text-lime-800 group-hover:bg-lime-200 dark:bg-lime-200 dark:text-lime-900 dark:group-hover:bg-lime-300",red:"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300",teal:"bg-teal-100 text-teal-800 group-hover:bg-teal-200 dark:bg-teal-200 dark:text-teal-900 dark:group-hover:bg-teal-300",yellow:"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300"},href:"group",size:{xs:"p-1 text-xs",sm:"p-1.5 text-sm"}},icon:{off:"rounded px-2 py-0.5",on:"rounded-full p-1.5",size:{xs:"h-3 w-3",sm:"h-3.5 w-3.5"}}},tk={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},rk={root:{base:"",list:"flex items-center"},item:{base:"group flex items-center",chevron:"mx-1 h-4 w-4 text-gray-400 group-first:hidden md:mx-2",href:{off:"flex items-center text-sm font-medium text-gray-500 dark:text-gray-400",on:"flex items-center text-sm font-medium text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white"},icon:"mr-2 h-4 w-4"}},nk={base:"group relative flex items-stretch justify-center p-0.5 text-center font-medium transition-[color,background-color,border-color,text-decoration-color,fill,stroke,box-shadow] focus:z-10 focus:outline-none",fullSized:"w-full",color:{dark:"border border-transparent bg-gray-800 text-white focus:ring-4 focus:ring-gray-300 enabled:hover:bg-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:focus:ring-gray-800 dark:enabled:hover:bg-gray-700",failure:"border border-transparent bg-red-700 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-800 dark:bg-red-600 dark:focus:ring-red-900 dark:enabled:hover:bg-red-700",gray:":ring-cyan-700 border border-gray-200 bg-white text-gray-900 focus:text-cyan-700 focus:ring-4 enabled:hover:bg-gray-100 enabled:hover:text-cyan-700 dark:border-gray-600 dark:bg-transparent dark:text-gray-400 dark:enabled:hover:bg-gray-700 dark:enabled:hover:text-white",info:"border border-transparent bg-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-800 dark:bg-cyan-600 dark:focus:ring-cyan-800 dark:enabled:hover:bg-cyan-700",light:"border border-gray-300 bg-white text-gray-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-600 dark:text-white dark:focus:ring-gray-700 dark:enabled:hover:border-gray-700 dark:enabled:hover:bg-gray-700",purple:"border border-transparent bg-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-purple-800 dark:bg-purple-600 dark:focus:ring-purple-900 dark:enabled:hover:bg-purple-700",success:"border border-transparent bg-green-700 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-800 dark:bg-green-600 dark:focus:ring-green-800 dark:enabled:hover:bg-green-700",warning:"border border-transparent bg-yellow-400 text-white focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-500 dark:focus:ring-yellow-900",blue:"border border-transparent bg-blue-700 text-white focus:ring-4 focus:ring-blue-300 enabled:hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",cyan:"border border-cyan-300 bg-white text-cyan-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-100 dark:border-cyan-600 dark:bg-cyan-600 dark:text-white dark:focus:ring-cyan-700 dark:enabled:hover:border-cyan-700 dark:enabled:hover:bg-cyan-700",green:"border border-green-300 bg-white text-green-900 focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-100 dark:border-green-600 dark:bg-green-600 dark:text-white dark:focus:ring-green-700 dark:enabled:hover:border-green-700 dark:enabled:hover:bg-green-700",indigo:"border border-indigo-300 bg-white text-indigo-900 focus:ring-4 focus:ring-indigo-300 enabled:hover:bg-indigo-100 dark:border-indigo-600 dark:bg-indigo-600 dark:text-white dark:focus:ring-indigo-700 dark:enabled:hover:border-indigo-700 dark:enabled:hover:bg-indigo-700",lime:"border border-lime-300 bg-white text-lime-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-lime-100 dark:border-lime-600 dark:bg-lime-600 dark:text-white dark:focus:ring-lime-700 dark:enabled:hover:border-lime-700 dark:enabled:hover:bg-lime-700",pink:"border border-pink-300 bg-white text-pink-900 focus:ring-4 focus:ring-pink-300 enabled:hover:bg-pink-100 dark:border-pink-600 dark:bg-pink-600 dark:text-white dark:focus:ring-pink-700 dark:enabled:hover:border-pink-700 dark:enabled:hover:bg-pink-700",red:"border border-red-300 bg-white text-red-900 focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-100 dark:border-red-600 dark:bg-red-600 dark:text-white dark:focus:ring-red-700 dark:enabled:hover:border-red-700 dark:enabled:hover:bg-red-700",teal:"border border-teal-300 bg-white text-teal-900 focus:ring-4 focus:ring-teal-300 enabled:hover:bg-teal-100 dark:border-teal-600 dark:bg-teal-600 dark:text-white dark:focus:ring-teal-700 dark:enabled:hover:border-teal-700 dark:enabled:hover:bg-teal-700",yellow:"border border-yellow-300 bg-white text-yellow-900 focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-100 dark:border-yellow-600 dark:bg-yellow-600 dark:text-white dark:focus:ring-yellow-700 dark:enabled:hover:border-yellow-700 dark:enabled:hover:bg-yellow-700"},disabled:"cursor-not-allowed opacity-50",isProcessing:"cursor-wait",spinnerSlot:"absolute top-0 flex h-full items-center",spinnerLeftPosition:{xs:"left-2",sm:"left-3",md:"left-4",lg:"left-5",xl:"left-6"},gradient:{cyan:"bg-gradient-to-r from-cyan-400 via-cyan-500 to-cyan-600 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800",failure:"bg-gradient-to-r from-red-400 via-red-500 to-red-600 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-gradient-to-br dark:focus:ring-red-800",info:"bg-gradient-to-r from-cyan-500 via-cyan-600 to-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800 ",lime:"bg-gradient-to-r from-lime-200 via-lime-400 to-lime-500 text-gray-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-gradient-to-br dark:focus:ring-lime-800",pink:"bg-gradient-to-r from-pink-400 via-pink-500 to-pink-600 text-white focus:ring-4 focus:ring-pink-300 enabled:hover:bg-gradient-to-br dark:focus:ring-pink-800",purple:"bg-gradient-to-r from-purple-500 via-purple-600 to-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-gradient-to-br dark:focus:ring-purple-800",success:"bg-gradient-to-r from-green-400 via-green-500 to-green-600 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-gradient-to-br dark:focus:ring-green-800",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 text-white focus:ring-4 focus:ring-teal-300 enabled:hover:bg-gradient-to-br dark:focus:ring-teal-800"},gradientDuoTone:{cyanToBlue:"bg-gradient-to-r from-cyan-500 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800",greenToBlue:"bg-gradient-to-br from-green-400 to-cyan-600 text-white focus:ring-4 focus:ring-green-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-green-800",pinkToOrange:"bg-gradient-to-br from-pink-500 to-orange-400 text-white focus:ring-4 focus:ring-pink-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-pink-800",purpleToBlue:"bg-gradient-to-br from-purple-600 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800",purpleToPink:"bg-gradient-to-r from-purple-500 to-pink-500 text-white focus:ring-4 focus:ring-purple-200 enabled:hover:bg-gradient-to-l dark:focus:ring-purple-800",redToYellow:"bg-gradient-to-r from-red-200 via-red-300 to-yellow-200 text-gray-900 focus:ring-4 focus:ring-red-100 enabled:hover:bg-gradient-to-bl dark:focus:ring-red-400",tealToLime:"bg-gradient-to-r from-teal-200 to-lime-200 text-gray-900 focus:ring-4 focus:ring-lime-200 enabled:hover:bg-gradient-to-l enabled:hover:from-teal-200 enabled:hover:to-lime-200 enabled:hover:text-gray-900 dark:focus:ring-teal-700"},inner:{base:"flex items-stretch transition-all duration-200",position:{none:"",start:"rounded-r-none",middle:"rounded-none",end:"rounded-l-none"},outline:"border border-transparent",isProcessingPadding:{xs:"pl-8",sm:"pl-10",md:"pl-12",lg:"pl-16",xl:"pl-20"}},label:"ml-2 inline-flex h-4 w-4 items-center justify-center rounded-full bg-cyan-200 text-xs font-semibold text-cyan-800",outline:{color:{gray:"border border-gray-900 dark:border-white",default:"border-0",light:""},off:"",on:"flex w-full justify-center bg-white text-gray-900 transition-all duration-75 ease-in group-enabled:group-hover:bg-opacity-0 group-enabled:group-hover:text-inherit dark:bg-gray-900 dark:text-white",pill:{off:"rounded-md",on:"rounded-full"}},pill:{off:"rounded-lg",on:"rounded-full"},size:{xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-5 py-2.5 text-base",xl:"px-6 py-3 text-base"}},ok={base:"inline-flex",position:{none:"",start:"rounded-r-none focus:ring-2",middle:"rounded-none border-l-0 pl-0 focus:ring-2",end:"rounded-l-none border-l-0 pl-0 focus:ring-2"}},ik={root:{base:"flex rounded-lg border border-gray-200 bg-white shadow-md dark:border-gray-700 dark:bg-gray-800",children:"flex h-full flex-col justify-center gap-4 p-6",horizontal:{off:"flex-col",on:"flex-col md:max-w-xl md:flex-row"},href:"hover:bg-gray-100 dark:hover:bg-gray-700"},img:{base:"",horizontal:{off:"rounded-t-lg",on:"h-96 w-full rounded-t-lg object-cover md:h-auto md:w-48 md:rounded-none md:rounded-l-lg"}}},sk={root:{base:"relative h-full w-full",leftControl:"absolute left-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none",rightControl:"absolute right-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none"},indicators:{active:{off:"bg-white/50 hover:bg-white dark:bg-gray-800/50 dark:hover:bg-gray-800",on:"bg-white dark:bg-gray-800"},base:"h-3 w-3 rounded-full",wrapper:"absolute bottom-5 left-1/2 flex -translate-x-1/2 space-x-3"},item:{base:"absolute left-1/2 top-1/2 block w-full -translate-x-1/2 -translate-y-1/2",wrapper:{off:"w-full flex-shrink-0 transform cursor-default snap-center",on:"w-full flex-shrink-0 transform cursor-grab snap-center"}},control:{base:"inline-flex h-8 w-8 items-center justify-center rounded-full bg-white/30 group-hover:bg-white/50 group-focus:outline-none group-focus:ring-4 group-focus:ring-white dark:bg-gray-800/30 dark:group-hover:bg-gray-800/60 dark:group-focus:ring-gray-800/70 sm:h-10 sm:w-10",icon:"h-5 w-5 text-white dark:text-gray-800 sm:h-6 sm:w-6"},scrollContainer:{base:"flex h-full snap-mandatory overflow-y-hidden overflow-x-scroll scroll-smooth rounded-lg",snap:"snap-x"}},ak={root:{base:"h-4 w-4 rounded border border-gray-300 bg-gray-100 focus:ring-2 dark:border-gray-600 dark:bg-gray-700",color:{default:"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-gray-800 dark:focus:ring-cyan-600",dark:"text-gray-800 focus:ring-gray-800 dark:ring-offset-gray-800 dark:focus:ring-gray-800",failure:"text-red-900 focus:ring-red-900 dark:ring-offset-red-900 dark:focus:ring-red-900",gray:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",info:"text-cyan-800 focus:ring-cyan-800 dark:ring-offset-gray-800 dark:focus:ring-cyan-800",light:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",purple:"text-purple-600 focus:ring-purple-600 dark:ring-offset-purple-600 dark:focus:ring-purple-600",success:"text-green-800 focus:ring-green-800 dark:ring-offset-green-800 dark:focus:ring-green-800",warning:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400",blue:"text-blue-700 focus:ring-blue-600 dark:ring-offset-blue-700 dark:focus:ring-blue-700",cyan:"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-cyan-600 dark:focus:ring-cyan-600",green:"text-green-600 focus:ring-green-600 dark:ring-offset-green-600 dark:focus:ring-green-600",indigo:"text-indigo-700 focus:ring-indigo-700 dark:ring-offset-indigo-700 dark:focus:ring-indigo-700",lime:"text-lime-700 focus:ring-lime-700 dark:ring-offset-lime-700 dark:focus:ring-lime-700",pink:"text-pink-600 focus:ring-pink-600 dark:ring-offset-pink-600 dark:focus:ring-pink-600",red:"text-red-600 focus:ring-red-600 dark:ring-offset-red-600 dark:focus:ring-red-600",teal:"text-teal-600 focus:ring-teal-600 dark:ring-offset-teal-600 dark:focus:ring-teal-600",yellow:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400"}}},lk={root:{base:"rounded-lg p-2.5 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700",icon:"h-5 w-5"}},ck={root:{base:"relative"},popup:{root:{base:"absolute top-10 z-50 block pt-2",inline:"relative top-0 z-auto",inner:"inline-block rounded-lg bg-white p-4 shadow-lg dark:bg-gray-700"},header:{base:"",title:"px-2 py-3 text-center font-semibold text-gray-900 dark:text-white",selectors:{base:"mb-2 flex justify-between",button:{base:"rounded-lg bg-white px-5 py-2.5 text-sm font-semibold text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600",prev:"",next:"",view:""}}},view:{base:"p-1"},footer:{base:"mt-2 flex space-x-2",button:{base:"w-full rounded-lg px-5 py-2 text-center text-sm font-medium focus:ring-4 focus:ring-cyan-300",today:"bg-cyan-700 text-white hover:bg-cyan-800 dark:bg-cyan-600 dark:hover:bg-cyan-700",clear:"border border-gray-300 bg-white text-gray-900 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600"}}},views:{days:{header:{base:"mb-1 grid grid-cols-7",title:"h-6 text-center text-sm font-medium leading-6 text-gray-500 dark:text-gray-400"},items:{base:"grid w-64 grid-cols-7",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600 ",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},months:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},years:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},decades:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}}}},dk={arrowIcon:"ml-2 h-4 w-4",content:"py-1 focus:outline-none",floating:{animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"z-10 w-fit divide-y divide-gray-100 rounded shadow focus:outline-none",content:"py-1 text-sm text-gray-700 dark:text-gray-200",divider:"my-1 h-px bg-gray-100 dark:bg-gray-600",header:"block px-4 py-2 text-sm text-gray-700 dark:text-gray-200",hidden:"invisible opacity-0",item:{container:"",base:"flex w-full cursor-pointer items-center justify-start px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:bg-gray-600 dark:focus:text-white",icon:"mr-2 h-4 w-4"},style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},target:"w-fit"},inlineWrapper:"flex items-center"},uk={root:{base:"flex"},field:{base:"relative w-full",input:{base:"block w-full overflow-hidden rounded-lg border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"sm:text-xs",md:"text-sm",lg:"sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}},fk={input:{default:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500"}},success:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500"}},error:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500"}}},label:{default:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500"}},success:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500"}},error:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500"}}},helperText:{default:"mt-2 text-xs text-gray-600 dark:text-gray-400",success:"mt-2 text-xs text-green-600 dark:text-green-400",error:"mt-2 text-xs text-red-600 dark:text-red-400"}},hk={root:{base:"w-full rounded-lg bg-white shadow dark:bg-gray-800 md:flex md:items-center md:justify-between",container:"w-full p-6",bgDark:"bg-gray-800"},groupLink:{base:"flex flex-wrap text-sm text-gray-500 dark:text-white",link:{base:"me-4 last:mr-0 md:mr-6",href:"hover:underline"},col:"flex-col space-y-4"},icon:{base:"text-gray-500 dark:hover:text-white",size:"h-5 w-5"},title:{base:"mb-6 text-sm font-semibold uppercase text-gray-500 dark:text-white"},divider:{base:"my-6 w-full border-gray-200 dark:border-gray-700 sm:mx-auto lg:my-8"},copyright:{base:"text-sm text-gray-500 dark:text-gray-400 sm:text-center",href:"ml-1 hover:underline",span:"ml-1"},brand:{base:"mb-4 flex items-center sm:mb-0",img:"mr-3 h-8",span:"self-center whitespace-nowrap text-2xl font-semibold text-gray-800 dark:text-white"}},gk={root:{base:"mt-2 text-sm",colors:{gray:"text-gray-500 dark:text-gray-400",info:"text-cyan-700 dark:text-cyan-800",success:"text-green-600 dark:text-green-500",failure:"text-red-600 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600"}}},pk={root:{base:"rounded-lg border border-gray-200 bg-gray-100 px-2 py-1.5 text-xs font-semibold text-gray-800 dark:border-gray-500 dark:bg-gray-600 dark:text-gray-100",icon:"inline-block"}},mk={root:{base:"text-sm font-medium",disabled:"opacity-50",colors:{default:"text-gray-900 dark:text-white",info:"text-cyan-500 dark:text-cyan-600",failure:"text-red-700 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600",success:"text-green-700 dark:text-green-500"}}},bk={root:{base:"list-inside space-y-1 text-gray-500 dark:text-gray-400",ordered:{off:"list-disc",on:"list-decimal"},horizontal:"flex list-none flex-wrap items-center justify-center space-x-4 space-y-0",unstyled:"list-none",nested:"mt-2 ps-5"},item:{withIcon:{off:"",on:"flex items-center"},icon:"me-2 h-3.5 w-3.5 flex-shrink-0"}},yk={root:{base:"list-none rounded-lg border border-gray-200 bg-white text-left text-sm font-medium text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-white"},item:{base:"[&>*]:first:rounded-t-lg [&>*]:last:rounded-b-lg [&>*]:last:border-b-0",link:{base:"flex w-full items-center border-b border-gray-200 px-4 py-2 dark:border-gray-600",active:{off:"hover:bg-gray-100 hover:text-cyan-700 focus:text-cyan-700 focus:outline-none focus:ring-2 focus:ring-cyan-700 dark:border-gray-600 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:text-white dark:focus:ring-gray-500",on:"bg-cyan-700 text-white dark:bg-gray-800"},disabled:{off:"",on:"cursor-not-allowed bg-gray-100 text-gray-900 hover:bg-gray-100 hover:text-gray-900 focus:text-gray-900"},href:{off:"",on:""},icon:"mr-2 h-4 w-4 fill-current"}}},vk={root:{base:"fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full",show:{on:"flex bg-gray-900 bg-opacity-50 dark:bg-opacity-80",off:"hidden"},sizes:{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl"},positions:{"top-left":"items-start justify-start","top-center":"items-start justify-center","top-right":"items-start justify-end","center-left":"items-center justify-start",center:"items-center justify-center","center-right":"items-center justify-end","bottom-right":"items-end justify-end","bottom-center":"items-end justify-center","bottom-left":"items-end justify-start"}},content:{base:"relative h-full w-full p-4 md:h-auto",inner:"relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow dark:bg-gray-700"},body:{base:"flex-1 overflow-auto p-6",popup:"pt-0"},header:{base:"flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600",popup:"border-b-0 p-2",title:"text-xl font-medium text-gray-900 dark:text-white",close:{base:"ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white",icon:"h-5 w-5"}},footer:{base:"flex items-center space-x-2 rounded-b border-gray-200 p-6 dark:border-gray-600",popup:"border-t"}},xk={root:{base:"bg-white px-2 py-2.5 dark:border-gray-700 dark:bg-gray-800 sm:px-4",rounded:{on:"rounded",off:""},bordered:{on:"border",off:""},inner:{base:"mx-auto flex flex-wrap items-center justify-between",fluid:{on:"",off:"container"}}},brand:{base:"flex items-center"},collapse:{base:"w-full md:block md:w-auto",list:"mt-4 flex flex-col md:mt-0 md:flex-row md:space-x-8 md:text-sm md:font-medium",hidden:{on:"hidden",off:""}},link:{base:"block py-2 pl-3 pr-4 md:p-0",active:{on:"bg-cyan-700 text-white dark:text-white md:bg-transparent md:text-cyan-700",off:"border-b border-gray-100 text-gray-700 hover:bg-gray-50 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white md:border-0 md:hover:bg-transparent md:hover:text-cyan-700 md:dark:hover:bg-transparent md:dark:hover:text-white"},disabled:{on:"text-gray-400 hover:cursor-not-allowed dark:text-gray-600",off:""}},toggle:{base:"inline-flex items-center rounded-lg p-2 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600 md:hidden",icon:"h-6 w-6 shrink-0"}},wk={base:"",layout:{table:{base:"text-sm text-gray-700 dark:text-gray-400",span:"font-semibold text-gray-900 dark:text-white"}},pages:{base:"xs:mt-0 mt-2 inline-flex items-center -space-x-px",showIcon:"inline-flex",previous:{base:"ml-0 rounded-l-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",icon:"h-5 w-5"},next:{base:"rounded-r-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",icon:"h-5 w-5"},selector:{base:"w-12 border border-gray-300 bg-white py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",active:"bg-cyan-50 text-cyan-600 hover:bg-cyan-100 hover:text-cyan-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white",disabled:"cursor-not-allowed opacity-50"}}},kk={base:"absolute z-20 inline-block w-max max-w-[100vw] bg-white outline-none border border-gray-200 rounded-lg shadow-sm dark:border-gray-600 dark:bg-gray-800",content:"z-10 overflow-hidden rounded-[7px]",arrow:{base:"absolute h-2 w-2 z-0 rotate-45 mix-blend-lighten bg-white border border-gray-200 dark:border-gray-600 dark:bg-gray-800 dark:mix-blend-color",placement:"-4px"}},Ck={base:"w-full overflow-hidden rounded-full bg-gray-200 dark:bg-gray-700",label:"mb-1 flex justify-between font-medium dark:text-white",bar:"space-x-2 rounded-full text-center font-medium leading-none text-cyan-300 dark:text-cyan-100",color:{dark:"bg-gray-600 dark:bg-gray-300",blue:"bg-blue-600",red:"bg-red-600 dark:bg-red-500",green:"bg-green-600 dark:bg-green-500",yellow:"bg-yellow-400",indigo:"bg-indigo-600 dark:bg-indigo-500",purple:"bg-purple-600 dark:bg-purple-500",cyan:"bg-cyan-600",gray:"bg-gray-500",lime:"bg-lime-600",pink:"bg-pink-500",teal:"bg-teal-600"},size:{sm:"h-1.5",md:"h-2.5",lg:"h-4",xl:"h-6"}},_k={root:{base:"h-4 w-4 border border-gray-300 text-cyan-600 focus:ring-2 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:focus:bg-cyan-600 dark:focus:ring-cyan-600"}},Sk={root:{base:"flex"},field:{base:"relative w-full",input:{base:"w-full cursor-pointer appearance-none rounded-lg bg-gray-200 dark:bg-gray-700",sizes:{sm:"h-1",md:"h-2",lg:"h-3"}}}},Ek={root:{base:"flex items-center"},star:{empty:"text-gray-300 dark:text-gray-500",filled:"text-yellow-400",sizes:{sm:"h-5 w-5",md:"h-7 w-7",lg:"h-10 w-10"}}},Ok={base:"flex items-center",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500",progress:{base:"mx-4 h-5 w-2/4 rounded bg-gray-200 dark:bg-gray-700",fill:"h-5 rounded bg-yellow-400",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500"}},Tk={base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},select:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""},sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}},Nk={root:{base:"h-full",collapsed:{on:"w-16",off:"w-64"},inner:"h-full overflow-y-auto overflow-x-hidden rounded bg-gray-50 px-3 py-4 dark:bg-gray-800"},collapse:{button:"group flex w-full items-center rounded-lg p-2 text-base font-normal text-gray-900 transition duration-75 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",icon:{base:"h-6 w-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",open:{off:"",on:"text-gray-900"}},label:{base:"ml-3 flex-1 whitespace-nowrap text-left",icon:{base:"h-6 w-6 transition delay-0 ease-in-out",open:{on:"rotate-180",off:""}}},list:"space-y-2 py-2"},cta:{base:"mt-6 rounded-lg bg-gray-100 p-4 dark:bg-gray-700",color:{blue:"bg-cyan-50 dark:bg-cyan-900",dark:"bg-dark-50 dark:bg-dark-900",failure:"bg-red-50 dark:bg-red-900",gray:"bg-alternative-50 dark:bg-alternative-900",green:"bg-green-50 dark:bg-green-900",light:"bg-light-50 dark:bg-light-900",red:"bg-red-50 dark:bg-red-900",purple:"bg-purple-50 dark:bg-purple-900",success:"bg-green-50 dark:bg-green-900",yellow:"bg-yellow-50 dark:bg-yellow-900",warning:"bg-yellow-50 dark:bg-yellow-900"}},item:{base:"flex items-center justify-center rounded-lg p-2 text-base font-normal text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",active:"bg-gray-100 dark:bg-gray-700",collapsed:{insideCollapse:"group w-full pl-8 transition duration-75",noIcon:"font-bold"},content:{base:"flex-1 whitespace-nowrap px-3"},icon:{base:"h-6 w-6 flex-shrink-0 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",active:"text-gray-700 dark:text-gray-100"},label:"",listItem:""},items:{base:""},itemGroup:{base:"mt-4 space-y-2 border-t border-gray-200 pt-4 first:mt-0 first:border-t-0 first:pt-0 dark:border-gray-700"},logo:{base:"mb-5 flex items-center pl-2.5",collapsed:{on:"hidden",off:"self-center whitespace-nowrap text-xl font-semibold dark:text-white"},img:"mr-3 h-6 sm:h-7"}},Mk={base:"inline animate-spin text-gray-200",color:{failure:"fill-red-600",gray:"fill-gray-600",info:"fill-cyan-600",pink:"fill-pink-600",purple:"fill-purple-600",success:"fill-green-500",warning:"fill-yellow-400"},light:{off:{base:"dark:text-gray-600",color:{failure:"",gray:"dark:fill-gray-300",info:"",pink:"",purple:"",success:"",warning:""}},on:{base:"",color:{failure:"",gray:"",info:"",pink:"",purple:"",success:"",warning:""}}},size:{xs:"h-3 w-3",sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"}},Pk={root:{base:"w-full text-left text-sm text-gray-500 dark:text-gray-400",shadow:"absolute left-0 top-0 -z-10 h-full w-full rounded-lg bg-white drop-shadow-md dark:bg-black",wrapper:"relative"},body:{base:"group/body",cell:{base:"px-6 py-4 group-first/body:group-first/row:first:rounded-tl-lg group-first/body:group-first/row:last:rounded-tr-lg group-last/body:group-last/row:first:rounded-bl-lg group-last/body:group-last/row:last:rounded-br-lg"}},head:{base:"group/head text-xs uppercase text-gray-700 dark:text-gray-400",cell:{base:"bg-gray-50 px-6 py-3 group-first/head:first:rounded-tl-lg group-first/head:last:rounded-tr-lg dark:bg-gray-700"}},row:{base:"group/row",hovered:"hover:bg-gray-50 dark:hover:bg-gray-600",striped:"odd:bg-white even:bg-gray-50 odd:dark:bg-gray-800 even:dark:bg-gray-700"}},Ak={base:"flex flex-col gap-2",tablist:{base:"flex text-center",styles:{default:"flex-wrap border-b border-gray-200 dark:border-gray-700",underline:"-mb-px flex-wrap border-b border-gray-200 dark:border-gray-700",pills:"flex-wrap space-x-2 text-sm font-medium text-gray-500 dark:text-gray-400",fullWidth:"grid w-full grid-flow-col divide-x divide-gray-200 rounded-none text-sm font-medium shadow dark:divide-gray-700 dark:text-gray-400"},tabitem:{base:"flex items-center justify-center rounded-t-lg p-4 text-sm font-medium first:ml-0 focus:outline-none focus:ring-4 focus:ring-cyan-300 disabled:cursor-not-allowed disabled:text-gray-400 disabled:dark:text-gray-500",styles:{default:{base:"rounded-t-lg",active:{on:"bg-gray-100 text-cyan-600 dark:bg-gray-800 dark:text-cyan-500",off:"text-gray-500 hover:bg-gray-50 hover:text-gray-600 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300"}},underline:{base:"rounded-t-lg",active:{on:"active rounded-t-lg border-b-2 border-cyan-600 text-cyan-600 dark:border-cyan-500 dark:text-cyan-500",off:"border-b-2 border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300"}},pills:{base:"",active:{on:"rounded-lg bg-cyan-600 text-white",off:"rounded-lg hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-white"}},fullWidth:{base:"ml-0 flex w-full rounded-none first:ml-0",active:{on:"active rounded-none bg-gray-100 p-4 text-gray-900 dark:bg-gray-700 dark:text-white",off:"rounded-none bg-white hover:bg-gray-50 hover:text-gray-700 dark:bg-gray-800 dark:hover:bg-gray-700 dark:hover:text-white"}}},icon:"mr-2 h-5 w-5"}},tabitemcontainer:{base:"",styles:{default:"",underline:"",pills:"",fullWidth:""}},tabpanel:"py-3"},Dk={base:"block w-full rounded-lg border text-sm disabled:cursor-not-allowed disabled:opacity-50",colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}},Ik={base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},rightIcon:{base:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},input:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withRightIcon:{on:"pr-10",off:""},withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}}}},Lk={root:{direction:{horizontal:"sm:flex",vertical:"relative border-l border-gray-200 dark:border-gray-700"}},item:{root:{horizontal:"relative mb-6 sm:mb-0",vertical:"mb-10 ml-6"},content:{root:{base:"mt-3 sm:pr-8"},body:{base:"mb-4 text-base font-normal text-gray-500 dark:text-gray-400"},time:{base:"mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"},title:{base:"text-lg font-semibold text-gray-900 dark:text-white"}},point:{horizontal:"flex items-center",line:"hidden h-0.5 w-full bg-gray-200 dark:bg-gray-700 sm:flex",marker:{base:{horizontal:"absolute -left-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700",vertical:"absolute -left-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700"},icon:{base:"h-3 w-3 text-cyan-600 dark:text-cyan-300",wrapper:"absolute -left-3 flex h-6 w-6 items-center justify-center rounded-full bg-cyan-200 ring-8 ring-white dark:bg-cyan-900 dark:ring-gray-900"}},vertical:""}}},Fk={root:{base:"flex w-full max-w-xs items-center rounded-lg bg-white p-4 text-gray-500 shadow dark:bg-gray-800 dark:text-gray-400",closed:"opacity-0 ease-out"},toggle:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",icon:"h-5 w-5 shrink-0"}},zk={root:{base:"group relative flex items-center rounded-lg focus:outline-none",active:{on:"cursor-pointer",off:"cursor-not-allowed opacity-50"},label:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300"},toggle:{base:"rounded-full border group-focus:ring-4 group-focus:ring-cyan-500/25",checked:{on:"after:translate-x-full after:border-white",off:"border-gray-200 bg-gray-200 dark:border-gray-600 dark:bg-gray-700",color:{blue:"border-cyan-700 bg-cyan-700",dark:"bg-dark-700 border-dark-900",failure:"border-red-900 bg-red-700",gray:"border-gray-600 bg-gray-500",green:"border-green-700 bg-green-600",light:"bg-light-700 border-light-900",red:"border-red-900 bg-red-700",purple:"border-purple-900 bg-purple-700",success:"border-green-500 bg-green-500",yellow:"border-yellow-400 bg-yellow-400",warning:"border-yellow-600 bg-yellow-600",cyan:"border-cyan-500 bg-cyan-500",lime:"border-lime-400 bg-lime-400",indigo:"border-indigo-400 bg-indigo-400",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 hover:bg-gradient-to-br focus:ring-4",info:"border-cyan-600 bg-cyan-600",pink:"border-pink-600 bg-pink-600"}},sizes:{sm:"h-5 w-9 after:absolute after:left-[2px] after:top-[2px] after:h-4 after:w-4",md:"h-6 w-11 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5",lg:"h-7 w-14 after:absolute after:left-[4px] after:top-0.5 after:h-6 after:w-6"}}},Bk={target:"w-fit",animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"absolute z-10 inline-block rounded-lg px-3 py-2 text-sm font-medium shadow-sm",hidden:"invisible opacity-0",style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},content:"relative z-20"},$k={theme:Wn({accordion:Z1,alert:J1,avatar:Q1,badge:ek,blockquote:tk,breadcrumb:rk,button:nk,buttonGroup:ok,card:ik,carousel:sk,checkbox:ak,datepicker:ck,darkThemeToggle:lk,dropdown:dk,fileInput:uk,floatingLabel:fk,footer:hk,helperText:gk,kbd:pk,label:mk,listGroup:yk,list:bk,modal:vk,navbar:xk,pagination:wk,popover:kk,progress:Ck,radio:_k,rangeSlider:Sk,rating:Ek,ratingAdvanced:Ok,select:Tk,textInput:Ik,textarea:Dk,toggleSwitch:zk,sidebar:Nk,spinner:Mk,table:Pk,tabs:Ak,timeline:Lk,toast:Fk,tooltip:Bk})};function K(){return Wn($k.theme)}const Xu=k.createContext(void 0);function Zu(){const t=k.useContext(Xu);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const Ju=({children:t,className:e,theme:r={},...n})=>{const{isOpen:o}=Zu(),i=H(K().accordion.content,r);return p.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-accordion-content",hidden:!o,...n,children:t})},Qu=({children:t,...e})=>{const{alwaysOpen:r}=e,[n,o]=k.useState(e.isOpen),i=r?{...e,isOpen:n,setOpen:()=>o(!n)}:e;return p.jsx(Xu.Provider,{value:i,children:t})},ef=({as:t="h2",children:e,className:r,theme:n={},...o})=>{const{arrowIcon:i,flush:s,isOpen:a,setOpen:l}=Zu(),c=()=>typeof l<"u"&&l(),d=H(K().accordion.title,n);return p.jsxs("button",{className:F(d.base,d.flush[s?"on":"off"],d.open[a?"on":"off"],r),onClick:c,type:"button",...o,children:[p.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),i&&p.jsx(i,{"aria-hidden":!0,className:F(d.arrow.base,d.arrow.open[a?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},tf=({alwaysOpen:t=!1,arrowIcon:e=Bu,children:r,flush:n=!1,collapseAll:o=!1,className:i,theme:s={},...a})=>{const[l,c]=k.useState(o?-1:0),d=k.useMemo(()=>k.Children.map(r,(f,h)=>k.cloneElement(f,{alwaysOpen:t,arrowIcon:e,flush:n,isOpen:l===h,setOpen:()=>c(l===h?-1:h)})),[t,e,r,n,l]),u=H(K().accordion.root,s);return p.jsx("div",{className:F(u.base,u.flush[n?"on":"off"],i),"data-testid":"flowbite-accordion",...a,children:d})};tf.displayName="Accordion",Qu.displayName="Accordion.Panel",ef.displayName="Accordion.Title",Ju.displayName="Accordion.Content",Object.assign(tf,{Panel:Qu,Title:ef,Content:Ju});const rf=({children:t,className:e,theme:r={},...n})=>{const o=H(K().avatar.group,r);return p.jsx("div",{"data-testid":"avatar-group-element",className:F(o.base,e),...n,children:t})};rf.displayName="Avatar.Group";const nf=({className:t,href:e,theme:r={},total:n,...o})=>{const i=H(K().avatar.groupCounter,r);return p.jsxs("a",{href:e,className:F(i.base,t),...o,children:["+",n]})};nf.displayName="Avatar.GroupCounter";const of=({alt:t="",bordered:e=!1,children:r,className:n,color:o="light",img:i,placeholderInitials:s="",rounded:a=!1,size:l="md",stacked:c=!1,status:d,statusPosition:u="top-left",theme:f={},...h})=>{const g=H(K().avatar,f),m=F(g.root.img.base,e&&g.root.bordered,e&&g.root.color[o],a&&g.root.rounded,c&&g.root.stacked,g.root.img.on,g.root.size[l]),b={className:F(m,g.root.img.on),"data-testid":"flowbite-avatar-img"};return p.jsxs("div",{className:F(g.root.base,n),"data-testid":"flowbite-avatar",...h,children:[p.jsxs("div",{className:"relative",children:[i?typeof i=="string"?p.jsx("img",{alt:t,src:i,...b}):i({alt:t,...b}):s?p.jsx("div",{className:F(g.root.img.off,g.root.initials.base,c&&g.root.stacked,e&&g.root.bordered,e&&g.root.color[o],g.root.size[l],a&&g.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:p.jsx("span",{className:F(g.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:s})}):p.jsx("div",{className:F(m,g.root.img.off),"data-testid":"flowbite-avatar-img",children:p.jsx("svg",{className:g.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})}),d&&p.jsx("span",{"data-testid":"flowbite-avatar-status",className:F(g.root.status.base,g.root.status[d],g.root.statusPosition[u])})]}),r&&p.jsx("div",{children:r})]})};of.displayName="Avatar",Object.assign(of,{Group:rf,Counter:nf});const sf=({children:t,color:e="info",href:r,icon:n,size:o="xs",className:i,theme:s={},...a})=>{const l=H(K().badge,s),c=()=>p.jsxs("span",{className:F(l.root.base,l.root.color[e],l.root.size[o],l.icon[n?"on":"off"],i),"data-testid":"flowbite-badge",...a,children:[n&&p.jsx(n,{"aria-hidden":!0,className:l.icon.size[o],"data-testid":"flowbite-badge-icon"}),t&&p.jsx("span",{children:t})]});return r?p.jsx("a",{className:l.root.href,href:r,children:p.jsx(c,{})}):p.jsx(c,{})};sf.displayName="Badge";const af=({className:t,color:e="info",light:r,size:n="md",theme:o={},...i})=>{const s=H(K().spinner,o);return p.jsx("span",{role:"status",...i,children:p.jsxs("svg",{fill:"none",viewBox:"0 0 100 101",className:F(s.base,s.color[e],s.light[r?"on":"off"].base,s.light[r?"on":"off"].color[e],s.size[n],t),children:[p.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),p.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})};af.displayName="Spinner";const Js=k.forwardRef(({children:t,as:e,href:r,type:n="button",...o},i)=>{const s=e||(r?"a":"button");return k.createElement(s,{ref:i,href:r,type:n,...o},t)});Js.displayName="ButtonBaseComponent";const lf=(t,e,r)=>k.Children.map(t,(n,o)=>k.isValidElement(n)?n.props.children?k.cloneElement(n,{...n.props,children:lf(n.props.children,e,r),positionInGroup:cf(o,k.Children.count(t))}):k.cloneElement(n,{outline:e,pill:r,positionInGroup:cf(o,k.Children.count(t))}):n),cf=(t,e)=>t===0?"start":t===e-1?"end":"middle",df=({children:t,className:e,outline:r,pill:n,theme:o={},...i})=>{const s=k.useMemo(()=>lf(t,r,n),[t,r,n]),a=H(K().buttonGroup,o);return p.jsx("div",{className:F(a.base,e),role:"group",...i,children:s})};df.displayName="Button.Group";const uf=k.forwardRef(({children:t,className:e,color:r="info",disabled:n,fullSized:o,isProcessing:i=!1,processingLabel:s="Loading...",processingSpinner:a,gradientDuoTone:l,gradientMonochrome:c,label:d,outline:u=!1,pill:f=!1,positionInGroup:h="none",size:g="md",theme:m={},...b},v)=>{const{buttonGroup:y,button:_}=K(),x=H(_,m),w=b;return p.jsx(Js,{ref:v,disabled:n,className:F(x.base,n&&x.disabled,!l&&!c&&x.color[r],l&&!c&&x.gradientDuoTone[l],!l&&c&&x.gradient[c],u&&(x.outline.color[r]??x.outline.color.default),x.pill[f?"on":"off"],o&&x.fullSized,y.position[h],e),...w,children:p.jsx("span",{className:F(x.inner.base,x.outline[u?"on":"off"],x.outline.pill[u&&f?"on":"off"],x.size[g],u&&!x.outline.color[r]&&x.inner.outline,i&&x.isProcessing,i&&x.inner.isProcessingPadding[g],x.inner.position[h]),children:p.jsxs(p.Fragment,{children:[i&&p.jsx("span",{className:F(x.spinnerSlot,x.spinnerLeftPosition[g]),children:a||p.jsx(af,{size:g})}),typeof t<"u"?t:p.jsx("span",{"data-testid":"flowbite-button-label",className:F(x.label),children:i?s:d})]})})})});uf.displayName="Button";const ff=Object.assign(uf,{Group:df}),hf=({children:t,...e})=>{const r=n=>{const i=n.target.closest('[role="banner"]');i==null||i.remove()};return p.jsx(ff,{onClick:r,...e,children:t})};hf.displayName="Banner.CollapseButton";const gf=({children:t,...e})=>p.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});gf.displayName="Banner",Object.assign(gf,{CollapseButton:hf});const pf=k.forwardRef(({children:t,className:e,href:r,icon:n,theme:o={},...i},s)=>{const a=typeof r<"u",l=a?"a":"span",c=H(K().breadcrumb.item,o);return p.jsxs("li",{className:F(c.base,e),...i,children:[p.jsx(Wu,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),p.jsxs(l,{ref:s,className:c.href[a?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:r,children:[n&&p.jsx(n,{"aria-hidden":!0,className:c.icon}),t]})]})});pf.displayName="Breadcrumb.Item";const mf=({children:t,className:e,theme:r={},...n})=>{const o=H(K().breadcrumb.root,r);return p.jsx("nav",{"aria-label":"Breadcrumb",className:F(o.base,e),...n,children:p.jsx("ol",{className:o.list,children:t})})};mf.displayName="Breadcrumb",Object.assign(mf,{Item:pf});var bf={exports:{}};/*!
|
|
492
492
|
Copyright (c) 2018 Jed Watson.
|
|
493
493
|
Licensed under the MIT License (MIT), see
|
|
494
494
|
http://jedwatson.github.io/classnames
|
|
495
|
-
*/(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var i="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(i=o(i,n(a)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var a in i)e.call(i,a)&&i[a]&&(s=o(s,a));return s}function o(i,s){return s?i?i+" "+s:i+s:i}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(bf);var $k=bf.exports;const jk=bu($k);var Qs={exports:{}};function yf(t,e=100,r={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(e<0)throw new RangeError("`wait` must not be negative.");const{immediate:n}=typeof r=="boolean"?{immediate:r}:r;let o,i,s,a,l;function c(){const u=Date.now()-a;if(u<e&&u>=0)s=setTimeout(c,e-u);else if(s=void 0,!n){const f=o,h=i;o=void 0,i=void 0,l=t.apply(f,h)}}const d=function(...u){if(o&&this!==o)throw new Error("Debounced method called with different contexts.");o=this,i=u,a=Date.now();const f=n&&!s;if(s||(s=setTimeout(c,e)),f){const h=o,g=i;o=void 0,i=void 0,l=t.apply(h,g)}return l};return d.clear=()=>{s&&(clearTimeout(s),s=void 0)},d.flush=()=>{if(!s)return;const u=o,f=i;o=void 0,i=void 0,l=t.apply(u,f),clearTimeout(s),s=void 0},d}Qs.exports.debounce=yf,Qs.exports=yf;var Hk=Qs.exports;const Wk=bu(Hk);var Vk=Object.defineProperty,Rk=(t,e,r)=>e in t?Vk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Me=(t,e,r)=>(Rk(t,typeof e!="symbol"?e+"":e,r),r);const Yk=300,Uk=0;class qk extends k.PureComponent{constructor(e){super(e),Me(this,"container"),Me(this,"scrolling"),Me(this,"started"),Me(this,"pressed"),Me(this,"isMobile",!1),Me(this,"internal"),Me(this,"scrollLeft"),Me(this,"scrollTop"),Me(this,"clientX"),Me(this,"clientY"),Me(this,"onEndScroll",()=>{this.scrolling=!1,!this.pressed&&this.started&&this.processEnd()}),Me(this,"onScroll",()=>{const r=this.container.current;(r.scrollLeft!==this.scrollLeft||r.scrollTop!==this.scrollTop)&&(this.scrolling=!0,this.processScroll(),this.onEndScroll())}),Me(this,"onTouchStart",r=>{const{nativeMobileScroll:n}=this.props;if(this.isDraggable(r.target))if(this.internal=!0,n&&this.scrolling)this.pressed=!0;else{const o=r.touches[0];this.processClick(o.clientX,o.clientY),!n&&this.props.stopPropagation&&r.stopPropagation()}}),Me(this,"onTouchEnd",()=>{const{nativeMobileScroll:r}=this.props;this.pressed&&(this.started&&(!this.scrolling||!r)?this.processEnd():this.pressed=!1,this.forceUpdate())}),Me(this,"onTouchMove",r=>{const{nativeMobileScroll:n}=this.props;if(this.pressed&&(!n||!this.isMobile)){const o=r.touches[0];o&&this.processMove(o.clientX,o.clientY),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation()}}),Me(this,"onMouseDown",r=>{var n,o;this.isDraggable(r.target)&&this.isScrollable()&&(this.internal=!0,((o=(n=this.props)==null?void 0:n.buttons)==null?void 0:o.indexOf(r.button))!==-1&&(this.processClick(r.clientX,r.clientY),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation()))}),Me(this,"onMouseMove",r=>{this.pressed&&(this.processMove(r.clientX,r.clientY),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation())}),Me(this,"onMouseUp",r=>{this.pressed&&(this.started?this.processEnd():(this.internal=!1,this.pressed=!1,this.forceUpdate(),this.props.onClick&&this.props.onClick(r)),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation())}),this.container=k.createRef(),this.onEndScroll=Wk(this.onEndScroll,Yk),this.scrolling=!1,this.started=!1,this.pressed=!1,this.internal=!1,this.getRef=this.getRef.bind(this)}componentDidMount(){const{nativeMobileScroll:e}=this.props,r=this.container.current;window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd),r.addEventListener("touchstart",this.onTouchStart,{passive:!1}),r.addEventListener("mousedown",this.onMouseDown,{passive:!1}),e&&(this.isMobile=this.isMobileDevice(),this.isMobile&&this.forceUpdate())}componentWillUnmount(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)}getElement(){return this.container.current}isMobileDevice(){return typeof window.orientation<"u"||navigator.userAgent.indexOf("IEMobile")!==-1}isDraggable(e){const r=this.props.ignoreElements;if(r){const n=e.closest(r);return n===null||n.contains(this.getElement())}else return!0}isScrollable(){const e=this.container.current;return e&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)}processClick(e,r){const n=this.container.current;this.scrollLeft=n==null?void 0:n.scrollLeft,this.scrollTop=n==null?void 0:n.scrollTop,this.clientX=e,this.clientY=r,this.pressed=!0}processStart(e=!0){const{onStartScroll:r}=this.props;this.started=!0,e&&document.body.classList.add("cursor-grab"),r&&r({external:!this.internal}),this.forceUpdate()}processScroll(){if(this.started){const{onScroll:e}=this.props;e&&e({external:!this.internal})}else this.processStart(!1)}processMove(e,r){const{horizontal:n,vertical:o,activationDistance:i,onScroll:s}=this.props,a=this.container.current;this.started?(n&&(a.scrollLeft-=e-this.clientX),o&&(a.scrollTop-=r-this.clientY),s&&s({external:!this.internal}),this.clientX=e,this.clientY=r,this.scrollLeft=a.scrollLeft,this.scrollTop=a.scrollTop):(n&&Math.abs(e-this.clientX)>i||o&&Math.abs(r-this.clientY)>i)&&(this.clientX=e,this.clientY=r,this.processStart())}processEnd(){const{onEndScroll:e}=this.props;this.container.current&&e&&e({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("cursor-grab"),this.forceUpdate()}getRef(e){[this.container,this.props.innerRef].forEach(r=>{r&&(typeof r=="function"?r(e):r.current=e)})}render(){const{children:e,draggingClassName:r,className:n,style:o,hideScrollbars:i}=this.props;return p.jsx("div",{className:jk(n,this.pressed&&r,{"!scroll-auto [&>*]:pointer-events-none [&>*]:cursor-grab":this.pressed,"overflow-auto":this.isMobile,"overflow-hidden !overflow-x-hidden [overflow:-moz-scrollbars-none] [scrollbar-width:none]":i,"[&::-webkit-scrollbar]:[-webkit-appearance:none !important] [&::-webkit-scrollbar]:!hidden [&::-webkit-scrollbar]:!h-0 [&::-webkit-scrollbar]:!w-0 [&::-webkit-scrollbar]:!bg-transparent":i}),style:o,ref:this.getRef,onScroll:this.onScroll,children:e})}}Me(qk,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[Uk]});const Kk=k.forwardRef(({className:t,color:e="default",theme:r={},...n},o)=>{const i=H(K().checkbox,r);return p.jsx("input",{ref:o,type:"checkbox",className:F(i.root.base,i.root.color[e],t),...n})});Kk.displayName="Checkbox";const Vn=({children:t,className:e,color:r="default",theme:n={},value:o,...i})=>{const s=H(K().helperText,n);return p.jsx("p",{className:F(s.root.base,s.root.colors[r],e),...i,children:o??t??""})};Vn.displayName="HelperText";const ea=k.forwardRef(({addon:t,className:e,color:r="gray",helperText:n,icon:o,rightIcon:i,shadow:s,sizing:a="md",theme:l={},type:c="text",...d},u)=>{const f=H(K().textInput,l);return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:F(f.base,e),children:[t&&p.jsx("span",{className:f.addon,children:t}),p.jsxs("div",{className:f.field.base,children:[o&&p.jsx("div",{className:f.field.icon.base,children:p.jsx(o,{className:f.field.icon.svg})}),i&&p.jsx("div",{"data-testid":"right-icon",className:f.field.rightIcon.base,children:p.jsx(i,{className:f.field.rightIcon.svg})}),p.jsx("input",{className:F(f.field.input.base,f.field.input.colors[r],f.field.input.sizes[a],f.field.input.withIcon[o?"on":"off"],f.field.input.withRightIcon[i?"on":"off"],f.field.input.withAddon[t?"on":"off"],f.field.input.withShadow[s?"on":"off"]),type:c,...d,ref:u})]})]}),n&&p.jsx(Vn,{color:r,children:n})]})});ea.displayName="TextInput";const vf=k.createContext(void 0);function di(){const t=k.useContext(vf);if(!t)throw new Error("useDatePickerContext should be used within the DatePickerContext provider!");return t}var ve=(t=>(t[t.Days=0]="Days",t[t.Months=1]="Months",t[t.Years=2]="Years",t[t.Decades=3]="Decades",t))(ve||{}),xf=(t=>(t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday",t))(xf||{});const Rn=(t,e,r)=>{const n=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();if(e&&r){const o=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),i=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime();return n>=o&&n<=i}if(e){const o=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();return n>=o}if(r){const o=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime();return n<=o}return!0},ui=(t,e)=>(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t.getTime()===e.getTime()),Gk=(t,e,r)=>(Rn(t,e,r)||(e&&t<e?t=e:r&&t>r&&(t=r)),t),Xk=(t,e)=>{const r=new Date(t.getFullYear(),t.getMonth(),1);let o=r.getDay()-e;return o<0&&(o+=7),ta(r,-o)},Zk=(t,e)=>{const r=[],n=new Date(0);n.setDate(n.getDate()-n.getDay()+e);const o=new Intl.DateTimeFormat(t,{weekday:"short"});for(let i=0;i<7;i++)r.push(o.format(ta(n,i)));return r},ta=(t,e)=>{const r=new Date(t);return r.setDate(r.getDate()+e),r},Jk=(t,e)=>{const r=new Date(t);return r.setMonth(r.getMonth()+e),r},Vr=(t,e)=>{const r=new Date(t);return r.setFullYear(r.getFullYear()+e),r},Yn=(t,e,r)=>{let n={day:"numeric",month:"long",year:"numeric"};return r&&(n=r),new Intl.DateTimeFormat(t,n).format(e)},Rr=(t,e)=>{const r=t.getFullYear();return Math.floor(r/e)*e},Qk=(t,e)=>{const r=t.getFullYear(),n=e+9;return r>=e&&r<=n},e2=({theme:t={}})=>{const{theme:e,weekStart:r,minDate:n,maxDate:o,viewDate:i,selectedDate:s,changeSelectedDate:a,language:l}=di(),c=H(e.views.days,t),d=Zk(l,r),u=Xk(i,r);return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:c.header.base,children:d.map((f,h)=>p.jsx("span",{className:c.header.title,children:f},h))}),p.jsx("div",{className:c.items.base,children:[...Array(42)].map((f,h)=>{const g=ta(u,h),m=Yn(l,g,{day:"numeric"}),b=ui(s,g),v=!Rn(g,n,o);return p.jsx("button",{disabled:v,type:"button",className:F(c.items.item.base,b&&c.items.item.selected,v&&c.items.item.disabled),onClick:()=>{v||a(g,!0)},children:m},h)})})]})},t2=({theme:t={}})=>{const{theme:e,selectedDate:r,viewDate:n,setViewDate:o,setView:i}=di(),s=H(e.views.decades,t);return p.jsx("div",{className:s.items.base,children:[...Array(12)].map((a,l)=>{const d=Rr(n,100)-10+l*10,u=new Date(d,0,1),f=Vr(u,9),h=Qk(n,d),g=!Rn(n,u,f);return p.jsx("button",{disabled:g,type:"button",className:F(s.items.item.base,h&&s.items.item.selected,g&&s.items.item.disabled),onClick:()=>{g||(o(Vr(n,d-r.getFullYear())),i(ve.Years))},children:d},l)})})},r2=({theme:t={}})=>{const{theme:e,minDate:r,maxDate:n,selectedDate:o,viewDate:i,language:s,setViewDate:a,setView:l}=di(),c=H(e.views.months,t);return p.jsx("div",{className:c.items.base,children:[...Array(12)].map((d,u)=>{const f=new Date(i.getTime());f.setMonth(u);const h=Yn(s,f,{month:"short"}),g=ui(o,f),m=!Rn(f,r,n);return p.jsx("button",{disabled:m,type:"button",className:F(c.items.item.base,g&&c.items.item.selected,m&&c.items.item.disabled),onClick:()=>{m||(a(f),l(ve.Days))},children:h},u)})})},n2=({theme:t={}})=>{const{theme:e,selectedDate:r,minDate:n,maxDate:o,viewDate:i,setViewDate:s,setView:a}=di(),l=H(e.views.years,t);return p.jsx("div",{className:l.items.base,children:[...Array(12)].map((c,d)=>{const f=Rr(i,10)-1+d*1,h=new Date(i.getTime());h.setFullYear(f);const g=ui(r,h),m=!Rn(h,n,o);return p.jsx("button",{disabled:m,type:"button",className:F(l.items.item.base,g&&l.items.item.selected,m&&l.items.item.disabled),onClick:()=>{m||(s(h),a(ve.Months))},children:f},d)})})},o2=({title:t,open:e,inline:r=!1,autoHide:n=!0,showClearButton:o=!0,labelClearButton:i="Clear",showTodayButton:s=!0,labelTodayButton:a="Today",defaultDate:l=new Date,minDate:c,maxDate:d,language:u="en",weekStart:f=xf.Sunday,className:h,theme:g={},onSelectedDateChanged:m,...b},v)=>{const y=H(K().datepicker,g);l=Gk(l,c,d);const[_,x]=k.useState(e),[w,S]=k.useState(ve.Days),[T,M]=k.useState(l),[N,E]=k.useState(l),I=k.useRef(null),A=k.useRef(null),D=(j,$)=>{M(j),m&&m(j),n&&w===ve.Days&&$==!0&&!r&&x(!1)},O=()=>{D(l,!0),l&&E(l)};k.useImperativeHandle(v,()=>({focus(){var j;(j=I.current)==null||j.focus()},clear(){O()}}));const P=j=>{switch(j){case ve.Decades:return p.jsx(t2,{theme:y.views.decades});case ve.Years:return p.jsx(n2,{theme:y.views.years});case ve.Months:return p.jsx(r2,{theme:y.views.months});case ve.Days:default:return p.jsx(e2,{theme:y.views.days})}},L=()=>{switch(w){case ve.Days:return ve.Months;case ve.Months:return ve.Years;case ve.Years:return ve.Decades}return w},z=()=>{switch(w){case ve.Decades:return`${Rr(N,100)} - ${Rr(N,100)+90}`;case ve.Years:return`${Rr(N,10)} - ${Rr(N,10)+9}`;case ve.Months:return Yn(u,N,{year:"numeric"});case ve.Days:default:return Yn(u,N,{month:"long",year:"numeric"})}},B=(j,$,W)=>{switch(j){case ve.Days:return new Date(Jk($,W));case ve.Months:return new Date(Vr($,W));case ve.Years:return new Date(Vr($,W*10));case ve.Decades:return new Date(Vr($,W*100));default:return new Date(Vr($,W*10))}};return k.useEffect(()=>{const j=$=>{var Y,U;const W=(Y=A==null?void 0:A.current)==null?void 0:Y.contains($.target),V=(U=I==null?void 0:I.current)==null?void 0:U.contains($.target);!W&&!V&&x(!1)};return document.addEventListener("mousedown",j),()=>{document.removeEventListener("mousedown",j)}},[I,A,x]),p.jsx(vf.Provider,{value:{theme:y,language:u,minDate:c,maxDate:d,weekStart:f,isOpen:_,setIsOpen:x,view:w,setView:S,viewDate:N,setViewDate:E,selectedDate:T,setSelectedDate:M,changeSelectedDate:D},children:p.jsxs("div",{className:F(y.root.base,h),children:[!r&&p.jsx(ea,{theme:y.root.input,icon:f1,ref:I,onFocus:()=>{ui(N,T)||E(T),x(!0)},value:T&&Yn(u,T),readOnly:!0,...b}),(_||r)&&p.jsx("div",{ref:A,className:F(y.popup.root.base,r&&y.popup.root.inline),children:p.jsxs("div",{className:y.popup.root.inner,children:[p.jsxs("div",{className:y.popup.header.base,children:[t&&p.jsx("div",{className:y.popup.header.title,children:t}),p.jsxs("div",{className:y.popup.header.selectors.base,children:[p.jsx("button",{type:"button",className:F(y.popup.header.selectors.button.base,y.popup.header.selectors.button.prev),onClick:()=>E(B(w,N,-1)),children:p.jsx(d1,{})}),p.jsx("button",{type:"button",className:F(y.popup.header.selectors.button.base,y.popup.header.selectors.button.view),onClick:()=>S(L()),children:z()}),p.jsx("button",{type:"button",className:F(y.popup.header.selectors.button.base,y.popup.header.selectors.button.next),onClick:()=>E(B(w,N,1)),children:p.jsx(u1,{})})]})]}),p.jsx("div",{className:y.popup.view.base,children:P(w)}),(o||s)&&p.jsxs("div",{className:y.popup.footer.base,children:[s&&p.jsx("button",{type:"button",className:F(y.popup.footer.button.base,y.popup.footer.button.today),onClick:()=>{const j=new Date;D(j,!0),E(j)},children:a}),o&&p.jsx("button",{type:"button",className:F(y.popup.footer.button.base,y.popup.footer.button.clear),onClick:()=>{D(l,!0),l&&E(l)},children:i})]})]})})]})})},i2=k.forwardRef(o2);i2.displayName="Datepicker";function fi(){return typeof window<"u"}function xr(t){return wf(t)?(t.nodeName||"").toLowerCase():"#document"}function Qe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function St(t){var e;return(e=(wf(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function wf(t){return fi()?t instanceof Node||t instanceof Qe(t).Node:!1}function ge(t){return fi()?t instanceof Element||t instanceof Qe(t).Element:!1}function $e(t){return fi()?t instanceof HTMLElement||t instanceof Qe(t).HTMLElement:!1}function ra(t){return!fi()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Qe(t).ShadowRoot}function Un(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=ut(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(o)}function s2(t){return["table","td","th"].includes(xr(t))}function hi(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function na(t){const e=oa(),r=ge(t)?ut(t):t;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function a2(t){let e=Ht(t);for(;$e(e)&&!Qt(e);){if(na(e))return e;if(hi(e))return null;e=Ht(e)}return null}function oa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qt(t){return["html","body","#document"].includes(xr(t))}function ut(t){return Qe(t).getComputedStyle(t)}function gi(t){return ge(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ht(t){if(xr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ra(t)&&t.host||St(t);return ra(e)?e.host:e}function kf(t){const e=Ht(t);return Qt(e)?t.ownerDocument?t.ownerDocument.body:t.body:$e(e)&&Un(e)?e:kf(e)}function er(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=kf(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),s=Qe(o);if(i){const a=ia(s);return e.concat(s,s.visualViewport||[],Un(o)?o:[],a&&r?er(a):[])}return e.concat(o,er(o,[],r))}function ia(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Et(t){let e=t.activeElement;for(;((r=e)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;e=e.shadowRoot.activeElement}return e}function Se(t,e){if(!t||!e)return!1;const r=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(r&&ra(r)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}function sa(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function Cf(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:r,version:n}=e;return r+"/"+n}).join(" "):navigator.userAgent}function _f(t){return t.mozInputSource===0&&t.isTrusted?!0:ca()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function aa(t){return l2()?!1:!ca()&&t.width===0&&t.height===0||ca()&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0&&t.pointerType==="touch"}function la(){return/apple/i.test(navigator.vendor)}function ca(){const t=/android/i;return t.test(sa())||t.test(Cf())}function Sf(){return sa().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function l2(){return Cf().includes("jsdom/")}function pi(t,e){const r=["mouse","pen"];return e||r.push("",void 0),r.includes(t)}function c2(t){return"nativeEvent"in t}function d2(t){return t.matches("html,body")}function Ue(t){return(t==null?void 0:t.ownerDocument)||document}function da(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const r=t;return r.target!=null&&e.contains(r.target)}function tr(t){return"composedPath"in t?t.composedPath()[0]:t.target}const u2="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function ua(t){return $e(t)&&t.matches(u2)}function je(t){t.preventDefault(),t.stopPropagation()}function Ef(t){return t?t.getAttribute("role")==="combobox"&&ua(t):!1}const f2=["top","right","bottom","left"],Of=["start","end"],Tf=f2.reduce((t,e)=>t.concat(e,e+"-"+Of[0],e+"-"+Of[1]),[]),Yr=Math.min,wr=Math.max,mi=Math.round,Ur=Math.floor,Ot=t=>({x:t,y:t}),h2={left:"right",right:"left",bottom:"top",top:"bottom"},g2={start:"end",end:"start"};function fa(t,e,r){return wr(t,Yr(e,r))}function qr(t,e){return typeof t=="function"?t(e):t}function Wt(t){return t.split("-")[0]}function Tt(t){return t.split("-")[1]}function Nf(t){return t==="x"?"y":"x"}function ha(t){return t==="y"?"height":"width"}function bi(t){return["top","bottom"].includes(Wt(t))?"y":"x"}function ga(t){return Nf(bi(t))}function Mf(t,e,r){r===void 0&&(r=!1);const n=Tt(t),o=ga(t),i=ha(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=vi(s)),[s,vi(s)]}function p2(t){const e=vi(t);return[yi(t),e,yi(e)]}function yi(t){return t.replace(/start|end/g,e=>g2[e])}function m2(t,e,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return r?e?o:n:e?n:o;case"left":case"right":return e?i:s;default:return[]}}function b2(t,e,r,n){const o=Tt(t);let i=m2(Wt(t),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),e&&(i=i.concat(i.map(yi)))),i}function vi(t){return t.replace(/left|right|bottom|top/g,e=>h2[e])}function y2(t){return{top:0,right:0,bottom:0,left:0,...t}}function Pf(t){return typeof t!="number"?y2(t):{top:t,right:t,bottom:t,left:t}}function xi(t){const{x:e,y:r,width:n,height:o}=t;return{width:n,height:o,top:r,left:e,right:e+n,bottom:r+o,x:e,y:r}}function Af(t,e,r){let{reference:n,floating:o}=t;const i=bi(e),s=ga(e),a=ha(s),l=Wt(e),c=i==="y",d=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,f=n[a]/2-o[a]/2;let h;switch(l){case"top":h={x:d,y:n.y-o.height};break;case"bottom":h={x:d,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:u};break;case"left":h={x:n.x-o.width,y:u};break;default:h={x:n.x,y:n.y}}switch(Tt(e)){case"start":h[s]-=f*(r&&c?-1:1);break;case"end":h[s]+=f*(r&&c?-1:1);break}return h}const v2=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:u}=Af(c,n,l),f=n,h={},g=0;for(let m=0;m<a.length;m++){const{name:b,fn:v}=a[m],{x:y,y:_,data:x,reset:w}=await v({x:d,y:u,initialPlacement:n,placement:f,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:t,floating:e}});d=y??d,u=_??u,h={...h,[b]:{...h[b],...x}},w&&g<=50&&(g++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(c=w.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):w.rects),{x:d,y:u}=Af(c,f,l)),m=-1)}return{x:d,y:u,placement:f,strategy:o,middlewareData:h}};async function pa(t,e){var r;e===void 0&&(e={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:h=0}=qr(e,t),g=Pf(h),b=a[f?u==="floating"?"reference":"floating":u],v=xi(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),y=u==="floating"?{...s.floating,x:n,y:o}:s.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},w=xi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:_,strategy:l}):y);return{top:(v.top-w.top+g.top)/x.y,bottom:(w.bottom-v.bottom+g.bottom)/x.y,left:(v.left-w.left+g.left)/x.x,right:(w.right-v.right+g.right)/x.x}}const x2=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=e,{element:c,padding:d=0}=qr(t,e)||{};if(c==null)return{};const u=Pf(d),f={x:r,y:n},h=ga(o),g=ha(h),m=await s.getDimensions(c),b=h==="y",v=b?"top":"left",y=b?"bottom":"right",_=b?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[h]-f[h]-i.floating[g],w=f[h]-i.reference[h],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let T=S?S[_]:0;(!T||!await(s.isElement==null?void 0:s.isElement(S)))&&(T=a.floating[_]||i.floating[g]);const M=x/2-w/2,N=T/2-m[g]/2-1,E=Yr(u[v],N),I=Yr(u[y],N),A=E,D=T-m[g]-I,O=T/2-m[g]/2+M,P=fa(A,O,D),L=!l.arrow&&Tt(o)!=null&&O!==P&&i.reference[g]/2-(O<A?E:I)-m[g]/2<0,z=L?O<A?O-A:O-D:0;return{[h]:f[h]+z,data:{[h]:P,centerOffset:O-P-z,...L&&{alignmentOffset:z}},reset:L}}});function w2(t,e,r){return(t?[...r.filter(o=>Tt(o)===t),...r.filter(o=>Tt(o)!==t)]:r.filter(o=>Wt(o)===o)).filter(o=>t?Tt(o)===t||(e?yi(o)!==o:!1):!0)}const k2=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,o;const{rects:i,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:f=Tf,autoAlignment:h=!0,...g}=qr(t,e),m=u!==void 0||f===Tf?w2(u||null,h,f):f,b=await pa(e,g),v=((r=s.autoPlacement)==null?void 0:r.index)||0,y=m[v];if(y==null)return{};const _=Mf(y,i,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==y)return{reset:{placement:m[0]}};const x=[b[Wt(y)],b[_[0]],b[_[1]]],w=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:y,overflows:x}],S=m[v+1];if(S)return{data:{index:v+1,overflows:w},reset:{placement:S}};const T=w.map(E=>{const I=Tt(E.placement);return[E.placement,I&&d?E.overflows.slice(0,2).reduce((A,D)=>A+D,0):E.overflows[0],E.overflows]}).sort((E,I)=>E[1]-I[1]),N=((o=T.filter(E=>E[2].slice(0,Tt(E[0])?2:3).every(I=>I<=0))[0])==null?void 0:o[0])||T[0][0];return N!==a?{data:{index:v+1,overflows:w},reset:{placement:N}}:{}}}},C2=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...b}=qr(t,e);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const v=Wt(o),y=Wt(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=f||(y||!m?[vi(a)]:p2(a));!f&&g!=="none"&&x.push(...b2(a,m,g,_));const w=[a,...x],S=await pa(e,b),T=[];let M=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&T.push(S[v]),u){const A=Mf(o,s,_);T.push(S[A[0]],S[A[1]])}if(M=[...M,{placement:o,overflows:T}],!T.every(A=>A<=0)){var N,E;const A=(((N=i.flip)==null?void 0:N.index)||0)+1,D=w[A];if(D)return{data:{index:A,overflows:M},reset:{placement:D}};let O=(E=M.filter(P=>P.overflows[0]<=0).sort((P,L)=>P.overflows[1]-L.overflows[1])[0])==null?void 0:E.placement;if(!O)switch(h){case"bestFit":{var I;const P=(I=M.map(L=>[L.placement,L.overflows.filter(z=>z>0).reduce((z,B)=>z+B,0)]).sort((L,z)=>L[1]-z[1])[0])==null?void 0:I[0];P&&(O=P);break}case"initialPlacement":O=a;break}if(o!==O)return{reset:{placement:O}}}return{}}}};async function _2(t,e){const{placement:r,platform:n,elements:o}=t,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Wt(r),a=Tt(r),l=bi(r)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,u=qr(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),l?{x:h*d,y:f*c}:{x:f*c,y:h*d}}const S2=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=e,l=await _2(e,t);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},E2=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:o}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:v,y}=b;return{x:v,y}}},...l}=qr(t,e),c={x:r,y:n},d=await pa(e,l),u=bi(Wt(o)),f=Nf(u);let h=c[f],g=c[u];if(i){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=h+d[b],_=h-d[v];h=fa(y,h,_)}if(s){const b=u==="y"?"top":"left",v=u==="y"?"bottom":"right",y=g+d[b],_=g-d[v];g=fa(y,g,_)}const m=a.fn({...e,[f]:h,[u]:g});return{...m,data:{x:m.x-r,y:m.y-n}}}}};function Df(t){const e=ut(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=$e(t),i=o?t.offsetWidth:r,s=o?t.offsetHeight:n,a=mi(r)!==i||mi(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function ma(t){return ge(t)?t:t.contextElement}function Kr(t){const e=ma(t);if(!$e(e))return Ot(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:i}=Df(e);let s=(i?mi(r.width):r.width)/n,a=(i?mi(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const O2=Ot(0);function If(t){const e=Qe(t);return!oa()||!e.visualViewport?O2:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function T2(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Qe(t)?!1:e}function kr(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),i=ma(t);let s=Ot(1);e&&(n?ge(n)&&(s=Kr(n)):s=Kr(t));const a=T2(i,r,n)?If(i):Ot(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const f=Qe(i),h=n&&ge(n)?Qe(n):n;let g=f,m=ia(g);for(;m&&n&&h!==g;){const b=Kr(m),v=m.getBoundingClientRect(),y=ut(m),_=v.left+(m.clientLeft+parseFloat(y.paddingLeft))*b.x,x=v.top+(m.clientTop+parseFloat(y.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,u*=b.y,l+=_,c+=x,g=Qe(m),m=ia(g)}}return xi({width:d,height:u,x:l,y:c})}function ba(t,e){const r=gi(t).scrollLeft;return e?e.left+r:kr(St(t)).left+r}function Lf(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-(r?0:ba(t,n)),i=n.top+e.scrollTop;return{x:o,y:i}}function N2(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const i=o==="fixed",s=St(n),a=e?hi(e.floating):!1;if(n===s||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Ot(1);const d=Ot(0),u=$e(n);if((u||!u&&!i)&&((xr(n)!=="body"||Un(s))&&(l=gi(n)),$e(n))){const h=kr(n);c=Kr(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}const f=s&&!u&&!i?Lf(s,l,!0):Ot(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:r.y*c.y-l.scrollTop*c.y+d.y+f.y}}function M2(t){return Array.from(t.getClientRects())}function P2(t){const e=St(t),r=gi(t),n=t.ownerDocument.body,o=wr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=wr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+ba(t);const a=-r.scrollTop;return ut(n).direction==="rtl"&&(s+=wr(e.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function A2(t,e){const r=Qe(t),n=St(t),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=oa();(!c||c&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function D2(t,e){const r=kr(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,i=$e(t)?Kr(t):Ot(1),s=t.clientWidth*i.x,a=t.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:s,height:a,x:l,y:c}}function Ff(t,e,r){let n;if(e==="viewport")n=A2(t,r);else if(e==="document")n=P2(St(t));else if(ge(e))n=D2(e,r);else{const o=If(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return xi(n)}function zf(t,e){const r=Ht(t);return r===e||!ge(r)||Qt(r)?!1:ut(r).position==="fixed"||zf(r,e)}function I2(t,e){const r=e.get(t);if(r)return r;let n=er(t,[],!1).filter(a=>ge(a)&&xr(a)!=="body"),o=null;const i=ut(t).position==="fixed";let s=i?Ht(t):t;for(;ge(s)&&!Qt(s);){const a=ut(s),l=na(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Un(s)&&!l&&zf(t,s))?n=n.filter(d=>d!==s):o=a,s=Ht(s)}return e.set(t,n),n}function L2(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const s=[...r==="clippingAncestors"?hi(e)?[]:I2(e,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,d)=>{const u=Ff(e,d,o);return c.top=wr(u.top,c.top),c.right=Yr(u.right,c.right),c.bottom=Yr(u.bottom,c.bottom),c.left=wr(u.left,c.left),c},Ff(e,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function F2(t){const{width:e,height:r}=Df(t);return{width:e,height:r}}function z2(t,e,r){const n=$e(e),o=St(e),i=r==="fixed",s=kr(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=Ot(0);if(n||!n&&!i)if((xr(e)!=="body"||Un(o))&&(a=gi(e)),n){const f=kr(e,!0,i,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else o&&(l.x=ba(o));const c=o&&!n&&!i?Lf(o,a):Ot(0),d=s.left+a.scrollLeft-l.x-c.x,u=s.top+a.scrollTop-l.y-c.y;return{x:d,y:u,width:s.width,height:s.height}}function ya(t){return ut(t).position==="static"}function Bf(t,e){if(!$e(t)||ut(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return St(t)===r&&(r=r.ownerDocument.body),r}function $f(t,e){const r=Qe(t);if(hi(t))return r;if(!$e(t)){let o=Ht(t);for(;o&&!Qt(o);){if(ge(o)&&!ya(o))return o;o=Ht(o)}return r}let n=Bf(t,e);for(;n&&s2(n)&&ya(n);)n=Bf(n,e);return n&&Qt(n)&&ya(n)&&!na(n)?r:n||a2(t)||r}const B2=async function(t){const e=this.getOffsetParent||$f,r=this.getDimensions,n=await r(t.floating);return{reference:z2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function $2(t){return ut(t).direction==="rtl"}const j2={convertOffsetParentRelativeRectToViewportRelativeRect:N2,getDocumentElement:St,getClippingRect:L2,getOffsetParent:$f,getElementRects:B2,getClientRects:M2,getDimensions:F2,getScale:Kr,isElement:ge,isRTL:$2};function jf(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function H2(t,e){let r=null,n;const o=St(t);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=t.getBoundingClientRect(),{left:d,top:u,width:f,height:h}=c;if(a||e(),!f||!h)return;const g=Ur(u),m=Ur(o.clientWidth-(d+f)),b=Ur(o.clientHeight-(u+h)),v=Ur(d),_={rootMargin:-g+"px "+-m+"px "+-b+"px "+-v+"px",threshold:wr(0,Yr(1,l))||1};let x=!0;function w(S){const T=S[0].intersectionRatio;if(T!==l){if(!x)return s();T?s(!1,T):n=setTimeout(()=>{s(!1,1e-7)},1e3)}T===1&&!jf(c,t.getBoundingClientRect())&&s(),x=!1}try{r=new IntersectionObserver(w,{..._,root:o.ownerDocument})}catch{r=new IntersectionObserver(w,_)}r.observe(t)}return s(!0),i}function Hf(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=ma(t),d=o||i?[...c?er(c):[],...er(e)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",r,{passive:!0}),i&&v.addEventListener("resize",r)});const u=c&&a?H2(c,r):null;let f=-1,h=null;s&&(h=new ResizeObserver(v=>{let[y]=v;y&&y.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(e)})),r()}),c&&!l&&h.observe(c),h.observe(e));let g,m=l?kr(t):null;l&&b();function b(){const v=kr(t);m&&!jf(m,v)&&r(),m=v,g=requestAnimationFrame(b)}return r(),()=>{var v;d.forEach(y=>{o&&y.removeEventListener("scroll",r),i&&y.removeEventListener("resize",r)}),u==null||u(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const W2=S2,V2=k2,R2=E2,Y2=C2,Wf=x2,U2=(t,e,r)=>{const n=new Map,o={platform:j2,...r},i={...o.platform,_c:n};return v2(t,e,{...o,platform:i})};var wi=typeof document<"u"?k.useLayoutEffect:k.useEffect;function ki(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!ki(t[n],e[n]))return!1;return!0}if(o=Object.keys(t),r=o.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&t.$$typeof)&&!ki(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Vf(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Rf(t,e){const r=Vf(t);return Math.round(e*r)/r}function va(t){const e=C.useRef(t);return wi(()=>{e.current=t}),e}function q2(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=t,[d,u]=C.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[f,h]=C.useState(n);ki(f,n)||h(n);const[g,m]=C.useState(null),[b,v]=C.useState(null),y=C.useCallback(B=>{B!==S.current&&(S.current=B,m(B))},[]),_=C.useCallback(B=>{B!==T.current&&(T.current=B,v(B))},[]),x=i||g,w=s||b,S=C.useRef(null),T=C.useRef(null),M=C.useRef(d),N=l!=null,E=va(l),I=va(o),A=va(c),D=C.useCallback(()=>{if(!S.current||!T.current)return;const B={placement:e,strategy:r,middleware:f};I.current&&(B.platform=I.current),U2(S.current,T.current,B).then(j=>{const $={...j,isPositioned:A.current!==!1};O.current&&!ki(M.current,$)&&(M.current=$,Yg.flushSync(()=>{u($)}))})},[f,e,r,I,A]);wi(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(B=>({...B,isPositioned:!1})))},[c]);const O=C.useRef(!1);wi(()=>(O.current=!0,()=>{O.current=!1}),[]),wi(()=>{if(x&&(S.current=x),w&&(T.current=w),x&&w){if(E.current)return E.current(x,w,D);D()}},[x,w,D,E,N]);const P=C.useMemo(()=>({reference:S,floating:T,setReference:y,setFloating:_}),[y,_]),L=C.useMemo(()=>({reference:x,floating:w}),[x,w]),z=C.useMemo(()=>{const B={position:r,left:0,top:0};if(!L.floating)return B;const j=Rf(L.floating,d.x),$=Rf(L.floating,d.y);return a?{...B,transform:"translate("+j+"px, "+$+"px)",...Vf(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:j,top:$}},[r,a,L.floating,d.x,d.y]);return C.useMemo(()=>({...d,update:D,refs:P,elements:L,floatingStyles:z}),[d,D,P,L,z])}const K2=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:o}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?Wf({element:n.current,padding:o}).fn(r):{}:n?Wf({element:n,padding:o}).fn(r):{}}}},G2=(t,e)=>({...W2(t),options:[t,e]}),X2=(t,e)=>({...R2(t),options:[t,e]}),Z2=(t,e)=>({...Y2(t),options:[t,e]}),J2=(t,e)=>({...V2(t),options:[t,e]}),Q2=(t,e)=>({...K2(t),options:[t,e]});/*!
|
|
495
|
+
*/(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var i="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(i=o(i,n(a)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var a in i)e.call(i,a)&&i[a]&&(s=o(s,a));return s}function o(i,s){return s?i?i+" "+s:i+s:i}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(bf);var jk=bf.exports;const Hk=bu(jk);var Qs={exports:{}};function yf(t,e=100,r={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(e<0)throw new RangeError("`wait` must not be negative.");const{immediate:n}=typeof r=="boolean"?{immediate:r}:r;let o,i,s,a,l;function c(){const u=Date.now()-a;if(u<e&&u>=0)s=setTimeout(c,e-u);else if(s=void 0,!n){const f=o,h=i;o=void 0,i=void 0,l=t.apply(f,h)}}const d=function(...u){if(o&&this!==o)throw new Error("Debounced method called with different contexts.");o=this,i=u,a=Date.now();const f=n&&!s;if(s||(s=setTimeout(c,e)),f){const h=o,g=i;o=void 0,i=void 0,l=t.apply(h,g)}return l};return d.clear=()=>{s&&(clearTimeout(s),s=void 0)},d.flush=()=>{if(!s)return;const u=o,f=i;o=void 0,i=void 0,l=t.apply(u,f),clearTimeout(s),s=void 0},d}Qs.exports.debounce=yf,Qs.exports=yf;var Wk=Qs.exports;const Vk=bu(Wk);var Rk=Object.defineProperty,Yk=(t,e,r)=>e in t?Rk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Me=(t,e,r)=>(Yk(t,typeof e!="symbol"?e+"":e,r),r);const Uk=300,qk=0;class Kk extends k.PureComponent{constructor(e){super(e),Me(this,"container"),Me(this,"scrolling"),Me(this,"started"),Me(this,"pressed"),Me(this,"isMobile",!1),Me(this,"internal"),Me(this,"scrollLeft"),Me(this,"scrollTop"),Me(this,"clientX"),Me(this,"clientY"),Me(this,"onEndScroll",()=>{this.scrolling=!1,!this.pressed&&this.started&&this.processEnd()}),Me(this,"onScroll",()=>{const r=this.container.current;(r.scrollLeft!==this.scrollLeft||r.scrollTop!==this.scrollTop)&&(this.scrolling=!0,this.processScroll(),this.onEndScroll())}),Me(this,"onTouchStart",r=>{const{nativeMobileScroll:n}=this.props;if(this.isDraggable(r.target))if(this.internal=!0,n&&this.scrolling)this.pressed=!0;else{const o=r.touches[0];this.processClick(o.clientX,o.clientY),!n&&this.props.stopPropagation&&r.stopPropagation()}}),Me(this,"onTouchEnd",()=>{const{nativeMobileScroll:r}=this.props;this.pressed&&(this.started&&(!this.scrolling||!r)?this.processEnd():this.pressed=!1,this.forceUpdate())}),Me(this,"onTouchMove",r=>{const{nativeMobileScroll:n}=this.props;if(this.pressed&&(!n||!this.isMobile)){const o=r.touches[0];o&&this.processMove(o.clientX,o.clientY),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation()}}),Me(this,"onMouseDown",r=>{var n,o;this.isDraggable(r.target)&&this.isScrollable()&&(this.internal=!0,((o=(n=this.props)==null?void 0:n.buttons)==null?void 0:o.indexOf(r.button))!==-1&&(this.processClick(r.clientX,r.clientY),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation()))}),Me(this,"onMouseMove",r=>{this.pressed&&(this.processMove(r.clientX,r.clientY),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation())}),Me(this,"onMouseUp",r=>{this.pressed&&(this.started?this.processEnd():(this.internal=!1,this.pressed=!1,this.forceUpdate(),this.props.onClick&&this.props.onClick(r)),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation())}),this.container=k.createRef(),this.onEndScroll=Vk(this.onEndScroll,Uk),this.scrolling=!1,this.started=!1,this.pressed=!1,this.internal=!1,this.getRef=this.getRef.bind(this)}componentDidMount(){const{nativeMobileScroll:e}=this.props,r=this.container.current;window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd),r.addEventListener("touchstart",this.onTouchStart,{passive:!1}),r.addEventListener("mousedown",this.onMouseDown,{passive:!1}),e&&(this.isMobile=this.isMobileDevice(),this.isMobile&&this.forceUpdate())}componentWillUnmount(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)}getElement(){return this.container.current}isMobileDevice(){return typeof window.orientation<"u"||navigator.userAgent.indexOf("IEMobile")!==-1}isDraggable(e){const r=this.props.ignoreElements;if(r){const n=e.closest(r);return n===null||n.contains(this.getElement())}else return!0}isScrollable(){const e=this.container.current;return e&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)}processClick(e,r){const n=this.container.current;this.scrollLeft=n==null?void 0:n.scrollLeft,this.scrollTop=n==null?void 0:n.scrollTop,this.clientX=e,this.clientY=r,this.pressed=!0}processStart(e=!0){const{onStartScroll:r}=this.props;this.started=!0,e&&document.body.classList.add("cursor-grab"),r&&r({external:!this.internal}),this.forceUpdate()}processScroll(){if(this.started){const{onScroll:e}=this.props;e&&e({external:!this.internal})}else this.processStart(!1)}processMove(e,r){const{horizontal:n,vertical:o,activationDistance:i,onScroll:s}=this.props,a=this.container.current;this.started?(n&&(a.scrollLeft-=e-this.clientX),o&&(a.scrollTop-=r-this.clientY),s&&s({external:!this.internal}),this.clientX=e,this.clientY=r,this.scrollLeft=a.scrollLeft,this.scrollTop=a.scrollTop):(n&&Math.abs(e-this.clientX)>i||o&&Math.abs(r-this.clientY)>i)&&(this.clientX=e,this.clientY=r,this.processStart())}processEnd(){const{onEndScroll:e}=this.props;this.container.current&&e&&e({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("cursor-grab"),this.forceUpdate()}getRef(e){[this.container,this.props.innerRef].forEach(r=>{r&&(typeof r=="function"?r(e):r.current=e)})}render(){const{children:e,draggingClassName:r,className:n,style:o,hideScrollbars:i}=this.props;return p.jsx("div",{className:Hk(n,this.pressed&&r,{"!scroll-auto [&>*]:pointer-events-none [&>*]:cursor-grab":this.pressed,"overflow-auto":this.isMobile,"overflow-hidden !overflow-x-hidden [overflow:-moz-scrollbars-none] [scrollbar-width:none]":i,"[&::-webkit-scrollbar]:[-webkit-appearance:none !important] [&::-webkit-scrollbar]:!hidden [&::-webkit-scrollbar]:!h-0 [&::-webkit-scrollbar]:!w-0 [&::-webkit-scrollbar]:!bg-transparent":i}),style:o,ref:this.getRef,onScroll:this.onScroll,children:e})}}Me(Kk,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[qk]});const Gk=k.forwardRef(({className:t,color:e="default",theme:r={},...n},o)=>{const i=H(K().checkbox,r);return p.jsx("input",{ref:o,type:"checkbox",className:F(i.root.base,i.root.color[e],t),...n})});Gk.displayName="Checkbox";const Vn=({children:t,className:e,color:r="default",theme:n={},value:o,...i})=>{const s=H(K().helperText,n);return p.jsx("p",{className:F(s.root.base,s.root.colors[r],e),...i,children:o??t??""})};Vn.displayName="HelperText";const ea=k.forwardRef(({addon:t,className:e,color:r="gray",helperText:n,icon:o,rightIcon:i,shadow:s,sizing:a="md",theme:l={},type:c="text",...d},u)=>{const f=H(K().textInput,l);return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:F(f.base,e),children:[t&&p.jsx("span",{className:f.addon,children:t}),p.jsxs("div",{className:f.field.base,children:[o&&p.jsx("div",{className:f.field.icon.base,children:p.jsx(o,{className:f.field.icon.svg})}),i&&p.jsx("div",{"data-testid":"right-icon",className:f.field.rightIcon.base,children:p.jsx(i,{className:f.field.rightIcon.svg})}),p.jsx("input",{className:F(f.field.input.base,f.field.input.colors[r],f.field.input.sizes[a],f.field.input.withIcon[o?"on":"off"],f.field.input.withRightIcon[i?"on":"off"],f.field.input.withAddon[t?"on":"off"],f.field.input.withShadow[s?"on":"off"]),type:c,...d,ref:u})]})]}),n&&p.jsx(Vn,{color:r,children:n})]})});ea.displayName="TextInput";const vf=k.createContext(void 0);function di(){const t=k.useContext(vf);if(!t)throw new Error("useDatePickerContext should be used within the DatePickerContext provider!");return t}var ve=(t=>(t[t.Days=0]="Days",t[t.Months=1]="Months",t[t.Years=2]="Years",t[t.Decades=3]="Decades",t))(ve||{}),xf=(t=>(t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday",t))(xf||{});const Rn=(t,e,r)=>{const n=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();if(e&&r){const o=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),i=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime();return n>=o&&n<=i}if(e){const o=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();return n>=o}if(r){const o=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime();return n<=o}return!0},ui=(t,e)=>(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t.getTime()===e.getTime()),Xk=(t,e,r)=>(Rn(t,e,r)||(e&&t<e?t=e:r&&t>r&&(t=r)),t),Zk=(t,e)=>{const r=new Date(t.getFullYear(),t.getMonth(),1);let o=r.getDay()-e;return o<0&&(o+=7),ta(r,-o)},Jk=(t,e)=>{const r=[],n=new Date(0);n.setDate(n.getDate()-n.getDay()+e);const o=new Intl.DateTimeFormat(t,{weekday:"short"});for(let i=0;i<7;i++)r.push(o.format(ta(n,i)));return r},ta=(t,e)=>{const r=new Date(t);return r.setDate(r.getDate()+e),r},Qk=(t,e)=>{const r=new Date(t);return r.setMonth(r.getMonth()+e),r},Vr=(t,e)=>{const r=new Date(t);return r.setFullYear(r.getFullYear()+e),r},Yn=(t,e,r)=>{let n={day:"numeric",month:"long",year:"numeric"};return r&&(n=r),new Intl.DateTimeFormat(t,n).format(e)},Rr=(t,e)=>{const r=t.getFullYear();return Math.floor(r/e)*e},e2=(t,e)=>{const r=t.getFullYear(),n=e+9;return r>=e&&r<=n},t2=({theme:t={}})=>{const{theme:e,weekStart:r,minDate:n,maxDate:o,viewDate:i,selectedDate:s,changeSelectedDate:a,language:l}=di(),c=H(e.views.days,t),d=Jk(l,r),u=Zk(i,r);return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:c.header.base,children:d.map((f,h)=>p.jsx("span",{className:c.header.title,children:f},h))}),p.jsx("div",{className:c.items.base,children:[...Array(42)].map((f,h)=>{const g=ta(u,h),m=Yn(l,g,{day:"numeric"}),b=ui(s,g),v=!Rn(g,n,o);return p.jsx("button",{disabled:v,type:"button",className:F(c.items.item.base,b&&c.items.item.selected,v&&c.items.item.disabled),onClick:()=>{v||a(g,!0)},children:m},h)})})]})},r2=({theme:t={}})=>{const{theme:e,selectedDate:r,viewDate:n,setViewDate:o,setView:i}=di(),s=H(e.views.decades,t);return p.jsx("div",{className:s.items.base,children:[...Array(12)].map((a,l)=>{const d=Rr(n,100)-10+l*10,u=new Date(d,0,1),f=Vr(u,9),h=e2(n,d),g=!Rn(n,u,f);return p.jsx("button",{disabled:g,type:"button",className:F(s.items.item.base,h&&s.items.item.selected,g&&s.items.item.disabled),onClick:()=>{g||(o(Vr(n,d-r.getFullYear())),i(ve.Years))},children:d},l)})})},n2=({theme:t={}})=>{const{theme:e,minDate:r,maxDate:n,selectedDate:o,viewDate:i,language:s,setViewDate:a,setView:l}=di(),c=H(e.views.months,t);return p.jsx("div",{className:c.items.base,children:[...Array(12)].map((d,u)=>{const f=new Date(i.getTime());f.setMonth(u);const h=Yn(s,f,{month:"short"}),g=ui(o,f),m=!Rn(f,r,n);return p.jsx("button",{disabled:m,type:"button",className:F(c.items.item.base,g&&c.items.item.selected,m&&c.items.item.disabled),onClick:()=>{m||(a(f),l(ve.Days))},children:h},u)})})},o2=({theme:t={}})=>{const{theme:e,selectedDate:r,minDate:n,maxDate:o,viewDate:i,setViewDate:s,setView:a}=di(),l=H(e.views.years,t);return p.jsx("div",{className:l.items.base,children:[...Array(12)].map((c,d)=>{const f=Rr(i,10)-1+d*1,h=new Date(i.getTime());h.setFullYear(f);const g=ui(r,h),m=!Rn(h,n,o);return p.jsx("button",{disabled:m,type:"button",className:F(l.items.item.base,g&&l.items.item.selected,m&&l.items.item.disabled),onClick:()=>{m||(s(h),a(ve.Months))},children:f},d)})})},i2=({title:t,open:e,inline:r=!1,autoHide:n=!0,showClearButton:o=!0,labelClearButton:i="Clear",showTodayButton:s=!0,labelTodayButton:a="Today",defaultDate:l=new Date,minDate:c,maxDate:d,language:u="en",weekStart:f=xf.Sunday,className:h,theme:g={},onSelectedDateChanged:m,...b},v)=>{const y=H(K().datepicker,g);l=Xk(l,c,d);const[_,x]=k.useState(e),[w,S]=k.useState(ve.Days),[T,M]=k.useState(l),[N,E]=k.useState(l),I=k.useRef(null),A=k.useRef(null),D=(j,$)=>{M(j),m&&m(j),n&&w===ve.Days&&$==!0&&!r&&x(!1)},O=()=>{D(l,!0),l&&E(l)};k.useImperativeHandle(v,()=>({focus(){var j;(j=I.current)==null||j.focus()},clear(){O()}}));const P=j=>{switch(j){case ve.Decades:return p.jsx(r2,{theme:y.views.decades});case ve.Years:return p.jsx(o2,{theme:y.views.years});case ve.Months:return p.jsx(n2,{theme:y.views.months});case ve.Days:default:return p.jsx(t2,{theme:y.views.days})}},L=()=>{switch(w){case ve.Days:return ve.Months;case ve.Months:return ve.Years;case ve.Years:return ve.Decades}return w},z=()=>{switch(w){case ve.Decades:return`${Rr(N,100)} - ${Rr(N,100)+90}`;case ve.Years:return`${Rr(N,10)} - ${Rr(N,10)+9}`;case ve.Months:return Yn(u,N,{year:"numeric"});case ve.Days:default:return Yn(u,N,{month:"long",year:"numeric"})}},B=(j,$,W)=>{switch(j){case ve.Days:return new Date(Qk($,W));case ve.Months:return new Date(Vr($,W));case ve.Years:return new Date(Vr($,W*10));case ve.Decades:return new Date(Vr($,W*100));default:return new Date(Vr($,W*10))}};return k.useEffect(()=>{const j=$=>{var Y,U;const W=(Y=A==null?void 0:A.current)==null?void 0:Y.contains($.target),V=(U=I==null?void 0:I.current)==null?void 0:U.contains($.target);!W&&!V&&x(!1)};return document.addEventListener("mousedown",j),()=>{document.removeEventListener("mousedown",j)}},[I,A,x]),p.jsx(vf.Provider,{value:{theme:y,language:u,minDate:c,maxDate:d,weekStart:f,isOpen:_,setIsOpen:x,view:w,setView:S,viewDate:N,setViewDate:E,selectedDate:T,setSelectedDate:M,changeSelectedDate:D},children:p.jsxs("div",{className:F(y.root.base,h),children:[!r&&p.jsx(ea,{theme:y.root.input,icon:h1,ref:I,onFocus:()=>{ui(N,T)||E(T),x(!0)},value:T&&Yn(u,T),readOnly:!0,...b}),(_||r)&&p.jsx("div",{ref:A,className:F(y.popup.root.base,r&&y.popup.root.inline),children:p.jsxs("div",{className:y.popup.root.inner,children:[p.jsxs("div",{className:y.popup.header.base,children:[t&&p.jsx("div",{className:y.popup.header.title,children:t}),p.jsxs("div",{className:y.popup.header.selectors.base,children:[p.jsx("button",{type:"button",className:F(y.popup.header.selectors.button.base,y.popup.header.selectors.button.prev),onClick:()=>E(B(w,N,-1)),children:p.jsx(u1,{})}),p.jsx("button",{type:"button",className:F(y.popup.header.selectors.button.base,y.popup.header.selectors.button.view),onClick:()=>S(L()),children:z()}),p.jsx("button",{type:"button",className:F(y.popup.header.selectors.button.base,y.popup.header.selectors.button.next),onClick:()=>E(B(w,N,1)),children:p.jsx(f1,{})})]})]}),p.jsx("div",{className:y.popup.view.base,children:P(w)}),(o||s)&&p.jsxs("div",{className:y.popup.footer.base,children:[s&&p.jsx("button",{type:"button",className:F(y.popup.footer.button.base,y.popup.footer.button.today),onClick:()=>{const j=new Date;D(j,!0),E(j)},children:a}),o&&p.jsx("button",{type:"button",className:F(y.popup.footer.button.base,y.popup.footer.button.clear),onClick:()=>{D(l,!0),l&&E(l)},children:i})]})]})})]})})},s2=k.forwardRef(i2);s2.displayName="Datepicker";function fi(){return typeof window<"u"}function xr(t){return wf(t)?(t.nodeName||"").toLowerCase():"#document"}function Qe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function St(t){var e;return(e=(wf(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function wf(t){return fi()?t instanceof Node||t instanceof Qe(t).Node:!1}function ge(t){return fi()?t instanceof Element||t instanceof Qe(t).Element:!1}function $e(t){return fi()?t instanceof HTMLElement||t instanceof Qe(t).HTMLElement:!1}function ra(t){return!fi()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Qe(t).ShadowRoot}function Un(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=ut(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(o)}function a2(t){return["table","td","th"].includes(xr(t))}function hi(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function na(t){const e=oa(),r=ge(t)?ut(t):t;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function l2(t){let e=Ht(t);for(;$e(e)&&!Qt(e);){if(na(e))return e;if(hi(e))return null;e=Ht(e)}return null}function oa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qt(t){return["html","body","#document"].includes(xr(t))}function ut(t){return Qe(t).getComputedStyle(t)}function gi(t){return ge(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ht(t){if(xr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ra(t)&&t.host||St(t);return ra(e)?e.host:e}function kf(t){const e=Ht(t);return Qt(e)?t.ownerDocument?t.ownerDocument.body:t.body:$e(e)&&Un(e)?e:kf(e)}function er(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=kf(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),s=Qe(o);if(i){const a=ia(s);return e.concat(s,s.visualViewport||[],Un(o)?o:[],a&&r?er(a):[])}return e.concat(o,er(o,[],r))}function ia(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Et(t){let e=t.activeElement;for(;((r=e)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;e=e.shadowRoot.activeElement}return e}function Se(t,e){if(!t||!e)return!1;const r=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(r&&ra(r)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}function sa(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function Cf(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:r,version:n}=e;return r+"/"+n}).join(" "):navigator.userAgent}function _f(t){return t.mozInputSource===0&&t.isTrusted?!0:ca()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function aa(t){return c2()?!1:!ca()&&t.width===0&&t.height===0||ca()&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0&&t.pointerType==="touch"}function la(){return/apple/i.test(navigator.vendor)}function ca(){const t=/android/i;return t.test(sa())||t.test(Cf())}function Sf(){return sa().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function c2(){return Cf().includes("jsdom/")}function pi(t,e){const r=["mouse","pen"];return e||r.push("",void 0),r.includes(t)}function d2(t){return"nativeEvent"in t}function u2(t){return t.matches("html,body")}function Ue(t){return(t==null?void 0:t.ownerDocument)||document}function da(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const r=t;return r.target!=null&&e.contains(r.target)}function tr(t){return"composedPath"in t?t.composedPath()[0]:t.target}const f2="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function ua(t){return $e(t)&&t.matches(f2)}function je(t){t.preventDefault(),t.stopPropagation()}function Ef(t){return t?t.getAttribute("role")==="combobox"&&ua(t):!1}const h2=["top","right","bottom","left"],Of=["start","end"],Tf=h2.reduce((t,e)=>t.concat(e,e+"-"+Of[0],e+"-"+Of[1]),[]),Yr=Math.min,wr=Math.max,mi=Math.round,Ur=Math.floor,Ot=t=>({x:t,y:t}),g2={left:"right",right:"left",bottom:"top",top:"bottom"},p2={start:"end",end:"start"};function fa(t,e,r){return wr(t,Yr(e,r))}function qr(t,e){return typeof t=="function"?t(e):t}function Wt(t){return t.split("-")[0]}function Tt(t){return t.split("-")[1]}function Nf(t){return t==="x"?"y":"x"}function ha(t){return t==="y"?"height":"width"}function bi(t){return["top","bottom"].includes(Wt(t))?"y":"x"}function ga(t){return Nf(bi(t))}function Mf(t,e,r){r===void 0&&(r=!1);const n=Tt(t),o=ga(t),i=ha(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=vi(s)),[s,vi(s)]}function m2(t){const e=vi(t);return[yi(t),e,yi(e)]}function yi(t){return t.replace(/start|end/g,e=>p2[e])}function b2(t,e,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return r?e?o:n:e?n:o;case"left":case"right":return e?i:s;default:return[]}}function y2(t,e,r,n){const o=Tt(t);let i=b2(Wt(t),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),e&&(i=i.concat(i.map(yi)))),i}function vi(t){return t.replace(/left|right|bottom|top/g,e=>g2[e])}function v2(t){return{top:0,right:0,bottom:0,left:0,...t}}function Pf(t){return typeof t!="number"?v2(t):{top:t,right:t,bottom:t,left:t}}function xi(t){const{x:e,y:r,width:n,height:o}=t;return{width:n,height:o,top:r,left:e,right:e+n,bottom:r+o,x:e,y:r}}function Af(t,e,r){let{reference:n,floating:o}=t;const i=bi(e),s=ga(e),a=ha(s),l=Wt(e),c=i==="y",d=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,f=n[a]/2-o[a]/2;let h;switch(l){case"top":h={x:d,y:n.y-o.height};break;case"bottom":h={x:d,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:u};break;case"left":h={x:n.x-o.width,y:u};break;default:h={x:n.x,y:n.y}}switch(Tt(e)){case"start":h[s]-=f*(r&&c?-1:1);break;case"end":h[s]+=f*(r&&c?-1:1);break}return h}const x2=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:u}=Af(c,n,l),f=n,h={},g=0;for(let m=0;m<a.length;m++){const{name:b,fn:v}=a[m],{x:y,y:_,data:x,reset:w}=await v({x:d,y:u,initialPlacement:n,placement:f,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:t,floating:e}});d=y??d,u=_??u,h={...h,[b]:{...h[b],...x}},w&&g<=50&&(g++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(c=w.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):w.rects),{x:d,y:u}=Af(c,f,l)),m=-1)}return{x:d,y:u,placement:f,strategy:o,middlewareData:h}};async function pa(t,e){var r;e===void 0&&(e={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:h=0}=qr(e,t),g=Pf(h),b=a[f?u==="floating"?"reference":"floating":u],v=xi(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),y=u==="floating"?{...s.floating,x:n,y:o}:s.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},w=xi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:_,strategy:l}):y);return{top:(v.top-w.top+g.top)/x.y,bottom:(w.bottom-v.bottom+g.bottom)/x.y,left:(v.left-w.left+g.left)/x.x,right:(w.right-v.right+g.right)/x.x}}const w2=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=e,{element:c,padding:d=0}=qr(t,e)||{};if(c==null)return{};const u=Pf(d),f={x:r,y:n},h=ga(o),g=ha(h),m=await s.getDimensions(c),b=h==="y",v=b?"top":"left",y=b?"bottom":"right",_=b?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[h]-f[h]-i.floating[g],w=f[h]-i.reference[h],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let T=S?S[_]:0;(!T||!await(s.isElement==null?void 0:s.isElement(S)))&&(T=a.floating[_]||i.floating[g]);const M=x/2-w/2,N=T/2-m[g]/2-1,E=Yr(u[v],N),I=Yr(u[y],N),A=E,D=T-m[g]-I,O=T/2-m[g]/2+M,P=fa(A,O,D),L=!l.arrow&&Tt(o)!=null&&O!==P&&i.reference[g]/2-(O<A?E:I)-m[g]/2<0,z=L?O<A?O-A:O-D:0;return{[h]:f[h]+z,data:{[h]:P,centerOffset:O-P-z,...L&&{alignmentOffset:z}},reset:L}}});function k2(t,e,r){return(t?[...r.filter(o=>Tt(o)===t),...r.filter(o=>Tt(o)!==t)]:r.filter(o=>Wt(o)===o)).filter(o=>t?Tt(o)===t||(e?yi(o)!==o:!1):!0)}const C2=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,o;const{rects:i,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:f=Tf,autoAlignment:h=!0,...g}=qr(t,e),m=u!==void 0||f===Tf?k2(u||null,h,f):f,b=await pa(e,g),v=((r=s.autoPlacement)==null?void 0:r.index)||0,y=m[v];if(y==null)return{};const _=Mf(y,i,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==y)return{reset:{placement:m[0]}};const x=[b[Wt(y)],b[_[0]],b[_[1]]],w=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:y,overflows:x}],S=m[v+1];if(S)return{data:{index:v+1,overflows:w},reset:{placement:S}};const T=w.map(E=>{const I=Tt(E.placement);return[E.placement,I&&d?E.overflows.slice(0,2).reduce((A,D)=>A+D,0):E.overflows[0],E.overflows]}).sort((E,I)=>E[1]-I[1]),N=((o=T.filter(E=>E[2].slice(0,Tt(E[0])?2:3).every(I=>I<=0))[0])==null?void 0:o[0])||T[0][0];return N!==a?{data:{index:v+1,overflows:w},reset:{placement:N}}:{}}}},_2=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...b}=qr(t,e);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const v=Wt(o),y=Wt(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=f||(y||!m?[vi(a)]:m2(a));!f&&g!=="none"&&x.push(...y2(a,m,g,_));const w=[a,...x],S=await pa(e,b),T=[];let M=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&T.push(S[v]),u){const A=Mf(o,s,_);T.push(S[A[0]],S[A[1]])}if(M=[...M,{placement:o,overflows:T}],!T.every(A=>A<=0)){var N,E;const A=(((N=i.flip)==null?void 0:N.index)||0)+1,D=w[A];if(D)return{data:{index:A,overflows:M},reset:{placement:D}};let O=(E=M.filter(P=>P.overflows[0]<=0).sort((P,L)=>P.overflows[1]-L.overflows[1])[0])==null?void 0:E.placement;if(!O)switch(h){case"bestFit":{var I;const P=(I=M.map(L=>[L.placement,L.overflows.filter(z=>z>0).reduce((z,B)=>z+B,0)]).sort((L,z)=>L[1]-z[1])[0])==null?void 0:I[0];P&&(O=P);break}case"initialPlacement":O=a;break}if(o!==O)return{reset:{placement:O}}}return{}}}};async function S2(t,e){const{placement:r,platform:n,elements:o}=t,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Wt(r),a=Tt(r),l=bi(r)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,u=qr(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),l?{x:h*d,y:f*c}:{x:f*c,y:h*d}}const E2=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=e,l=await S2(e,t);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},O2=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:o}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:v,y}=b;return{x:v,y}}},...l}=qr(t,e),c={x:r,y:n},d=await pa(e,l),u=bi(Wt(o)),f=Nf(u);let h=c[f],g=c[u];if(i){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=h+d[b],_=h-d[v];h=fa(y,h,_)}if(s){const b=u==="y"?"top":"left",v=u==="y"?"bottom":"right",y=g+d[b],_=g-d[v];g=fa(y,g,_)}const m=a.fn({...e,[f]:h,[u]:g});return{...m,data:{x:m.x-r,y:m.y-n}}}}};function Df(t){const e=ut(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=$e(t),i=o?t.offsetWidth:r,s=o?t.offsetHeight:n,a=mi(r)!==i||mi(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function ma(t){return ge(t)?t:t.contextElement}function Kr(t){const e=ma(t);if(!$e(e))return Ot(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:i}=Df(e);let s=(i?mi(r.width):r.width)/n,a=(i?mi(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const T2=Ot(0);function If(t){const e=Qe(t);return!oa()||!e.visualViewport?T2:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function N2(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Qe(t)?!1:e}function kr(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),i=ma(t);let s=Ot(1);e&&(n?ge(n)&&(s=Kr(n)):s=Kr(t));const a=N2(i,r,n)?If(i):Ot(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const f=Qe(i),h=n&&ge(n)?Qe(n):n;let g=f,m=ia(g);for(;m&&n&&h!==g;){const b=Kr(m),v=m.getBoundingClientRect(),y=ut(m),_=v.left+(m.clientLeft+parseFloat(y.paddingLeft))*b.x,x=v.top+(m.clientTop+parseFloat(y.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,u*=b.y,l+=_,c+=x,g=Qe(m),m=ia(g)}}return xi({width:d,height:u,x:l,y:c})}function ba(t,e){const r=gi(t).scrollLeft;return e?e.left+r:kr(St(t)).left+r}function Lf(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-(r?0:ba(t,n)),i=n.top+e.scrollTop;return{x:o,y:i}}function M2(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const i=o==="fixed",s=St(n),a=e?hi(e.floating):!1;if(n===s||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Ot(1);const d=Ot(0),u=$e(n);if((u||!u&&!i)&&((xr(n)!=="body"||Un(s))&&(l=gi(n)),$e(n))){const h=kr(n);c=Kr(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}const f=s&&!u&&!i?Lf(s,l,!0):Ot(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:r.y*c.y-l.scrollTop*c.y+d.y+f.y}}function P2(t){return Array.from(t.getClientRects())}function A2(t){const e=St(t),r=gi(t),n=t.ownerDocument.body,o=wr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=wr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+ba(t);const a=-r.scrollTop;return ut(n).direction==="rtl"&&(s+=wr(e.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function D2(t,e){const r=Qe(t),n=St(t),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=oa();(!c||c&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function I2(t,e){const r=kr(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,i=$e(t)?Kr(t):Ot(1),s=t.clientWidth*i.x,a=t.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:s,height:a,x:l,y:c}}function Ff(t,e,r){let n;if(e==="viewport")n=D2(t,r);else if(e==="document")n=A2(St(t));else if(ge(e))n=I2(e,r);else{const o=If(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return xi(n)}function zf(t,e){const r=Ht(t);return r===e||!ge(r)||Qt(r)?!1:ut(r).position==="fixed"||zf(r,e)}function L2(t,e){const r=e.get(t);if(r)return r;let n=er(t,[],!1).filter(a=>ge(a)&&xr(a)!=="body"),o=null;const i=ut(t).position==="fixed";let s=i?Ht(t):t;for(;ge(s)&&!Qt(s);){const a=ut(s),l=na(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Un(s)&&!l&&zf(t,s))?n=n.filter(d=>d!==s):o=a,s=Ht(s)}return e.set(t,n),n}function F2(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const s=[...r==="clippingAncestors"?hi(e)?[]:L2(e,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,d)=>{const u=Ff(e,d,o);return c.top=wr(u.top,c.top),c.right=Yr(u.right,c.right),c.bottom=Yr(u.bottom,c.bottom),c.left=wr(u.left,c.left),c},Ff(e,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function z2(t){const{width:e,height:r}=Df(t);return{width:e,height:r}}function B2(t,e,r){const n=$e(e),o=St(e),i=r==="fixed",s=kr(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=Ot(0);if(n||!n&&!i)if((xr(e)!=="body"||Un(o))&&(a=gi(e)),n){const f=kr(e,!0,i,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else o&&(l.x=ba(o));const c=o&&!n&&!i?Lf(o,a):Ot(0),d=s.left+a.scrollLeft-l.x-c.x,u=s.top+a.scrollTop-l.y-c.y;return{x:d,y:u,width:s.width,height:s.height}}function ya(t){return ut(t).position==="static"}function Bf(t,e){if(!$e(t)||ut(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return St(t)===r&&(r=r.ownerDocument.body),r}function $f(t,e){const r=Qe(t);if(hi(t))return r;if(!$e(t)){let o=Ht(t);for(;o&&!Qt(o);){if(ge(o)&&!ya(o))return o;o=Ht(o)}return r}let n=Bf(t,e);for(;n&&a2(n)&&ya(n);)n=Bf(n,e);return n&&Qt(n)&&ya(n)&&!na(n)?r:n||l2(t)||r}const $2=async function(t){const e=this.getOffsetParent||$f,r=this.getDimensions,n=await r(t.floating);return{reference:B2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function j2(t){return ut(t).direction==="rtl"}const H2={convertOffsetParentRelativeRectToViewportRelativeRect:M2,getDocumentElement:St,getClippingRect:F2,getOffsetParent:$f,getElementRects:$2,getClientRects:P2,getDimensions:z2,getScale:Kr,isElement:ge,isRTL:j2};function jf(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function W2(t,e){let r=null,n;const o=St(t);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=t.getBoundingClientRect(),{left:d,top:u,width:f,height:h}=c;if(a||e(),!f||!h)return;const g=Ur(u),m=Ur(o.clientWidth-(d+f)),b=Ur(o.clientHeight-(u+h)),v=Ur(d),_={rootMargin:-g+"px "+-m+"px "+-b+"px "+-v+"px",threshold:wr(0,Yr(1,l))||1};let x=!0;function w(S){const T=S[0].intersectionRatio;if(T!==l){if(!x)return s();T?s(!1,T):n=setTimeout(()=>{s(!1,1e-7)},1e3)}T===1&&!jf(c,t.getBoundingClientRect())&&s(),x=!1}try{r=new IntersectionObserver(w,{..._,root:o.ownerDocument})}catch{r=new IntersectionObserver(w,_)}r.observe(t)}return s(!0),i}function Hf(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=ma(t),d=o||i?[...c?er(c):[],...er(e)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",r,{passive:!0}),i&&v.addEventListener("resize",r)});const u=c&&a?W2(c,r):null;let f=-1,h=null;s&&(h=new ResizeObserver(v=>{let[y]=v;y&&y.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(e)})),r()}),c&&!l&&h.observe(c),h.observe(e));let g,m=l?kr(t):null;l&&b();function b(){const v=kr(t);m&&!jf(m,v)&&r(),m=v,g=requestAnimationFrame(b)}return r(),()=>{var v;d.forEach(y=>{o&&y.removeEventListener("scroll",r),i&&y.removeEventListener("resize",r)}),u==null||u(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const V2=E2,R2=C2,Y2=O2,U2=_2,Wf=w2,q2=(t,e,r)=>{const n=new Map,o={platform:H2,...r},i={...o.platform,_c:n};return x2(t,e,{...o,platform:i})};var wi=typeof document<"u"?k.useLayoutEffect:k.useEffect;function ki(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!ki(t[n],e[n]))return!1;return!0}if(o=Object.keys(t),r=o.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&t.$$typeof)&&!ki(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Vf(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Rf(t,e){const r=Vf(t);return Math.round(e*r)/r}function va(t){const e=C.useRef(t);return wi(()=>{e.current=t}),e}function K2(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=t,[d,u]=C.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[f,h]=C.useState(n);ki(f,n)||h(n);const[g,m]=C.useState(null),[b,v]=C.useState(null),y=C.useCallback(B=>{B!==S.current&&(S.current=B,m(B))},[]),_=C.useCallback(B=>{B!==T.current&&(T.current=B,v(B))},[]),x=i||g,w=s||b,S=C.useRef(null),T=C.useRef(null),M=C.useRef(d),N=l!=null,E=va(l),I=va(o),A=va(c),D=C.useCallback(()=>{if(!S.current||!T.current)return;const B={placement:e,strategy:r,middleware:f};I.current&&(B.platform=I.current),q2(S.current,T.current,B).then(j=>{const $={...j,isPositioned:A.current!==!1};O.current&&!ki(M.current,$)&&(M.current=$,Yg.flushSync(()=>{u($)}))})},[f,e,r,I,A]);wi(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(B=>({...B,isPositioned:!1})))},[c]);const O=C.useRef(!1);wi(()=>(O.current=!0,()=>{O.current=!1}),[]),wi(()=>{if(x&&(S.current=x),w&&(T.current=w),x&&w){if(E.current)return E.current(x,w,D);D()}},[x,w,D,E,N]);const P=C.useMemo(()=>({reference:S,floating:T,setReference:y,setFloating:_}),[y,_]),L=C.useMemo(()=>({reference:x,floating:w}),[x,w]),z=C.useMemo(()=>{const B={position:r,left:0,top:0};if(!L.floating)return B;const j=Rf(L.floating,d.x),$=Rf(L.floating,d.y);return a?{...B,transform:"translate("+j+"px, "+$+"px)",...Vf(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:j,top:$}},[r,a,L.floating,d.x,d.y]);return C.useMemo(()=>({...d,update:D,refs:P,elements:L,floatingStyles:z}),[d,D,P,L,z])}const G2=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:o}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?Wf({element:n.current,padding:o}).fn(r):{}:n?Wf({element:n,padding:o}).fn(r):{}}}},X2=(t,e)=>({...V2(t),options:[t,e]}),Z2=(t,e)=>({...Y2(t),options:[t,e]}),J2=(t,e)=>({...U2(t),options:[t,e]}),Q2=(t,e)=>({...R2(t),options:[t,e]}),e5=(t,e)=>({...G2(t),options:[t,e]});/*!
|
|
496
496
|
* tabbable 6.2.0
|
|
497
497
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
498
|
-
*/var e5=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ci=e5.join(","),Yf=typeof Element>"u",Gr=Yf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,_i=!Yf&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},Si=function t(e,r){var n;r===void 0&&(r=!0);var o=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),i=o===""||o==="true",s=i||r&&e&&t(e.parentNode);return s},t5=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},r5=function(e,r,n){if(Si(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(Ci));return r&&Gr.call(e,Ci)&&o.unshift(e),o=o.filter(n),o},n5=function t(e,r,n){for(var o=[],i=Array.from(e);i.length;){var s=i.shift();if(!Si(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,c=t(l,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:s,candidates:c})}else{var d=Gr.call(s,Ci);d&&n.filter(s)&&(r||!e.includes(s))&&o.push(s);var u=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),f=!Si(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(u&&f){var h=t(u===!0?s.children:u.children,!0,n);n.flatten?o.push.apply(o,h):o.push({scopeParent:s,candidates:h})}else i.unshift.apply(i,s.children)}}return o},Uf=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},qf=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||t5(e))&&!Uf(e)?0:e.tabIndex},o5=function(e,r){var n=qf(e);return n<0&&r&&!Uf(e)?0:n},i5=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},Kf=function(e){return e.tagName==="INPUT"},s5=function(e){return Kf(e)&&e.type==="hidden"},a5=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},l5=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},c5=function(e){if(!e.name)return!0;var r=e.form||_i(e),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=n(window.CSS.escape(e.name));else try{o=n(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=l5(o,e.form);return!i||i===e},d5=function(e){return Kf(e)&&e.type==="radio"},u5=function(e){return d5(e)&&!c5(e)},f5=function(e){var r,n=e&&_i(e),o=(r=n)===null||r===void 0?void 0:r.host,i=!1;if(n&&n!==e){var s,a,l;for(i=!!((s=o)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(o)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!i&&o;){var c,d,u;n=_i(o),o=(c=n)===null||c===void 0?void 0:c.host,i=!!((d=o)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(o))}}return i},Gf=function(e){var r=e.getBoundingClientRect(),n=r.width,o=r.height;return n===0&&o===0},h5=function(e,r){var n=r.displayCheck,o=r.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var i=Gr.call(e,"details>summary:first-of-type"),s=i?e.parentElement:e;if(Gr.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var a=e;e;){var l=e.parentElement,c=_i(e);if(l&&!l.shadowRoot&&o(l)===!0)return Gf(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=a}if(f5(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Gf(e);return!1},g5=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var o=r.children.item(n);if(o.tagName==="LEGEND")return Gr.call(r,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}r=r.parentElement}return!1},p5=function(e,r){return!(r.disabled||Si(r)||s5(r)||h5(r,e)||a5(r)||g5(r))},xa=function(e,r){return!(u5(r)||qf(r)<0||!p5(e,r))},m5=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},b5=function t(e){var r=[],n=[];return e.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,l=o5(a,s),c=s?t(o.candidates):a;l===0?s?r.push.apply(r,c):r.push(a):n.push({documentOrder:i,tabIndex:l,item:o,isScope:s,content:c})}),n.sort(i5).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},Ei=function(e,r){r=r||{};var n;return r.getShadowRoot?n=n5([e],r.includeContainer,{filter:xa.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:m5}):n=r5(e,r.includeContainer,xa.bind(null,r)),b5(n)},y5=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Gr.call(e,Ci)===!1?!1:xa(r,e)};function Xf(t){return C.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})},t)}const v5=C.useInsertionEffect||(t=>t());function Nt(t){const e=C.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return v5(()=>{e.current=t}),C.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e.current==null?void 0:e.current(...n)},[])}const wa="ArrowUp",qn="ArrowDown",Xr="ArrowLeft",Zr="ArrowRight";function Oi(t,e,r){return Math.floor(t/e)!==r}function Kn(t,e){return e<0||e>=t.current.length}function ka(t,e){return Ye(t,{disabledIndices:e})}function Zf(t,e){return Ye(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function Ye(t,e){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=e===void 0?{}:e;const s=t.current,a=o?c=>o.includes(c):c=>{const d=s[c];return d==null||d.hasAttribute("disabled")||d.getAttribute("aria-disabled")==="true"};let l=r;do l+=n?-i:i;while(l>=0&&l<=s.length-1&&a(l));return l}function x5(t,e){let{event:r,orientation:n,loop:o,cols:i,disabledIndices:s,minIndex:a,maxIndex:l,prevIndex:c,stopEvent:d=!1}=e,u=c;if(r.key===wa){if(d&&je(r),c===-1)u=l;else if(u=Ye(t,{startingIndex:u,amount:i,decrement:!0,disabledIndices:s}),o&&(c-i<a||u<0)){const f=c%i,h=l%i,g=l-(h-f);h===f?u=l:u=h>f?g:g-i}Kn(t,u)&&(u=c)}if(r.key===qn&&(d&&je(r),c===-1?u=a:(u=Ye(t,{startingIndex:c,amount:i,disabledIndices:s}),o&&c+i>l&&(u=Ye(t,{startingIndex:c%i-i,amount:i,disabledIndices:s}))),Kn(t,u)&&(u=c)),n==="both"){const f=Ur(c/i);r.key===Zr&&(d&&je(r),c%i!==i-1?(u=Ye(t,{startingIndex:c,disabledIndices:s}),o&&Oi(u,i,f)&&(u=Ye(t,{startingIndex:c-c%i-1,disabledIndices:s}))):o&&(u=Ye(t,{startingIndex:c-c%i-1,disabledIndices:s})),Oi(u,i,f)&&(u=c)),r.key===Xr&&(d&&je(r),c%i!==0?(u=Ye(t,{startingIndex:c,disabledIndices:s,decrement:!0}),o&&Oi(u,i,f)&&(u=Ye(t,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s}))):o&&(u=Ye(t,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s})),Oi(u,i,f)&&(u=c));const h=Ur(l/i)===f;Kn(t,u)&&(o&&h?u=r.key===Xr?l:Ye(t,{startingIndex:c-c%i-1,disabledIndices:s}):u=c)}return u}function w5(t,e,r){const n=[];let o=0;return t.forEach((i,s)=>{let{width:a,height:l}=i;if(a>e&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+s+" is greater than grid columns");let c=!1;for(r&&(o=0);!c;){const d=[];for(let u=0;u<a;u++)for(let f=0;f<l;f++)d.push(o+u+f*e);o%e+a<=e&&d.every(u=>n[u]==null)?(d.forEach(u=>{n[u]=s}),c=!0):o++}}),[...n]}function k5(t,e,r,n,o){if(t===-1)return-1;const i=r.indexOf(t);switch(o){case"tl":return i;case"tr":return i+e[t].width-1;case"bl":return i+(e[t].height-1)*n;case"br":return r.lastIndexOf(t)}}function C5(t,e){return e.flatMap((r,n)=>t.includes(r)?[n]:[])}let Jf=0;function Vt(t,e){e===void 0&&(e={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=e;n&&cancelAnimationFrame(Jf);const i=()=>t==null?void 0:t.focus({preventScroll:r});o?i():Jf=requestAnimationFrame(i)}var me=typeof document<"u"?k.useLayoutEffect:k.useEffect;function _5(t,e){const r=t.compareDocumentPosition(e);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}function S5(t,e){if(t.size!==e.size)return!1;for(const[r,n]of t.entries())if(n!==e.get(r))return!1;return!0}const Qf=C.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function E5(t){let{children:e,elementsRef:r,labelsRef:n}=t;const[o,i]=C.useState(()=>new Map),s=C.useCallback(l=>{i(c=>new Map(c).set(l,null))},[]),a=C.useCallback(l=>{i(c=>{const d=new Map(c);return d.delete(l),d})},[]);return me(()=>{const l=new Map(o);Array.from(l.keys()).sort(_5).forEach((d,u)=>{l.set(d,u)}),S5(o,l)||i(l)},[o]),C.createElement(Qf.Provider,{value:C.useMemo(()=>({register:s,unregister:a,map:o,elementsRef:r,labelsRef:n}),[s,a,o,r,n])},e)}function O5(t){let{label:e}=t===void 0?{}:t;const[r,n]=C.useState(null),o=C.useRef(null),{register:i,unregister:s,map:a,elementsRef:l,labelsRef:c}=C.useContext(Qf),d=C.useCallback(u=>{if(o.current=u,r!==null&&(l.current[r]=u,c)){var f;const h=e!==void 0;c.current[r]=h?e:(f=u==null?void 0:u.textContent)!=null?f:null}},[r,l,c,e]);return me(()=>{const u=o.current;if(u)return i(u),()=>{s(u)}},[i,s]),me(()=>{const u=o.current?a.get(o.current):null;u!=null&&n(u)},[a]),C.useMemo(()=>({ref:d,index:r??-1}),[r,d])}function Gn(){return Gn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Gn.apply(this,arguments)}let Ca=!1,T5=0;const eh=()=>"floating-ui-"+T5++;function N5(){const[t,e]=C.useState(()=>Ca?eh():void 0);return me(()=>{t==null&&e(eh())},[]),C.useEffect(()=>{Ca||(Ca=!0)},[]),t}const Ti=C.useId||N5;function M5(){const t=new Map;return{emit(e,r){var n;(n=t.get(e))==null||n.forEach(o=>o(r))},on(e,r){t.set(e,[...t.get(e)||[],r])},off(e,r){var n;t.set(e,((n=t.get(e))==null?void 0:n.filter(o=>o!==r))||[])}}}const P5=C.createContext(null),A5=C.createContext(null),Ni=()=>{var t;return((t=C.useContext(P5))==null?void 0:t.id)||null},Xn=()=>C.useContext(A5);function Cr(t){return"data-floating-ui-"+t}function Mt(t){const e=k.useRef(t);return me(()=>{e.current=t}),e}const th=Cr("safe-polygon");function _a(t,e,r){return r&&!pi(r)?0:typeof t=="number"?t:t==null?void 0:t[e]}function D5(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,dataRef:o,events:i,elements:{domReference:s,floating:a},refs:l}=t,{enabled:c=!0,delay:d=0,handleClose:u=null,mouseOnly:f=!1,restMs:h=0,move:g=!0}=e,m=Xn(),b=Ni(),v=Mt(u),y=Mt(d),_=C.useRef(),x=C.useRef(),w=C.useRef(),S=C.useRef(),T=C.useRef(!0),M=C.useRef(!1),N=C.useRef(()=>{}),E=C.useCallback(()=>{var O;const P=(O=o.current.openEvent)==null?void 0:O.type;return(P==null?void 0:P.includes("mouse"))&&P!=="mousedown"},[o]);C.useEffect(()=>{if(!c)return;function O(P){let{open:L}=P;L||(clearTimeout(x.current),clearTimeout(S.current),T.current=!0)}return i.on("openchange",O),()=>{i.off("openchange",O)}},[c,i]),C.useEffect(()=>{if(!c||!v.current||!r)return;function O(L){E()&&n(!1,L,"hover")}const P=Ue(a).documentElement;return P.addEventListener("mouseleave",O),()=>{P.removeEventListener("mouseleave",O)}},[a,r,n,c,v,E]);const I=C.useCallback(function(O,P,L){P===void 0&&(P=!0),L===void 0&&(L="hover");const z=_a(y.current,"close",_.current);z&&!w.current?(clearTimeout(x.current),x.current=setTimeout(()=>n(!1,O,L),z)):P&&(clearTimeout(x.current),n(!1,O,L))},[y,n]),A=C.useCallback(()=>{N.current(),w.current=void 0},[]),D=C.useCallback(()=>{if(M.current){const O=Ue(l.floating.current).body;O.style.pointerEvents="",O.removeAttribute(th),M.current=!1}},[l]);return C.useEffect(()=>{if(!c)return;function O(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function P(B){if(clearTimeout(x.current),T.current=!1,f&&!pi(_.current)||h>0&&_a(y.current,"open")===0)return;const j=_a(y.current,"open",_.current);j?x.current=setTimeout(()=>{n(!0,B,"hover")},j):n(!0,B,"hover")}function L(B){if(O())return;N.current();const j=Ue(a);if(clearTimeout(S.current),v.current){r||clearTimeout(x.current),w.current=v.current({...t,tree:m,x:B.clientX,y:B.clientY,onClose(){D(),A(),I(B,!0,"safe-polygon")}});const W=w.current;j.addEventListener("mousemove",W),N.current=()=>{j.removeEventListener("mousemove",W)};return}(_.current==="touch"?!Se(a,B.relatedTarget):!0)&&I(B)}function z(B){O()||v.current==null||v.current({...t,tree:m,x:B.clientX,y:B.clientY,onClose(){D(),A(),I(B)}})(B)}if(ge(s)){const B=s;return r&&B.addEventListener("mouseleave",z),a==null||a.addEventListener("mouseleave",z),g&&B.addEventListener("mousemove",P,{once:!0}),B.addEventListener("mouseenter",P),B.addEventListener("mouseleave",L),()=>{r&&B.removeEventListener("mouseleave",z),a==null||a.removeEventListener("mouseleave",z),g&&B.removeEventListener("mousemove",P),B.removeEventListener("mouseenter",P),B.removeEventListener("mouseleave",L)}}},[s,a,c,t,f,h,g,I,A,D,n,r,m,y,v,o]),me(()=>{var O;if(c&&r&&(O=v.current)!=null&&O.__options.blockPointerEvents&&E()){const L=Ue(a).body;if(L.setAttribute(th,""),L.style.pointerEvents="none",M.current=!0,ge(s)&&a){var P;const z=s,B=m==null||(P=m.nodesRef.current.find(j=>j.id===b))==null||(P=P.context)==null?void 0:P.elements.floating;return B&&(B.style.pointerEvents=""),z.style.pointerEvents="auto",a.style.pointerEvents="auto",()=>{z.style.pointerEvents="",a.style.pointerEvents=""}}}},[c,r,b,a,s,m,v,E]),me(()=>{r||(_.current=void 0,A(),D())},[r,A,D]),C.useEffect(()=>()=>{A(),clearTimeout(x.current),clearTimeout(S.current),D()},[c,s,A,D]),C.useMemo(()=>{if(!c)return{};function O(P){_.current=P.pointerType}return{reference:{onPointerDown:O,onPointerEnter:O,onMouseMove(P){r||h===0||(clearTimeout(S.current),S.current=setTimeout(()=>{T.current||n(!0,P.nativeEvent,"hover")},h))}},floating:{onMouseEnter(){clearTimeout(x.current)},onMouseLeave(P){I(P.nativeEvent,!1)}}}},[c,h,r,n,I])}function I5(t,e){var r;let n=[],o=(r=t.find(i=>i.id===e))==null?void 0:r.parentId;for(;o;){const i=t.find(s=>s.id===o);o=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function _r(t,e){let r=t.filter(o=>{var i;return o.parentId===e&&((i=o.context)==null?void 0:i.open)}),n=r;for(;n.length;)n=t.filter(o=>{var i;return(i=n)==null?void 0:i.some(s=>{var a;return o.parentId===s.id&&((a=o.context)==null?void 0:a.open)})}),r=r.concat(n);return r}function L5(t,e){let r,n=-1;function o(i,s){s>n&&(r=i,n=s),_r(t,i).forEach(l=>{o(l.id,s+1)})}return o(e,0),t.find(i=>i.id===r)}let Jr=new WeakMap,Mi=new WeakSet,Pi={},Sa=0;const F5=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,rh=t=>t&&(t.host||rh(t.parentNode)),z5=(t,e)=>e.map(r=>{if(t.contains(r))return r;const n=rh(r);return t.contains(n)?n:null}).filter(r=>r!=null);function B5(t,e,r,n){const o="data-floating-ui-inert",i=n?"inert":r?"aria-hidden":null,s=z5(e,t),a=new Set,l=new Set(s),c=[];Pi[o]||(Pi[o]=new WeakMap);const d=Pi[o];s.forEach(u),f(e),a.clear();function u(h){!h||a.has(h)||(a.add(h),h.parentNode&&u(h.parentNode))}function f(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,g=>{if(a.has(g))f(g);else{const m=i?g.getAttribute(i):null,b=m!==null&&m!=="false",v=(Jr.get(g)||0)+1,y=(d.get(g)||0)+1;Jr.set(g,v),d.set(g,y),c.push(g),v===1&&b&&Mi.add(g),y===1&&g.setAttribute(o,""),!b&&i&&g.setAttribute(i,"true")}})}return Sa++,()=>{c.forEach(h=>{const g=(Jr.get(h)||0)-1,m=(d.get(h)||0)-1;Jr.set(h,g),d.set(h,m),g||(!Mi.has(h)&&i&&h.removeAttribute(i),Mi.delete(h)),m||h.removeAttribute(o)}),Sa--,Sa||(Jr=new WeakMap,Jr=new WeakMap,Mi=new WeakSet,Pi={})}}function nh(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=Ue(t[0]).body;return B5(t.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,e,r)}const Zn=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function oh(t,e){const r=Ei(t,Zn());e==="prev"&&r.reverse();const n=r.indexOf(Et(Ue(t)));return r.slice(n+1)[0]}function ih(){return oh(document.body,"next")}function sh(){return oh(document.body,"prev")}function Jn(t,e){const r=e||t.currentTarget,n=t.relatedTarget;return!n||!Se(r,n)}function $5(t){Ei(t,Zn()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function j5(t){t.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const Ea={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let H5;function ah(t){t.key==="Tab"&&(t.target,clearTimeout(H5))}const Ai=C.forwardRef(function(e,r){const[n,o]=C.useState();me(()=>(la()&&o("button"),document.addEventListener("keydown",ah),()=>{document.removeEventListener("keydown",ah)}),[]);const i={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[Cr("focus-guard")]:"",style:Ea};return C.createElement("span",Gn({},e,i))}),lh=C.createContext(null),ch=Cr("portal");function W5(t){let{id:e,root:r}=t===void 0?{}:t;const[n,o]=C.useState(null),i=Ti(),s=dh(),a=C.useRef(null);return me(()=>()=>{n==null||n.remove(),queueMicrotask(()=>{a.current=null})},[n]),me(()=>{if(a.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=i,c.setAttribute(ch,""),l.appendChild(c),a.current=c,o(c)},[e,i]),me(()=>{if(a.current)return;let l=r||(s==null?void 0:s.portalNode);l&&!ge(l)&&(l=l.current),l=l||document.body;let c=null;e&&(c=document.createElement("div"),c.id=e,l.appendChild(c));const d=document.createElement("div");d.id=i,d.setAttribute(ch,""),l=c||l,l.appendChild(d),a.current=d,o(d)},[e,r,i,s]),n}function V5(t){let{children:e,id:r,root:n=null,preserveTabOrder:o=!0}=t;const i=W5({id:r,root:n}),[s,a]=C.useState(null),l=C.useRef(null),c=C.useRef(null),d=C.useRef(null),u=C.useRef(null),f=!!s&&!s.modal&&s.open&&o&&!!(n||i);return C.useEffect(()=>{if(!i||!o||s!=null&&s.modal)return;function h(g){i&&Jn(g)&&(g.type==="focusin"?j5:$5)(i)}return i.addEventListener("focusin",h,!0),i.addEventListener("focusout",h,!0),()=>{i.removeEventListener("focusin",h,!0),i.removeEventListener("focusout",h,!0)}},[i,o,s==null?void 0:s.modal]),C.createElement(lh.Provider,{value:C.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:i,setFocusManagerState:a}),[o,i])},f&&i&&C.createElement(Ai,{"data-type":"outside",ref:l,onFocus:h=>{if(Jn(h,i)){var g;(g=d.current)==null||g.focus()}else{const m=sh()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus()}}}),f&&i&&C.createElement("span",{"aria-owns":i.id,style:Ea}),i&&Va.createPortal(e,i),f&&i&&C.createElement(Ai,{"data-type":"outside",ref:c,onFocus:h=>{if(Jn(h,i)){var g;(g=u.current)==null||g.focus()}else{const m=ih()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,h.nativeEvent))}}}))}const dh=()=>C.useContext(lh),R5=20;let Sr=[];function Oa(t){Sr=Sr.filter(r=>r.isConnected);let e=t;if(!(!e||xr(e)==="body")){if(!y5(e,Zn())){const r=Ei(e,Zn())[0];if(!r)return;e=r}Sr.push(e),Sr.length>R5&&(Sr=Sr.slice(-20))}}function uh(){return Sr.slice().reverse().find(t=>t.isConnected)}const Y5=C.forwardRef(function(e,r){return C.createElement("button",Gn({},e,{type:"button",ref:r,tabIndex:-1,style:Ea}))});function fh(t){const{context:e,children:r,disabled:n=!1,order:o=["content"],guards:i=!0,initialFocus:s=0,returnFocus:a=!0,modal:l=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=t,{open:u,refs:f,nodeId:h,onOpenChange:g,events:m,dataRef:b,elements:{domReference:v,floating:y}}=e,_=typeof s=="number"&&s<0,x=Ef(v)&&_,w=F5()?i:!0,S=Mt(o),T=Mt(s),M=Mt(a),N=Xn(),E=dh(),I=C.useRef(null),A=C.useRef(null),D=C.useRef(!1),O=C.useRef(!1),P=E!=null,L=C.useCallback(function($){return $===void 0&&($=y),$?Ei($,Zn()):[]},[y]),z=C.useCallback($=>{const W=L($);return S.current.map(V=>v&&V==="reference"?v:y&&V==="floating"?y:W).filter(Boolean).flat()},[v,y,S,L]);C.useEffect(()=>{if(n||!l)return;function $(V){if(V.key==="Tab"){Se(y,Et(Ue(y)))&&L().length===0&&!x&&je(V);const Y=z(),U=tr(V);S.current[0]==="reference"&&U===v&&(je(V),V.shiftKey?Vt(Y[Y.length-1]):Vt(Y[1])),S.current[1]==="floating"&&U===y&&V.shiftKey&&(je(V),Vt(Y[0]))}}const W=Ue(y);return W.addEventListener("keydown",$),()=>{W.removeEventListener("keydown",$)}},[n,v,y,l,S,x,L,z]),C.useEffect(()=>{if(n||!d)return;function $(){O.current=!0,setTimeout(()=>{O.current=!1})}function W(V){const Y=V.relatedTarget;queueMicrotask(()=>{const U=!(Se(v,Y)||Se(y,Y)||Se(Y,y)||Se(E==null?void 0:E.portalNode,Y)||Y!=null&&Y.hasAttribute(Cr("focus-guard"))||N&&(_r(N.nodesRef.current,h).find(q=>{var G,de;return Se((G=q.context)==null?void 0:G.elements.floating,Y)||Se((de=q.context)==null?void 0:de.elements.domReference,Y)})||I5(N.nodesRef.current,h).find(q=>{var G,de;return((G=q.context)==null?void 0:G.elements.floating)===Y||((de=q.context)==null?void 0:de.elements.domReference)===Y})));Y&&U&&!O.current&&Y!==uh()&&(D.current=!0,g(!1,V))})}if(y&&$e(v))return v.addEventListener("focusout",W),v.addEventListener("pointerdown",$),!l&&y.addEventListener("focusout",W),()=>{v.removeEventListener("focusout",W),v.removeEventListener("pointerdown",$),!l&&y.removeEventListener("focusout",W)}},[n,v,y,l,h,N,E,g,d]),C.useEffect(()=>{var $;if(n)return;const W=Array.from((E==null||($=E.portalNode)==null?void 0:$.querySelectorAll("["+Cr("portal")+"]"))||[]);if(y){const V=[y,...W,I.current,A.current,S.current.includes("reference")||x?v:null].filter(U=>U!=null),Y=l||x?nh(V,w,!w):nh(V);return()=>{Y()}}},[n,v,y,l,S,E,x,w]),me(()=>{if(n||!y)return;const $=Ue(y),W=Et($);queueMicrotask(()=>{const V=z(y),Y=T.current,U=(typeof Y=="number"?V[Y]:Y.current)||y,q=Se(y,W);!_&&!q&&u&&Vt(U,{preventScroll:U===y})})},[n,u,y,_,z,T]),me(()=>{if(n||!y)return;let $=!1;const W=Ue(y),V=Et(W),Y=b.current;Oa(V);function U(q){let{reason:G,event:de,nested:X}=q;G==="escape-key"&&f.domReference.current&&Oa(f.domReference.current),G==="hover"&&de.type==="mouseleave"&&(D.current=!0),G==="outside-press"&&(X?(D.current=!1,$=!0):D.current=!(_f(de)||aa(de)))}return m.on("openchange",U),()=>{m.off("openchange",U);const q=Et(W),G=Se(y,q)||N&&_r(N.nodesRef.current,h).some(oe=>{var Ie;return Se((Ie=oe.context)==null?void 0:Ie.elements.floating,q)});(G||Y.openEvent&&["click","mousedown"].includes(Y.openEvent.type))&&f.domReference.current&&Oa(f.domReference.current);const X=uh();M.current&&!D.current&&$e(X)&&(!(X!==q&&q!==W.body)||G)&&Vt(X,{cancelPrevious:!1,preventScroll:$})}},[n,y,M,b,f,m,N,h]),me(()=>{if(!(n||!E))return E.setFocusManagerState({modal:l,closeOnFocusOut:d,open:u,onOpenChange:g,refs:f}),()=>{E.setFocusManagerState(null)}},[n,E,l,u,g,f,d]),me(()=>{if(n||!y||typeof MutationObserver!="function"||_)return;const $=()=>{const V=y.getAttribute("tabindex");S.current.includes("floating")||Et(Ue(y))!==f.domReference.current&&L().length===0?V!=="0"&&y.setAttribute("tabindex","0"):V!=="-1"&&y.setAttribute("tabindex","-1")};$();const W=new MutationObserver($);return W.observe(y,{childList:!0,subtree:!0,attributes:!0}),()=>{W.disconnect()}},[n,y,f,S,L,_]);function B($){return n||!c||!l?null:C.createElement(Y5,{ref:$==="start"?I:A,onClick:W=>g(!1,W.nativeEvent)},typeof c=="string"?c:"Dismiss")}const j=!n&&w&&(P||l);return C.createElement(C.Fragment,null,j&&C.createElement(Ai,{"data-type":"inside",ref:E==null?void 0:E.beforeInsideRef,onFocus:$=>{if(l){const V=z();Vt(o[0]==="reference"?V[0]:V[V.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(D.current=!1,Jn($,E.portalNode)){const V=ih()||v;V==null||V.focus()}else{var W;(W=E.beforeOutsideRef.current)==null||W.focus()}}}),!x&&B("start"),r,B("end"),j&&C.createElement(Ai,{"data-type":"inside",ref:E==null?void 0:E.afterInsideRef,onFocus:$=>{if(l)Vt(z()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(d&&(D.current=!0),Jn($,E.portalNode)){const V=sh()||v;V==null||V.focus()}else{var W;(W=E.afterOutsideRef.current)==null||W.focus()}}}))}const Ta=new Set,U5=C.forwardRef(function(e,r){let{lockScroll:n=!1,...o}=e;const i=Ti();return me(()=>{if(!n)return;Ta.add(i);const s=/iP(hone|ad|od)|iOS/.test(sa()),a=document.body.style,c=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth,u=a.left?parseFloat(a.left):window.pageXOffset,f=a.top?parseFloat(a.top):window.pageYOffset;if(a.overflow="hidden",d&&(a[c]=d+"px"),s){var h,g;const m=((h=window.visualViewport)==null?void 0:h.offsetLeft)||0,b=((g=window.visualViewport)==null?void 0:g.offsetTop)||0;Object.assign(a,{position:"fixed",top:-(f-Math.floor(b))+"px",left:-(u-Math.floor(m))+"px",right:"0"})}return()=>{Ta.delete(i),Ta.size===0&&(Object.assign(a,{overflow:"",[c]:""}),s&&(Object.assign(a,{position:"",top:"",left:"",right:""}),window.scrollTo(u,f)))}},[i,n]),C.createElement("div",Gn({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function hh(t){return $e(t.target)&&t.target.tagName==="BUTTON"}function gh(t){return ua(t)}function ph(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=t,{enabled:s=!0,event:a="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=e,u=C.useRef(),f=C.useRef(!1);return C.useMemo(()=>s?{reference:{onPointerDown(h){u.current=h.pointerType},onMouseDown(h){h.button===0&&(pi(u.current,!0)&&c||a!=="click"&&(r&&l&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")?n(!1,h.nativeEvent,"click"):(h.preventDefault(),n(!0,h.nativeEvent,"click"))))},onClick(h){if(a==="mousedown"&&u.current){u.current=void 0;return}pi(u.current,!0)&&c||(r&&l&&(!o.current.openEvent||o.current.openEvent.type==="click")?n(!1,h.nativeEvent,"click"):n(!0,h.nativeEvent,"click"))},onKeyDown(h){u.current=void 0,!(h.defaultPrevented||!d||hh(h))&&(h.key===" "&&!gh(i)&&(h.preventDefault(),f.current=!0),h.key==="Enter"&&n(!(r&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||hh(h)||gh(i)||h.key===" "&&f.current&&(f.current=!1,n(!(r&&l),h.nativeEvent,"click"))}}}:{},[s,o,a,c,d,i,l,r,n])}const q5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},K5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},mh=t=>{var e,r;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(r=t==null?void 0:t.outsidePress)!=null?r:!0}};function bh(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,nodeId:o,elements:{reference:i,domReference:s,floating:a},dataRef:l}=t,{enabled:c=!0,escapeKey:d=!0,outsidePress:u=!0,outsidePressEvent:f="pointerdown",referencePress:h=!1,referencePressEvent:g="pointerdown",ancestorScroll:m=!1,bubbles:b,capture:v}=e,y=Xn(),_=Nt(typeof u=="function"?u:()=>!1),x=typeof u=="function"?_:u,w=C.useRef(!1),S=C.useRef(!1),{escapeKey:T,outsidePress:M}=mh(b),{escapeKey:N,outsidePress:E}=mh(v),I=Nt(P=>{if(!r||!c||!d||P.key!=="Escape")return;const L=y?_r(y.nodesRef.current,o):[];if(!T&&(P.stopPropagation(),L.length>0)){let z=!0;if(L.forEach(B=>{var j;if((j=B.context)!=null&&j.open&&!B.context.dataRef.current.__escapeKeyBubbles){z=!1;return}}),!z)return}n(!1,c2(P)?P.nativeEvent:P,"escape-key")}),A=Nt(P=>{var L;const z=()=>{var B;I(P),(B=tr(P))==null||B.removeEventListener("keydown",z)};(L=tr(P))==null||L.addEventListener("keydown",z)}),D=Nt(P=>{const L=w.current;w.current=!1;const z=S.current;if(S.current=!1,f==="click"&&z||L||typeof x=="function"&&!x(P))return;const B=tr(P),j="["+Cr("inert")+"]",$=Ue(a).querySelectorAll(j);let W=ge(B)?B:null;for(;W&&!Qt(W);){const U=Ht(W);if(Qt(U)||!ge(U))break;W=U}if($.length&&ge(B)&&!d2(B)&&!Se(B,a)&&Array.from($).every(U=>!Se(W,U)))return;if($e(B)&&a){const U=B.clientWidth>0&&B.scrollWidth>B.clientWidth,q=B.clientHeight>0&&B.scrollHeight>B.clientHeight;let G=q&&P.offsetX>B.clientWidth;if(q&&ut(B).direction==="rtl"&&(G=P.offsetX<=B.offsetWidth-B.clientWidth),G||U&&P.offsetY>B.clientHeight)return}const V=y&&_r(y.nodesRef.current,o).some(U=>{var q;return da(P,(q=U.context)==null?void 0:q.elements.floating)});if(da(P,a)||da(P,s)||V)return;const Y=y?_r(y.nodesRef.current,o):[];if(Y.length>0){let U=!0;if(Y.forEach(q=>{var G;if((G=q.context)!=null&&G.open&&!q.context.dataRef.current.__outsidePressBubbles){U=!1;return}}),!U)return}n(!1,P,"outside-press")}),O=Nt(P=>{var L;const z=()=>{var B;D(P),(B=tr(P))==null||B.removeEventListener(f,z)};(L=tr(P))==null||L.addEventListener(f,z)});return C.useEffect(()=>{if(!r||!c)return;l.current.__escapeKeyBubbles=T,l.current.__outsidePressBubbles=M;function P(B){n(!1,B,"ancestor-scroll")}const L=Ue(a);d&&L.addEventListener("keydown",N?A:I,N),x&&L.addEventListener(f,E?O:D,E);let z=[];return m&&(ge(s)&&(z=er(s)),ge(a)&&(z=z.concat(er(a))),!ge(i)&&i&&i.contextElement&&(z=z.concat(er(i.contextElement)))),z=z.filter(B=>{var j;return B!==((j=L.defaultView)==null?void 0:j.visualViewport)}),z.forEach(B=>{B.addEventListener("scroll",P,{passive:!0})}),()=>{d&&L.removeEventListener("keydown",N?A:I,N),x&&L.removeEventListener(f,E?O:D,E),z.forEach(B=>{B.removeEventListener("scroll",P)})}},[l,a,s,i,d,x,f,r,n,m,c,T,M,I,N,A,D,E,O]),C.useEffect(()=>{w.current=!1},[x,f]),C.useMemo(()=>c?{reference:{onKeyDown:I,[q5[g]]:P=>{h&&n(!1,P.nativeEvent,"reference-press")}},floating:{onKeyDown:I,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[K5[f]]:()=>{w.current=!0}}}:{},[c,h,f,g,n,I])}let Na;process.env.NODE_ENV!=="production"&&(Na=new Set);function yh(t){var e;t===void 0&&(t={});const{open:r=!1,onOpenChange:n,nodeId:o}=t;if(process.env.NODE_ENV!=="production"){var i;const M="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";if((i=t.elements)!=null&&i.reference&&!ge(t.elements.reference)){var s;if(!((s=Na)!=null&&s.has(M))){var a;(a=Na)==null||a.add(M),console.error(M)}}}const[l,c]=C.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=q2(t),f=Xn(),h=Ni()!=null,g=Nt((M,N,E)=>{M&&(b.current.openEvent=N),v.emit("openchange",{open:M,event:N,reason:E,nested:h}),n==null||n(M,N,E)}),m=C.useRef(null),b=C.useRef({}),v=C.useState(()=>M5())[0],y=Ti(),_=C.useCallback(M=>{const N=ge(M)?{getBoundingClientRect:()=>M.getBoundingClientRect(),contextElement:M}:M;u.refs.setReference(N)},[u.refs]),x=C.useCallback(M=>{(ge(M)||M===null)&&(m.current=M,c(M)),(ge(u.refs.reference.current)||u.refs.reference.current===null||M!==null&&!ge(M))&&u.refs.setReference(M)},[u.refs]),w=C.useMemo(()=>({...u.refs,setReference:x,setPositionReference:_,domReference:m}),[u.refs,x,_]),S=C.useMemo(()=>({...u.elements,domReference:d}),[u.elements,d]),T=C.useMemo(()=>({...u,refs:w,elements:S,dataRef:b,nodeId:o,floatingId:y,events:v,open:r,onOpenChange:g}),[u,o,y,v,r,g,w,S]);return me(()=>{const M=f==null?void 0:f.nodesRef.current.find(N=>N.id===o);M&&(M.context=T)}),C.useMemo(()=>({...u,context:T,refs:w,elements:S}),[u,w,S,T])}function G5(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,events:o,refs:i,elements:{domReference:s}}=t,{enabled:a=!0,visibleOnly:l=!0}=e,c=C.useRef(!1),d=C.useRef(),u=C.useRef(!0);return C.useEffect(()=>{if(!a)return;const f=Qe(s);function h(){!r&&$e(s)&&s===Et(Ue(s))&&(c.current=!0)}function g(){u.current=!0}return f.addEventListener("blur",h),f.addEventListener("keydown",g,!0),()=>{f.removeEventListener("blur",h),f.removeEventListener("keydown",g,!0)}},[s,r,a]),C.useEffect(()=>{if(!a)return;function f(h){let{reason:g}=h;(g==="reference-press"||g==="escape-key")&&(c.current=!0)}return o.on("openchange",f),()=>{o.off("openchange",f)}},[o,a]),C.useEffect(()=>()=>{clearTimeout(d.current)},[]),C.useMemo(()=>a?{reference:{onPointerDown(f){aa(f.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const h=tr(f.nativeEvent);if(l&&ge(h))try{if(la()&&Sf())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!ua(h))return}n(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const h=f.relatedTarget,g=ge(h)&&h.hasAttribute(Cr("focus-guard"))&&h.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{const m=Et(s?s.ownerDocument:document);!h&&m===s||Se(i.floating.current,m)||Se(s,m)||g||n(!1,f.nativeEvent,"focus")})}}}:{},[a,l,s,i,n])}const vh="active",xh="selected";function Ma(t,e,r){const n=new Map,o=r==="item";let i=t;if(o&&t){const{[vh]:s,[xh]:a,...l}=t;i=l}return{...r==="floating"&&{tabIndex:-1},...i,...e.map(s=>{const a=s?s[r]:null;return typeof a=="function"?t?a(t):null:a}).concat(t).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[c,d]=l;if(!(o&&[vh,xh].includes(c)))if(c.indexOf("on")===0){if(n.has(c)||n.set(c,[]),typeof d=="function"){var u;(u=n.get(c))==null||u.push(d),s[c]=function(){for(var f,h=arguments.length,g=new Array(h),m=0;m<h;m++)g[m]=arguments[m];return(f=n.get(c))==null?void 0:f.map(b=>b(...g)).find(b=>b!==void 0)}}}else s[c]=d}),s),{})}}function wh(t){t===void 0&&(t=[]);const e=t,r=C.useCallback(i=>Ma(i,t,"reference"),e),n=C.useCallback(i=>Ma(i,t,"floating"),e),o=C.useCallback(i=>Ma(i,t,"item"),t.map(i=>i==null?void 0:i.item));return C.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])}let kh=!1;function Di(t,e,r){switch(t){case"vertical":return e;case"horizontal":return r;default:return e||r}}function Ch(t,e){return Di(e,t===wa||t===qn,t===Xr||t===Zr)}function Pa(t,e,r){return Di(e,t===qn,r?t===Xr:t===Zr)||t==="Enter"||t===" "||t===""}function X5(t,e,r){return Di(e,r?t===Xr:t===Zr,t===qn)}function _h(t,e,r){return Di(e,r?t===Zr:t===Xr,t===wa)}function Z5(t,e){const{open:r,onOpenChange:n,refs:o,elements:{domReference:i,floating:s}}=t,{listRef:a,activeIndex:l,onNavigate:c=()=>{},enabled:d=!0,selectedIndex:u=null,allowEscape:f=!1,loop:h=!1,nested:g=!1,rtl:m=!1,virtual:b=!1,focusItemOnOpen:v="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:_=!0,disabledIndices:x=void 0,orientation:w="vertical",cols:S=1,scrollItemIntoView:T=!0,virtualItemRef:M,itemSizes:N,dense:E=!1}=e;process.env.NODE_ENV!=="production"&&(f&&(h||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),b||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),w==="vertical"&&S>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const I=Ni(),A=Xn(),D=Nt(c),O=C.useRef(v),P=C.useRef(u??-1),L=C.useRef(null),z=C.useRef(!0),B=C.useRef(D),j=C.useRef(!!s),$=C.useRef(!1),W=C.useRef(!1),V=Mt(x),Y=Mt(r),U=Mt(T),[q,G]=C.useState(),[de,X]=C.useState(),oe=Nt(function(J,Ee,le){le===void 0&&(le=!1);const te=J.current[Ee.current];te&&(b?(G(te.id),A==null||A.events.emit("virtualfocus",te),M&&(M.current=te)):Vt(te,{preventScroll:!0,sync:Sf()&&la()?kh||$.current:!1}),requestAnimationFrame(()=>{const he=U.current;he&&te&&(le||!z.current)&&(te.scrollIntoView==null||te.scrollIntoView(typeof he=="boolean"?{block:"nearest",inline:"nearest"}:he))}))});me(()=>{document.createElement("div").focus({get preventScroll(){return kh=!0,!1}})},[]),me(()=>{d&&(r&&s?O.current&&u!=null&&(W.current=!0,P.current=u,D(u)):j.current&&(P.current=-1,B.current(null)))},[d,r,s,u,D]),me(()=>{if(d&&r&&s)if(l==null){if($.current=!1,u!=null)return;if(j.current&&(P.current=-1,oe(a,P)),!j.current&&O.current&&(L.current!=null||O.current===!0&&L.current==null)){let J=0;const Ee=()=>{a.current[0]==null?(J<2&&(J?requestAnimationFrame:queueMicrotask)(Ee),J++):(P.current=L.current==null||Pa(L.current,w,m)||g?ka(a,V.current):Zf(a,V.current),L.current=null,D(P.current))};Ee()}}else Kn(a,l)||(P.current=l,oe(a,P,W.current),W.current=!1)},[d,r,s,l,u,g,a,w,m,D,oe,V]),me(()=>{var J;if(!d||s||!A||b||!j.current)return;const Ee=A.nodesRef.current,le=(J=Ee.find(Q=>Q.id===I))==null||(J=J.context)==null?void 0:J.elements.floating,te=Et(Ue(s)),he=Ee.some(Q=>Q.context&&Se(Q.context.elements.floating,te));le&&!he&&z.current&&le.focus({preventScroll:!0})},[d,s,A,I,b]),me(()=>{if(!d||!A||!b||I)return;function J(Ee){X(Ee.id),M&&(M.current=Ee)}return A.events.on("virtualfocus",J),()=>{A.events.off("virtualfocus",J)}},[d,A,b,I,M]),me(()=>{B.current=D,j.current=!!s}),me(()=>{r||(L.current=null)},[r]);const Ie=l!=null,He=C.useMemo(()=>{function J(le){if(!r)return;const te=a.current.indexOf(le);te!==-1&&D(te)}return{onFocus(le){let{currentTarget:te}=le;J(te)},onClick:le=>{let{currentTarget:te}=le;return te.focus({preventScroll:!0})},...y&&{onMouseMove(le){let{currentTarget:te}=le;J(te)},onPointerLeave(le){let{pointerType:te}=le;!z.current||te==="touch"||(P.current=-1,oe(a,P),D(null),b||Vt(o.floating.current,{preventScroll:!0}))}}}},[r,o,oe,y,a,D,b]);return C.useMemo(()=>{if(!d)return{};const J=V.current;function Ee(R){if(z.current=!1,$.current=!0,!Y.current&&R.currentTarget===o.floating.current)return;if(g&&_h(R.key,w,m)){je(R),n(!1,R.nativeEvent,"list-navigation"),$e(i)&&!b&&i.focus();return}const Oe=P.current,ie=ka(a,J),ke=Zf(a,J);if(R.key==="Home"&&(je(R),P.current=ie,D(P.current)),R.key==="End"&&(je(R),P.current=ke,D(P.current)),S>1){const Le=N||Array.from({length:a.current.length},()=>({width:1,height:1})),Pe=w5(Le,S,E),ft=Pe.findIndex(ot=>ot!=null&&!(J!=null&&J.includes(ot))),yt=Pe.reduce((ot,nr,it)=>nr!=null&&!(J!=null&&J.includes(nr))?it:ot,-1);if(P.current=Pe[x5({current:Pe.map(ot=>ot!=null?a.current[ot]:null)},{event:R,orientation:w,loop:h,cols:S,disabledIndices:C5([...J||[],void 0],Pe),minIndex:ft,maxIndex:yt,prevIndex:k5(P.current,Le,Pe,S,R.key===qn?"bl":R.key===Zr?"tr":"tl"),stopEvent:!0})],D(P.current),w==="both")return}if(Ch(R.key,w)){if(je(R),r&&!b&&Et(R.currentTarget.ownerDocument)===R.currentTarget){P.current=Pa(R.key,w,m)?ie:ke,D(P.current);return}Pa(R.key,w,m)?h?P.current=Oe>=ke?f&&Oe!==a.current.length?-1:ie:Ye(a,{startingIndex:Oe,disabledIndices:J}):P.current=Math.min(ke,Ye(a,{startingIndex:Oe,disabledIndices:J})):h?P.current=Oe<=ie?f&&Oe!==-1?a.current.length:ke:Ye(a,{startingIndex:Oe,decrement:!0,disabledIndices:J}):P.current=Math.max(ie,Ye(a,{startingIndex:Oe,decrement:!0,disabledIndices:J})),Kn(a,P.current)?D(null):D(P.current)}}function le(R){v==="auto"&&_f(R.nativeEvent)&&(O.current=!0)}function te(R){O.current=v,v==="auto"&&aa(R.nativeEvent)&&(O.current=!0)}const he=b&&r&&Ie&&{"aria-activedescendant":de||q},Q=a.current.find(R=>(R==null?void 0:R.id)===q);return{reference:{...he,onKeyDown(R){z.current=!1;const Oe=R.key.indexOf("Arrow")===0,ie=X5(R.key,w,m),ke=_h(R.key,w,m),Le=Ch(R.key,w),Pe=(g?ie:Le)||R.key==="Enter"||R.key.trim()==="";if(b&&r){const nr=A==null?void 0:A.nodesRef.current.find(Fi=>Fi.parentId==null),it=A&&nr?L5(A.nodesRef.current,nr.id):null;if(Oe&&it&&M){const Fi=new KeyboardEvent("keydown",{key:R.key,bubbles:!0});if(ie||ke){var ft,yt;const MC=((ft=it.context)==null?void 0:ft.elements.domReference)===R.currentTarget,Rg=ke&&!MC?(yt=it.context)==null?void 0:yt.elements.domReference:ie?Q:null;Rg&&(je(R),Rg.dispatchEvent(Fi),X(void 0))}if(Le&&it.context&&it.context.open&&it.parentId&&R.currentTarget!==it.context.elements.domReference){var ot;je(R),(ot=it.context.elements.domReference)==null||ot.dispatchEvent(Fi);return}}return Ee(R)}if(!(!r&&!_&&Oe)){if(Pe&&(L.current=g&&Le?null:R.key),g){ie&&(je(R),r?(P.current=ka(a,J),D(P.current)):n(!0,R.nativeEvent,"list-navigation"));return}Le&&(u!=null&&(P.current=u),je(R),!r&&_?n(!0,R.nativeEvent,"list-navigation"):Ee(R),r&&D(P.current))}},onFocus(){r&&D(null)},onPointerDown:te,onMouseDown:le,onClick:le},floating:{"aria-orientation":w==="both"?void 0:w,...!Ef(i)&&he,onKeyDown:Ee,onPointerMove(){z.current=!0}},item:He}},[i,o,q,de,V,Y,a,d,w,m,b,r,Ie,g,u,_,f,S,h,v,D,n,He,A,M,N,E])}const J5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Sh(t,e){var r;e===void 0&&(e={});const{open:n,floatingId:o}=t,{enabled:i=!0,role:s="dialog"}=e,a=(r=J5.get(s))!=null?r:s,l=Ti(),d=Ni()!=null;return C.useMemo(()=>{if(!i)return{};const u={id:o,...a&&{role:a}};return a==="tooltip"||s==="label"?{reference:{["aria-"+(s==="label"?"labelledby":"describedby")]:n?o:void 0},floating:u}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":n?o:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:l},...a==="menu"&&d&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},floating:{...u,...a==="menu"&&{"aria-labelledby":l}},item(f){let{active:h,selected:g}=f;const m={role:"option",...h&&{id:o+"-option"}};switch(s){case"select":return{...m,"aria-selected":h&&g};case"combobox":return{...m,...h&&{"aria-selected":!0}}}return{}}}},[i,s,a,n,o,l,d])}function Q5(t,e){var r;const{open:n,dataRef:o}=t,{listRef:i,activeIndex:s,onMatch:a,onTypingChange:l,enabled:c=!0,findMatch:d=null,resetMs:u=750,ignoreKeys:f=[],selectedIndex:h=null}=e,g=C.useRef(),m=C.useRef(""),b=C.useRef((r=h??s)!=null?r:-1),v=C.useRef(null),y=Nt(a),_=Nt(l),x=Mt(d),w=Mt(f);return me(()=>{n&&(clearTimeout(g.current),v.current=null,m.current="")},[n]),me(()=>{if(n&&m.current===""){var S;b.current=(S=h??s)!=null?S:-1}},[n,h,s]),C.useMemo(()=>{if(!c)return{};function S(N){N?o.current.typing||(o.current.typing=N,_(N)):o.current.typing&&(o.current.typing=N,_(N))}function T(N,E,I){const A=x.current?x.current(E,I):E.find(D=>(D==null?void 0:D.toLocaleLowerCase().indexOf(I.toLocaleLowerCase()))===0);return A?N.indexOf(A):-1}function M(N){const E=i.current;if(m.current.length>0&&m.current[0]!==" "&&(T(E,E,m.current)===-1?S(!1):N.key===" "&&je(N)),E==null||w.current.includes(N.key)||N.key.length!==1||N.ctrlKey||N.metaKey||N.altKey)return;n&&N.key!==" "&&(je(N),S(!0)),E.every(O=>{var P,L;return O?((P=O[0])==null?void 0:P.toLocaleLowerCase())!==((L=O[1])==null?void 0:L.toLocaleLowerCase()):!0})&&m.current===N.key&&(m.current="",b.current=v.current),m.current+=N.key,clearTimeout(g.current),g.current=setTimeout(()=>{m.current="",b.current=v.current,S(!1)},u);const A=b.current,D=T(E,[...E.slice((A||0)+1),...E.slice(0,(A||0)+1)],m.current);D!==-1?(y(D),v.current=D):N.key!==" "&&(m.current="",S(!1))}return{reference:{onKeyDown:M},floating:{onKeyDown:M,onKeyUp(N){N.key===" "&&S(!1)}}}},[c,n,o,i,u,w,x,y,_])}function Eh(t,e){const[r,n]=t;let o=!1;const i=e.length;for(let s=0,a=i-1;s<i;a=s++){const[l,c]=e[s]||[0,0],[d,u]=e[a]||[0,0];c>=n!=u>=n&&r<=(d-l)*(n-c)/(u-c)+l&&(o=!o)}return o}function eC(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function tC(t){t===void 0&&(t={});const{buffer:e=.5,blockPointerEvents:r=!1,requireIntent:n=!0}=t;let o,i=!1,s=null,a=null,l=performance.now();function c(u,f){const h=performance.now(),g=h-l;if(s===null||a===null||g===0)return s=u,a=f,l=h,null;const m=u-s,b=f-a,y=Math.sqrt(m*m+b*b)/g;return s=u,a=f,l=h,y}const d=u=>{let{x:f,y:h,placement:g,elements:m,onClose:b,nodeId:v,tree:y}=u;return function(x){function w(){clearTimeout(o),b()}if(clearTimeout(o),!m.domReference||!m.floating||g==null||f==null||h==null)return;const{clientX:S,clientY:T}=x,M=[S,T],N=tr(x),E=x.type==="mouseleave",I=Se(m.floating,N),A=Se(m.domReference,N),D=m.domReference.getBoundingClientRect(),O=m.floating.getBoundingClientRect(),P=g.split("-")[0],L=f>O.right-O.width/2,z=h>O.bottom-O.height/2,B=eC(M,D),j=O.width>D.width,$=O.height>D.height,W=(j?D:O).left,V=(j?D:O).right,Y=($?D:O).top,U=($?D:O).bottom;if(I&&(i=!0,!E))return;if(A&&(i=!1),A&&!E){i=!0;return}if(E&&ge(x.relatedTarget)&&Se(m.floating,x.relatedTarget)||y&&_r(y.nodesRef.current,v).some(de=>{let{context:X}=de;return X==null?void 0:X.open}))return;if(P==="top"&&h>=D.bottom-1||P==="bottom"&&h<=D.top+1||P==="left"&&f>=D.right-1||P==="right"&&f<=D.left+1)return w();let q=[];switch(P){case"top":q=[[W,D.top+1],[W,O.bottom-1],[V,O.bottom-1],[V,D.top+1]];break;case"bottom":q=[[W,O.top+1],[W,D.bottom-1],[V,D.bottom-1],[V,O.top+1]];break;case"left":q=[[O.right-1,U],[O.right-1,Y],[D.left+1,Y],[D.left+1,U]];break;case"right":q=[[D.right-1,U],[D.right-1,Y],[O.left+1,Y],[O.left+1,U]];break}function G(de){let[X,oe]=de;switch(P){case"top":{const Ie=[j?X+e/2:L?X+e*4:X-e*4,oe+e+1],He=[j?X-e/2:L?X+e*4:X-e*4,oe+e+1],J=[[O.left,L||j?O.bottom-e:O.top],[O.right,L?j?O.bottom-e:O.top:O.bottom-e]];return[Ie,He,...J]}case"bottom":{const Ie=[j?X+e/2:L?X+e*4:X-e*4,oe-e],He=[j?X-e/2:L?X+e*4:X-e*4,oe-e],J=[[O.left,L||j?O.top+e:O.bottom],[O.right,L?j?O.top+e:O.bottom:O.top+e]];return[Ie,He,...J]}case"left":{const Ie=[X+e+1,$?oe+e/2:z?oe+e*4:oe-e*4],He=[X+e+1,$?oe-e/2:z?oe+e*4:oe-e*4];return[...[[z||$?O.right-e:O.left,O.top],[z?$?O.right-e:O.left:O.right-e,O.bottom]],Ie,He]}case"right":{const Ie=[X-e,$?oe+e/2:z?oe+e*4:oe-e*4],He=[X-e,$?oe-e/2:z?oe+e*4:oe-e*4],J=[[z||$?O.left+e:O.right,O.top],[z?$?O.left+e:O.right:O.left+e,O.bottom]];return[Ie,He,...J]}}}if(!Eh([S,T],q)){if(i&&!B)return w();if(!E&&n){const de=c(x.clientX,x.clientY);if(de!==null&&de<.1)return w()}Eh([S,T],G([f,h]))?!i&&n&&(o=window.setTimeout(w,40)):w()}}};return d.__options={blockPointerEvents:r},d}const rC=({arrowRef:t,placement:e})=>{const r=[];return r.push(G2(8)),r.push(e==="auto"?J2():Z2()),r.push(X2({padding:8})),t!=null&&t.current&&r.push(Q2({element:t.current})),r},nC=({placement:t})=>t==="auto"?void 0:t,oC=({placement:t})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[t.split("-")[0]],Oh=({open:t,arrowRef:e,placement:r="top",setOpen:n})=>yh({placement:nC({placement:r}),open:t,onOpenChange:n,whileElementsMounted:Hf,middleware:rC({placement:r,arrowRef:e})}),Th=({context:t,trigger:e,role:r="tooltip",interactions:n=[]})=>wh([ph(t,{enabled:e==="click"}),D5(t,{enabled:e==="hover",handleClose:tC()}),bh(t),Sh(t,{role:r}),...n]),Nh=k.createContext(void 0);function Aa(){const t=k.useContext(Nh);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const Da=({className:t,theme:e={},...r})=>{const{theme:n}=Aa(),o=e.divider??n.floating.divider;return p.jsx("div",{className:F(o,t),...r})},Mh=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Aa(),i=r.header??o.floating.header;return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:F(i,e),...n,children:t}),p.jsx(Da,{})]})},Ph=k.forwardRef(({children:t,className:e,icon:r,onClick:n,theme:o={},...i},s)=>{const{ref:a,index:l}=O5({label:typeof t=="string"?t:void 0}),c=Xf([s,a]),{theme:d,activeIndex:u,dismissOnClick:f,getItemProps:h,handleSelect:g}=Aa(),m=u===l,b=H(d.floating.item,o),v=i;return p.jsx("li",{role:"menuitem",className:b.container,children:p.jsxs(Js,{ref:c,className:F(b.base,e),...v,...h({onClick:()=>{n==null||n(),f&&g(null)}}),tabIndex:m?0:-1,children:[r&&p.jsx(r,{className:b.icon}),t]})})});Ph.displayName="DropdownItem";const iC={top:b1,right:Wu,bottom:Hu,left:m1},sC=({refs:t,children:e,inline:r,theme:n,disabled:o,setButtonWidth:i,getReferenceProps:s,renderTrigger:a,...l})=>{const c=t.reference,d=s();if(k.useEffect(()=>{c.current&&(i==null||i(c.current.clientWidth))},[c,i]),a){const u=a(n);return k.cloneElement(u,{ref:t.setReference,disabled:o,...d,...u.props})}return r?p.jsx("button",{type:"button",ref:t.setReference,className:n==null?void 0:n.inlineWrapper,disabled:o,...d,children:e}):p.jsx(ff,{...l,disabled:o,type:"button",ref:t.setReference,...d,children:e})},Ah=({children:t,className:e,dismissOnClick:r=!0,theme:n={},renderTrigger:o,...i})=>{const[s,a]=k.useState(!1),[l,c]=k.useState(null),[d,u]=k.useState(null),[f,h]=k.useState(void 0),g=k.useRef([]),m=k.useRef([]),b=H(K().dropdown,n),v=i,y=i["data-testid"]||"flowbite-dropdown-target",{placement:_=i.inline?"bottom-start":"bottom",trigger:x="click",label:w,inline:S,arrowIcon:T=!0,...M}=v,N=k.useCallback($=>{u($),a(!1)},[]),E=k.useCallback($=>{s?c($):N($)},[s,N]),{context:I,floatingStyles:A,refs:D}=Oh({open:s,setOpen:a,placement:_}),O=Z5(I,{listRef:g,activeIndex:l,selectedIndex:d,onNavigate:c}),P=Q5(I,{listRef:m,activeIndex:l,selectedIndex:d,onMatch:E}),{getReferenceProps:L,getFloatingProps:z,getItemProps:B}=Th({context:I,role:"menu",trigger:x,interactions:[O,P]}),j=k.useMemo(()=>{const[$]=_.split("-");return iC[$]??Hu},[_]);return p.jsxs(Nh.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:r,getItemProps:B,handleSelect:N},children:[p.jsxs(sC,{...M,refs:D,inline:S,theme:b,"data-testid":y,className:F(b.floating.target,M.className),setButtonWidth:h,getReferenceProps:L,renderTrigger:o,children:[w,T&&p.jsx(j,{className:b.arrowIcon})]}),s&&p.jsx(fh,{context:I,modal:!1,children:p.jsx("div",{ref:D.setFloating,style:{...A,minWidth:f},"data-testid":"flowbite-dropdown","aria-expanded":s,...z({className:F(b.floating.base,b.floating.animation,"duration-100",!s&&b.floating.hidden,b.floating.style.auto,e)}),children:p.jsx(E5,{elementsRef:g,labelsRef:m,children:p.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};Ah.displayName="Dropdown",Mh.displayName="Dropdown.Header",Da.displayName="Dropdown.Divider",Object.assign(Ah,{Item:Ph,Header:Mh,Divider:Da});const aC=k.forwardRef(({className:t,color:e="gray",helperText:r,sizing:n="md",theme:o={},...i},s)=>{const a=H(K().fileInput,o);return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:F(a.root.base,t),children:p.jsx("div",{className:a.field.base,children:p.jsx("input",{className:F(a.field.input.base,a.field.input.colors[e],a.field.input.sizes[n]),...i,type:"file",ref:s})})}),r&&p.jsx(Vn,{color:e,children:r})]})});aC.displayName="FileInput";const lC=k.forwardRef(({label:t,helperText:e,color:r="default",sizing:n="md",variant:o,disabled:i=!1,theme:s={},className:a,...l},c)=>{const d=k.useId(),u=H(K().floatingLabel,s);return p.jsxs("div",{children:[p.jsxs("div",{className:F("relative",o==="standard"?"z-0":""),children:[p.jsx("input",{type:"text",id:l.id?l.id:"floatingLabel"+d,"aria-describedby":"outlined_success_help",className:F(u.input[r][o][n],a),placeholder:" ","data-testid":"floating-label",disabled:i,...l,ref:c}),p.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:F(u.label[r][o][n],a),children:t})]}),p.jsx("p",{id:"outlined_helper_text"+d,className:F(u.helperText[r],a),children:e})]})});lC.displayName="FloatingLabel";const Dh=({alt:t,className:e,children:r,href:n,name:o,src:i,theme:s={},...a})=>{const l=H(K().footer.brand,s);return p.jsx("div",{children:n?p.jsxs("a",{"data-testid":"flowbite-footer-brand",href:n,className:F(l.base,e),...a,children:[p.jsx("img",{alt:t,src:i,className:l.img}),p.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:o}),r]}):p.jsx("img",{alt:t,"data-testid":"flowbite-footer-brand",src:i,className:F(l.img,e),...a})})},Ih=({by:t,className:e,href:r,theme:n={},year:o,...i})=>{const s=H(K().footer.copyright,n);return p.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:F(s.base,e),...i,children:["© ",o,r?p.jsx("a",{href:r,className:s.href,children:t}):p.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:s.span,children:t})]})},Lh=({className:t,theme:e={},...r})=>{const n=H(K().footer.divider,e);return p.jsx("hr",{"data-testid":"footer-divider",className:F(n.base,t),...r})},Fh=({ariaLabel:t,className:e,href:r,icon:n,theme:o={},...i})=>{const s=H(K().footer.icon,o);return p.jsx("div",{children:r?p.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:r,className:F(s.base,e),...i,children:p.jsx(n,{className:s.size})}):p.jsx(n,{"data-testid":"flowbite-footer-icon",className:s.size,...i})})},zh=({as:t="a",children:e,className:r,href:n,theme:o={},...i})=>{const s=H(K().footer.groupLink.link,o);return p.jsx("li",{className:F(s.base,r),children:p.jsx(t,{href:n,className:s.href,...i,children:e})})},Bh=({children:t,className:e,col:r=!1,theme:n={},...o})=>{const i=H(K().footer.groupLink,n);return p.jsx("ul",{"data-testid":"footer-groupLink",className:F(i.base,r&&i.col,e),...o,children:t})},$h=({as:t="h2",className:e,theme:r={},title:n,...o})=>{const i=H(K().footer.title,r);return p.jsx(t,{"data-testid":"flowbite-footer-title",className:F(i.base,e),...o,children:n})},jh=({bgDark:t=!1,children:e,className:r,container:n=!1,theme:o={},...i})=>{const s=H(K().footer,o);return p.jsx("footer",{"data-testid":"flowbite-footer",className:F(s.root.base,t&&s.root.bgDark,n&&s.root.container,r),...i,children:e})};jh.displayName="Footer",Ih.displayName="Footer.Copyright",zh.displayName="Footer.Link",Dh.displayName="Footer.Brand",Bh.displayName="Footer.LinkGroup",Fh.displayName="Footer.Icon",$h.displayName="Footer.Title",Lh.displayName="Footer.Divider",Object.assign(jh,{Copyright:Ih,Link:zh,LinkGroup:Bh,Brand:Dh,Icon:Fh,Title:$h,Divider:Lh});const Hh=({children:t,className:e,icon:r,theme:n={},...o})=>{const i=H(K().list.item,n);return p.jsxs("li",{className:F(i.withIcon[r?"on":"off"],e),...o,children:[r&&p.jsx(r,{className:F(i.icon)}),t]})},Wh=({children:t,className:e,unstyled:r,nested:n,ordered:o,horizontal:i,theme:s={},...a})=>{const l=H(K().list,s),c=o?"ol":"ul";return p.jsx(c,{className:F(l.root.base,l.root.ordered[o?"on":"off"],r&&l.root.unstyled,n&&l.root.nested,i&&l.root.horizontal,e),...a,children:t})};Wh.displayName="List",Hh.displayName="List.Item",Object.assign(Wh,{Item:Hh});const Vh=({active:t,children:e,className:r,href:n,icon:o,onClick:i,theme:s={},disabled:a,...l})=>{const c=H(K().listGroup.item,s),d=typeof n<"u",u=d?"a":"button";return p.jsx("li",{className:F(c.base,r),children:p.jsxs(u,{href:n,onClick:i,type:d?void 0:"button",disabled:a,className:F(c.link.active[t?"on":"off"],c.link.disabled[a?"on":"off"],c.link.base,c.link.href[d?"on":"off"]),...l,children:[o&&p.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},Rh=({children:t,className:e,theme:r={},...n})=>{const o=H(K().listGroup,r);return p.jsx("ul",{className:F(o.root.base,e),...n,children:t})};Rh.displayName="ListGroup",Vh.displayName="ListGroup.Item",Object.assign(Rh,{Item:Vh});const Yh=k.createContext(void 0);function Ia(){const t=k.useContext(Yh);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const Uh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=Ia(),s=H(o.body,r);return p.jsx("div",{className:F(s.base,i&&[s.popup],e),...n,children:t})},qh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=Ia(),s=H(o.footer,r);return p.jsx("div",{className:F(s.base,!i&&s.popup,e),...n,children:t})},Kh=({as:t="h3",children:e,className:r,theme:n={},id:o,...i})=>{const s=k.useId(),a=o||s,{theme:l,popup:c,onClose:d,setHeaderId:u}=Ia(),f=H(l.header,n);return k.useLayoutEffect(()=>(u(a),()=>u(void 0)),[a,u]),p.jsxs("div",{className:F(f.base,c&&f.popup,r),...i,children:[p.jsx(t,{id:a,className:f.title,children:e}),p.jsx("button",{"aria-label":"Close",className:f.close.base,type:"button",onClick:d,children:p.jsx(y1,{"aria-hidden":!0,className:f.close.icon})})]})},Gh=k.forwardRef(({children:t,className:e,dismissible:r=!1,onClose:n,popup:o,position:i="center",root:s,show:a,size:l="2xl",theme:c={},initialFocus:d,...u},f)=>{const[h,g]=k.useState(void 0),m=H(K().modal,c),{context:b}=yh({open:a,onOpenChange:()=>n&&n()}),v=Xf([b.refs.setFloating,f]),y=ph(b),_=bh(b,{outsidePressEvent:"mousedown",enabled:r}),x=Sh(b),{getFloatingProps:w}=wh([y,_,x]);return a?p.jsx(Yh.Provider,{value:{theme:m,popup:o,onClose:n,setHeaderId:g},children:p.jsx(V5,{root:s,children:p.jsx(U5,{lockScroll:!0,"data-testid":"modal-overlay",className:F(m.root.base,m.root.positions[i],a?m.root.show.on:m.root.show.off,e),...u,children:p.jsx(fh,{context:b,initialFocus:d,children:p.jsx("div",{ref:v,...w(u),"aria-labelledby":h,className:F(m.content.base,m.root.sizes[l]),children:p.jsx("div",{className:m.content.inner,children:t})})})})})}):null});Gh.displayName="Modal",Kh.displayName="Modal.Header",Uh.displayName="Modal.Body",qh.displayName="Modal.Footer",Object.assign(Gh,{Header:Kh,Body:Uh,Footer:qh});const Xh=k.createContext(void 0);function Ii(){const t=k.useContext(Xh);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const Zh=({as:t="a",children:e,className:r,theme:n={},...o})=>{const{theme:i}=Ii(),s=H(i.brand,n);return p.jsx(t,{className:F(s.base,r),...o,children:e})},Jh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i}=Ii(),s=H(o.collapse,r);return p.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:F(s.base,s.hidden[i?"off":"on"],e),...n,children:p.jsx("ul",{className:s.list,children:t})})},Qh=({active:t,as:e="a",disabled:r,children:n,className:o,theme:i={},onClick:s,...a})=>{const{theme:l,setIsOpen:c}=Ii(),d=H(l.link,i),u=f=>{c(!1),s==null||s(f)};return p.jsx("li",{children:p.jsx(e,{className:F(d.base,t&&d.active.on,!t&&!r&&d.active.off,d.disabled[r?"on":"off"],o),onClick:u,...a,children:n})})},eg=({barIcon:t=tp,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i,setIsOpen:s}=Ii(),a=H(o.toggle,r),l=()=>{s(!i)};return p.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:F(a.base,e),...n,children:[p.jsx("span",{className:"sr-only",children:"Open main menu"}),p.jsx(t,{"aria-hidden":!0,className:a.icon})]})},tg=({border:t,children:e,className:r,fluid:n=!1,menuOpen:o,rounded:i,theme:s={},...a})=>{const[l,c]=k.useState(o),d=H(K().navbar,s);return p.jsx(Xh.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:p.jsx("nav",{className:F(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[i?"on":"off"],r),...a,children:p.jsx("div",{className:F(d.root.inner.base,d.root.inner.fluid[n?"on":"off"]),children:e})})})};tg.displayName="Navbar",Zh.displayName="Navbar.Brand",Jh.displayName="Navbar.Collapse",Qh.displayName="Navbar.Link",eg.displayName="Navbar.Toggle",Object.assign(tg,{Brand:Zh,Collapse:Jh,Link:Qh,Toggle:eg});const cC=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(r=>r+t),La=({active:t,children:e,className:r,onClick:n,theme:o={},...i})=>{const s=H(K().pagination,o);return p.jsx("button",{type:"button",className:F(t&&s.pages.selector.active,r),onClick:n,...i,children:e})};La.displayName="Pagination.Button";const Fa=({children:t,className:e,onClick:r,theme:n={},disabled:o=!1,...i})=>{const s=H(K().pagination,n);return p.jsx("button",{type:"button",className:F(o&&s.pages.selector.disabled,e),disabled:o,onClick:r,...i,children:t})};Fa.displayName="Pagination.Navigation";const rg=({className:t,currentPage:e,layout:r="pagination",nextLabel:n="Next",onPageChange:o,previousLabel:i="Previous",renderPaginationButton:s=u=>p.jsx(La,{...u}),showIcons:a=!1,theme:l={},totalPages:c,...d})=>{const u=H(K().pagination,l),f=Math.min(Math.max(r==="pagination"?e+2:e+4,5),c),h=Math.max(1,f-4),g=()=>{o(Math.min(e+1,c))},m=()=>{o(Math.max(e-1,1))};return p.jsxs("nav",{className:F(u.base,t),...d,children:[r==="table"&&p.jsxs("div",{className:u.layout.table.base,children:["Showing ",p.jsx("span",{className:u.layout.table.span,children:h})," to ",p.jsx("span",{className:u.layout.table.span,children:f})," of ",p.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),p.jsxs("ul",{className:u.pages.base,children:[p.jsx("li",{children:p.jsxs(Fa,{className:F(u.pages.previous.base,a&&u.pages.showIcon),onClick:m,disabled:e===1,children:[a&&p.jsx($u,{"aria-hidden":!0,className:u.pages.previous.icon}),i]})}),r==="pagination"&&cC(h,f).map(b=>p.jsx("li",{"aria-current":b===e?"page":void 0,children:s({className:F(u.pages.selector.base,e===b&&u.pages.selector.active),active:b===e,onClick:()=>o(b),children:b})},b)),p.jsx("li",{children:p.jsxs(Fa,{className:F(u.pages.next.base,a&&u.pages.showIcon),onClick:g,disabled:e===c,children:[n,a&&p.jsx(ju,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};rg.displayName="Pagination",Object.assign(rg,{Button:La});const dC=k.forwardRef(({className:t,theme:e={},...r},n)=>{const o=H(K().radio,e);return p.jsx("input",{ref:n,type:"radio",className:F(o.root.base,t),...r})});dC.displayName="Radio";const uC=k.forwardRef(({className:t,sizing:e="md",theme:r={},...n},o)=>{const i=H(K().rangeSlider,r);return p.jsx(p.Fragment,{children:p.jsx("div",{"data-testid":"flowbite-range-slider",className:F(i.root.base,t),children:p.jsx("div",{className:i.field.base,children:p.jsx("input",{ref:o,type:"range",className:F(i.field.input.base,i.field.input.sizes[e]),...n})})})})});uC.displayName="RangeSlider";const ng=({children:t,className:e,percentFilled:r=0,theme:n={},...o})=>{const i=H(K().ratingAdvanced,n);return p.jsxs("div",{className:F(i.base,e),...o,children:[p.jsx("span",{className:i.label,children:t}),p.jsx("div",{className:i.progress.base,children:p.jsx("div",{className:i.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${r}%`}})}),p.jsx("span",{className:i.progress.label,children:`${r}%`})]})},og=k.createContext(void 0);function fC(){const t=k.useContext(og);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const ig=({className:t,filled:e=!0,starIcon:r=g1,theme:n={},...o})=>{const{theme:i,size:s="sm"}=fC(),a=H(i.star,n);return p.jsx(r,{"data-testid":"flowbite-rating-star",className:F(a.sizes[s],a[e?"filled":"empty"],t),...o})},sg=({children:t,className:e,size:r="sm",theme:n={},...o})=>{const i=H(K().rating,n);return p.jsx(og.Provider,{value:{theme:i,size:r},children:p.jsx("div",{className:F(i.root.base,e),...o,children:t})})};sg.displayName="Rating",ig.displayName="Rating.Star",ng.displayName="Rating.Advanced",Object.assign(sg,{Star:ig,Advanced:ng});const hC=k.forwardRef(({addon:t,children:e,className:r,color:n="gray",helperText:o,icon:i,shadow:s,sizing:a="md",theme:l={},...c},d)=>{const u=H(K().select,l);return p.jsxs("div",{className:F(u.base,r),children:[t&&p.jsx("span",{className:u.addon,children:t}),p.jsxs("div",{className:u.field.base,children:[i&&p.jsx("div",{className:u.field.icon.base,children:p.jsx(i,{className:u.field.icon.svg})}),p.jsx("select",{className:F(u.field.select.base,u.field.select.colors[n],u.field.select.sizes[a],u.field.select.withIcon[i?"on":"off"],u.field.select.withAddon[t?"on":"off"],u.field.select.withShadow[s?"on":"off"]),...c,ref:d,children:e}),o&&p.jsx(Vn,{color:n,children:o})]})]})});hC.displayName="Select";const gC=({animation:t="duration-300",arrow:e=!0,children:r,className:n,content:o,placement:i="top",style:s="dark",theme:a,trigger:l="hover",minWidth:c,...d})=>{const u=k.useRef(null),[f,h]=k.useState(!1),g=Oh({open:f,placement:i,arrowRef:u,setOpen:h}),{context:m,middlewareData:{arrow:{x:b,y:v}={}},refs:y,strategy:_,update:x,x:w,y:S}=g,T=G5(m),{getFloatingProps:M,getReferenceProps:N}=Th({context:m,role:"tooltip",trigger:l,interactions:[T]});return k.useEffect(()=>{if(y.reference.current&&y.floating.current&&f)return Hf(y.reference.current,y.floating.current,x)},[f,y.floating,y.reference,x]),p.jsxs(p.Fragment,{children:[p.jsx("div",{ref:y.setReference,className:a.target,"data-testid":"flowbite-tooltip-target",...N(),children:r}),p.jsxs("div",{ref:y.setFloating,"data-testid":"flowbite-tooltip",...M({className:F(a.base,t&&`${a.animation} ${t}`,!f&&a.hidden,a.style[s],n),style:{position:_,top:S??" ",left:w??" ",minWidth:c},...d}),children:[p.jsx("div",{className:a.content,children:o}),e&&p.jsx("div",{className:F(a.arrow.base,s==="dark"&&a.arrow.style.dark,s==="light"&&a.arrow.style.light,s==="auto"&&a.arrow.style.auto),"data-testid":"flowbite-tooltip-arrow",ref:u,style:{top:v??" ",left:b??" ",right:" ",bottom:" ",[oC({placement:g.placement})]:a.arrow.placement},children:" "})]})]})},za=({animation:t="duration-300",arrow:e=!0,children:r,className:n,content:o,placement:i="top",style:s="dark",theme:a={},trigger:l="hover",...c})=>{const d=H(K().tooltip,a);return p.jsx(gC,{animation:t,arrow:e,content:o,placement:i,style:s,theme:d,trigger:l,className:n,...c,children:r})};za.displayName="Tooltip";const ag=k.createContext(void 0);function Qr(){const t=k.useContext(ag);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const Ba=k.createContext(void 0);function pC(){const t=k.useContext(Ba);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const lg=({children:t,className:e,icon:r,label:n,chevronIcon:o=Bu,renderChevronIcon:i,open:s=!1,theme:a={},...l})=>{const c=k.useId(),[d,u]=k.useState(s),{theme:f,isCollapsed:h}=Qr(),g=H(f.collapse,a);k.useEffect(()=>u(s),[s]);const m=({children:b})=>p.jsx("li",{children:h&&!d?p.jsx(za,{content:n,placement:"right",children:b}):b});return p.jsxs(m,{children:[p.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:n,type:"button",className:F(g.button,e),...l,children:[r&&p.jsx(r,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:F(g.icon.base,g.icon.open[d?"on":"off"])}),h?p.jsx("span",{className:"sr-only",children:n}):p.jsxs(p.Fragment,{children:[p.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:g.label.base,children:n}),i?i(g,d):p.jsx(o,{"aria-hidden":!0,className:F(g.label.icon.base,g.label.icon.open[d?"on":"off"])})]})]}),p.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:g.list,children:p.jsx(Ba.Provider,{value:{isInsideCollapse:!0},children:t})})]})};lg.displayName="Sidebar.Collapse";const cg=({children:t,color:e="info",className:r,theme:n={},...o})=>{const{theme:i,isCollapsed:s}=Qr(),a=H(i.cta,n);return p.jsx("div",{"data-testid":"sidebar-cta",hidden:s,className:F(a.base,a.color[e],r),...o,children:t})};cg.displayName="Sidebar.CTA";const mC=({id:t,theme:e,isCollapsed:r,tooltipChildren:n,children:o,...i})=>p.jsx("li",{...i,children:r?p.jsx(za,{content:p.jsx(dg,{id:t,theme:e,children:n}),placement:"right",children:o}):o}),dg=({id:t,theme:e,children:r})=>p.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:F(e.content.base),children:r}),ug=k.forwardRef(({active:t,as:e="a",children:r,className:n,icon:o,label:i,labelColor:s="info",theme:a={},...l},c)=>{var m,b,v,y;const d=k.useId(),{theme:u,isCollapsed:f}=Qr(),{isInsideCollapse:h}=pC(),g=H(u.item,a);return p.jsx(mC,{theme:g,className:g.listItem,id:d,isCollapsed:f,tooltipChildren:r,children:p.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:F(g.base,t&&g.active,!f&&h&&((m=g.collapsed)==null?void 0:m.insideCollapse),n),...l,children:[o&&p.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:F((b=g.icon)==null?void 0:b.base,t&&((v=g.icon)==null?void 0:v.active))}),f&&!o&&p.jsx("span",{className:(y=g.collapsed)==null?void 0:y.noIcon,children:r.charAt(0).toLocaleUpperCase()??"?"}),!f&&p.jsx(dg,{id:d,theme:g,children:r}),!f&&i&&p.jsx(sf,{color:s,"data-testid":"flowbite-sidebar-label",hidden:f,className:g.label,children:i})]})})});ug.displayName="Sidebar.Item";const fg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Qr(),i=H(o.itemGroup,r);return p.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:F(i.base,e),...n,children:p.jsx(Ba.Provider,{value:{isInsideCollapse:!1},children:t})})};fg.displayName="Sidebar.ItemGroup";const hg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Qr(),i=H(o.items,r);return p.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-sidebar-items",...n,children:t})};hg.displayName="Sidebar.Items";const gg=({children:t,className:e,href:r,img:n,imgAlt:o="",theme:i={},...s})=>{const a=k.useId(),{theme:l,isCollapsed:c}=Qr(),d=H(l.logo,i);return p.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${a}`,href:r,className:F(d.base,e),...s,children:[p.jsx("img",{alt:o,src:n,className:d.img}),p.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${a}`,children:t})]})};gg.displayName="Sidebar.Logo";const pg=({children:t,as:e="nav",collapseBehavior:r="collapse",collapsed:n=!1,theme:o={},className:i,...s})=>{const a=H(K().sidebar,o);return p.jsx(ag.Provider,{value:{theme:a,isCollapsed:n},children:p.jsx(e,{"aria-label":"Sidebar",hidden:n&&r==="hide",className:F(a.root.base,a.root.collapsed[n?"on":"off"],i),...s,children:p.jsx("div",{className:a.root.inner,children:t})})})};pg.displayName="Sidebar",Object.assign(pg,{Collapse:lg,CTA:cg,Item:ug,Items:hg,ItemGroup:fg,Logo:gg});const mg=k.createContext(void 0);function bC(){const t=k.useContext(mg);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const bg=k.createContext(void 0);function $a(){const t=k.useContext(bg);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const yg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=$a(),s=H(i.body,r);return p.jsx(mg.Provider,{value:{theme:s},children:p.jsx("tbody",{className:F(s.base,e),ref:o,...n,children:t})})});yg.displayName="Table.Body";const vg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=bC(),s=H(i.cell,r);return p.jsx("td",{className:F(s.base,e),ref:o,...n,children:t})});vg.displayName="Table.Cell";const xg=k.createContext(void 0);function yC(){const t=k.useContext(xg);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const wg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=$a(),s=H(i.head,r);return p.jsx(xg.Provider,{value:{theme:s},children:p.jsx("thead",{className:F(s.base,e),ref:o,...n,children:p.jsx("tr",{children:t})})})});wg.displayName="Table.Head";const kg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=yC(),s=H(i.cell,r);return p.jsx("th",{className:F(s.base,e),ref:o,...n,children:t})});kg.displayName="Table.HeadCell";const Cg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i,hoverable:s,striped:a}=$a(),l=H(i.row,r);return p.jsx("tr",{ref:o,"data-testid":"table-row-element",className:F(l.base,a&&l.striped,s&&l.hovered,e),...n,children:t})});Cg.displayName="Table.Row";const _g=k.forwardRef(({children:t,className:e,striped:r,hoverable:n,theme:o={},...i},s)=>{const a=H(K().table,o);return p.jsx("div",{"data-testid":"table-element",className:F(a.root.wrapper),children:p.jsxs(bg.Provider,{value:{theme:a,striped:r,hoverable:n},children:[p.jsx("div",{className:F(a.root.shadow,e)}),p.jsx("table",{className:F(a.root.base,e),...i,ref:s,children:t})]})})});_g.displayName="Table";const en=Object.assign(_g,{Head:wg,Body:yg,Row:Cg,Cell:vg,HeadCell:kg}),Sg=({children:t,className:e})=>p.jsx("div",{className:e,children:t});Sg.displayName="Tabs.Item";const Eg=k.forwardRef(({children:t,className:e,onActiveTabChange:r,style:n="default",theme:o={},...i},s)=>{const a=H(K().tabs,o),l=k.useId(),c=k.useMemo(()=>k.Children.map(k.Children.toArray(t),({props:x})=>x),[t]),d=k.useRef([]),[u,f]=k.useState(Math.max(0,c.findIndex(x=>x.active))),[h,g]=k.useState(-1),m=x=>{f(x),r&&r(x)},b=({target:x})=>{m(x),g(x)},v=({event:x,target:w})=>{x.key==="ArrowLeft"&&g(Math.max(0,h-1)),x.key==="ArrowRight"&&g(Math.min(c.length-1,h+1)),x.key==="Enter"&&(m(w),g(w))},y=a.tablist.tabitem.styles[n],_=a.tabitemcontainer.styles[n];return k.useEffect(()=>{var x;(x=d.current[h])==null||x.focus()},[h]),k.useImperativeHandle(s,()=>({setActiveTab:m})),p.jsxs("div",{className:F(a.base,e),children:[p.jsx("div",{"aria-label":"Tabs",role:"tablist",className:F(a.tablist.base,a.tablist.styles[n],e),...i,children:c.map((x,w)=>p.jsxs("button",{type:"button","aria-controls":`${l}-tabpanel-${w}`,"aria-selected":w===u,className:F(a.tablist.tabitem.base,y.base,w===u&&y.active.on,w!==u&&!x.disabled&&y.active.off),disabled:x.disabled,id:`${l}-tab-${w}`,onClick:()=>b({target:w}),onKeyDown:S=>v({event:S,target:w}),ref:S=>d.current[w]=S,role:"tab",tabIndex:w===h?0:-1,style:{zIndex:w===h?2:1},children:[x.icon&&p.jsx(x.icon,{className:a.tablist.tabitem.icon}),x.title]},w))}),p.jsx("div",{className:F(a.tabitemcontainer.base,_),children:c.map((x,w)=>p.jsx("div",{"aria-labelledby":`${l}-tab-${w}`,className:a.tabpanel,hidden:w!==u,id:`${l}-tabpanel-${w}`,role:"tabpanel",tabIndex:0,children:x.children},w))})]})});Eg.displayName="Tabs",Object.assign(Eg,{Item:Sg});const vC=k.forwardRef(({className:t,color:e="gray",helperText:r,shadow:n,theme:o={},...i},s)=>{const a=H(K().textarea,o);return p.jsxs(p.Fragment,{children:[p.jsx("textarea",{ref:s,className:F(a.base,a.colors[e],a.withShadow[n?"on":"off"],t),...i}),r&&p.jsx(Vn,{color:e,children:r})]})});vC.displayName="Textarea";const Og=k.createContext(void 0);function ja(){const t=k.useContext(Og);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const Tg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=ja(),i=H(o.body,r);return p.jsx("div",{className:F(i.base,e),...n,children:t})},Ng=k.createContext(void 0);function Ha(){const t=k.useContext(Ng);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const Mg=k.createContext(void 0);function Pg(){const t=k.useContext(Mg);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const Ag=({children:t,className:e,theme:r={},...n})=>{const{horizontal:o}=Ha(),{theme:i}=Pg(),s=H(i.content,r);return p.jsx(Og.Provider,{value:{theme:s},children:p.jsx("div",{"data-testid":"timeline-content",className:F(o&&s.root.base,e),...n,children:t})})},Dg=({children:t,className:e,theme:r={},...n})=>{const{theme:o,horizontal:i}=Ha(),s=H(o.item,r);return p.jsx(Mg.Provider,{value:{theme:s},children:p.jsx("li",{"data-testid":"timeline-item",className:F(i&&s.root.horizontal,!i&&s.root.vertical,e),...n,children:t})})},Ig=({children:t,className:e,icon:r,theme:n={},...o})=>{const{horizontal:i}=Ha(),{theme:s}=Pg(),a=H(s.point,n);return p.jsxs("div",{"data-testid":"timeline-point",className:F(i&&a.horizontal,!i&&a.vertical,e),...o,children:[t,r?p.jsx("span",{className:F(a.marker.icon.wrapper),children:p.jsx(r,{"aria-hidden":!0,className:F(a.marker.icon.base)})}):p.jsx("div",{className:F(i&&a.marker.base.horizontal,!i&&a.marker.base.vertical)}),i&&p.jsx("div",{className:F(a.line)})]})},Lg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=ja(),i=H(o.time,r);return p.jsx("time",{className:F(i.base,e),...n,children:t})},Fg=({as:t="h3",children:e,className:r,theme:n={},...o})=>{const{theme:i}=ja(),s=H(i.title,n);return p.jsx(t,{className:F(s.base,r),...o,children:e})},zg=({children:t,className:e,horizontal:r,theme:n={},...o})=>{const i=H(K().timeline,n);return p.jsx(Ng.Provider,{value:{theme:i,horizontal:r},children:p.jsx("ol",{"data-testid":"timeline-component",className:F(r&&i.root.direction.horizontal,!r&&i.root.direction.vertical,e),...o,children:t})})};zg.displayName="Timeline",Dg.displayName="Timeline.Item",Ig.displayName="Timeline.Point",Ag.displayName="Timeline.Content",Lg.displayName="Timeline.Time",Fg.displayName="Timeline.Title",Tg.displayName="Timeline.Body",Object.assign(zg,{Item:Dg,Point:Ig,Content:Ag,Time:Lg,Title:Fg,Body:Tg});const Bg=k.createContext(void 0);function xC(){const t=k.useContext(Bg);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const $g=({className:t,onClick:e,theme:r={},xIcon:n=p1,onDismiss:o,...i})=>{const{theme:s,duration:a,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=xC(),f=H(s.toggle,r),h=g=>{if(e&&e(g),o){o();return}d(!l),setTimeout(()=>u(!c),a)};return p.jsx("button",{"aria-label":"Close",onClick:h,type:"button",className:F(f.base,t),...i,children:p.jsx(n,{"aria-hidden":!0,className:f.icon})})},wC={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},jg=({children:t,className:e,duration:r=300,theme:n={},...o})=>{const[i,s]=k.useState(!1),[a,l]=k.useState(!1),c=H(K().toast,n);return a?null:p.jsx(Bg.Provider,{value:{theme:c,duration:r,isClosed:i,isRemoved:a,setIsClosed:s,setIsRemoved:l},children:p.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:F(c.root.base,wC[r],i&&c.root.closed,e),...o,children:t})})};jg.displayName="Toast",$g.displayName="Toast.Toggle",Object.assign(jg,{Toggle:$g});const kC=k.forwardRef(({checked:t,className:e,color:r="blue",sizing:n="md",disabled:o,label:i,name:s,onChange:a,theme:l={},...c},d)=>{const u=k.useId(),f=H(K().toggleSwitch,l),h=()=>a(!t),g=()=>{h()},m=b=>{b.code=="Enter"&&b.preventDefault()};return p.jsxs(p.Fragment,{children:[s&&t?p.jsx("input",{ref:d,checked:t,hidden:!0,name:s,readOnly:!0,type:"checkbox",className:"sr-only"}):null,p.jsxs("button",{"aria-checked":t,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:o,id:`${u}-flowbite-toggleswitch`,onClick:g,onKeyDown:m,role:"switch",tabIndex:0,type:"button",className:F(f.root.base,f.root.active[o?"off":"on"],e),...c,children:[p.jsx("div",{"data-testid":"flowbite-toggleswitch-toggle",className:F(f.toggle.base,f.toggle.checked[t?"on":"off"],t&&f.toggle.checked.color[r],f.toggle.sizes[n])}),i!=null&&i.length?p.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:f.root.label,children:i}):null]})]})});kC.displayName="ToggleSwitch";const CC=({currentPage:t,totalPages:e,onPageChange:r})=>p.jsxs("div",{className:"flex items-center justify-center gap-4",children:[p.jsx("button",{onClick:()=>r(t-1),disabled:t===1,className:"p-2 text-gray-500 hover:text-gray-700 disabled:opacity-50 disabled:cursor-not-allowed",children:p.jsx($u,{className:"w-5 h-5"})}),p.jsxs("span",{className:"text-sm text-gray-700",children:[t," de ",e]}),p.jsx("button",{onClick:()=>r(t+1),disabled:t===e,className:"p-2 text-gray-500 hover:text-gray-700 disabled:opacity-50 disabled:cursor-not-allowed",children:p.jsx(ju,{className:"w-5 h-5"})})]}),_C=({columns:t,data:e,showSearch:r=!1,itemsPerPage:n=5,title:o})=>{const[i,s]=C.useState(""),[a,l]=C.useState(1),c=C.useMemo(()=>i.trim()?e.filter(f=>t.some(h=>{const g=f[h.relation];return g!=null&&String(g).toLowerCase().includes(i.toLowerCase().trim())})):e,[e,i,t]),d=C.useMemo(()=>{const f=(a-1)*n,h=f+n;return c.slice(f,h)},[c,a,n]),u=Math.ceil(c.length/n);return p.jsxs("div",{className:"w-full",children:[p.jsx("div",{className:"flex justify-between items-center mb-4",children:o&&p.jsx("h2",{className:"text-xl font-bold",children:o})}),p.jsxs("div",{className:"flex mb-4",children:[r&&p.jsx("div",{className:"w-1/2",children:p.jsx(ea,{rightIcon:h1,placeholder:"Buscar",value:i,onChange:f=>s(f.target.value)})}),u>1&&p.jsx("div",{className:"w-full flex justify-end",children:p.jsx(CC,{currentPage:a,totalPages:u,onPageChange:l})})]}),p.jsx("div",{className:"overflow-x-auto",children:p.jsxs(en,{striped:!0,children:[p.jsx(en.Head,{children:t.map((f,h)=>p.jsx(en.HeadCell,{children:f.header},h))}),p.jsx("hr",{}),p.jsx(en.Body,{className:"divide-y",children:d.map((f,h)=>p.jsx(en.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:t.map((g,m)=>{const b=f[g.relation];return p.jsx(en.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:g.cell?g.cell(f):b!=null?String(b):""},m)})},h))})]})})]})},Hg={"m-image-container":"layoutOutside-module__m-image-container__sCvFu","m-image":"layoutOutside-module__m-image__kZHyH"},Wg=no(),SC=()=>p.jsxs("div",{className:"mt-32",children:[p.jsx(Er,{classIm:"mx-auto",src:`${Wg}/public/assets/images/mathilde.png`,alt:"Logo Mathilde ads",width:400,height:250}),p.jsx("div",{className:Hg["m-image-container"],children:p.jsx(Er,{classIm:Hg["m-image"],src:`${Wg}/public/assets/images/background-mathilde.png`,alt:"Logo Mathilde ads",width:400,height:300})})]}),EC=({onOpenModal:t,checked:e,onChange:r,label:n,...o})=>{const i=()=>{e||t(),r(!1)};return p.jsx("div",{className:"mb-5",children:p.jsxs("label",{className:eo["checkbox-container"],children:[p.jsx("input",{type:"checkbox",...o,checked:e,onChange:i,required:!0}),p.jsx("span",{className:eo.checkmark}),n&&p.jsx("span",{children:n})]})})},Vg=({validations:t})=>{const e=({isValid:n})=>p.jsx("svg",{className:`w-3.5 h-3.5 me-2 ${n?"text-green-500 dark:text-green-400":"text-gray-500 dark:text-gray-400"} shrink-0`,"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:p.jsx("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})}),r=[{key:"hasMinLength",text:"Debe ser minimo de 8 caracteres"},{key:"hasNumber",text:"Debe tener minimo un numero"},{key:"hasUpperCase",text:"Debe tener minimo una letra mayuscula"},{key:"hasLowerCase",text:"Debe tener minimo una letra minuscula"},{key:"hasSpecialChar",text:"Debe tener minimo un caracter especial"}];return p.jsx("ul",{className:"max-w-md text-sm mb-3 space-y-1 text-gray-500 list-inside dark:text-gray-400",children:r.map(({key:n,text:o})=>p.jsxs("li",{className:"flex items-center",children:[p.jsx(e,{isValid:t[n]}),o]},n))})},OC=()=>{const[t,e]=k.useState(""),[r,n]=k.useState(""),[o,i]=k.useState({hasMinLength:!1,hasNumber:!1,hasUpperCase:!1,hasLowerCase:!1,hasSpecialChar:!1});k.useEffect(()=>{i({hasMinLength:t.length>=8,hasNumber:/\d/.test(t),hasUpperCase:/[A-Z]/.test(t),hasLowerCase:/[a-z]/.test(t),hasSpecialChar:/[!@#$%^&*(),.?":{}|<>]/.test(t)})},[t]);const s=()=>t.trim()&&r.trim()&&t===r&&Object.values(o).every(l=>l);return{password:t,setPassword:e,confirmPassword:r,setConfirmPassword:n,showError:()=>!s()&&t.trim()&&r.trim(),validations:o}},TC=({formik:t})=>{const{password:e,setPassword:r,confirmPassword:n,setConfirmPassword:o,validations:i}=OC();return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"block",children:[p.jsx(zi,{placeholder:"Contraseña",value:e,onChange:s=>{r(s.target.value),t.setFieldValue("password",s.target.value)},onBlur:t.handleBlur("password")}),t.errors.password&&t.touched.password&&p.jsx("div",{className:"text-red-500 text-sm my-2",children:String(t.errors.password)})]}),p.jsxs("div",{className:"block",children:[p.jsx(zi,{placeholder:"Confirmar contraseña",value:n,onChange:s=>{o(s.target.value),t.setFieldValue("confirmPassword",s.target.value)},onBlur:t.handleBlur("confirmPassword")}),t.errors.confirmPassword&&t.touched.confirmPassword&&p.jsx("div",{className:"text-red-500 text-sm my-2",children:String(t.errors.confirmPassword)})]}),p.jsx(Vg,{validations:i})]})},NC=({items:t})=>{const[e,r]=k.useState([]),n=i=>{r(s=>s.includes(i)?s.filter(a=>a!==i):[...s,i])},o=(i,s=0)=>p.jsx("ul",{className:"list-none space-y-2",children:i.map(a=>{const l=a.subItems&&a.subItems.length>0,c=e.includes(a.id);return p.jsxs("li",{className:`
|
|
498
|
+
*/var t5=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ci=t5.join(","),Yf=typeof Element>"u",Gr=Yf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,_i=!Yf&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},Si=function t(e,r){var n;r===void 0&&(r=!0);var o=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),i=o===""||o==="true",s=i||r&&e&&t(e.parentNode);return s},r5=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},n5=function(e,r,n){if(Si(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(Ci));return r&&Gr.call(e,Ci)&&o.unshift(e),o=o.filter(n),o},o5=function t(e,r,n){for(var o=[],i=Array.from(e);i.length;){var s=i.shift();if(!Si(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,c=t(l,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:s,candidates:c})}else{var d=Gr.call(s,Ci);d&&n.filter(s)&&(r||!e.includes(s))&&o.push(s);var u=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),f=!Si(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(u&&f){var h=t(u===!0?s.children:u.children,!0,n);n.flatten?o.push.apply(o,h):o.push({scopeParent:s,candidates:h})}else i.unshift.apply(i,s.children)}}return o},Uf=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},qf=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||r5(e))&&!Uf(e)?0:e.tabIndex},i5=function(e,r){var n=qf(e);return n<0&&r&&!Uf(e)?0:n},s5=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},Kf=function(e){return e.tagName==="INPUT"},a5=function(e){return Kf(e)&&e.type==="hidden"},l5=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},c5=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},d5=function(e){if(!e.name)return!0;var r=e.form||_i(e),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=n(window.CSS.escape(e.name));else try{o=n(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=c5(o,e.form);return!i||i===e},u5=function(e){return Kf(e)&&e.type==="radio"},f5=function(e){return u5(e)&&!d5(e)},h5=function(e){var r,n=e&&_i(e),o=(r=n)===null||r===void 0?void 0:r.host,i=!1;if(n&&n!==e){var s,a,l;for(i=!!((s=o)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(o)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!i&&o;){var c,d,u;n=_i(o),o=(c=n)===null||c===void 0?void 0:c.host,i=!!((d=o)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(o))}}return i},Gf=function(e){var r=e.getBoundingClientRect(),n=r.width,o=r.height;return n===0&&o===0},g5=function(e,r){var n=r.displayCheck,o=r.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var i=Gr.call(e,"details>summary:first-of-type"),s=i?e.parentElement:e;if(Gr.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var a=e;e;){var l=e.parentElement,c=_i(e);if(l&&!l.shadowRoot&&o(l)===!0)return Gf(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=a}if(h5(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Gf(e);return!1},p5=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var o=r.children.item(n);if(o.tagName==="LEGEND")return Gr.call(r,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}r=r.parentElement}return!1},m5=function(e,r){return!(r.disabled||Si(r)||a5(r)||g5(r,e)||l5(r)||p5(r))},xa=function(e,r){return!(f5(r)||qf(r)<0||!m5(e,r))},b5=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},y5=function t(e){var r=[],n=[];return e.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,l=i5(a,s),c=s?t(o.candidates):a;l===0?s?r.push.apply(r,c):r.push(a):n.push({documentOrder:i,tabIndex:l,item:o,isScope:s,content:c})}),n.sort(s5).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},Ei=function(e,r){r=r||{};var n;return r.getShadowRoot?n=o5([e],r.includeContainer,{filter:xa.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:b5}):n=n5(e,r.includeContainer,xa.bind(null,r)),y5(n)},v5=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Gr.call(e,Ci)===!1?!1:xa(r,e)};function Xf(t){return C.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})},t)}const x5=C.useInsertionEffect||(t=>t());function Nt(t){const e=C.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return x5(()=>{e.current=t}),C.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e.current==null?void 0:e.current(...n)},[])}const wa="ArrowUp",qn="ArrowDown",Xr="ArrowLeft",Zr="ArrowRight";function Oi(t,e,r){return Math.floor(t/e)!==r}function Kn(t,e){return e<0||e>=t.current.length}function ka(t,e){return Ye(t,{disabledIndices:e})}function Zf(t,e){return Ye(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function Ye(t,e){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=e===void 0?{}:e;const s=t.current,a=o?c=>o.includes(c):c=>{const d=s[c];return d==null||d.hasAttribute("disabled")||d.getAttribute("aria-disabled")==="true"};let l=r;do l+=n?-i:i;while(l>=0&&l<=s.length-1&&a(l));return l}function w5(t,e){let{event:r,orientation:n,loop:o,cols:i,disabledIndices:s,minIndex:a,maxIndex:l,prevIndex:c,stopEvent:d=!1}=e,u=c;if(r.key===wa){if(d&&je(r),c===-1)u=l;else if(u=Ye(t,{startingIndex:u,amount:i,decrement:!0,disabledIndices:s}),o&&(c-i<a||u<0)){const f=c%i,h=l%i,g=l-(h-f);h===f?u=l:u=h>f?g:g-i}Kn(t,u)&&(u=c)}if(r.key===qn&&(d&&je(r),c===-1?u=a:(u=Ye(t,{startingIndex:c,amount:i,disabledIndices:s}),o&&c+i>l&&(u=Ye(t,{startingIndex:c%i-i,amount:i,disabledIndices:s}))),Kn(t,u)&&(u=c)),n==="both"){const f=Ur(c/i);r.key===Zr&&(d&&je(r),c%i!==i-1?(u=Ye(t,{startingIndex:c,disabledIndices:s}),o&&Oi(u,i,f)&&(u=Ye(t,{startingIndex:c-c%i-1,disabledIndices:s}))):o&&(u=Ye(t,{startingIndex:c-c%i-1,disabledIndices:s})),Oi(u,i,f)&&(u=c)),r.key===Xr&&(d&&je(r),c%i!==0?(u=Ye(t,{startingIndex:c,disabledIndices:s,decrement:!0}),o&&Oi(u,i,f)&&(u=Ye(t,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s}))):o&&(u=Ye(t,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s})),Oi(u,i,f)&&(u=c));const h=Ur(l/i)===f;Kn(t,u)&&(o&&h?u=r.key===Xr?l:Ye(t,{startingIndex:c-c%i-1,disabledIndices:s}):u=c)}return u}function k5(t,e,r){const n=[];let o=0;return t.forEach((i,s)=>{let{width:a,height:l}=i;if(a>e&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+s+" is greater than grid columns");let c=!1;for(r&&(o=0);!c;){const d=[];for(let u=0;u<a;u++)for(let f=0;f<l;f++)d.push(o+u+f*e);o%e+a<=e&&d.every(u=>n[u]==null)?(d.forEach(u=>{n[u]=s}),c=!0):o++}}),[...n]}function C5(t,e,r,n,o){if(t===-1)return-1;const i=r.indexOf(t);switch(o){case"tl":return i;case"tr":return i+e[t].width-1;case"bl":return i+(e[t].height-1)*n;case"br":return r.lastIndexOf(t)}}function _5(t,e){return e.flatMap((r,n)=>t.includes(r)?[n]:[])}let Jf=0;function Vt(t,e){e===void 0&&(e={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=e;n&&cancelAnimationFrame(Jf);const i=()=>t==null?void 0:t.focus({preventScroll:r});o?i():Jf=requestAnimationFrame(i)}var me=typeof document<"u"?k.useLayoutEffect:k.useEffect;function S5(t,e){const r=t.compareDocumentPosition(e);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}function E5(t,e){if(t.size!==e.size)return!1;for(const[r,n]of t.entries())if(n!==e.get(r))return!1;return!0}const Qf=C.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function O5(t){let{children:e,elementsRef:r,labelsRef:n}=t;const[o,i]=C.useState(()=>new Map),s=C.useCallback(l=>{i(c=>new Map(c).set(l,null))},[]),a=C.useCallback(l=>{i(c=>{const d=new Map(c);return d.delete(l),d})},[]);return me(()=>{const l=new Map(o);Array.from(l.keys()).sort(S5).forEach((d,u)=>{l.set(d,u)}),E5(o,l)||i(l)},[o]),C.createElement(Qf.Provider,{value:C.useMemo(()=>({register:s,unregister:a,map:o,elementsRef:r,labelsRef:n}),[s,a,o,r,n])},e)}function T5(t){let{label:e}=t===void 0?{}:t;const[r,n]=C.useState(null),o=C.useRef(null),{register:i,unregister:s,map:a,elementsRef:l,labelsRef:c}=C.useContext(Qf),d=C.useCallback(u=>{if(o.current=u,r!==null&&(l.current[r]=u,c)){var f;const h=e!==void 0;c.current[r]=h?e:(f=u==null?void 0:u.textContent)!=null?f:null}},[r,l,c,e]);return me(()=>{const u=o.current;if(u)return i(u),()=>{s(u)}},[i,s]),me(()=>{const u=o.current?a.get(o.current):null;u!=null&&n(u)},[a]),C.useMemo(()=>({ref:d,index:r??-1}),[r,d])}function Gn(){return Gn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Gn.apply(this,arguments)}let Ca=!1,N5=0;const eh=()=>"floating-ui-"+N5++;function M5(){const[t,e]=C.useState(()=>Ca?eh():void 0);return me(()=>{t==null&&e(eh())},[]),C.useEffect(()=>{Ca||(Ca=!0)},[]),t}const Ti=C.useId||M5;function P5(){const t=new Map;return{emit(e,r){var n;(n=t.get(e))==null||n.forEach(o=>o(r))},on(e,r){t.set(e,[...t.get(e)||[],r])},off(e,r){var n;t.set(e,((n=t.get(e))==null?void 0:n.filter(o=>o!==r))||[])}}}const A5=C.createContext(null),D5=C.createContext(null),Ni=()=>{var t;return((t=C.useContext(A5))==null?void 0:t.id)||null},Xn=()=>C.useContext(D5);function Cr(t){return"data-floating-ui-"+t}function Mt(t){const e=k.useRef(t);return me(()=>{e.current=t}),e}const th=Cr("safe-polygon");function _a(t,e,r){return r&&!pi(r)?0:typeof t=="number"?t:t==null?void 0:t[e]}function I5(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,dataRef:o,events:i,elements:{domReference:s,floating:a},refs:l}=t,{enabled:c=!0,delay:d=0,handleClose:u=null,mouseOnly:f=!1,restMs:h=0,move:g=!0}=e,m=Xn(),b=Ni(),v=Mt(u),y=Mt(d),_=C.useRef(),x=C.useRef(),w=C.useRef(),S=C.useRef(),T=C.useRef(!0),M=C.useRef(!1),N=C.useRef(()=>{}),E=C.useCallback(()=>{var O;const P=(O=o.current.openEvent)==null?void 0:O.type;return(P==null?void 0:P.includes("mouse"))&&P!=="mousedown"},[o]);C.useEffect(()=>{if(!c)return;function O(P){let{open:L}=P;L||(clearTimeout(x.current),clearTimeout(S.current),T.current=!0)}return i.on("openchange",O),()=>{i.off("openchange",O)}},[c,i]),C.useEffect(()=>{if(!c||!v.current||!r)return;function O(L){E()&&n(!1,L,"hover")}const P=Ue(a).documentElement;return P.addEventListener("mouseleave",O),()=>{P.removeEventListener("mouseleave",O)}},[a,r,n,c,v,E]);const I=C.useCallback(function(O,P,L){P===void 0&&(P=!0),L===void 0&&(L="hover");const z=_a(y.current,"close",_.current);z&&!w.current?(clearTimeout(x.current),x.current=setTimeout(()=>n(!1,O,L),z)):P&&(clearTimeout(x.current),n(!1,O,L))},[y,n]),A=C.useCallback(()=>{N.current(),w.current=void 0},[]),D=C.useCallback(()=>{if(M.current){const O=Ue(l.floating.current).body;O.style.pointerEvents="",O.removeAttribute(th),M.current=!1}},[l]);return C.useEffect(()=>{if(!c)return;function O(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function P(B){if(clearTimeout(x.current),T.current=!1,f&&!pi(_.current)||h>0&&_a(y.current,"open")===0)return;const j=_a(y.current,"open",_.current);j?x.current=setTimeout(()=>{n(!0,B,"hover")},j):n(!0,B,"hover")}function L(B){if(O())return;N.current();const j=Ue(a);if(clearTimeout(S.current),v.current){r||clearTimeout(x.current),w.current=v.current({...t,tree:m,x:B.clientX,y:B.clientY,onClose(){D(),A(),I(B,!0,"safe-polygon")}});const W=w.current;j.addEventListener("mousemove",W),N.current=()=>{j.removeEventListener("mousemove",W)};return}(_.current==="touch"?!Se(a,B.relatedTarget):!0)&&I(B)}function z(B){O()||v.current==null||v.current({...t,tree:m,x:B.clientX,y:B.clientY,onClose(){D(),A(),I(B)}})(B)}if(ge(s)){const B=s;return r&&B.addEventListener("mouseleave",z),a==null||a.addEventListener("mouseleave",z),g&&B.addEventListener("mousemove",P,{once:!0}),B.addEventListener("mouseenter",P),B.addEventListener("mouseleave",L),()=>{r&&B.removeEventListener("mouseleave",z),a==null||a.removeEventListener("mouseleave",z),g&&B.removeEventListener("mousemove",P),B.removeEventListener("mouseenter",P),B.removeEventListener("mouseleave",L)}}},[s,a,c,t,f,h,g,I,A,D,n,r,m,y,v,o]),me(()=>{var O;if(c&&r&&(O=v.current)!=null&&O.__options.blockPointerEvents&&E()){const L=Ue(a).body;if(L.setAttribute(th,""),L.style.pointerEvents="none",M.current=!0,ge(s)&&a){var P;const z=s,B=m==null||(P=m.nodesRef.current.find(j=>j.id===b))==null||(P=P.context)==null?void 0:P.elements.floating;return B&&(B.style.pointerEvents=""),z.style.pointerEvents="auto",a.style.pointerEvents="auto",()=>{z.style.pointerEvents="",a.style.pointerEvents=""}}}},[c,r,b,a,s,m,v,E]),me(()=>{r||(_.current=void 0,A(),D())},[r,A,D]),C.useEffect(()=>()=>{A(),clearTimeout(x.current),clearTimeout(S.current),D()},[c,s,A,D]),C.useMemo(()=>{if(!c)return{};function O(P){_.current=P.pointerType}return{reference:{onPointerDown:O,onPointerEnter:O,onMouseMove(P){r||h===0||(clearTimeout(S.current),S.current=setTimeout(()=>{T.current||n(!0,P.nativeEvent,"hover")},h))}},floating:{onMouseEnter(){clearTimeout(x.current)},onMouseLeave(P){I(P.nativeEvent,!1)}}}},[c,h,r,n,I])}function L5(t,e){var r;let n=[],o=(r=t.find(i=>i.id===e))==null?void 0:r.parentId;for(;o;){const i=t.find(s=>s.id===o);o=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function _r(t,e){let r=t.filter(o=>{var i;return o.parentId===e&&((i=o.context)==null?void 0:i.open)}),n=r;for(;n.length;)n=t.filter(o=>{var i;return(i=n)==null?void 0:i.some(s=>{var a;return o.parentId===s.id&&((a=o.context)==null?void 0:a.open)})}),r=r.concat(n);return r}function F5(t,e){let r,n=-1;function o(i,s){s>n&&(r=i,n=s),_r(t,i).forEach(l=>{o(l.id,s+1)})}return o(e,0),t.find(i=>i.id===r)}let Jr=new WeakMap,Mi=new WeakSet,Pi={},Sa=0;const z5=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,rh=t=>t&&(t.host||rh(t.parentNode)),B5=(t,e)=>e.map(r=>{if(t.contains(r))return r;const n=rh(r);return t.contains(n)?n:null}).filter(r=>r!=null);function $5(t,e,r,n){const o="data-floating-ui-inert",i=n?"inert":r?"aria-hidden":null,s=B5(e,t),a=new Set,l=new Set(s),c=[];Pi[o]||(Pi[o]=new WeakMap);const d=Pi[o];s.forEach(u),f(e),a.clear();function u(h){!h||a.has(h)||(a.add(h),h.parentNode&&u(h.parentNode))}function f(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,g=>{if(a.has(g))f(g);else{const m=i?g.getAttribute(i):null,b=m!==null&&m!=="false",v=(Jr.get(g)||0)+1,y=(d.get(g)||0)+1;Jr.set(g,v),d.set(g,y),c.push(g),v===1&&b&&Mi.add(g),y===1&&g.setAttribute(o,""),!b&&i&&g.setAttribute(i,"true")}})}return Sa++,()=>{c.forEach(h=>{const g=(Jr.get(h)||0)-1,m=(d.get(h)||0)-1;Jr.set(h,g),d.set(h,m),g||(!Mi.has(h)&&i&&h.removeAttribute(i),Mi.delete(h)),m||h.removeAttribute(o)}),Sa--,Sa||(Jr=new WeakMap,Jr=new WeakMap,Mi=new WeakSet,Pi={})}}function nh(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=Ue(t[0]).body;return $5(t.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,e,r)}const Zn=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function oh(t,e){const r=Ei(t,Zn());e==="prev"&&r.reverse();const n=r.indexOf(Et(Ue(t)));return r.slice(n+1)[0]}function ih(){return oh(document.body,"next")}function sh(){return oh(document.body,"prev")}function Jn(t,e){const r=e||t.currentTarget,n=t.relatedTarget;return!n||!Se(r,n)}function j5(t){Ei(t,Zn()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function H5(t){t.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const Ea={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let W5;function ah(t){t.key==="Tab"&&(t.target,clearTimeout(W5))}const Ai=C.forwardRef(function(e,r){const[n,o]=C.useState();me(()=>(la()&&o("button"),document.addEventListener("keydown",ah),()=>{document.removeEventListener("keydown",ah)}),[]);const i={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[Cr("focus-guard")]:"",style:Ea};return C.createElement("span",Gn({},e,i))}),lh=C.createContext(null),ch=Cr("portal");function V5(t){let{id:e,root:r}=t===void 0?{}:t;const[n,o]=C.useState(null),i=Ti(),s=dh(),a=C.useRef(null);return me(()=>()=>{n==null||n.remove(),queueMicrotask(()=>{a.current=null})},[n]),me(()=>{if(a.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=i,c.setAttribute(ch,""),l.appendChild(c),a.current=c,o(c)},[e,i]),me(()=>{if(a.current)return;let l=r||(s==null?void 0:s.portalNode);l&&!ge(l)&&(l=l.current),l=l||document.body;let c=null;e&&(c=document.createElement("div"),c.id=e,l.appendChild(c));const d=document.createElement("div");d.id=i,d.setAttribute(ch,""),l=c||l,l.appendChild(d),a.current=d,o(d)},[e,r,i,s]),n}function R5(t){let{children:e,id:r,root:n=null,preserveTabOrder:o=!0}=t;const i=V5({id:r,root:n}),[s,a]=C.useState(null),l=C.useRef(null),c=C.useRef(null),d=C.useRef(null),u=C.useRef(null),f=!!s&&!s.modal&&s.open&&o&&!!(n||i);return C.useEffect(()=>{if(!i||!o||s!=null&&s.modal)return;function h(g){i&&Jn(g)&&(g.type==="focusin"?H5:j5)(i)}return i.addEventListener("focusin",h,!0),i.addEventListener("focusout",h,!0),()=>{i.removeEventListener("focusin",h,!0),i.removeEventListener("focusout",h,!0)}},[i,o,s==null?void 0:s.modal]),C.createElement(lh.Provider,{value:C.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:i,setFocusManagerState:a}),[o,i])},f&&i&&C.createElement(Ai,{"data-type":"outside",ref:l,onFocus:h=>{if(Jn(h,i)){var g;(g=d.current)==null||g.focus()}else{const m=sh()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus()}}}),f&&i&&C.createElement("span",{"aria-owns":i.id,style:Ea}),i&&Va.createPortal(e,i),f&&i&&C.createElement(Ai,{"data-type":"outside",ref:c,onFocus:h=>{if(Jn(h,i)){var g;(g=u.current)==null||g.focus()}else{const m=ih()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,h.nativeEvent))}}}))}const dh=()=>C.useContext(lh),Y5=20;let Sr=[];function Oa(t){Sr=Sr.filter(r=>r.isConnected);let e=t;if(!(!e||xr(e)==="body")){if(!v5(e,Zn())){const r=Ei(e,Zn())[0];if(!r)return;e=r}Sr.push(e),Sr.length>Y5&&(Sr=Sr.slice(-20))}}function uh(){return Sr.slice().reverse().find(t=>t.isConnected)}const U5=C.forwardRef(function(e,r){return C.createElement("button",Gn({},e,{type:"button",ref:r,tabIndex:-1,style:Ea}))});function fh(t){const{context:e,children:r,disabled:n=!1,order:o=["content"],guards:i=!0,initialFocus:s=0,returnFocus:a=!0,modal:l=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=t,{open:u,refs:f,nodeId:h,onOpenChange:g,events:m,dataRef:b,elements:{domReference:v,floating:y}}=e,_=typeof s=="number"&&s<0,x=Ef(v)&&_,w=z5()?i:!0,S=Mt(o),T=Mt(s),M=Mt(a),N=Xn(),E=dh(),I=C.useRef(null),A=C.useRef(null),D=C.useRef(!1),O=C.useRef(!1),P=E!=null,L=C.useCallback(function($){return $===void 0&&($=y),$?Ei($,Zn()):[]},[y]),z=C.useCallback($=>{const W=L($);return S.current.map(V=>v&&V==="reference"?v:y&&V==="floating"?y:W).filter(Boolean).flat()},[v,y,S,L]);C.useEffect(()=>{if(n||!l)return;function $(V){if(V.key==="Tab"){Se(y,Et(Ue(y)))&&L().length===0&&!x&&je(V);const Y=z(),U=tr(V);S.current[0]==="reference"&&U===v&&(je(V),V.shiftKey?Vt(Y[Y.length-1]):Vt(Y[1])),S.current[1]==="floating"&&U===y&&V.shiftKey&&(je(V),Vt(Y[0]))}}const W=Ue(y);return W.addEventListener("keydown",$),()=>{W.removeEventListener("keydown",$)}},[n,v,y,l,S,x,L,z]),C.useEffect(()=>{if(n||!d)return;function $(){O.current=!0,setTimeout(()=>{O.current=!1})}function W(V){const Y=V.relatedTarget;queueMicrotask(()=>{const U=!(Se(v,Y)||Se(y,Y)||Se(Y,y)||Se(E==null?void 0:E.portalNode,Y)||Y!=null&&Y.hasAttribute(Cr("focus-guard"))||N&&(_r(N.nodesRef.current,h).find(q=>{var G,de;return Se((G=q.context)==null?void 0:G.elements.floating,Y)||Se((de=q.context)==null?void 0:de.elements.domReference,Y)})||L5(N.nodesRef.current,h).find(q=>{var G,de;return((G=q.context)==null?void 0:G.elements.floating)===Y||((de=q.context)==null?void 0:de.elements.domReference)===Y})));Y&&U&&!O.current&&Y!==uh()&&(D.current=!0,g(!1,V))})}if(y&&$e(v))return v.addEventListener("focusout",W),v.addEventListener("pointerdown",$),!l&&y.addEventListener("focusout",W),()=>{v.removeEventListener("focusout",W),v.removeEventListener("pointerdown",$),!l&&y.removeEventListener("focusout",W)}},[n,v,y,l,h,N,E,g,d]),C.useEffect(()=>{var $;if(n)return;const W=Array.from((E==null||($=E.portalNode)==null?void 0:$.querySelectorAll("["+Cr("portal")+"]"))||[]);if(y){const V=[y,...W,I.current,A.current,S.current.includes("reference")||x?v:null].filter(U=>U!=null),Y=l||x?nh(V,w,!w):nh(V);return()=>{Y()}}},[n,v,y,l,S,E,x,w]),me(()=>{if(n||!y)return;const $=Ue(y),W=Et($);queueMicrotask(()=>{const V=z(y),Y=T.current,U=(typeof Y=="number"?V[Y]:Y.current)||y,q=Se(y,W);!_&&!q&&u&&Vt(U,{preventScroll:U===y})})},[n,u,y,_,z,T]),me(()=>{if(n||!y)return;let $=!1;const W=Ue(y),V=Et(W),Y=b.current;Oa(V);function U(q){let{reason:G,event:de,nested:X}=q;G==="escape-key"&&f.domReference.current&&Oa(f.domReference.current),G==="hover"&&de.type==="mouseleave"&&(D.current=!0),G==="outside-press"&&(X?(D.current=!1,$=!0):D.current=!(_f(de)||aa(de)))}return m.on("openchange",U),()=>{m.off("openchange",U);const q=Et(W),G=Se(y,q)||N&&_r(N.nodesRef.current,h).some(oe=>{var Ie;return Se((Ie=oe.context)==null?void 0:Ie.elements.floating,q)});(G||Y.openEvent&&["click","mousedown"].includes(Y.openEvent.type))&&f.domReference.current&&Oa(f.domReference.current);const X=uh();M.current&&!D.current&&$e(X)&&(!(X!==q&&q!==W.body)||G)&&Vt(X,{cancelPrevious:!1,preventScroll:$})}},[n,y,M,b,f,m,N,h]),me(()=>{if(!(n||!E))return E.setFocusManagerState({modal:l,closeOnFocusOut:d,open:u,onOpenChange:g,refs:f}),()=>{E.setFocusManagerState(null)}},[n,E,l,u,g,f,d]),me(()=>{if(n||!y||typeof MutationObserver!="function"||_)return;const $=()=>{const V=y.getAttribute("tabindex");S.current.includes("floating")||Et(Ue(y))!==f.domReference.current&&L().length===0?V!=="0"&&y.setAttribute("tabindex","0"):V!=="-1"&&y.setAttribute("tabindex","-1")};$();const W=new MutationObserver($);return W.observe(y,{childList:!0,subtree:!0,attributes:!0}),()=>{W.disconnect()}},[n,y,f,S,L,_]);function B($){return n||!c||!l?null:C.createElement(U5,{ref:$==="start"?I:A,onClick:W=>g(!1,W.nativeEvent)},typeof c=="string"?c:"Dismiss")}const j=!n&&w&&(P||l);return C.createElement(C.Fragment,null,j&&C.createElement(Ai,{"data-type":"inside",ref:E==null?void 0:E.beforeInsideRef,onFocus:$=>{if(l){const V=z();Vt(o[0]==="reference"?V[0]:V[V.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(D.current=!1,Jn($,E.portalNode)){const V=ih()||v;V==null||V.focus()}else{var W;(W=E.beforeOutsideRef.current)==null||W.focus()}}}),!x&&B("start"),r,B("end"),j&&C.createElement(Ai,{"data-type":"inside",ref:E==null?void 0:E.afterInsideRef,onFocus:$=>{if(l)Vt(z()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(d&&(D.current=!0),Jn($,E.portalNode)){const V=sh()||v;V==null||V.focus()}else{var W;(W=E.afterOutsideRef.current)==null||W.focus()}}}))}const Ta=new Set,q5=C.forwardRef(function(e,r){let{lockScroll:n=!1,...o}=e;const i=Ti();return me(()=>{if(!n)return;Ta.add(i);const s=/iP(hone|ad|od)|iOS/.test(sa()),a=document.body.style,c=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth,u=a.left?parseFloat(a.left):window.pageXOffset,f=a.top?parseFloat(a.top):window.pageYOffset;if(a.overflow="hidden",d&&(a[c]=d+"px"),s){var h,g;const m=((h=window.visualViewport)==null?void 0:h.offsetLeft)||0,b=((g=window.visualViewport)==null?void 0:g.offsetTop)||0;Object.assign(a,{position:"fixed",top:-(f-Math.floor(b))+"px",left:-(u-Math.floor(m))+"px",right:"0"})}return()=>{Ta.delete(i),Ta.size===0&&(Object.assign(a,{overflow:"",[c]:""}),s&&(Object.assign(a,{position:"",top:"",left:"",right:""}),window.scrollTo(u,f)))}},[i,n]),C.createElement("div",Gn({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function hh(t){return $e(t.target)&&t.target.tagName==="BUTTON"}function gh(t){return ua(t)}function ph(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=t,{enabled:s=!0,event:a="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=e,u=C.useRef(),f=C.useRef(!1);return C.useMemo(()=>s?{reference:{onPointerDown(h){u.current=h.pointerType},onMouseDown(h){h.button===0&&(pi(u.current,!0)&&c||a!=="click"&&(r&&l&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")?n(!1,h.nativeEvent,"click"):(h.preventDefault(),n(!0,h.nativeEvent,"click"))))},onClick(h){if(a==="mousedown"&&u.current){u.current=void 0;return}pi(u.current,!0)&&c||(r&&l&&(!o.current.openEvent||o.current.openEvent.type==="click")?n(!1,h.nativeEvent,"click"):n(!0,h.nativeEvent,"click"))},onKeyDown(h){u.current=void 0,!(h.defaultPrevented||!d||hh(h))&&(h.key===" "&&!gh(i)&&(h.preventDefault(),f.current=!0),h.key==="Enter"&&n(!(r&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||hh(h)||gh(i)||h.key===" "&&f.current&&(f.current=!1,n(!(r&&l),h.nativeEvent,"click"))}}}:{},[s,o,a,c,d,i,l,r,n])}const K5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},G5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},mh=t=>{var e,r;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(r=t==null?void 0:t.outsidePress)!=null?r:!0}};function bh(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,nodeId:o,elements:{reference:i,domReference:s,floating:a},dataRef:l}=t,{enabled:c=!0,escapeKey:d=!0,outsidePress:u=!0,outsidePressEvent:f="pointerdown",referencePress:h=!1,referencePressEvent:g="pointerdown",ancestorScroll:m=!1,bubbles:b,capture:v}=e,y=Xn(),_=Nt(typeof u=="function"?u:()=>!1),x=typeof u=="function"?_:u,w=C.useRef(!1),S=C.useRef(!1),{escapeKey:T,outsidePress:M}=mh(b),{escapeKey:N,outsidePress:E}=mh(v),I=Nt(P=>{if(!r||!c||!d||P.key!=="Escape")return;const L=y?_r(y.nodesRef.current,o):[];if(!T&&(P.stopPropagation(),L.length>0)){let z=!0;if(L.forEach(B=>{var j;if((j=B.context)!=null&&j.open&&!B.context.dataRef.current.__escapeKeyBubbles){z=!1;return}}),!z)return}n(!1,d2(P)?P.nativeEvent:P,"escape-key")}),A=Nt(P=>{var L;const z=()=>{var B;I(P),(B=tr(P))==null||B.removeEventListener("keydown",z)};(L=tr(P))==null||L.addEventListener("keydown",z)}),D=Nt(P=>{const L=w.current;w.current=!1;const z=S.current;if(S.current=!1,f==="click"&&z||L||typeof x=="function"&&!x(P))return;const B=tr(P),j="["+Cr("inert")+"]",$=Ue(a).querySelectorAll(j);let W=ge(B)?B:null;for(;W&&!Qt(W);){const U=Ht(W);if(Qt(U)||!ge(U))break;W=U}if($.length&&ge(B)&&!u2(B)&&!Se(B,a)&&Array.from($).every(U=>!Se(W,U)))return;if($e(B)&&a){const U=B.clientWidth>0&&B.scrollWidth>B.clientWidth,q=B.clientHeight>0&&B.scrollHeight>B.clientHeight;let G=q&&P.offsetX>B.clientWidth;if(q&&ut(B).direction==="rtl"&&(G=P.offsetX<=B.offsetWidth-B.clientWidth),G||U&&P.offsetY>B.clientHeight)return}const V=y&&_r(y.nodesRef.current,o).some(U=>{var q;return da(P,(q=U.context)==null?void 0:q.elements.floating)});if(da(P,a)||da(P,s)||V)return;const Y=y?_r(y.nodesRef.current,o):[];if(Y.length>0){let U=!0;if(Y.forEach(q=>{var G;if((G=q.context)!=null&&G.open&&!q.context.dataRef.current.__outsidePressBubbles){U=!1;return}}),!U)return}n(!1,P,"outside-press")}),O=Nt(P=>{var L;const z=()=>{var B;D(P),(B=tr(P))==null||B.removeEventListener(f,z)};(L=tr(P))==null||L.addEventListener(f,z)});return C.useEffect(()=>{if(!r||!c)return;l.current.__escapeKeyBubbles=T,l.current.__outsidePressBubbles=M;function P(B){n(!1,B,"ancestor-scroll")}const L=Ue(a);d&&L.addEventListener("keydown",N?A:I,N),x&&L.addEventListener(f,E?O:D,E);let z=[];return m&&(ge(s)&&(z=er(s)),ge(a)&&(z=z.concat(er(a))),!ge(i)&&i&&i.contextElement&&(z=z.concat(er(i.contextElement)))),z=z.filter(B=>{var j;return B!==((j=L.defaultView)==null?void 0:j.visualViewport)}),z.forEach(B=>{B.addEventListener("scroll",P,{passive:!0})}),()=>{d&&L.removeEventListener("keydown",N?A:I,N),x&&L.removeEventListener(f,E?O:D,E),z.forEach(B=>{B.removeEventListener("scroll",P)})}},[l,a,s,i,d,x,f,r,n,m,c,T,M,I,N,A,D,E,O]),C.useEffect(()=>{w.current=!1},[x,f]),C.useMemo(()=>c?{reference:{onKeyDown:I,[K5[g]]:P=>{h&&n(!1,P.nativeEvent,"reference-press")}},floating:{onKeyDown:I,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[G5[f]]:()=>{w.current=!0}}}:{},[c,h,f,g,n,I])}let Na;process.env.NODE_ENV!=="production"&&(Na=new Set);function yh(t){var e;t===void 0&&(t={});const{open:r=!1,onOpenChange:n,nodeId:o}=t;if(process.env.NODE_ENV!=="production"){var i;const M="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";if((i=t.elements)!=null&&i.reference&&!ge(t.elements.reference)){var s;if(!((s=Na)!=null&&s.has(M))){var a;(a=Na)==null||a.add(M),console.error(M)}}}const[l,c]=C.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=K2(t),f=Xn(),h=Ni()!=null,g=Nt((M,N,E)=>{M&&(b.current.openEvent=N),v.emit("openchange",{open:M,event:N,reason:E,nested:h}),n==null||n(M,N,E)}),m=C.useRef(null),b=C.useRef({}),v=C.useState(()=>P5())[0],y=Ti(),_=C.useCallback(M=>{const N=ge(M)?{getBoundingClientRect:()=>M.getBoundingClientRect(),contextElement:M}:M;u.refs.setReference(N)},[u.refs]),x=C.useCallback(M=>{(ge(M)||M===null)&&(m.current=M,c(M)),(ge(u.refs.reference.current)||u.refs.reference.current===null||M!==null&&!ge(M))&&u.refs.setReference(M)},[u.refs]),w=C.useMemo(()=>({...u.refs,setReference:x,setPositionReference:_,domReference:m}),[u.refs,x,_]),S=C.useMemo(()=>({...u.elements,domReference:d}),[u.elements,d]),T=C.useMemo(()=>({...u,refs:w,elements:S,dataRef:b,nodeId:o,floatingId:y,events:v,open:r,onOpenChange:g}),[u,o,y,v,r,g,w,S]);return me(()=>{const M=f==null?void 0:f.nodesRef.current.find(N=>N.id===o);M&&(M.context=T)}),C.useMemo(()=>({...u,context:T,refs:w,elements:S}),[u,w,S,T])}function X5(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,events:o,refs:i,elements:{domReference:s}}=t,{enabled:a=!0,visibleOnly:l=!0}=e,c=C.useRef(!1),d=C.useRef(),u=C.useRef(!0);return C.useEffect(()=>{if(!a)return;const f=Qe(s);function h(){!r&&$e(s)&&s===Et(Ue(s))&&(c.current=!0)}function g(){u.current=!0}return f.addEventListener("blur",h),f.addEventListener("keydown",g,!0),()=>{f.removeEventListener("blur",h),f.removeEventListener("keydown",g,!0)}},[s,r,a]),C.useEffect(()=>{if(!a)return;function f(h){let{reason:g}=h;(g==="reference-press"||g==="escape-key")&&(c.current=!0)}return o.on("openchange",f),()=>{o.off("openchange",f)}},[o,a]),C.useEffect(()=>()=>{clearTimeout(d.current)},[]),C.useMemo(()=>a?{reference:{onPointerDown(f){aa(f.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const h=tr(f.nativeEvent);if(l&&ge(h))try{if(la()&&Sf())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!ua(h))return}n(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const h=f.relatedTarget,g=ge(h)&&h.hasAttribute(Cr("focus-guard"))&&h.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{const m=Et(s?s.ownerDocument:document);!h&&m===s||Se(i.floating.current,m)||Se(s,m)||g||n(!1,f.nativeEvent,"focus")})}}}:{},[a,l,s,i,n])}const vh="active",xh="selected";function Ma(t,e,r){const n=new Map,o=r==="item";let i=t;if(o&&t){const{[vh]:s,[xh]:a,...l}=t;i=l}return{...r==="floating"&&{tabIndex:-1},...i,...e.map(s=>{const a=s?s[r]:null;return typeof a=="function"?t?a(t):null:a}).concat(t).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[c,d]=l;if(!(o&&[vh,xh].includes(c)))if(c.indexOf("on")===0){if(n.has(c)||n.set(c,[]),typeof d=="function"){var u;(u=n.get(c))==null||u.push(d),s[c]=function(){for(var f,h=arguments.length,g=new Array(h),m=0;m<h;m++)g[m]=arguments[m];return(f=n.get(c))==null?void 0:f.map(b=>b(...g)).find(b=>b!==void 0)}}}else s[c]=d}),s),{})}}function wh(t){t===void 0&&(t=[]);const e=t,r=C.useCallback(i=>Ma(i,t,"reference"),e),n=C.useCallback(i=>Ma(i,t,"floating"),e),o=C.useCallback(i=>Ma(i,t,"item"),t.map(i=>i==null?void 0:i.item));return C.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])}let kh=!1;function Di(t,e,r){switch(t){case"vertical":return e;case"horizontal":return r;default:return e||r}}function Ch(t,e){return Di(e,t===wa||t===qn,t===Xr||t===Zr)}function Pa(t,e,r){return Di(e,t===qn,r?t===Xr:t===Zr)||t==="Enter"||t===" "||t===""}function Z5(t,e,r){return Di(e,r?t===Xr:t===Zr,t===qn)}function _h(t,e,r){return Di(e,r?t===Zr:t===Xr,t===wa)}function J5(t,e){const{open:r,onOpenChange:n,refs:o,elements:{domReference:i,floating:s}}=t,{listRef:a,activeIndex:l,onNavigate:c=()=>{},enabled:d=!0,selectedIndex:u=null,allowEscape:f=!1,loop:h=!1,nested:g=!1,rtl:m=!1,virtual:b=!1,focusItemOnOpen:v="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:_=!0,disabledIndices:x=void 0,orientation:w="vertical",cols:S=1,scrollItemIntoView:T=!0,virtualItemRef:M,itemSizes:N,dense:E=!1}=e;process.env.NODE_ENV!=="production"&&(f&&(h||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),b||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),w==="vertical"&&S>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const I=Ni(),A=Xn(),D=Nt(c),O=C.useRef(v),P=C.useRef(u??-1),L=C.useRef(null),z=C.useRef(!0),B=C.useRef(D),j=C.useRef(!!s),$=C.useRef(!1),W=C.useRef(!1),V=Mt(x),Y=Mt(r),U=Mt(T),[q,G]=C.useState(),[de,X]=C.useState(),oe=Nt(function(J,Ee,le){le===void 0&&(le=!1);const te=J.current[Ee.current];te&&(b?(G(te.id),A==null||A.events.emit("virtualfocus",te),M&&(M.current=te)):Vt(te,{preventScroll:!0,sync:Sf()&&la()?kh||$.current:!1}),requestAnimationFrame(()=>{const he=U.current;he&&te&&(le||!z.current)&&(te.scrollIntoView==null||te.scrollIntoView(typeof he=="boolean"?{block:"nearest",inline:"nearest"}:he))}))});me(()=>{document.createElement("div").focus({get preventScroll(){return kh=!0,!1}})},[]),me(()=>{d&&(r&&s?O.current&&u!=null&&(W.current=!0,P.current=u,D(u)):j.current&&(P.current=-1,B.current(null)))},[d,r,s,u,D]),me(()=>{if(d&&r&&s)if(l==null){if($.current=!1,u!=null)return;if(j.current&&(P.current=-1,oe(a,P)),!j.current&&O.current&&(L.current!=null||O.current===!0&&L.current==null)){let J=0;const Ee=()=>{a.current[0]==null?(J<2&&(J?requestAnimationFrame:queueMicrotask)(Ee),J++):(P.current=L.current==null||Pa(L.current,w,m)||g?ka(a,V.current):Zf(a,V.current),L.current=null,D(P.current))};Ee()}}else Kn(a,l)||(P.current=l,oe(a,P,W.current),W.current=!1)},[d,r,s,l,u,g,a,w,m,D,oe,V]),me(()=>{var J;if(!d||s||!A||b||!j.current)return;const Ee=A.nodesRef.current,le=(J=Ee.find(Q=>Q.id===I))==null||(J=J.context)==null?void 0:J.elements.floating,te=Et(Ue(s)),he=Ee.some(Q=>Q.context&&Se(Q.context.elements.floating,te));le&&!he&&z.current&&le.focus({preventScroll:!0})},[d,s,A,I,b]),me(()=>{if(!d||!A||!b||I)return;function J(Ee){X(Ee.id),M&&(M.current=Ee)}return A.events.on("virtualfocus",J),()=>{A.events.off("virtualfocus",J)}},[d,A,b,I,M]),me(()=>{B.current=D,j.current=!!s}),me(()=>{r||(L.current=null)},[r]);const Ie=l!=null,He=C.useMemo(()=>{function J(le){if(!r)return;const te=a.current.indexOf(le);te!==-1&&D(te)}return{onFocus(le){let{currentTarget:te}=le;J(te)},onClick:le=>{let{currentTarget:te}=le;return te.focus({preventScroll:!0})},...y&&{onMouseMove(le){let{currentTarget:te}=le;J(te)},onPointerLeave(le){let{pointerType:te}=le;!z.current||te==="touch"||(P.current=-1,oe(a,P),D(null),b||Vt(o.floating.current,{preventScroll:!0}))}}}},[r,o,oe,y,a,D,b]);return C.useMemo(()=>{if(!d)return{};const J=V.current;function Ee(R){if(z.current=!1,$.current=!0,!Y.current&&R.currentTarget===o.floating.current)return;if(g&&_h(R.key,w,m)){je(R),n(!1,R.nativeEvent,"list-navigation"),$e(i)&&!b&&i.focus();return}const Oe=P.current,ie=ka(a,J),ke=Zf(a,J);if(R.key==="Home"&&(je(R),P.current=ie,D(P.current)),R.key==="End"&&(je(R),P.current=ke,D(P.current)),S>1){const Le=N||Array.from({length:a.current.length},()=>({width:1,height:1})),Pe=k5(Le,S,E),ft=Pe.findIndex(ot=>ot!=null&&!(J!=null&&J.includes(ot))),yt=Pe.reduce((ot,nr,it)=>nr!=null&&!(J!=null&&J.includes(nr))?it:ot,-1);if(P.current=Pe[w5({current:Pe.map(ot=>ot!=null?a.current[ot]:null)},{event:R,orientation:w,loop:h,cols:S,disabledIndices:_5([...J||[],void 0],Pe),minIndex:ft,maxIndex:yt,prevIndex:C5(P.current,Le,Pe,S,R.key===qn?"bl":R.key===Zr?"tr":"tl"),stopEvent:!0})],D(P.current),w==="both")return}if(Ch(R.key,w)){if(je(R),r&&!b&&Et(R.currentTarget.ownerDocument)===R.currentTarget){P.current=Pa(R.key,w,m)?ie:ke,D(P.current);return}Pa(R.key,w,m)?h?P.current=Oe>=ke?f&&Oe!==a.current.length?-1:ie:Ye(a,{startingIndex:Oe,disabledIndices:J}):P.current=Math.min(ke,Ye(a,{startingIndex:Oe,disabledIndices:J})):h?P.current=Oe<=ie?f&&Oe!==-1?a.current.length:ke:Ye(a,{startingIndex:Oe,decrement:!0,disabledIndices:J}):P.current=Math.max(ie,Ye(a,{startingIndex:Oe,decrement:!0,disabledIndices:J})),Kn(a,P.current)?D(null):D(P.current)}}function le(R){v==="auto"&&_f(R.nativeEvent)&&(O.current=!0)}function te(R){O.current=v,v==="auto"&&aa(R.nativeEvent)&&(O.current=!0)}const he=b&&r&&Ie&&{"aria-activedescendant":de||q},Q=a.current.find(R=>(R==null?void 0:R.id)===q);return{reference:{...he,onKeyDown(R){z.current=!1;const Oe=R.key.indexOf("Arrow")===0,ie=Z5(R.key,w,m),ke=_h(R.key,w,m),Le=Ch(R.key,w),Pe=(g?ie:Le)||R.key==="Enter"||R.key.trim()==="";if(b&&r){const nr=A==null?void 0:A.nodesRef.current.find(Fi=>Fi.parentId==null),it=A&&nr?F5(A.nodesRef.current,nr.id):null;if(Oe&&it&&M){const Fi=new KeyboardEvent("keydown",{key:R.key,bubbles:!0});if(ie||ke){var ft,yt;const PC=((ft=it.context)==null?void 0:ft.elements.domReference)===R.currentTarget,Rg=ke&&!PC?(yt=it.context)==null?void 0:yt.elements.domReference:ie?Q:null;Rg&&(je(R),Rg.dispatchEvent(Fi),X(void 0))}if(Le&&it.context&&it.context.open&&it.parentId&&R.currentTarget!==it.context.elements.domReference){var ot;je(R),(ot=it.context.elements.domReference)==null||ot.dispatchEvent(Fi);return}}return Ee(R)}if(!(!r&&!_&&Oe)){if(Pe&&(L.current=g&&Le?null:R.key),g){ie&&(je(R),r?(P.current=ka(a,J),D(P.current)):n(!0,R.nativeEvent,"list-navigation"));return}Le&&(u!=null&&(P.current=u),je(R),!r&&_?n(!0,R.nativeEvent,"list-navigation"):Ee(R),r&&D(P.current))}},onFocus(){r&&D(null)},onPointerDown:te,onMouseDown:le,onClick:le},floating:{"aria-orientation":w==="both"?void 0:w,...!Ef(i)&&he,onKeyDown:Ee,onPointerMove(){z.current=!0}},item:He}},[i,o,q,de,V,Y,a,d,w,m,b,r,Ie,g,u,_,f,S,h,v,D,n,He,A,M,N,E])}const Q5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Sh(t,e){var r;e===void 0&&(e={});const{open:n,floatingId:o}=t,{enabled:i=!0,role:s="dialog"}=e,a=(r=Q5.get(s))!=null?r:s,l=Ti(),d=Ni()!=null;return C.useMemo(()=>{if(!i)return{};const u={id:o,...a&&{role:a}};return a==="tooltip"||s==="label"?{reference:{["aria-"+(s==="label"?"labelledby":"describedby")]:n?o:void 0},floating:u}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":n?o:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:l},...a==="menu"&&d&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},floating:{...u,...a==="menu"&&{"aria-labelledby":l}},item(f){let{active:h,selected:g}=f;const m={role:"option",...h&&{id:o+"-option"}};switch(s){case"select":return{...m,"aria-selected":h&&g};case"combobox":return{...m,...h&&{"aria-selected":!0}}}return{}}}},[i,s,a,n,o,l,d])}function eC(t,e){var r;const{open:n,dataRef:o}=t,{listRef:i,activeIndex:s,onMatch:a,onTypingChange:l,enabled:c=!0,findMatch:d=null,resetMs:u=750,ignoreKeys:f=[],selectedIndex:h=null}=e,g=C.useRef(),m=C.useRef(""),b=C.useRef((r=h??s)!=null?r:-1),v=C.useRef(null),y=Nt(a),_=Nt(l),x=Mt(d),w=Mt(f);return me(()=>{n&&(clearTimeout(g.current),v.current=null,m.current="")},[n]),me(()=>{if(n&&m.current===""){var S;b.current=(S=h??s)!=null?S:-1}},[n,h,s]),C.useMemo(()=>{if(!c)return{};function S(N){N?o.current.typing||(o.current.typing=N,_(N)):o.current.typing&&(o.current.typing=N,_(N))}function T(N,E,I){const A=x.current?x.current(E,I):E.find(D=>(D==null?void 0:D.toLocaleLowerCase().indexOf(I.toLocaleLowerCase()))===0);return A?N.indexOf(A):-1}function M(N){const E=i.current;if(m.current.length>0&&m.current[0]!==" "&&(T(E,E,m.current)===-1?S(!1):N.key===" "&&je(N)),E==null||w.current.includes(N.key)||N.key.length!==1||N.ctrlKey||N.metaKey||N.altKey)return;n&&N.key!==" "&&(je(N),S(!0)),E.every(O=>{var P,L;return O?((P=O[0])==null?void 0:P.toLocaleLowerCase())!==((L=O[1])==null?void 0:L.toLocaleLowerCase()):!0})&&m.current===N.key&&(m.current="",b.current=v.current),m.current+=N.key,clearTimeout(g.current),g.current=setTimeout(()=>{m.current="",b.current=v.current,S(!1)},u);const A=b.current,D=T(E,[...E.slice((A||0)+1),...E.slice(0,(A||0)+1)],m.current);D!==-1?(y(D),v.current=D):N.key!==" "&&(m.current="",S(!1))}return{reference:{onKeyDown:M},floating:{onKeyDown:M,onKeyUp(N){N.key===" "&&S(!1)}}}},[c,n,o,i,u,w,x,y,_])}function Eh(t,e){const[r,n]=t;let o=!1;const i=e.length;for(let s=0,a=i-1;s<i;a=s++){const[l,c]=e[s]||[0,0],[d,u]=e[a]||[0,0];c>=n!=u>=n&&r<=(d-l)*(n-c)/(u-c)+l&&(o=!o)}return o}function tC(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function rC(t){t===void 0&&(t={});const{buffer:e=.5,blockPointerEvents:r=!1,requireIntent:n=!0}=t;let o,i=!1,s=null,a=null,l=performance.now();function c(u,f){const h=performance.now(),g=h-l;if(s===null||a===null||g===0)return s=u,a=f,l=h,null;const m=u-s,b=f-a,y=Math.sqrt(m*m+b*b)/g;return s=u,a=f,l=h,y}const d=u=>{let{x:f,y:h,placement:g,elements:m,onClose:b,nodeId:v,tree:y}=u;return function(x){function w(){clearTimeout(o),b()}if(clearTimeout(o),!m.domReference||!m.floating||g==null||f==null||h==null)return;const{clientX:S,clientY:T}=x,M=[S,T],N=tr(x),E=x.type==="mouseleave",I=Se(m.floating,N),A=Se(m.domReference,N),D=m.domReference.getBoundingClientRect(),O=m.floating.getBoundingClientRect(),P=g.split("-")[0],L=f>O.right-O.width/2,z=h>O.bottom-O.height/2,B=tC(M,D),j=O.width>D.width,$=O.height>D.height,W=(j?D:O).left,V=(j?D:O).right,Y=($?D:O).top,U=($?D:O).bottom;if(I&&(i=!0,!E))return;if(A&&(i=!1),A&&!E){i=!0;return}if(E&&ge(x.relatedTarget)&&Se(m.floating,x.relatedTarget)||y&&_r(y.nodesRef.current,v).some(de=>{let{context:X}=de;return X==null?void 0:X.open}))return;if(P==="top"&&h>=D.bottom-1||P==="bottom"&&h<=D.top+1||P==="left"&&f>=D.right-1||P==="right"&&f<=D.left+1)return w();let q=[];switch(P){case"top":q=[[W,D.top+1],[W,O.bottom-1],[V,O.bottom-1],[V,D.top+1]];break;case"bottom":q=[[W,O.top+1],[W,D.bottom-1],[V,D.bottom-1],[V,O.top+1]];break;case"left":q=[[O.right-1,U],[O.right-1,Y],[D.left+1,Y],[D.left+1,U]];break;case"right":q=[[D.right-1,U],[D.right-1,Y],[O.left+1,Y],[O.left+1,U]];break}function G(de){let[X,oe]=de;switch(P){case"top":{const Ie=[j?X+e/2:L?X+e*4:X-e*4,oe+e+1],He=[j?X-e/2:L?X+e*4:X-e*4,oe+e+1],J=[[O.left,L||j?O.bottom-e:O.top],[O.right,L?j?O.bottom-e:O.top:O.bottom-e]];return[Ie,He,...J]}case"bottom":{const Ie=[j?X+e/2:L?X+e*4:X-e*4,oe-e],He=[j?X-e/2:L?X+e*4:X-e*4,oe-e],J=[[O.left,L||j?O.top+e:O.bottom],[O.right,L?j?O.top+e:O.bottom:O.top+e]];return[Ie,He,...J]}case"left":{const Ie=[X+e+1,$?oe+e/2:z?oe+e*4:oe-e*4],He=[X+e+1,$?oe-e/2:z?oe+e*4:oe-e*4];return[...[[z||$?O.right-e:O.left,O.top],[z?$?O.right-e:O.left:O.right-e,O.bottom]],Ie,He]}case"right":{const Ie=[X-e,$?oe+e/2:z?oe+e*4:oe-e*4],He=[X-e,$?oe-e/2:z?oe+e*4:oe-e*4],J=[[z||$?O.left+e:O.right,O.top],[z?$?O.left+e:O.right:O.left+e,O.bottom]];return[Ie,He,...J]}}}if(!Eh([S,T],q)){if(i&&!B)return w();if(!E&&n){const de=c(x.clientX,x.clientY);if(de!==null&&de<.1)return w()}Eh([S,T],G([f,h]))?!i&&n&&(o=window.setTimeout(w,40)):w()}}};return d.__options={blockPointerEvents:r},d}const nC=({arrowRef:t,placement:e})=>{const r=[];return r.push(X2(8)),r.push(e==="auto"?Q2():J2()),r.push(Z2({padding:8})),t!=null&&t.current&&r.push(e5({element:t.current})),r},oC=({placement:t})=>t==="auto"?void 0:t,iC=({placement:t})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[t.split("-")[0]],Oh=({open:t,arrowRef:e,placement:r="top",setOpen:n})=>yh({placement:oC({placement:r}),open:t,onOpenChange:n,whileElementsMounted:Hf,middleware:nC({placement:r,arrowRef:e})}),Th=({context:t,trigger:e,role:r="tooltip",interactions:n=[]})=>wh([ph(t,{enabled:e==="click"}),I5(t,{enabled:e==="hover",handleClose:rC()}),bh(t),Sh(t,{role:r}),...n]),Nh=k.createContext(void 0);function Aa(){const t=k.useContext(Nh);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const Da=({className:t,theme:e={},...r})=>{const{theme:n}=Aa(),o=e.divider??n.floating.divider;return p.jsx("div",{className:F(o,t),...r})},Mh=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Aa(),i=r.header??o.floating.header;return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:F(i,e),...n,children:t}),p.jsx(Da,{})]})},Ph=k.forwardRef(({children:t,className:e,icon:r,onClick:n,theme:o={},...i},s)=>{const{ref:a,index:l}=T5({label:typeof t=="string"?t:void 0}),c=Xf([s,a]),{theme:d,activeIndex:u,dismissOnClick:f,getItemProps:h,handleSelect:g}=Aa(),m=u===l,b=H(d.floating.item,o),v=i;return p.jsx("li",{role:"menuitem",className:b.container,children:p.jsxs(Js,{ref:c,className:F(b.base,e),...v,...h({onClick:()=>{n==null||n(),f&&g(null)}}),tabIndex:m?0:-1,children:[r&&p.jsx(r,{className:b.icon}),t]})})});Ph.displayName="DropdownItem";const sC={top:y1,right:Wu,bottom:Hu,left:b1},aC=({refs:t,children:e,inline:r,theme:n,disabled:o,setButtonWidth:i,getReferenceProps:s,renderTrigger:a,...l})=>{const c=t.reference,d=s();if(k.useEffect(()=>{c.current&&(i==null||i(c.current.clientWidth))},[c,i]),a){const u=a(n);return k.cloneElement(u,{ref:t.setReference,disabled:o,...d,...u.props})}return r?p.jsx("button",{type:"button",ref:t.setReference,className:n==null?void 0:n.inlineWrapper,disabled:o,...d,children:e}):p.jsx(ff,{...l,disabled:o,type:"button",ref:t.setReference,...d,children:e})},Ah=({children:t,className:e,dismissOnClick:r=!0,theme:n={},renderTrigger:o,...i})=>{const[s,a]=k.useState(!1),[l,c]=k.useState(null),[d,u]=k.useState(null),[f,h]=k.useState(void 0),g=k.useRef([]),m=k.useRef([]),b=H(K().dropdown,n),v=i,y=i["data-testid"]||"flowbite-dropdown-target",{placement:_=i.inline?"bottom-start":"bottom",trigger:x="click",label:w,inline:S,arrowIcon:T=!0,...M}=v,N=k.useCallback($=>{u($),a(!1)},[]),E=k.useCallback($=>{s?c($):N($)},[s,N]),{context:I,floatingStyles:A,refs:D}=Oh({open:s,setOpen:a,placement:_}),O=J5(I,{listRef:g,activeIndex:l,selectedIndex:d,onNavigate:c}),P=eC(I,{listRef:m,activeIndex:l,selectedIndex:d,onMatch:E}),{getReferenceProps:L,getFloatingProps:z,getItemProps:B}=Th({context:I,role:"menu",trigger:x,interactions:[O,P]}),j=k.useMemo(()=>{const[$]=_.split("-");return sC[$]??Hu},[_]);return p.jsxs(Nh.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:r,getItemProps:B,handleSelect:N},children:[p.jsxs(aC,{...M,refs:D,inline:S,theme:b,"data-testid":y,className:F(b.floating.target,M.className),setButtonWidth:h,getReferenceProps:L,renderTrigger:o,children:[w,T&&p.jsx(j,{className:b.arrowIcon})]}),s&&p.jsx(fh,{context:I,modal:!1,children:p.jsx("div",{ref:D.setFloating,style:{...A,minWidth:f},"data-testid":"flowbite-dropdown","aria-expanded":s,...z({className:F(b.floating.base,b.floating.animation,"duration-100",!s&&b.floating.hidden,b.floating.style.auto,e)}),children:p.jsx(O5,{elementsRef:g,labelsRef:m,children:p.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};Ah.displayName="Dropdown",Mh.displayName="Dropdown.Header",Da.displayName="Dropdown.Divider",Object.assign(Ah,{Item:Ph,Header:Mh,Divider:Da});const lC=k.forwardRef(({className:t,color:e="gray",helperText:r,sizing:n="md",theme:o={},...i},s)=>{const a=H(K().fileInput,o);return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:F(a.root.base,t),children:p.jsx("div",{className:a.field.base,children:p.jsx("input",{className:F(a.field.input.base,a.field.input.colors[e],a.field.input.sizes[n]),...i,type:"file",ref:s})})}),r&&p.jsx(Vn,{color:e,children:r})]})});lC.displayName="FileInput";const cC=k.forwardRef(({label:t,helperText:e,color:r="default",sizing:n="md",variant:o,disabled:i=!1,theme:s={},className:a,...l},c)=>{const d=k.useId(),u=H(K().floatingLabel,s);return p.jsxs("div",{children:[p.jsxs("div",{className:F("relative",o==="standard"?"z-0":""),children:[p.jsx("input",{type:"text",id:l.id?l.id:"floatingLabel"+d,"aria-describedby":"outlined_success_help",className:F(u.input[r][o][n],a),placeholder:" ","data-testid":"floating-label",disabled:i,...l,ref:c}),p.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:F(u.label[r][o][n],a),children:t})]}),p.jsx("p",{id:"outlined_helper_text"+d,className:F(u.helperText[r],a),children:e})]})});cC.displayName="FloatingLabel";const Dh=({alt:t,className:e,children:r,href:n,name:o,src:i,theme:s={},...a})=>{const l=H(K().footer.brand,s);return p.jsx("div",{children:n?p.jsxs("a",{"data-testid":"flowbite-footer-brand",href:n,className:F(l.base,e),...a,children:[p.jsx("img",{alt:t,src:i,className:l.img}),p.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:o}),r]}):p.jsx("img",{alt:t,"data-testid":"flowbite-footer-brand",src:i,className:F(l.img,e),...a})})},Ih=({by:t,className:e,href:r,theme:n={},year:o,...i})=>{const s=H(K().footer.copyright,n);return p.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:F(s.base,e),...i,children:["© ",o,r?p.jsx("a",{href:r,className:s.href,children:t}):p.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:s.span,children:t})]})},Lh=({className:t,theme:e={},...r})=>{const n=H(K().footer.divider,e);return p.jsx("hr",{"data-testid":"footer-divider",className:F(n.base,t),...r})},Fh=({ariaLabel:t,className:e,href:r,icon:n,theme:o={},...i})=>{const s=H(K().footer.icon,o);return p.jsx("div",{children:r?p.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:r,className:F(s.base,e),...i,children:p.jsx(n,{className:s.size})}):p.jsx(n,{"data-testid":"flowbite-footer-icon",className:s.size,...i})})},zh=({as:t="a",children:e,className:r,href:n,theme:o={},...i})=>{const s=H(K().footer.groupLink.link,o);return p.jsx("li",{className:F(s.base,r),children:p.jsx(t,{href:n,className:s.href,...i,children:e})})},Bh=({children:t,className:e,col:r=!1,theme:n={},...o})=>{const i=H(K().footer.groupLink,n);return p.jsx("ul",{"data-testid":"footer-groupLink",className:F(i.base,r&&i.col,e),...o,children:t})},$h=({as:t="h2",className:e,theme:r={},title:n,...o})=>{const i=H(K().footer.title,r);return p.jsx(t,{"data-testid":"flowbite-footer-title",className:F(i.base,e),...o,children:n})},jh=({bgDark:t=!1,children:e,className:r,container:n=!1,theme:o={},...i})=>{const s=H(K().footer,o);return p.jsx("footer",{"data-testid":"flowbite-footer",className:F(s.root.base,t&&s.root.bgDark,n&&s.root.container,r),...i,children:e})};jh.displayName="Footer",Ih.displayName="Footer.Copyright",zh.displayName="Footer.Link",Dh.displayName="Footer.Brand",Bh.displayName="Footer.LinkGroup",Fh.displayName="Footer.Icon",$h.displayName="Footer.Title",Lh.displayName="Footer.Divider",Object.assign(jh,{Copyright:Ih,Link:zh,LinkGroup:Bh,Brand:Dh,Icon:Fh,Title:$h,Divider:Lh});const Hh=({children:t,className:e,icon:r,theme:n={},...o})=>{const i=H(K().list.item,n);return p.jsxs("li",{className:F(i.withIcon[r?"on":"off"],e),...o,children:[r&&p.jsx(r,{className:F(i.icon)}),t]})},Wh=({children:t,className:e,unstyled:r,nested:n,ordered:o,horizontal:i,theme:s={},...a})=>{const l=H(K().list,s),c=o?"ol":"ul";return p.jsx(c,{className:F(l.root.base,l.root.ordered[o?"on":"off"],r&&l.root.unstyled,n&&l.root.nested,i&&l.root.horizontal,e),...a,children:t})};Wh.displayName="List",Hh.displayName="List.Item",Object.assign(Wh,{Item:Hh});const Vh=({active:t,children:e,className:r,href:n,icon:o,onClick:i,theme:s={},disabled:a,...l})=>{const c=H(K().listGroup.item,s),d=typeof n<"u",u=d?"a":"button";return p.jsx("li",{className:F(c.base,r),children:p.jsxs(u,{href:n,onClick:i,type:d?void 0:"button",disabled:a,className:F(c.link.active[t?"on":"off"],c.link.disabled[a?"on":"off"],c.link.base,c.link.href[d?"on":"off"]),...l,children:[o&&p.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},Rh=({children:t,className:e,theme:r={},...n})=>{const o=H(K().listGroup,r);return p.jsx("ul",{className:F(o.root.base,e),...n,children:t})};Rh.displayName="ListGroup",Vh.displayName="ListGroup.Item",Object.assign(Rh,{Item:Vh});const Yh=k.createContext(void 0);function Ia(){const t=k.useContext(Yh);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const Uh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=Ia(),s=H(o.body,r);return p.jsx("div",{className:F(s.base,i&&[s.popup],e),...n,children:t})},qh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=Ia(),s=H(o.footer,r);return p.jsx("div",{className:F(s.base,!i&&s.popup,e),...n,children:t})},Kh=({as:t="h3",children:e,className:r,theme:n={},id:o,...i})=>{const s=k.useId(),a=o||s,{theme:l,popup:c,onClose:d,setHeaderId:u}=Ia(),f=H(l.header,n);return k.useLayoutEffect(()=>(u(a),()=>u(void 0)),[a,u]),p.jsxs("div",{className:F(f.base,c&&f.popup,r),...i,children:[p.jsx(t,{id:a,className:f.title,children:e}),p.jsx("button",{"aria-label":"Close",className:f.close.base,type:"button",onClick:d,children:p.jsx(v1,{"aria-hidden":!0,className:f.close.icon})})]})},Gh=k.forwardRef(({children:t,className:e,dismissible:r=!1,onClose:n,popup:o,position:i="center",root:s,show:a,size:l="2xl",theme:c={},initialFocus:d,...u},f)=>{const[h,g]=k.useState(void 0),m=H(K().modal,c),{context:b}=yh({open:a,onOpenChange:()=>n&&n()}),v=Xf([b.refs.setFloating,f]),y=ph(b),_=bh(b,{outsidePressEvent:"mousedown",enabled:r}),x=Sh(b),{getFloatingProps:w}=wh([y,_,x]);return a?p.jsx(Yh.Provider,{value:{theme:m,popup:o,onClose:n,setHeaderId:g},children:p.jsx(R5,{root:s,children:p.jsx(q5,{lockScroll:!0,"data-testid":"modal-overlay",className:F(m.root.base,m.root.positions[i],a?m.root.show.on:m.root.show.off,e),...u,children:p.jsx(fh,{context:b,initialFocus:d,children:p.jsx("div",{ref:v,...w(u),"aria-labelledby":h,className:F(m.content.base,m.root.sizes[l]),children:p.jsx("div",{className:m.content.inner,children:t})})})})})}):null});Gh.displayName="Modal",Kh.displayName="Modal.Header",Uh.displayName="Modal.Body",qh.displayName="Modal.Footer",Object.assign(Gh,{Header:Kh,Body:Uh,Footer:qh});const Xh=k.createContext(void 0);function Ii(){const t=k.useContext(Xh);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const Zh=({as:t="a",children:e,className:r,theme:n={},...o})=>{const{theme:i}=Ii(),s=H(i.brand,n);return p.jsx(t,{className:F(s.base,r),...o,children:e})},Jh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i}=Ii(),s=H(o.collapse,r);return p.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:F(s.base,s.hidden[i?"off":"on"],e),...n,children:p.jsx("ul",{className:s.list,children:t})})},Qh=({active:t,as:e="a",disabled:r,children:n,className:o,theme:i={},onClick:s,...a})=>{const{theme:l,setIsOpen:c}=Ii(),d=H(l.link,i),u=f=>{c(!1),s==null||s(f)};return p.jsx("li",{children:p.jsx(e,{className:F(d.base,t&&d.active.on,!t&&!r&&d.active.off,d.disabled[r?"on":"off"],o),onClick:u,...a,children:n})})},eg=({barIcon:t=tp,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i,setIsOpen:s}=Ii(),a=H(o.toggle,r),l=()=>{s(!i)};return p.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:F(a.base,e),...n,children:[p.jsx("span",{className:"sr-only",children:"Open main menu"}),p.jsx(t,{"aria-hidden":!0,className:a.icon})]})},tg=({border:t,children:e,className:r,fluid:n=!1,menuOpen:o,rounded:i,theme:s={},...a})=>{const[l,c]=k.useState(o),d=H(K().navbar,s);return p.jsx(Xh.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:p.jsx("nav",{className:F(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[i?"on":"off"],r),...a,children:p.jsx("div",{className:F(d.root.inner.base,d.root.inner.fluid[n?"on":"off"]),children:e})})})};tg.displayName="Navbar",Zh.displayName="Navbar.Brand",Jh.displayName="Navbar.Collapse",Qh.displayName="Navbar.Link",eg.displayName="Navbar.Toggle",Object.assign(tg,{Brand:Zh,Collapse:Jh,Link:Qh,Toggle:eg});const dC=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(r=>r+t),La=({active:t,children:e,className:r,onClick:n,theme:o={},...i})=>{const s=H(K().pagination,o);return p.jsx("button",{type:"button",className:F(t&&s.pages.selector.active,r),onClick:n,...i,children:e})};La.displayName="Pagination.Button";const Fa=({children:t,className:e,onClick:r,theme:n={},disabled:o=!1,...i})=>{const s=H(K().pagination,n);return p.jsx("button",{type:"button",className:F(o&&s.pages.selector.disabled,e),disabled:o,onClick:r,...i,children:t})};Fa.displayName="Pagination.Navigation";const rg=({className:t,currentPage:e,layout:r="pagination",nextLabel:n="Next",onPageChange:o,previousLabel:i="Previous",renderPaginationButton:s=u=>p.jsx(La,{...u}),showIcons:a=!1,theme:l={},totalPages:c,...d})=>{const u=H(K().pagination,l),f=Math.min(Math.max(r==="pagination"?e+2:e+4,5),c),h=Math.max(1,f-4),g=()=>{o(Math.min(e+1,c))},m=()=>{o(Math.max(e-1,1))};return p.jsxs("nav",{className:F(u.base,t),...d,children:[r==="table"&&p.jsxs("div",{className:u.layout.table.base,children:["Showing ",p.jsx("span",{className:u.layout.table.span,children:h})," to ",p.jsx("span",{className:u.layout.table.span,children:f})," of ",p.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),p.jsxs("ul",{className:u.pages.base,children:[p.jsx("li",{children:p.jsxs(Fa,{className:F(u.pages.previous.base,a&&u.pages.showIcon),onClick:m,disabled:e===1,children:[a&&p.jsx($u,{"aria-hidden":!0,className:u.pages.previous.icon}),i]})}),r==="pagination"&&dC(h,f).map(b=>p.jsx("li",{"aria-current":b===e?"page":void 0,children:s({className:F(u.pages.selector.base,e===b&&u.pages.selector.active),active:b===e,onClick:()=>o(b),children:b})},b)),p.jsx("li",{children:p.jsxs(Fa,{className:F(u.pages.next.base,a&&u.pages.showIcon),onClick:g,disabled:e===c,children:[n,a&&p.jsx(ju,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};rg.displayName="Pagination",Object.assign(rg,{Button:La});const uC=k.forwardRef(({className:t,theme:e={},...r},n)=>{const o=H(K().radio,e);return p.jsx("input",{ref:n,type:"radio",className:F(o.root.base,t),...r})});uC.displayName="Radio";const fC=k.forwardRef(({className:t,sizing:e="md",theme:r={},...n},o)=>{const i=H(K().rangeSlider,r);return p.jsx(p.Fragment,{children:p.jsx("div",{"data-testid":"flowbite-range-slider",className:F(i.root.base,t),children:p.jsx("div",{className:i.field.base,children:p.jsx("input",{ref:o,type:"range",className:F(i.field.input.base,i.field.input.sizes[e]),...n})})})})});fC.displayName="RangeSlider";const ng=({children:t,className:e,percentFilled:r=0,theme:n={},...o})=>{const i=H(K().ratingAdvanced,n);return p.jsxs("div",{className:F(i.base,e),...o,children:[p.jsx("span",{className:i.label,children:t}),p.jsx("div",{className:i.progress.base,children:p.jsx("div",{className:i.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${r}%`}})}),p.jsx("span",{className:i.progress.label,children:`${r}%`})]})},og=k.createContext(void 0);function hC(){const t=k.useContext(og);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const ig=({className:t,filled:e=!0,starIcon:r=p1,theme:n={},...o})=>{const{theme:i,size:s="sm"}=hC(),a=H(i.star,n);return p.jsx(r,{"data-testid":"flowbite-rating-star",className:F(a.sizes[s],a[e?"filled":"empty"],t),...o})},sg=({children:t,className:e,size:r="sm",theme:n={},...o})=>{const i=H(K().rating,n);return p.jsx(og.Provider,{value:{theme:i,size:r},children:p.jsx("div",{className:F(i.root.base,e),...o,children:t})})};sg.displayName="Rating",ig.displayName="Rating.Star",ng.displayName="Rating.Advanced",Object.assign(sg,{Star:ig,Advanced:ng});const gC=k.forwardRef(({addon:t,children:e,className:r,color:n="gray",helperText:o,icon:i,shadow:s,sizing:a="md",theme:l={},...c},d)=>{const u=H(K().select,l);return p.jsxs("div",{className:F(u.base,r),children:[t&&p.jsx("span",{className:u.addon,children:t}),p.jsxs("div",{className:u.field.base,children:[i&&p.jsx("div",{className:u.field.icon.base,children:p.jsx(i,{className:u.field.icon.svg})}),p.jsx("select",{className:F(u.field.select.base,u.field.select.colors[n],u.field.select.sizes[a],u.field.select.withIcon[i?"on":"off"],u.field.select.withAddon[t?"on":"off"],u.field.select.withShadow[s?"on":"off"]),...c,ref:d,children:e}),o&&p.jsx(Vn,{color:n,children:o})]})]})});gC.displayName="Select";const pC=({animation:t="duration-300",arrow:e=!0,children:r,className:n,content:o,placement:i="top",style:s="dark",theme:a,trigger:l="hover",minWidth:c,...d})=>{const u=k.useRef(null),[f,h]=k.useState(!1),g=Oh({open:f,placement:i,arrowRef:u,setOpen:h}),{context:m,middlewareData:{arrow:{x:b,y:v}={}},refs:y,strategy:_,update:x,x:w,y:S}=g,T=X5(m),{getFloatingProps:M,getReferenceProps:N}=Th({context:m,role:"tooltip",trigger:l,interactions:[T]});return k.useEffect(()=>{if(y.reference.current&&y.floating.current&&f)return Hf(y.reference.current,y.floating.current,x)},[f,y.floating,y.reference,x]),p.jsxs(p.Fragment,{children:[p.jsx("div",{ref:y.setReference,className:a.target,"data-testid":"flowbite-tooltip-target",...N(),children:r}),p.jsxs("div",{ref:y.setFloating,"data-testid":"flowbite-tooltip",...M({className:F(a.base,t&&`${a.animation} ${t}`,!f&&a.hidden,a.style[s],n),style:{position:_,top:S??" ",left:w??" ",minWidth:c},...d}),children:[p.jsx("div",{className:a.content,children:o}),e&&p.jsx("div",{className:F(a.arrow.base,s==="dark"&&a.arrow.style.dark,s==="light"&&a.arrow.style.light,s==="auto"&&a.arrow.style.auto),"data-testid":"flowbite-tooltip-arrow",ref:u,style:{top:v??" ",left:b??" ",right:" ",bottom:" ",[iC({placement:g.placement})]:a.arrow.placement},children:" "})]})]})},za=({animation:t="duration-300",arrow:e=!0,children:r,className:n,content:o,placement:i="top",style:s="dark",theme:a={},trigger:l="hover",...c})=>{const d=H(K().tooltip,a);return p.jsx(pC,{animation:t,arrow:e,content:o,placement:i,style:s,theme:d,trigger:l,className:n,...c,children:r})};za.displayName="Tooltip";const ag=k.createContext(void 0);function Qr(){const t=k.useContext(ag);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const Ba=k.createContext(void 0);function mC(){const t=k.useContext(Ba);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const lg=({children:t,className:e,icon:r,label:n,chevronIcon:o=Bu,renderChevronIcon:i,open:s=!1,theme:a={},...l})=>{const c=k.useId(),[d,u]=k.useState(s),{theme:f,isCollapsed:h}=Qr(),g=H(f.collapse,a);k.useEffect(()=>u(s),[s]);const m=({children:b})=>p.jsx("li",{children:h&&!d?p.jsx(za,{content:n,placement:"right",children:b}):b});return p.jsxs(m,{children:[p.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:n,type:"button",className:F(g.button,e),...l,children:[r&&p.jsx(r,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:F(g.icon.base,g.icon.open[d?"on":"off"])}),h?p.jsx("span",{className:"sr-only",children:n}):p.jsxs(p.Fragment,{children:[p.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:g.label.base,children:n}),i?i(g,d):p.jsx(o,{"aria-hidden":!0,className:F(g.label.icon.base,g.label.icon.open[d?"on":"off"])})]})]}),p.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:g.list,children:p.jsx(Ba.Provider,{value:{isInsideCollapse:!0},children:t})})]})};lg.displayName="Sidebar.Collapse";const cg=({children:t,color:e="info",className:r,theme:n={},...o})=>{const{theme:i,isCollapsed:s}=Qr(),a=H(i.cta,n);return p.jsx("div",{"data-testid":"sidebar-cta",hidden:s,className:F(a.base,a.color[e],r),...o,children:t})};cg.displayName="Sidebar.CTA";const bC=({id:t,theme:e,isCollapsed:r,tooltipChildren:n,children:o,...i})=>p.jsx("li",{...i,children:r?p.jsx(za,{content:p.jsx(dg,{id:t,theme:e,children:n}),placement:"right",children:o}):o}),dg=({id:t,theme:e,children:r})=>p.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:F(e.content.base),children:r}),ug=k.forwardRef(({active:t,as:e="a",children:r,className:n,icon:o,label:i,labelColor:s="info",theme:a={},...l},c)=>{var m,b,v,y;const d=k.useId(),{theme:u,isCollapsed:f}=Qr(),{isInsideCollapse:h}=mC(),g=H(u.item,a);return p.jsx(bC,{theme:g,className:g.listItem,id:d,isCollapsed:f,tooltipChildren:r,children:p.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:F(g.base,t&&g.active,!f&&h&&((m=g.collapsed)==null?void 0:m.insideCollapse),n),...l,children:[o&&p.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:F((b=g.icon)==null?void 0:b.base,t&&((v=g.icon)==null?void 0:v.active))}),f&&!o&&p.jsx("span",{className:(y=g.collapsed)==null?void 0:y.noIcon,children:r.charAt(0).toLocaleUpperCase()??"?"}),!f&&p.jsx(dg,{id:d,theme:g,children:r}),!f&&i&&p.jsx(sf,{color:s,"data-testid":"flowbite-sidebar-label",hidden:f,className:g.label,children:i})]})})});ug.displayName="Sidebar.Item";const fg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Qr(),i=H(o.itemGroup,r);return p.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:F(i.base,e),...n,children:p.jsx(Ba.Provider,{value:{isInsideCollapse:!1},children:t})})};fg.displayName="Sidebar.ItemGroup";const hg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Qr(),i=H(o.items,r);return p.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-sidebar-items",...n,children:t})};hg.displayName="Sidebar.Items";const gg=({children:t,className:e,href:r,img:n,imgAlt:o="",theme:i={},...s})=>{const a=k.useId(),{theme:l,isCollapsed:c}=Qr(),d=H(l.logo,i);return p.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${a}`,href:r,className:F(d.base,e),...s,children:[p.jsx("img",{alt:o,src:n,className:d.img}),p.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${a}`,children:t})]})};gg.displayName="Sidebar.Logo";const pg=({children:t,as:e="nav",collapseBehavior:r="collapse",collapsed:n=!1,theme:o={},className:i,...s})=>{const a=H(K().sidebar,o);return p.jsx(ag.Provider,{value:{theme:a,isCollapsed:n},children:p.jsx(e,{"aria-label":"Sidebar",hidden:n&&r==="hide",className:F(a.root.base,a.root.collapsed[n?"on":"off"],i),...s,children:p.jsx("div",{className:a.root.inner,children:t})})})};pg.displayName="Sidebar",Object.assign(pg,{Collapse:lg,CTA:cg,Item:ug,Items:hg,ItemGroup:fg,Logo:gg});const mg=k.createContext(void 0);function yC(){const t=k.useContext(mg);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const bg=k.createContext(void 0);function $a(){const t=k.useContext(bg);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const yg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=$a(),s=H(i.body,r);return p.jsx(mg.Provider,{value:{theme:s},children:p.jsx("tbody",{className:F(s.base,e),ref:o,...n,children:t})})});yg.displayName="Table.Body";const vg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=yC(),s=H(i.cell,r);return p.jsx("td",{className:F(s.base,e),ref:o,...n,children:t})});vg.displayName="Table.Cell";const xg=k.createContext(void 0);function vC(){const t=k.useContext(xg);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const wg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=$a(),s=H(i.head,r);return p.jsx(xg.Provider,{value:{theme:s},children:p.jsx("thead",{className:F(s.base,e),ref:o,...n,children:p.jsx("tr",{children:t})})})});wg.displayName="Table.Head";const kg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=vC(),s=H(i.cell,r);return p.jsx("th",{className:F(s.base,e),ref:o,...n,children:t})});kg.displayName="Table.HeadCell";const Cg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i,hoverable:s,striped:a}=$a(),l=H(i.row,r);return p.jsx("tr",{ref:o,"data-testid":"table-row-element",className:F(l.base,a&&l.striped,s&&l.hovered,e),...n,children:t})});Cg.displayName="Table.Row";const _g=k.forwardRef(({children:t,className:e,striped:r,hoverable:n,theme:o={},...i},s)=>{const a=H(K().table,o);return p.jsx("div",{"data-testid":"table-element",className:F(a.root.wrapper),children:p.jsxs(bg.Provider,{value:{theme:a,striped:r,hoverable:n},children:[p.jsx("div",{className:F(a.root.shadow,e)}),p.jsx("table",{className:F(a.root.base,e),...i,ref:s,children:t})]})})});_g.displayName="Table";const en=Object.assign(_g,{Head:wg,Body:yg,Row:Cg,Cell:vg,HeadCell:kg}),Sg=({children:t,className:e})=>p.jsx("div",{className:e,children:t});Sg.displayName="Tabs.Item";const Eg=k.forwardRef(({children:t,className:e,onActiveTabChange:r,style:n="default",theme:o={},...i},s)=>{const a=H(K().tabs,o),l=k.useId(),c=k.useMemo(()=>k.Children.map(k.Children.toArray(t),({props:x})=>x),[t]),d=k.useRef([]),[u,f]=k.useState(Math.max(0,c.findIndex(x=>x.active))),[h,g]=k.useState(-1),m=x=>{f(x),r&&r(x)},b=({target:x})=>{m(x),g(x)},v=({event:x,target:w})=>{x.key==="ArrowLeft"&&g(Math.max(0,h-1)),x.key==="ArrowRight"&&g(Math.min(c.length-1,h+1)),x.key==="Enter"&&(m(w),g(w))},y=a.tablist.tabitem.styles[n],_=a.tabitemcontainer.styles[n];return k.useEffect(()=>{var x;(x=d.current[h])==null||x.focus()},[h]),k.useImperativeHandle(s,()=>({setActiveTab:m})),p.jsxs("div",{className:F(a.base,e),children:[p.jsx("div",{"aria-label":"Tabs",role:"tablist",className:F(a.tablist.base,a.tablist.styles[n],e),...i,children:c.map((x,w)=>p.jsxs("button",{type:"button","aria-controls":`${l}-tabpanel-${w}`,"aria-selected":w===u,className:F(a.tablist.tabitem.base,y.base,w===u&&y.active.on,w!==u&&!x.disabled&&y.active.off),disabled:x.disabled,id:`${l}-tab-${w}`,onClick:()=>b({target:w}),onKeyDown:S=>v({event:S,target:w}),ref:S=>d.current[w]=S,role:"tab",tabIndex:w===h?0:-1,style:{zIndex:w===h?2:1},children:[x.icon&&p.jsx(x.icon,{className:a.tablist.tabitem.icon}),x.title]},w))}),p.jsx("div",{className:F(a.tabitemcontainer.base,_),children:c.map((x,w)=>p.jsx("div",{"aria-labelledby":`${l}-tab-${w}`,className:a.tabpanel,hidden:w!==u,id:`${l}-tabpanel-${w}`,role:"tabpanel",tabIndex:0,children:x.children},w))})]})});Eg.displayName="Tabs",Object.assign(Eg,{Item:Sg});const xC=k.forwardRef(({className:t,color:e="gray",helperText:r,shadow:n,theme:o={},...i},s)=>{const a=H(K().textarea,o);return p.jsxs(p.Fragment,{children:[p.jsx("textarea",{ref:s,className:F(a.base,a.colors[e],a.withShadow[n?"on":"off"],t),...i}),r&&p.jsx(Vn,{color:e,children:r})]})});xC.displayName="Textarea";const Og=k.createContext(void 0);function ja(){const t=k.useContext(Og);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const Tg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=ja(),i=H(o.body,r);return p.jsx("div",{className:F(i.base,e),...n,children:t})},Ng=k.createContext(void 0);function Ha(){const t=k.useContext(Ng);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const Mg=k.createContext(void 0);function Pg(){const t=k.useContext(Mg);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const Ag=({children:t,className:e,theme:r={},...n})=>{const{horizontal:o}=Ha(),{theme:i}=Pg(),s=H(i.content,r);return p.jsx(Og.Provider,{value:{theme:s},children:p.jsx("div",{"data-testid":"timeline-content",className:F(o&&s.root.base,e),...n,children:t})})},Dg=({children:t,className:e,theme:r={},...n})=>{const{theme:o,horizontal:i}=Ha(),s=H(o.item,r);return p.jsx(Mg.Provider,{value:{theme:s},children:p.jsx("li",{"data-testid":"timeline-item",className:F(i&&s.root.horizontal,!i&&s.root.vertical,e),...n,children:t})})},Ig=({children:t,className:e,icon:r,theme:n={},...o})=>{const{horizontal:i}=Ha(),{theme:s}=Pg(),a=H(s.point,n);return p.jsxs("div",{"data-testid":"timeline-point",className:F(i&&a.horizontal,!i&&a.vertical,e),...o,children:[t,r?p.jsx("span",{className:F(a.marker.icon.wrapper),children:p.jsx(r,{"aria-hidden":!0,className:F(a.marker.icon.base)})}):p.jsx("div",{className:F(i&&a.marker.base.horizontal,!i&&a.marker.base.vertical)}),i&&p.jsx("div",{className:F(a.line)})]})},Lg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=ja(),i=H(o.time,r);return p.jsx("time",{className:F(i.base,e),...n,children:t})},Fg=({as:t="h3",children:e,className:r,theme:n={},...o})=>{const{theme:i}=ja(),s=H(i.title,n);return p.jsx(t,{className:F(s.base,r),...o,children:e})},zg=({children:t,className:e,horizontal:r,theme:n={},...o})=>{const i=H(K().timeline,n);return p.jsx(Ng.Provider,{value:{theme:i,horizontal:r},children:p.jsx("ol",{"data-testid":"timeline-component",className:F(r&&i.root.direction.horizontal,!r&&i.root.direction.vertical,e),...o,children:t})})};zg.displayName="Timeline",Dg.displayName="Timeline.Item",Ig.displayName="Timeline.Point",Ag.displayName="Timeline.Content",Lg.displayName="Timeline.Time",Fg.displayName="Timeline.Title",Tg.displayName="Timeline.Body",Object.assign(zg,{Item:Dg,Point:Ig,Content:Ag,Time:Lg,Title:Fg,Body:Tg});const Bg=k.createContext(void 0);function wC(){const t=k.useContext(Bg);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const $g=({className:t,onClick:e,theme:r={},xIcon:n=m1,onDismiss:o,...i})=>{const{theme:s,duration:a,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=wC(),f=H(s.toggle,r),h=g=>{if(e&&e(g),o){o();return}d(!l),setTimeout(()=>u(!c),a)};return p.jsx("button",{"aria-label":"Close",onClick:h,type:"button",className:F(f.base,t),...i,children:p.jsx(n,{"aria-hidden":!0,className:f.icon})})},kC={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},jg=({children:t,className:e,duration:r=300,theme:n={},...o})=>{const[i,s]=k.useState(!1),[a,l]=k.useState(!1),c=H(K().toast,n);return a?null:p.jsx(Bg.Provider,{value:{theme:c,duration:r,isClosed:i,isRemoved:a,setIsClosed:s,setIsRemoved:l},children:p.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:F(c.root.base,kC[r],i&&c.root.closed,e),...o,children:t})})};jg.displayName="Toast",$g.displayName="Toast.Toggle",Object.assign(jg,{Toggle:$g});const CC=k.forwardRef(({checked:t,className:e,color:r="blue",sizing:n="md",disabled:o,label:i,name:s,onChange:a,theme:l={},...c},d)=>{const u=k.useId(),f=H(K().toggleSwitch,l),h=()=>a(!t),g=()=>{h()},m=b=>{b.code=="Enter"&&b.preventDefault()};return p.jsxs(p.Fragment,{children:[s&&t?p.jsx("input",{ref:d,checked:t,hidden:!0,name:s,readOnly:!0,type:"checkbox",className:"sr-only"}):null,p.jsxs("button",{"aria-checked":t,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:o,id:`${u}-flowbite-toggleswitch`,onClick:g,onKeyDown:m,role:"switch",tabIndex:0,type:"button",className:F(f.root.base,f.root.active[o?"off":"on"],e),...c,children:[p.jsx("div",{"data-testid":"flowbite-toggleswitch-toggle",className:F(f.toggle.base,f.toggle.checked[t?"on":"off"],t&&f.toggle.checked.color[r],f.toggle.sizes[n])}),i!=null&&i.length?p.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:f.root.label,children:i}):null]})]})});CC.displayName="ToggleSwitch";const _C=({currentPage:t,totalPages:e,onPageChange:r})=>p.jsxs("div",{className:"flex items-center justify-center gap-4",children:[p.jsx("button",{onClick:()=>r(t-1),disabled:t===1,className:"p-2 text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:p.jsx($u,{className:"h-5 w-5"})}),p.jsxs("span",{className:"text-sm text-gray-700",children:[t," de ",e]}),p.jsx("button",{onClick:()=>r(t+1),disabled:t===e,className:"p-2 text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:p.jsx(ju,{className:"h-5 w-5"})})]}),SC=({columns:t,data:e,showSearch:r=!1,itemsPerPage:n=5,title:o})=>{const[i,s]=C.useState(""),[a,l]=C.useState(1),c=C.useMemo(()=>i.trim()?e.filter(f=>t.some(h=>{const g=f[h.relation];return g!=null&&String(g).toLowerCase().includes(i.toLowerCase().trim())})):e,[e,i,t]),d=C.useMemo(()=>{const f=(a-1)*n,h=f+n;return c.slice(f,h)},[c,a,n]),u=Math.ceil(c.length/n);return p.jsxs("div",{className:"w-full",children:[p.jsx("div",{className:"mb-4 flex items-center justify-between",children:o&&p.jsx("h2",{className:"text-xl font-bold",children:o})}),p.jsxs("div",{className:"mb-4 flex",children:[r&&p.jsx("div",{className:"w-1/2",children:p.jsx(ea,{rightIcon:g1,placeholder:"Buscar",value:i,onChange:f=>s(f.target.value)})}),u>1&&p.jsx("div",{className:"flex w-full justify-end",children:p.jsx(_C,{currentPage:a,totalPages:u,onPageChange:l})})]}),p.jsx("div",{className:"overflow-x-auto",children:p.jsxs(en,{striped:!0,children:[p.jsx(en.Head,{children:t.map((f,h)=>p.jsx(en.HeadCell,{children:f.header},h))}),p.jsx("hr",{}),p.jsx(en.Body,{className:"divide-y",children:d.map((f,h)=>p.jsx(en.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:t.map((g,m)=>{const b=f[g.relation];return p.jsx(en.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:g.cell?g.cell(f):b!=null?String(b):""},m)})},h))})]})})]})},Hg={"m-image-container":"layoutOutside-module__m-image-container__sCvFu","m-image":"layoutOutside-module__m-image__kZHyH"},Wg=no(),EC=()=>p.jsxs("div",{className:"mt-32",children:[p.jsx(Er,{classIm:"mx-auto",src:`${Wg}/public/assets/images/mathilde.png`,alt:"Logo Mathilde ads",width:400,height:250}),p.jsx("div",{className:Hg["m-image-container"],children:p.jsx(Er,{classIm:Hg["m-image"],src:`${Wg}/public/assets/images/background-mathilde.png`,alt:"Logo Mathilde ads",width:400,height:300})})]}),OC=({onOpenModal:t,checked:e,onChange:r,label:n,...o})=>{const i=()=>{e||t(),r(!1)};return p.jsx("div",{className:"mb-5",children:p.jsxs("label",{className:eo["checkbox-container"],children:[p.jsx("input",{type:"checkbox",...o,checked:e,onChange:i,required:!0}),p.jsx("span",{className:eo.checkmark}),n&&p.jsx("span",{children:n})]})})},Vg=({validations:t})=>{const e=({isValid:n})=>p.jsx("svg",{className:`me-2 h-3.5 w-3.5 ${n?"text-green-500 dark:text-green-400":"text-gray-500 dark:text-gray-400"} shrink-0`,"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:p.jsx("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})}),r=[{key:"hasMinLength",text:"Debe ser minimo de 8 caracteres"},{key:"hasNumber",text:"Debe tener minimo un numero"},{key:"hasUpperCase",text:"Debe tener minimo una letra mayuscula"},{key:"hasLowerCase",text:"Debe tener minimo una letra minuscula"},{key:"hasSpecialChar",text:"Debe tener minimo un caracter especial"}];return p.jsx("ul",{className:"mb-3 max-w-md list-inside space-y-1 text-sm text-gray-500 dark:text-gray-400",children:r.map(({key:n,text:o})=>p.jsxs("li",{className:"flex items-center",children:[p.jsx(e,{isValid:t[n]}),o]},n))})},TC=()=>{const[t,e]=k.useState(""),[r,n]=k.useState(""),[o,i]=k.useState({hasMinLength:!1,hasNumber:!1,hasUpperCase:!1,hasLowerCase:!1,hasSpecialChar:!1});k.useEffect(()=>{i({hasMinLength:t.length>=8,hasNumber:/\d/.test(t),hasUpperCase:/[A-Z]/.test(t),hasLowerCase:/[a-z]/.test(t),hasSpecialChar:/[!@#$%^&*(),.?":{}|<>]/.test(t)})},[t]);const s=()=>t.trim()&&r.trim()&&t===r&&Object.values(o).every(l=>l);return{password:t,setPassword:e,confirmPassword:r,setConfirmPassword:n,showError:()=>!s()&&t.trim()&&r.trim(),validations:o}},NC=({formik:t})=>{const{password:e,setPassword:r,confirmPassword:n,setConfirmPassword:o,validations:i}=TC();return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"block",children:[p.jsx(zi,{placeholder:"Contraseña",value:e,onChange:s=>{r(s.target.value),t.setFieldValue("password",s.target.value)},onBlur:t.handleBlur("password")}),t.errors.password&&t.touched.password&&p.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.password)})]}),p.jsxs("div",{className:"block",children:[p.jsx(zi,{placeholder:"Confirmar contraseña",value:n,onChange:s=>{o(s.target.value),t.setFieldValue("confirmPassword",s.target.value)},onBlur:t.handleBlur("confirmPassword")}),t.errors.confirmPassword&&t.touched.confirmPassword&&p.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.confirmPassword)})]}),p.jsx(Vg,{validations:i})]})},MC=({items:t})=>{const[e,r]=k.useState([]),n=i=>{r(s=>s.includes(i)?s.filter(a=>a!==i):[...s,i])},o=(i,s=0)=>p.jsx("ul",{className:"list-none space-y-2",children:i.map(a=>{const l=a.subItems&&a.subItems.length>0,c=e.includes(a.id);return p.jsxs("li",{className:`
|
|
499
499
|
${s>0?"ml-7":""}
|
|
500
|
-
`,children:[p.jsxs("div",{className:"flex items-center gap-2 py-1",children:[p.jsxs("div",{className:"flex items-center gap-1
|
|
500
|
+
`,children:[p.jsxs("div",{className:"flex items-center gap-2 py-1",children:[p.jsxs("div",{className:"flex min-w-[48px] items-center gap-1",children:[l&&p.jsx("button",{onClick:()=>n(a.id),className:"rounded-full p-1 transition-transform duration-200 hover:bg-gray-100",children:c?p.jsx(np,{className:"text-sm text-gray-500"}):p.jsx(rp,{className:"text-sm text-gray-500"})}),!l&&p.jsx("div",{className:"w-[28px]"})," ",a.icon&&p.jsx(a.icon,{className:`text-lg ${a.isActive?"text-blue-700 dark:text-blue-500":"text-gray-600"}`})]}),p.jsx("a",{href:a.href,className:`
|
|
501
501
|
flex-grow transition-colors duration-200
|
|
502
|
-
${a.isActive?"text-blue-700
|
|
503
|
-
`,children:a.title})]}),l&&c&&o(a.subItems||[],s+1)]},a.id)})});return p.jsx("nav",{id:"TableOfContents",children:o(t)})};re.ButtonFormat=Ug,re.CardFormat=ti,re.CardIndicator=dp,re.Checkbox=qg,re.ImageFormat=Er,re.InputForm=Ya,re.LayoutOutside=
|
|
502
|
+
${a.isActive?"font-medium text-blue-700 dark:text-blue-500":"text-gray-700 hover:text-blue-600 dark:text-gray-300"}
|
|
503
|
+
`,children:a.title})]}),l&&c&&o(a.subItems||[],s+1)]},a.id)})});return p.jsx("nav",{id:"TableOfContents",children:o(t)})};re.ButtonFormat=Ug,re.CardFormat=ti,re.CardIndicator=dp,re.Checkbox=qg,re.ImageFormat=Er,re.InputForm=Ya,re.LayoutOutside=EC,re.ModalFormat=Ar,re.MyDoughnutChart=Ib,re.PasswordInput=zi,re.PasswordValidationList=Vg,re.ProgressBar=Za,re.SelectForm=Ja,re.SidebarMth=d1,re.TableComponent=SC,re.TableOfContents=MC,re.TermsCheckbox=OC,re.ValidationPassword=NC,Object.defineProperty(re,Symbol.toStringTag,{value:"Module"})});
|