ui-mathilde-web 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,21 @@
1
- (function(te,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],g):(te=typeof globalThis<"u"?globalThis:te||self,g(te["ui-mathilde-web"]={},te.jsxRuntime,te.React,te.ReactDOM))})(this,function(te,g,k,Wa){"use strict";var DC=Object.defineProperty;var IC=(te,g,k)=>g in te?DC(te,g,{enumerable:!0,configurable:!0,writable:!0,value:k}):te[g]=k;var ee=(te,g,k)=>IC(te,typeof g!="symbol"?g+"":g,k);var Ii,nr,Ha;function Va(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=Va(k),Yg=Va(Wa),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})=>g.jsx("div",{className:`${r?Qn["mth-btn-full"]:""}`,children:g.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&&g.jsx(s,{size:l}),t,a&&g.jsx(a,{size:l})]})}),eo={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY"},Kg=({label:t,value:e,checked:r,onChange:n})=>g.jsxs("label",{className:eo["checkbox-container"],children:[g.jsx("input",{type:"checkbox",value:e,checked:r,onChange:n}),g.jsx("span",{className:eo.checkmark}),t&&g.jsx("span",{className:"ml-2",children:t})]}),Rt=({src:t,alt:e,width:r,height:n,classIm:o})=>g.jsx("img",{className:o,src:t,alt:e,width:r,height:n}),Ra=k.forwardRef(({placeholder:t,label:e,error:r,type:n,classInclude:o,maxLength:i,onChange:s,...a},l)=>g.jsxs("div",{className:"mb-5",children:[e&&g.jsx("label",{className:" mb-1 block font-semibold",children:e}),g.jsx("input",{ref:l,type:n,placeholder:t,className:`w-full border p-2 ${o||""}`,maxLength:i,onChange:s,...a}),r&&g.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));Ra.displayName="InputForm";var Ya={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ua=k.createContext&&k.createContext(Ya),qg=["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 qa(t){return t&&t.map((e,r)=>k.createElement(e.tag,ro({key:r},e.attr),qa(e.child)))}function ge(t){return e=>k.createElement(ep,to({attr:ro({},t.attr)},e),qa(t.child))}function ep(t){var e=r=>{var{attr:n,size:o,title:i}=t,s=Gg(t,qg),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 Ua!==void 0?k.createElement(Ua.Consumer,null,r=>e(r)):e(Ya)}function tp(t){return ge({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 ge({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 ge({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 ge({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 ge({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 ge({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 ge({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"},Fi=({placeholder:t,onChange:e,value:r,...n})=>{const[o,i]=k.useState(!1),s=()=>{i(!o)};return g.jsx("div",{className:"mb-5",children:g.jsxs("div",{className:"relative inline-block w-full",children:[g.jsx("input",{type:o?"text":"password",value:r,className:"w-full border p-2 pr-10",onChange:e,placeholder:t,...n}),g.jsx("button",{type:"button",onClick:s,className:lp["mth-password"],children:o?g.jsx(op,{}):g.jsx(ip,{})})]})})},Ga={"progress-check":"progressBar-module__progress-check__TVlHq","progress-no-check":"progressBar-module__progress-no-check__YeVq1"},Xa=({start:t,end:e,current:r})=>{const n=(r-t)/(e-t)*100;return g.jsxs("div",{className:"relative h-4 w-full overflow-hidden rounded-full bg-gray-200",children:[g.jsx("div",{className:`absolute left-0 top-0 h-full rounded-full ${n<50?Ga["progress-no-check"]:Ga["progress-check"]}`,style:{width:`${Math.min(n,100)}%`}}),g.jsx("div",{className:"absolute inset-0 flex items-center px-2",children:g.jsxs("span",{className:"z-10 text-sm font-medium text-gray-900",children:[r.toFixed(2),"%"]})})]})},Za=k.forwardRef(({options:t,label:e,error:r,value:n,onChange:o,...i},s)=>g.jsxs("div",{className:"mb-5",children:[e&&g.jsx("label",{className:"mb-1 block font-semibold",children:e}),g.jsxs("select",{ref:s,className:"w-full rounded border p-2",value:n,onChange:o,...i,children:[g.jsx("option",{disabled:!0,value:"",children:"Seleccione una opción"}),t==null?void 0:t.map(a=>g.jsx("option",{value:a.value,children:a.label},a.value))]}),r&&g.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));Za.displayName="SelectForm";const cp=(()=>{const{protocol:t,host:e}=window.location;return`${t}//${e}/`})(),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 g.jsxs("div",{className:"flex flex-col border bg-white px-3.5 py-7",children:[g.jsx("div",{className:"flex justify-end",children:g.jsx(Rt,{src:`${cp}/public/assets/images/${t}.svg`,alt:"Icon",width:30,height:30})}),g.jsx("h2",{className:"my-3 font-bold",children:r}),g.jsx("small",{className:"text-3xl",children:s(e)}),g.jsx("div",{className:"mt-2 w-full",children:g.jsx(Xa,{start:n,end:o,current:i})})]})};/*!
1
+ (function(te,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],g):(te=typeof globalThis<"u"?globalThis:te||self,g(te["ui-mathilde-web"]={},te.jsxRuntime,te.React,te.ReactDOM))})(this,function(te,g,k,Wa){"use strict";var $C=Object.defineProperty;var jC=(te,g,k)=>g in te?$C(te,g,{enumerable:!0,configurable:!0,writable:!0,value:k}):te[g]=k;var ee=(te,g,k)=>jC(te,typeof g!="symbol"?g+"":g,k);var Di,nr,Ha;function Va(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=Va(k),Ug=Va(Wa),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"},Kg=({txtBtn:t,typeButton:e,full:r,onClick:n,disabled:o,type:i,leftIcon:s,rightIcon:a,iconSize:l=20})=>g.jsx("div",{className:`${r?Qn["mth-btn-full"]:""}`,children:g.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&&g.jsx(s,{size:l}),t,a&&g.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})=>g.jsxs("label",{className:eo["checkbox-container"],children:[g.jsx("input",{type:"checkbox",value:e,checked:r,onChange:n}),g.jsx("span",{className:eo.checkmark}),t&&g.jsx("span",{className:"ml-2",children:t})]}),Rt=({src:t,alt:e,width:r,height:n,classIm:o})=>g.jsx("img",{className:o,src:t,alt:e,width:r,height:n}),Ra=k.forwardRef(({placeholder:t,label:e,error:r,type:n,classInclude:o,maxLength:i,onChange:s,...a},l)=>g.jsxs("div",{className:"mb-5",children:[e&&g.jsx("label",{className:" mb-1 block font-semibold",children:e}),g.jsx("input",{ref:l,type:n,placeholder:t,className:`w-full border p-2 ${o||""}`,maxLength:i,onChange:s,...a}),r&&g.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));Ra.displayName="InputForm";var Ya={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ua=k.createContext&&k.createContext(Ya),Gg=["attr","size","title"];function Xg(t,e){if(t==null)return{};var r=Zg(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 Zg(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){Jg(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 Jg(t,e,r){return e=Qg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qg(t){var e=ep(t,"string");return typeof e=="symbol"?e:String(e)}function ep(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 qa(t){return t&&t.map((e,r)=>k.createElement(e.tag,ro({key:r},e.attr),qa(e.child)))}function ge(t){return e=>k.createElement(tp,to({attr:ro({},t.attr)},e),qa(t.child))}function tp(t){var e=r=>{var{attr:n,size:o,title:i}=t,s=Xg(t,Gg),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 Ua!==void 0?k.createElement(Ua.Consumer,null,r=>e(r)):e(Ya)}function rp(t){return ge({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 np(t){return ge({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 op(t){return ge({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 ip(t){return ge({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 sp(t){return ge({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 ap(t){return ge({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 lp(t){return ge({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 cp={"mth-password":"passwordInput-module__mth-password__R6DoN"},Fi=({placeholder:t,onChange:e,value:r,...n})=>{const[o,i]=k.useState(!1),s=()=>{i(!o)};return g.jsx("div",{className:"mb-5",children:g.jsxs("div",{className:"relative inline-block w-full",children:[g.jsx("input",{type:o?"text":"password",value:r,className:"w-full border p-2 pr-10",onChange:e,placeholder:t,...n}),g.jsx("button",{type:"button",onClick:s,className:cp["mth-password"],children:o?g.jsx(ip,{}):g.jsx(sp,{})})]})})},Ga={"progress-check":"progressBar-module__progress-check__TVlHq","progress-no-check":"progressBar-module__progress-no-check__YeVq1"},Xa=({start:t,end:e,current:r})=>{const n=(r-t)/(e-t)*100;return g.jsxs("div",{className:"relative h-4 w-full overflow-hidden rounded-full bg-gray-200",children:[g.jsx("div",{className:`absolute left-0 top-0 h-full rounded-full ${n<50?Ga["progress-no-check"]:Ga["progress-check"]}`,style:{width:`${Math.min(n,100)}%`}}),g.jsx("div",{className:"absolute inset-0 flex items-center px-2",children:g.jsxs("span",{className:"z-10 text-sm font-medium text-gray-900",children:[r.toFixed(2),"%"]})})]})},Za=k.forwardRef(({options:t,label:e,error:r,value:n,onChange:o,...i},s)=>g.jsxs("div",{className:"mb-5",children:[e&&g.jsx("label",{className:"mb-1 block font-semibold",children:e}),g.jsxs("select",{ref:s,className:"w-full rounded border p-2",value:n,onChange:o,...i,children:[g.jsx("option",{disabled:!0,value:"",children:"Seleccione una opción"}),t==null?void 0:t.map(a=>g.jsx("option",{value:a.value,children:a.label},a.value))]}),r&&g.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));Za.displayName="SelectForm";const dp={conversiones:"/assets/images/conversiones.svg",click:"/assets/images/click.svg",impresiones:"/assets/images/impresiones.svg",porcentaje:"/assets/images/porcentaje.svg",vistas:"/assets/images/vistas.svg"},up=({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 g.jsxs("div",{className:"flex flex-col border bg-white px-3.5 py-7",children:[g.jsx("div",{className:"flex justify-end",children:g.jsx(Rt,{src:dp[t]||"",alt:"Icon",width:30,height:30})}),g.jsx("h2",{className:"my-3 font-bold",children:r}),g.jsx("small",{className:"text-3xl",children:s(e)}),g.jsx("div",{className:"mt-2 w-full",children:g.jsx(Xa,{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
5
5
  * Released under the MIT License
6
- */function tn(t){return t+.5|0}const Yt=(t,e,r)=>Math.max(Math.min(t,r),e);function rn(t){return Yt(tn(t*2.55),0,255)}function Ut(t){return Yt(tn(t*255),0,255)}function Pt(t){return Yt(tn(t/2.55)/100,0,1)}function Ja(t){return Yt(tn(t*100),0,100)}const st={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},zi=[..."0123456789ABCDEF"],up=t=>zi[t&15],fp=t=>zi[(t&240)>>4]+zi[t&15],no=t=>(t&240)>>4===(t&15),hp=t=>no(t.r)&&no(t.g)&&no(t.b)&&no(t.a);function gp(t){var e=t.length,r;return t[0]==="#"&&(e===4||e===5?r={r:255&st[t[1]]*17,g:255&st[t[2]]*17,b:255&st[t[3]]*17,a:e===5?st[t[4]]*17:255}:(e===7||e===9)&&(r={r:st[t[1]]<<4|st[t[2]],g:st[t[3]]<<4|st[t[4]],b:st[t[5]]<<4|st[t[6]],a:e===9?st[t[7]]<<4|st[t[8]]:255})),r}const pp=(t,e)=>t<255?e(t):"";function mp(t){var e=hp(t)?up:fp;return t?"#"+e(t.r)+e(t.g)+e(t.b)+pp(t.a,e):void 0}const bp=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Qa(t,e,r){const n=e*Math.min(r,1-r),o=(i,s=(i+t/30)%12)=>r-n*Math.max(Math.min(s-3,9-s,1),-1);return[o(0),o(8),o(4)]}function yp(t,e,r){const n=(o,i=(o+t/60)%6)=>r-r*e*Math.max(Math.min(i,4-i,1),0);return[n(5),n(3),n(1)]}function vp(t,e,r){const n=Qa(t,1,.5);let o;for(e+r>1&&(o=1/(e+r),e*=o,r*=o),o=0;o<3;o++)n[o]*=1-e-r,n[o]+=e;return n}function xp(t,e,r,n,o){return t===o?(e-r)/n+(e<r?6:0):e===o?(r-t)/n+2:(t-e)/n+4}function Bi(t){const r=t.r/255,n=t.g/255,o=t.b/255,i=Math.max(r,n,o),s=Math.min(r,n,o),a=(i+s)/2;let l,c,d;return i!==s&&(d=i-s,c=a>.5?d/(2-i-s):d/(i+s),l=xp(r,n,o,d,i),l=l*60+.5),[l|0,c||0,a]}function $i(t,e,r,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,r,n)).map(Ut)}function ji(t,e,r){return $i(Qa,t,e,r)}function wp(t,e,r){return $i(vp,t,e,r)}function kp(t,e,r){return $i(yp,t,e,r)}function el(t){return(t%360+360)%360}function Cp(t){const e=bp.exec(t);let r=255,n;if(!e)return;e[5]!==n&&(r=e[6]?rn(+e[5]):Ut(+e[5]));const o=el(+e[2]),i=+e[3]/100,s=+e[4]/100;return e[1]==="hwb"?n=wp(o,i,s):e[1]==="hsv"?n=kp(o,i,s):n=ji(o,i,s),{r:n[0],g:n[1],b:n[2],a:r}}function _p(t,e){var r=Bi(t);r[0]=el(r[0]+e),r=ji(r),t.r=r[0],t.g=r[1],t.b=r[2]}function Sp(t){if(!t)return;const e=Bi(t),r=e[0],n=Ja(e[1]),o=Ja(e[2]);return t.a<255?`hsla(${r}, ${n}%, ${o}%, ${Pt(t.a)})`:`hsl(${r}, ${n}%, ${o}%)`}const tl={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},rl={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Ep(){const t={},e=Object.keys(rl),r=Object.keys(tl);let n,o,i,s,a;for(n=0;n<e.length;n++){for(s=a=e[n],o=0;o<r.length;o++)i=r[o],a=a.replace(i,tl[i]);i=parseInt(rl[s],16),t[a]=[i>>16&255,i>>8&255,i&255]}return t}let oo;function Op(t){oo||(oo=Ep(),oo.transparent=[0,0,0,0]);const e=oo[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const Tp=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Np(t){const e=Tp.exec(t);let r=255,n,o,i;if(e){if(e[7]!==n){const s=+e[7];r=e[8]?rn(s):Yt(s*255,0,255)}return n=+e[1],o=+e[3],i=+e[5],n=255&(e[2]?rn(n):Yt(n,0,255)),o=255&(e[4]?rn(o):Yt(o,0,255)),i=255&(e[6]?rn(i):Yt(i,0,255)),{r:n,g:o,b:i,a:r}}}function Mp(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Pt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Hi=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Or=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Pp(t,e,r){const n=Or(Pt(t.r)),o=Or(Pt(t.g)),i=Or(Pt(t.b));return{r:Ut(Hi(n+r*(Or(Pt(e.r))-n))),g:Ut(Hi(o+r*(Or(Pt(e.g))-o))),b:Ut(Hi(i+r*(Or(Pt(e.b))-i))),a:t.a+r*(e.a-t.a)}}function io(t,e,r){if(t){let n=Bi(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*r,e===0?360:1)),n=ji(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function nl(t,e){return t&&Object.assign(e||{},t)}function ol(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Ut(t[3]))):(e=nl(t,{r:0,g:0,b:0,a:1}),e.a=Ut(e.a)),e}function Ap(t){return t.charAt(0)==="r"?Np(t):Cp(t)}class nn{constructor(e){if(e instanceof nn)return e;const r=typeof e;let n;r==="object"?n=ol(e):r==="string"&&(n=gp(e)||Op(e)||Ap(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=nl(this._rgb);return e&&(e.a=Pt(e.a)),e}set rgb(e){this._rgb=ol(e)}rgbString(){return this._valid?Mp(this._rgb):void 0}hexString(){return this._valid?mp(this._rgb):void 0}hslString(){return this._valid?Sp(this._rgb):void 0}mix(e,r){if(e){const n=this.rgb,o=e.rgb;let i;const s=r===i?.5:r,a=2*s-1,l=n.a-o.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;i=1-c,n.r=255&c*n.r+i*o.r+.5,n.g=255&c*n.g+i*o.g+.5,n.b=255&c*n.b+i*o.b+.5,n.a=s*n.a+(1-s)*o.a,this.rgb=n}return this}interpolate(e,r){return e&&(this._rgb=Pp(this._rgb,e._rgb,r)),this}clone(){return new nn(this.rgb)}alpha(e){return this._rgb.a=Ut(e),this}clearer(e){const r=this._rgb;return r.a*=1-e,this}greyscale(){const e=this._rgb,r=tn(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=r,this}opaquer(e){const r=this._rgb;return r.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return io(this._rgb,2,e),this}darken(e){return io(this._rgb,2,-e),this}saturate(e){return io(this._rgb,1,e),this}desaturate(e){return io(this._rgb,1,-e),this}rotate(e){return _p(this._rgb,e),this}}/*!
6
+ */function tn(t){return t+.5|0}const Yt=(t,e,r)=>Math.max(Math.min(t,r),e);function rn(t){return Yt(tn(t*2.55),0,255)}function Ut(t){return Yt(tn(t*255),0,255)}function Pt(t){return Yt(tn(t/2.55)/100,0,1)}function Ja(t){return Yt(tn(t*100),0,100)}const st={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},zi=[..."0123456789ABCDEF"],fp=t=>zi[t&15],hp=t=>zi[(t&240)>>4]+zi[t&15],no=t=>(t&240)>>4===(t&15),gp=t=>no(t.r)&&no(t.g)&&no(t.b)&&no(t.a);function pp(t){var e=t.length,r;return t[0]==="#"&&(e===4||e===5?r={r:255&st[t[1]]*17,g:255&st[t[2]]*17,b:255&st[t[3]]*17,a:e===5?st[t[4]]*17:255}:(e===7||e===9)&&(r={r:st[t[1]]<<4|st[t[2]],g:st[t[3]]<<4|st[t[4]],b:st[t[5]]<<4|st[t[6]],a:e===9?st[t[7]]<<4|st[t[8]]:255})),r}const mp=(t,e)=>t<255?e(t):"";function bp(t){var e=gp(t)?fp:hp;return t?"#"+e(t.r)+e(t.g)+e(t.b)+mp(t.a,e):void 0}const yp=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Qa(t,e,r){const n=e*Math.min(r,1-r),o=(i,s=(i+t/30)%12)=>r-n*Math.max(Math.min(s-3,9-s,1),-1);return[o(0),o(8),o(4)]}function vp(t,e,r){const n=(o,i=(o+t/60)%6)=>r-r*e*Math.max(Math.min(i,4-i,1),0);return[n(5),n(3),n(1)]}function xp(t,e,r){const n=Qa(t,1,.5);let o;for(e+r>1&&(o=1/(e+r),e*=o,r*=o),o=0;o<3;o++)n[o]*=1-e-r,n[o]+=e;return n}function wp(t,e,r,n,o){return t===o?(e-r)/n+(e<r?6:0):e===o?(r-t)/n+2:(t-e)/n+4}function Bi(t){const r=t.r/255,n=t.g/255,o=t.b/255,i=Math.max(r,n,o),s=Math.min(r,n,o),a=(i+s)/2;let l,c,d;return i!==s&&(d=i-s,c=a>.5?d/(2-i-s):d/(i+s),l=wp(r,n,o,d,i),l=l*60+.5),[l|0,c||0,a]}function $i(t,e,r,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,r,n)).map(Ut)}function ji(t,e,r){return $i(Qa,t,e,r)}function kp(t,e,r){return $i(xp,t,e,r)}function Cp(t,e,r){return $i(vp,t,e,r)}function el(t){return(t%360+360)%360}function _p(t){const e=yp.exec(t);let r=255,n;if(!e)return;e[5]!==n&&(r=e[6]?rn(+e[5]):Ut(+e[5]));const o=el(+e[2]),i=+e[3]/100,s=+e[4]/100;return e[1]==="hwb"?n=kp(o,i,s):e[1]==="hsv"?n=Cp(o,i,s):n=ji(o,i,s),{r:n[0],g:n[1],b:n[2],a:r}}function Sp(t,e){var r=Bi(t);r[0]=el(r[0]+e),r=ji(r),t.r=r[0],t.g=r[1],t.b=r[2]}function Ep(t){if(!t)return;const e=Bi(t),r=e[0],n=Ja(e[1]),o=Ja(e[2]);return t.a<255?`hsla(${r}, ${n}%, ${o}%, ${Pt(t.a)})`:`hsl(${r}, ${n}%, ${o}%)`}const tl={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},rl={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Op(){const t={},e=Object.keys(rl),r=Object.keys(tl);let n,o,i,s,a;for(n=0;n<e.length;n++){for(s=a=e[n],o=0;o<r.length;o++)i=r[o],a=a.replace(i,tl[i]);i=parseInt(rl[s],16),t[a]=[i>>16&255,i>>8&255,i&255]}return t}let oo;function Tp(t){oo||(oo=Op(),oo.transparent=[0,0,0,0]);const e=oo[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const Np=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Mp(t){const e=Np.exec(t);let r=255,n,o,i;if(e){if(e[7]!==n){const s=+e[7];r=e[8]?rn(s):Yt(s*255,0,255)}return n=+e[1],o=+e[3],i=+e[5],n=255&(e[2]?rn(n):Yt(n,0,255)),o=255&(e[4]?rn(o):Yt(o,0,255)),i=255&(e[6]?rn(i):Yt(i,0,255)),{r:n,g:o,b:i,a:r}}}function Pp(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Pt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Hi=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Or=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Ap(t,e,r){const n=Or(Pt(t.r)),o=Or(Pt(t.g)),i=Or(Pt(t.b));return{r:Ut(Hi(n+r*(Or(Pt(e.r))-n))),g:Ut(Hi(o+r*(Or(Pt(e.g))-o))),b:Ut(Hi(i+r*(Or(Pt(e.b))-i))),a:t.a+r*(e.a-t.a)}}function io(t,e,r){if(t){let n=Bi(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*r,e===0?360:1)),n=ji(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function nl(t,e){return t&&Object.assign(e||{},t)}function ol(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Ut(t[3]))):(e=nl(t,{r:0,g:0,b:0,a:1}),e.a=Ut(e.a)),e}function Ip(t){return t.charAt(0)==="r"?Mp(t):_p(t)}class nn{constructor(e){if(e instanceof nn)return e;const r=typeof e;let n;r==="object"?n=ol(e):r==="string"&&(n=pp(e)||Tp(e)||Ip(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=nl(this._rgb);return e&&(e.a=Pt(e.a)),e}set rgb(e){this._rgb=ol(e)}rgbString(){return this._valid?Pp(this._rgb):void 0}hexString(){return this._valid?bp(this._rgb):void 0}hslString(){return this._valid?Ep(this._rgb):void 0}mix(e,r){if(e){const n=this.rgb,o=e.rgb;let i;const s=r===i?.5:r,a=2*s-1,l=n.a-o.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;i=1-c,n.r=255&c*n.r+i*o.r+.5,n.g=255&c*n.g+i*o.g+.5,n.b=255&c*n.b+i*o.b+.5,n.a=s*n.a+(1-s)*o.a,this.rgb=n}return this}interpolate(e,r){return e&&(this._rgb=Ap(this._rgb,e._rgb,r)),this}clone(){return new nn(this.rgb)}alpha(e){return this._rgb.a=Ut(e),this}clearer(e){const r=this._rgb;return r.a*=1-e,this}greyscale(){const e=this._rgb,r=tn(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=r,this}opaquer(e){const r=this._rgb;return r.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return io(this._rgb,2,e),this}darken(e){return io(this._rgb,2,-e),this}saturate(e){return io(this._rgb,1,e),this}desaturate(e){return io(this._rgb,1,-e),this}rotate(e){return Sp(this._rgb,e),this}}/*!
7
7
  * Chart.js v4.4.8
8
8
  * https://www.chartjs.org
9
9
  * (c) 2025 Chart.js Contributors
10
10
  * Released under the MIT License
11
- */function At(){}const Dp=(()=>{let t=0;return()=>t++})();function We(t){return t==null}function Fe(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function ne(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Dt(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function vt(t,e){return Dt(t)?t:e}function ue(t,e){return typeof t>"u"?e:t}const Ip=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,il=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function be(t,e,r){if(t&&typeof t.call=="function")return t.apply(r,e)}function fe(t,e,r,n){let o,i,s;if(Fe(t))for(i=t.length,o=0;o<i;o++)e.call(r,t[o],o);else if(ne(t))for(s=Object.keys(t),i=s.length,o=0;o<i;o++)e.call(r,t[s[o]],s[o])}function so(t,e){let r,n,o,i;if(!t||!e||t.length!==e.length)return!1;for(r=0,n=t.length;r<n;++r)if(o=t[r],i=e[r],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function ao(t){if(Fe(t))return t.map(ao);if(ne(t)){const e=Object.create(null),r=Object.keys(t),n=r.length;let o=0;for(;o<n;++o)e[r[o]]=ao(t[r[o]]);return e}return t}function sl(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function Lp(t,e,r,n){if(!sl(t))return;const o=e[t],i=r[t];ne(o)&&ne(i)?on(o,i,n):e[t]=ao(i)}function on(t,e,r){const n=Fe(e)?e:[e],o=n.length;if(!ne(t))return t;r=r||{};const i=r.merger||Lp;let s;for(let a=0;a<o;++a){if(s=n[a],!ne(s))continue;const l=Object.keys(s);for(let c=0,d=l.length;c<d;++c)i(l[c],t,s,r)}return t}function sn(t,e){return on(t,e,{merger:Fp})}function Fp(t,e,r){if(!sl(t))return;const n=e[t],o=r[t];ne(n)&&ne(o)?sn(n,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ao(o))}const al={"":t=>t,x:t=>t.x,y:t=>t.y};function zp(t){const e=t.split("."),r=[];let n="";for(const o of e)n+=o,n.endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}function Bp(t){const e=zp(t);return r=>{for(const n of e){if(n==="")break;r=r&&r[n]}return r}}function an(t,e){return(al[e]||(al[e]=Bp(e)))(t)}function Wi(t){return t.charAt(0).toUpperCase()+t.slice(1)}const lo=t=>typeof t<"u",Kt=t=>typeof t=="function",ll=(t,e)=>{if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0};function $p(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Ae=Math.PI,Ce=2*Ae,co=Number.POSITIVE_INFINITY,jp=Ae/180,Te=Ae/2,ir=Ae/4,cl=Ae*2/3,dl=Math.sign;function Hp(t){const e=[],r=Math.sqrt(t);let n;for(n=1;n<r;n++)t%n===0&&(e.push(n),e.push(t/n));return r===(r|0)&&e.push(r),e.sort((o,i)=>o-i).pop(),e}function Wp(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function uo(t){return!Wp(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function sr(t){return t*(Ae/180)}function Vp(t){return t*(180/Ae)}function ul(t,e){const r=e.x-t.x,n=e.y-t.y,o=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i<-.5*Ae&&(i+=Ce),{angle:i,distance:o}}function Rp(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ar(t){return(t%Ce+Ce)%Ce}function fo(t,e,r,n){const o=ar(t),i=ar(e),s=ar(r),a=ar(i-o),l=ar(s-o),c=ar(o-i),d=ar(o-s);return o===i||o===s||n&&i===s||a>l&&c<d}function at(t,e,r){return Math.max(e,Math.min(r,t))}function Yp(t){return at(t,-32768,32767)}function ln(t,e,r,n=1e-6){return t>=Math.min(e,r)-n&&t<=Math.max(e,r)+n}function Vi(t,e,r){r=r||(s=>t[s]<e);let n=t.length-1,o=0,i;for(;n-o>1;)i=o+n>>1,r(i)?o=i:n=i;return{lo:o,hi:n}}const Ri=(t,e,r,n)=>Vi(t,r,n?o=>{const i=t[o][e];return i<r||i===r&&t[o+1][e]===r}:o=>t[o][e]<r),Up=(t,e,r)=>Vi(t,r,n=>t[n][e]>=r);function Kp(t,e,r){let n=0,o=t.length;for(;n<o&&t[n]<e;)n++;for(;o>n&&t[o-1]>r;)o--;return n>0||o<t.length?t.slice(n,o):t}const fl=["push","pop","shift","splice","unshift"];function qp(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),fl.forEach(r=>{const n="_onData"+Wi(r),o=t[r];Object.defineProperty(t,r,{configurable:!0,enumerable:!1,value(...i){const s=o.apply(this,i);return t._chartjs.listeners.forEach(a=>{typeof a[n]=="function"&&a[n](...i)}),s}})})}function hl(t,e){const r=t._chartjs;if(!r)return;const n=r.listeners,o=n.indexOf(e);o!==-1&&n.splice(o,1),!(n.length>0)&&(fl.forEach(i=>{delete t[i]}),delete t._chartjs)}function Gp(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const gl=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function pl(t,e){let r=[],n=!1;return function(...o){r=o,n||(n=!0,gl.call(window,()=>{n=!1,t.apply(e,r)}))}}function Xp(t,e){let r;return function(...n){return e?(clearTimeout(r),r=setTimeout(t,e,n)):t.apply(this,n),e}}const ml=t=>t==="start"?"left":t==="end"?"right":"center",et=(t,e,r)=>t==="start"?e:t==="end"?r:(e+r)/2,Zp=(t,e,r,n)=>t===(n?"left":"right")?r:t==="center"?(e+r)/2:e,ho=t=>t===0||t===1,bl=(t,e,r)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Ce/r)),yl=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*Ce/r)+1,cn={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Te)+1,easeOutSine:t=>Math.sin(t*Te),easeInOutSine:t=>-.5*(Math.cos(Ae*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>ho(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ho(t)?t:bl(t,.075,.3),easeOutElastic:t=>ho(t)?t:yl(t,.075,.3),easeInOutElastic(t){return ho(t)?t:t<.5?.5*bl(t*2,.1125,.45):.5+.5*yl(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-cn.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?cn.easeInBounce(t*2)*.5:cn.easeOutBounce(t*2-1)*.5+.5};function vl(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function xl(t){return vl(t)?t:new nn(t)}function Yi(t){return vl(t)?t:new nn(t).saturate(.5).darken(.1).hexString()}const Jp=["x","y","borderWidth","radius","tension"],Qp=["color","borderColor","backgroundColor"];function e0(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:Qp},numbers:{type:"number",properties:Jp}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function t0(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const wl=new Map;function r0(t,e){e=e||{};const r=t+JSON.stringify(e);let n=wl.get(r);return n||(n=new Intl.NumberFormat(t,e),wl.set(r,n)),n}function n0(t,e,r){return r0(e,r).format(t)}var o0={formatters:{values(t){return Fe(t)?t:""+t}}};function i0(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,r)=>r.lineWidth,tickColor:(e,r)=>r.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:o0.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const lr=Object.create(null),Ui=Object.create(null);function dn(t,e){if(!e)return t;const r=e.split(".");for(let n=0,o=r.length;n<o;++n){const i=r[n];t=t[i]||(t[i]=Object.create(null))}return t}function Ki(t,e,r){return typeof e=="string"?on(dn(t,e),r):on(dn(t,""),e)}class s0{constructor(e,r){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,o)=>Yi(o.backgroundColor),this.hoverBorderColor=(n,o)=>Yi(o.borderColor),this.hoverColor=(n,o)=>Yi(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(r)}set(e,r){return Ki(this,e,r)}get(e){return dn(this,e)}describe(e,r){return Ki(Ui,e,r)}override(e,r){return Ki(lr,e,r)}route(e,r,n,o){const i=dn(this,e),s=dn(this,n),a="_"+r;Object.defineProperties(i,{[a]:{value:i[r],writable:!0},[r]:{enumerable:!0,get(){const l=this[a],c=s[o];return ne(l)?Object.assign({},c,l):ue(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(r=>r(this))}}var we=new s0({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[e0,t0,i0]);function a0(t){return!t||We(t.size)||We(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function kl(t,e,r,n,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,r.push(o)),i>n&&(n=i),n}function cr(t,e,r){const n=t.currentDevicePixelRatio,o=r!==0?Math.max(r/2,.5):0;return Math.round((e-o)*n)/n+o}function Cl(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function _l(t,e,r,n){Sl(t,e,r,n,null)}function Sl(t,e,r,n,o){let i,s,a,l,c,d,u,f;const h=e.pointStyle,p=e.rotation,m=e.radius;let b=(p||0)*jp;if(h&&typeof h=="object"&&(i=h.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){t.save(),t.translate(r,n),t.rotate(b),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(m)||m<=0)){switch(t.beginPath(),h){default:o?t.ellipse(r,n,o/2,m,0,0,Ce):t.arc(r,n,m,0,Ce),t.closePath();break;case"triangle":d=o?o/2:m,t.moveTo(r+Math.sin(b)*d,n-Math.cos(b)*m),b+=cl,t.lineTo(r+Math.sin(b)*d,n-Math.cos(b)*m),b+=cl,t.lineTo(r+Math.sin(b)*d,n-Math.cos(b)*m),t.closePath();break;case"rectRounded":c=m*.516,l=m-c,s=Math.cos(b+ir)*l,u=Math.cos(b+ir)*(o?o/2-c:l),a=Math.sin(b+ir)*l,f=Math.sin(b+ir)*(o?o/2-c:l),t.arc(r-u,n-a,c,b-Ae,b-Te),t.arc(r+f,n-s,c,b-Te,b),t.arc(r+u,n+a,c,b,b+Te),t.arc(r-f,n+s,c,b+Te,b+Ae),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*m,d=o?o/2:l,t.rect(r-d,n-l,2*d,2*l);break}b+=ir;case"rectRot":u=Math.cos(b)*(o?o/2:m),s=Math.cos(b)*m,a=Math.sin(b)*m,f=Math.sin(b)*(o?o/2:m),t.moveTo(r-u,n-a),t.lineTo(r+f,n-s),t.lineTo(r+u,n+a),t.lineTo(r-f,n+s),t.closePath();break;case"crossRot":b+=ir;case"cross":u=Math.cos(b)*(o?o/2:m),s=Math.cos(b)*m,a=Math.sin(b)*m,f=Math.sin(b)*(o?o/2:m),t.moveTo(r-u,n-a),t.lineTo(r+u,n+a),t.moveTo(r+f,n-s),t.lineTo(r-f,n+s);break;case"star":u=Math.cos(b)*(o?o/2:m),s=Math.cos(b)*m,a=Math.sin(b)*m,f=Math.sin(b)*(o?o/2:m),t.moveTo(r-u,n-a),t.lineTo(r+u,n+a),t.moveTo(r+f,n-s),t.lineTo(r-f,n+s),b+=ir,u=Math.cos(b)*(o?o/2:m),s=Math.cos(b)*m,a=Math.sin(b)*m,f=Math.sin(b)*(o?o/2:m),t.moveTo(r-u,n-a),t.lineTo(r+u,n+a),t.moveTo(r+f,n-s),t.lineTo(r-f,n+s);break;case"line":s=o?o/2:Math.cos(b)*m,a=Math.sin(b)*m,t.moveTo(r-s,n-a),t.lineTo(r+s,n+a);break;case"dash":t.moveTo(r,n),t.lineTo(r+Math.cos(b)*(o?o/2:m),n+Math.sin(b)*m);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function El(t,e,r){return r=r||.5,!e||t&&t.x>e.left-r&&t.x<e.right+r&&t.y>e.top-r&&t.y<e.bottom+r}function qi(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Gi(t){t.restore()}function l0(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),We(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function c0(t,e,r,n,o){if(o.strikethrough||o.underline){const i=t.measureText(n),s=e-i.actualBoundingBoxLeft,a=e+i.actualBoundingBoxRight,l=r-i.actualBoundingBoxAscent,c=r+i.actualBoundingBoxDescent,d=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(s,d),t.lineTo(a,d),t.stroke()}}function d0(t,e){const r=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=r}function go(t,e,r,n,o,i={}){const s=Fe(e)?e:[e],a=i.strokeWidth>0&&i.strokeColor!=="";let l,c;for(t.save(),t.font=o.string,l0(t,i),l=0;l<s.length;++l)c=s[l],i.backdrop&&d0(t,i.backdrop),a&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),We(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(c,r,n,i.maxWidth)),t.fillText(c,r,n,i.maxWidth),c0(t,r,n,c,i),n+=Number(o.lineHeight);t.restore()}function Xi(t,e){const{x:r,y:n,w:o,h:i,radius:s}=e;t.arc(r+s.topLeft,n+s.topLeft,s.topLeft,1.5*Ae,Ae,!0),t.lineTo(r,n+i-s.bottomLeft),t.arc(r+s.bottomLeft,n+i-s.bottomLeft,s.bottomLeft,Ae,Te,!0),t.lineTo(r+o-s.bottomRight,n+i),t.arc(r+o-s.bottomRight,n+i-s.bottomRight,s.bottomRight,Te,0,!0),t.lineTo(r+o,n+s.topRight),t.arc(r+o-s.topRight,n+s.topRight,s.topRight,0,-Te,!0),t.lineTo(r+s.topLeft,n)}const u0=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,f0=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function h0(t,e){const r=(""+t).match(u0);if(!r||r[1]==="normal")return e*1.2;switch(t=+r[2],r[3]){case"px":return t;case"%":t/=100;break}return e*t}const g0=t=>+t||0;function Zi(t,e){const r={},n=ne(e),o=n?Object.keys(e):e,i=ne(t)?n?s=>ue(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of o)r[s]=g0(i(s));return r}function p0(t){return Zi(t,{top:"y",right:"x",bottom:"y",left:"x"})}function un(t){return Zi(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ht(t){const e=p0(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ke(t,e){t=t||{},e=e||we.font;let r=ue(t.size,e.size);typeof r=="string"&&(r=parseInt(r,10));let n=ue(t.style,e.style);n&&!(""+n).match(f0)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const o={family:ue(t.family,e.family),lineHeight:h0(ue(t.lineHeight,e.lineHeight),r),size:r,style:n,weight:ue(t.weight,e.weight),string:""};return o.string=a0(o),o}function po(t,e,r,n){let o,i,s;for(o=0,i=t.length;o<i;++o)if(s=t[o],s!==void 0&&s!==void 0)return s}function m0(t,e,r){const{min:n,max:o}=t,i=il(e,(o-n)/2),s=(a,l)=>r&&a===0?0:a+l;return{min:s(n,-Math.abs(i)),max:s(o,i)}}function Tr(t,e){return Object.assign(Object.create(t),e)}function Ji(t,e=[""],r,n,o=()=>t[0]){const i=r||t;typeof n>"u"&&(n=Pl("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:o,override:a=>Ji([a,...t],e,i,n)};return new Proxy(s,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return Tl(a,l,()=>_0(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return Al(a).includes(l)},ownKeys(a){return Al(a)},set(a,l,c){const d=a._storage||(a._storage=o());return a[l]=d[l]=c,delete a._keys,!0}})}function Nr(t,e,r,n){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:r,_stack:new Set,_descriptors:Ol(t,n),setContext:i=>Nr(t,i,r,n),override:i=>Nr(t.override(i),e,r,n)};return new Proxy(o,{deleteProperty(i,s){return delete i[s],delete t[s],!0},get(i,s,a){return Tl(i,s,()=>y0(i,s,a))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(i,s){return Reflect.has(t,s)},ownKeys(){return Reflect.ownKeys(t)},set(i,s,a){return t[s]=a,delete i[s],!0}})}function Ol(t,e={scriptable:!0,indexable:!0}){const{_scriptable:r=e.scriptable,_indexable:n=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:r,indexable:n,isScriptable:Kt(r)?r:()=>r,isIndexable:Kt(n)?n:()=>n}}const b0=(t,e)=>t?t+Wi(e):e,Qi=(t,e)=>ne(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Tl(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const n=r();return t[e]=n,n}function y0(t,e,r){const{_proxy:n,_context:o,_subProxy:i,_descriptors:s}=t;let a=n[e];return Kt(a)&&s.isScriptable(e)&&(a=v0(e,a,t,r)),Fe(a)&&a.length&&(a=x0(e,a,t,s.isIndexable)),Qi(e,a)&&(a=Nr(a,o,i&&i[e],s)),a}function v0(t,e,r,n){const{_proxy:o,_context:i,_subProxy:s,_stack:a}=r;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(i,s||n);return a.delete(t),Qi(t,l)&&(l=es(o._scopes,o,t,l)),l}function x0(t,e,r,n){const{_proxy:o,_context:i,_subProxy:s,_descriptors:a}=r;if(typeof i.index<"u"&&n(t))return e[i.index%e.length];if(ne(e[0])){const l=e,c=o._scopes.filter(d=>d!==l);e=[];for(const d of l){const u=es(c,o,t,d);e.push(Nr(u,i,s&&s[t],a))}}return e}function Nl(t,e,r){return Kt(t)?t(e,r):t}const w0=(t,e)=>t===!0?e:typeof t=="string"?an(e,t):void 0;function k0(t,e,r,n,o){for(const i of e){const s=w0(r,i);if(s){t.add(s);const a=Nl(s._fallback,r,o);if(typeof a<"u"&&a!==r&&a!==n)return a}else if(s===!1&&typeof n<"u"&&r!==n)return null}return!1}function es(t,e,r,n){const o=e._rootScopes,i=Nl(e._fallback,r,n),s=[...t,...o],a=new Set;a.add(n);let l=Ml(a,s,r,i||r,n);return l===null||typeof i<"u"&&i!==r&&(l=Ml(a,s,i,l,n),l===null)?!1:Ji(Array.from(a),[""],o,i,()=>C0(e,r,n))}function Ml(t,e,r,n,o){for(;r;)r=k0(t,e,r,n,o);return r}function C0(t,e,r){const n=t._getTarget();e in n||(n[e]={});const o=n[e];return Fe(o)&&ne(r)?r:o||{}}function _0(t,e,r,n){let o;for(const i of e)if(o=Pl(b0(i,t),r),typeof o<"u")return Qi(t,o)?es(r,n,t,o):o}function Pl(t,e){for(const r of e){if(!r)continue;const n=r[t];if(typeof n<"u")return n}}function Al(t){let e=t._keys;return e||(e=t._keys=S0(t._scopes)),e}function S0(t){const e=new Set;for(const r of t)for(const n of Object.keys(r).filter(o=>!o.startsWith("_")))e.add(n);return Array.from(e)}function ts(){return typeof window<"u"&&typeof document<"u"}function rs(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function mo(t,e,r){let n;return typeof t=="string"?(n=parseInt(t,10),t.indexOf("%")!==-1&&(n=n/100*e.parentNode[r])):n=t,n}const bo=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function E0(t,e){return bo(t).getPropertyValue(e)}const O0=["top","right","bottom","left"];function dr(t,e,r){const n={};r=r?"-"+r:"";for(let o=0;o<4;o++){const i=O0[o];n[i]=parseFloat(t[e+"-"+i+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const T0=(t,e,r)=>(t>0||e>0)&&(!r||!r.shadowRoot);function N0(t,e){const r=t.touches,n=r&&r.length?r[0]:t,{offsetX:o,offsetY:i}=n;let s=!1,a,l;if(T0(o,i,t.target))a=o,l=i;else{const c=e.getBoundingClientRect();a=n.clientX-c.left,l=n.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function ur(t,e){if("native"in t)return t;const{canvas:r,currentDevicePixelRatio:n}=e,o=bo(r),i=o.boxSizing==="border-box",s=dr(o,"padding"),a=dr(o,"border","width"),{x:l,y:c,box:d}=N0(t,r),u=s.left+(d&&a.left),f=s.top+(d&&a.top);let{width:h,height:p}=e;return i&&(h-=s.width+a.width,p-=s.height+a.height),{x:Math.round((l-u)/h*r.width/n),y:Math.round((c-f)/p*r.height/n)}}function M0(t,e,r){let n,o;if(e===void 0||r===void 0){const i=t&&rs(t);if(!i)e=t.clientWidth,r=t.clientHeight;else{const s=i.getBoundingClientRect(),a=bo(i),l=dr(a,"border","width"),c=dr(a,"padding");e=s.width-c.width-l.width,r=s.height-c.height-l.height,n=mo(a.maxWidth,i,"clientWidth"),o=mo(a.maxHeight,i,"clientHeight")}}return{width:e,height:r,maxWidth:n||co,maxHeight:o||co}}const yo=t=>Math.round(t*10)/10;function P0(t,e,r,n){const o=bo(t),i=dr(o,"margin"),s=mo(o.maxWidth,t,"clientWidth")||co,a=mo(o.maxHeight,t,"clientHeight")||co,l=M0(t,e,r);let{width:c,height:d}=l;if(o.boxSizing==="content-box"){const f=dr(o,"border","width"),h=dr(o,"padding");c-=h.width+f.width,d-=h.height+f.height}return c=Math.max(0,c-i.width),d=Math.max(0,n?c/n:d-i.height),c=yo(Math.min(c,s,l.maxWidth)),d=yo(Math.min(d,a,l.maxHeight)),c&&!d&&(d=yo(c/2)),(e!==void 0||r!==void 0)&&n&&l.height&&d>l.height&&(d=l.height,c=yo(Math.floor(d*n))),{width:c,height:d}}function Dl(t,e,r){const n=e||1,o=Math.floor(t.height*n),i=Math.floor(t.width*n);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(r||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),t.currentDevicePixelRatio!==n||s.height!==o||s.width!==i?(t.currentDevicePixelRatio=n,s.height=o,s.width=i,t.ctx.setTransform(n,0,0,n,0,0),!0):!1}const A0=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};ts()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function Il(t,e){const r=E0(t,e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}const D0=function(t,e){return{x(r){return t+t+e-r},setWidth(r){e=r},textAlign(r){return r==="center"?r:r==="right"?"left":"right"},xPlus(r,n){return r-n},leftForLtr(r,n){return r-n}}},I0=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Mr(t,e,r){return t?D0(e,r):I0()}function Ll(t,e){let r,n;(e==="ltr"||e==="rtl")&&(r=t.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",e,"important"),t.prevTextDirection=n)}function Fl(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}/*!
11
+ */function At(){}const Dp=(()=>{let t=0;return()=>t++})();function We(t){return t==null}function Fe(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function ne(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function It(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function vt(t,e){return It(t)?t:e}function ue(t,e){return typeof t>"u"?e:t}const Lp=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,il=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function be(t,e,r){if(t&&typeof t.call=="function")return t.apply(r,e)}function fe(t,e,r,n){let o,i,s;if(Fe(t))for(i=t.length,o=0;o<i;o++)e.call(r,t[o],o);else if(ne(t))for(s=Object.keys(t),i=s.length,o=0;o<i;o++)e.call(r,t[s[o]],s[o])}function so(t,e){let r,n,o,i;if(!t||!e||t.length!==e.length)return!1;for(r=0,n=t.length;r<n;++r)if(o=t[r],i=e[r],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function ao(t){if(Fe(t))return t.map(ao);if(ne(t)){const e=Object.create(null),r=Object.keys(t),n=r.length;let o=0;for(;o<n;++o)e[r[o]]=ao(t[r[o]]);return e}return t}function sl(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function Fp(t,e,r,n){if(!sl(t))return;const o=e[t],i=r[t];ne(o)&&ne(i)?on(o,i,n):e[t]=ao(i)}function on(t,e,r){const n=Fe(e)?e:[e],o=n.length;if(!ne(t))return t;r=r||{};const i=r.merger||Fp;let s;for(let a=0;a<o;++a){if(s=n[a],!ne(s))continue;const l=Object.keys(s);for(let c=0,d=l.length;c<d;++c)i(l[c],t,s,r)}return t}function sn(t,e){return on(t,e,{merger:zp})}function zp(t,e,r){if(!sl(t))return;const n=e[t],o=r[t];ne(n)&&ne(o)?sn(n,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ao(o))}const al={"":t=>t,x:t=>t.x,y:t=>t.y};function Bp(t){const e=t.split("."),r=[];let n="";for(const o of e)n+=o,n.endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}function $p(t){const e=Bp(t);return r=>{for(const n of e){if(n==="")break;r=r&&r[n]}return r}}function an(t,e){return(al[e]||(al[e]=$p(e)))(t)}function Wi(t){return t.charAt(0).toUpperCase()+t.slice(1)}const lo=t=>typeof t<"u",Kt=t=>typeof t=="function",ll=(t,e)=>{if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0};function jp(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Ae=Math.PI,Ce=2*Ae,co=Number.POSITIVE_INFINITY,Hp=Ae/180,Te=Ae/2,ir=Ae/4,cl=Ae*2/3,dl=Math.sign;function Wp(t){const e=[],r=Math.sqrt(t);let n;for(n=1;n<r;n++)t%n===0&&(e.push(n),e.push(t/n));return r===(r|0)&&e.push(r),e.sort((o,i)=>o-i).pop(),e}function Vp(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function uo(t){return!Vp(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function sr(t){return t*(Ae/180)}function Rp(t){return t*(180/Ae)}function ul(t,e){const r=e.x-t.x,n=e.y-t.y,o=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i<-.5*Ae&&(i+=Ce),{angle:i,distance:o}}function Yp(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ar(t){return(t%Ce+Ce)%Ce}function fo(t,e,r,n){const o=ar(t),i=ar(e),s=ar(r),a=ar(i-o),l=ar(s-o),c=ar(o-i),d=ar(o-s);return o===i||o===s||n&&i===s||a>l&&c<d}function at(t,e,r){return Math.max(e,Math.min(r,t))}function Up(t){return at(t,-32768,32767)}function ln(t,e,r,n=1e-6){return t>=Math.min(e,r)-n&&t<=Math.max(e,r)+n}function Vi(t,e,r){r=r||(s=>t[s]<e);let n=t.length-1,o=0,i;for(;n-o>1;)i=o+n>>1,r(i)?o=i:n=i;return{lo:o,hi:n}}const Ri=(t,e,r,n)=>Vi(t,r,n?o=>{const i=t[o][e];return i<r||i===r&&t[o+1][e]===r}:o=>t[o][e]<r),Kp=(t,e,r)=>Vi(t,r,n=>t[n][e]>=r);function qp(t,e,r){let n=0,o=t.length;for(;n<o&&t[n]<e;)n++;for(;o>n&&t[o-1]>r;)o--;return n>0||o<t.length?t.slice(n,o):t}const fl=["push","pop","shift","splice","unshift"];function Gp(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),fl.forEach(r=>{const n="_onData"+Wi(r),o=t[r];Object.defineProperty(t,r,{configurable:!0,enumerable:!1,value(...i){const s=o.apply(this,i);return t._chartjs.listeners.forEach(a=>{typeof a[n]=="function"&&a[n](...i)}),s}})})}function hl(t,e){const r=t._chartjs;if(!r)return;const n=r.listeners,o=n.indexOf(e);o!==-1&&n.splice(o,1),!(n.length>0)&&(fl.forEach(i=>{delete t[i]}),delete t._chartjs)}function Xp(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const gl=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function pl(t,e){let r=[],n=!1;return function(...o){r=o,n||(n=!0,gl.call(window,()=>{n=!1,t.apply(e,r)}))}}function Zp(t,e){let r;return function(...n){return e?(clearTimeout(r),r=setTimeout(t,e,n)):t.apply(this,n),e}}const ml=t=>t==="start"?"left":t==="end"?"right":"center",et=(t,e,r)=>t==="start"?e:t==="end"?r:(e+r)/2,Jp=(t,e,r,n)=>t===(n?"left":"right")?r:t==="center"?(e+r)/2:e,ho=t=>t===0||t===1,bl=(t,e,r)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Ce/r)),yl=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*Ce/r)+1,cn={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Te)+1,easeOutSine:t=>Math.sin(t*Te),easeInOutSine:t=>-.5*(Math.cos(Ae*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>ho(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ho(t)?t:bl(t,.075,.3),easeOutElastic:t=>ho(t)?t:yl(t,.075,.3),easeInOutElastic(t){return ho(t)?t:t<.5?.5*bl(t*2,.1125,.45):.5+.5*yl(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-cn.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?cn.easeInBounce(t*2)*.5:cn.easeOutBounce(t*2-1)*.5+.5};function vl(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function xl(t){return vl(t)?t:new nn(t)}function Yi(t){return vl(t)?t:new nn(t).saturate(.5).darken(.1).hexString()}const Qp=["x","y","borderWidth","radius","tension"],e0=["color","borderColor","backgroundColor"];function t0(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:e0},numbers:{type:"number",properties:Qp}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function r0(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const wl=new Map;function n0(t,e){e=e||{};const r=t+JSON.stringify(e);let n=wl.get(r);return n||(n=new Intl.NumberFormat(t,e),wl.set(r,n)),n}function o0(t,e,r){return n0(e,r).format(t)}var i0={formatters:{values(t){return Fe(t)?t:""+t}}};function s0(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,r)=>r.lineWidth,tickColor:(e,r)=>r.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:i0.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const lr=Object.create(null),Ui=Object.create(null);function dn(t,e){if(!e)return t;const r=e.split(".");for(let n=0,o=r.length;n<o;++n){const i=r[n];t=t[i]||(t[i]=Object.create(null))}return t}function Ki(t,e,r){return typeof e=="string"?on(dn(t,e),r):on(dn(t,""),e)}class a0{constructor(e,r){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,o)=>Yi(o.backgroundColor),this.hoverBorderColor=(n,o)=>Yi(o.borderColor),this.hoverColor=(n,o)=>Yi(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(r)}set(e,r){return Ki(this,e,r)}get(e){return dn(this,e)}describe(e,r){return Ki(Ui,e,r)}override(e,r){return Ki(lr,e,r)}route(e,r,n,o){const i=dn(this,e),s=dn(this,n),a="_"+r;Object.defineProperties(i,{[a]:{value:i[r],writable:!0},[r]:{enumerable:!0,get(){const l=this[a],c=s[o];return ne(l)?Object.assign({},c,l):ue(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(r=>r(this))}}var we=new a0({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[t0,r0,s0]);function l0(t){return!t||We(t.size)||We(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function kl(t,e,r,n,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,r.push(o)),i>n&&(n=i),n}function cr(t,e,r){const n=t.currentDevicePixelRatio,o=r!==0?Math.max(r/2,.5):0;return Math.round((e-o)*n)/n+o}function Cl(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function _l(t,e,r,n){Sl(t,e,r,n,null)}function Sl(t,e,r,n,o){let i,s,a,l,c,d,u,f;const h=e.pointStyle,p=e.rotation,m=e.radius;let b=(p||0)*Hp;if(h&&typeof h=="object"&&(i=h.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){t.save(),t.translate(r,n),t.rotate(b),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(m)||m<=0)){switch(t.beginPath(),h){default:o?t.ellipse(r,n,o/2,m,0,0,Ce):t.arc(r,n,m,0,Ce),t.closePath();break;case"triangle":d=o?o/2:m,t.moveTo(r+Math.sin(b)*d,n-Math.cos(b)*m),b+=cl,t.lineTo(r+Math.sin(b)*d,n-Math.cos(b)*m),b+=cl,t.lineTo(r+Math.sin(b)*d,n-Math.cos(b)*m),t.closePath();break;case"rectRounded":c=m*.516,l=m-c,s=Math.cos(b+ir)*l,u=Math.cos(b+ir)*(o?o/2-c:l),a=Math.sin(b+ir)*l,f=Math.sin(b+ir)*(o?o/2-c:l),t.arc(r-u,n-a,c,b-Ae,b-Te),t.arc(r+f,n-s,c,b-Te,b),t.arc(r+u,n+a,c,b,b+Te),t.arc(r-f,n+s,c,b+Te,b+Ae),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*m,d=o?o/2:l,t.rect(r-d,n-l,2*d,2*l);break}b+=ir;case"rectRot":u=Math.cos(b)*(o?o/2:m),s=Math.cos(b)*m,a=Math.sin(b)*m,f=Math.sin(b)*(o?o/2:m),t.moveTo(r-u,n-a),t.lineTo(r+f,n-s),t.lineTo(r+u,n+a),t.lineTo(r-f,n+s),t.closePath();break;case"crossRot":b+=ir;case"cross":u=Math.cos(b)*(o?o/2:m),s=Math.cos(b)*m,a=Math.sin(b)*m,f=Math.sin(b)*(o?o/2:m),t.moveTo(r-u,n-a),t.lineTo(r+u,n+a),t.moveTo(r+f,n-s),t.lineTo(r-f,n+s);break;case"star":u=Math.cos(b)*(o?o/2:m),s=Math.cos(b)*m,a=Math.sin(b)*m,f=Math.sin(b)*(o?o/2:m),t.moveTo(r-u,n-a),t.lineTo(r+u,n+a),t.moveTo(r+f,n-s),t.lineTo(r-f,n+s),b+=ir,u=Math.cos(b)*(o?o/2:m),s=Math.cos(b)*m,a=Math.sin(b)*m,f=Math.sin(b)*(o?o/2:m),t.moveTo(r-u,n-a),t.lineTo(r+u,n+a),t.moveTo(r+f,n-s),t.lineTo(r-f,n+s);break;case"line":s=o?o/2:Math.cos(b)*m,a=Math.sin(b)*m,t.moveTo(r-s,n-a),t.lineTo(r+s,n+a);break;case"dash":t.moveTo(r,n),t.lineTo(r+Math.cos(b)*(o?o/2:m),n+Math.sin(b)*m);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function El(t,e,r){return r=r||.5,!e||t&&t.x>e.left-r&&t.x<e.right+r&&t.y>e.top-r&&t.y<e.bottom+r}function qi(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Gi(t){t.restore()}function c0(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),We(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function d0(t,e,r,n,o){if(o.strikethrough||o.underline){const i=t.measureText(n),s=e-i.actualBoundingBoxLeft,a=e+i.actualBoundingBoxRight,l=r-i.actualBoundingBoxAscent,c=r+i.actualBoundingBoxDescent,d=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(s,d),t.lineTo(a,d),t.stroke()}}function u0(t,e){const r=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=r}function go(t,e,r,n,o,i={}){const s=Fe(e)?e:[e],a=i.strokeWidth>0&&i.strokeColor!=="";let l,c;for(t.save(),t.font=o.string,c0(t,i),l=0;l<s.length;++l)c=s[l],i.backdrop&&u0(t,i.backdrop),a&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),We(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(c,r,n,i.maxWidth)),t.fillText(c,r,n,i.maxWidth),d0(t,r,n,c,i),n+=Number(o.lineHeight);t.restore()}function Xi(t,e){const{x:r,y:n,w:o,h:i,radius:s}=e;t.arc(r+s.topLeft,n+s.topLeft,s.topLeft,1.5*Ae,Ae,!0),t.lineTo(r,n+i-s.bottomLeft),t.arc(r+s.bottomLeft,n+i-s.bottomLeft,s.bottomLeft,Ae,Te,!0),t.lineTo(r+o-s.bottomRight,n+i),t.arc(r+o-s.bottomRight,n+i-s.bottomRight,s.bottomRight,Te,0,!0),t.lineTo(r+o,n+s.topRight),t.arc(r+o-s.topRight,n+s.topRight,s.topRight,0,-Te,!0),t.lineTo(r+s.topLeft,n)}const f0=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,h0=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function g0(t,e){const r=(""+t).match(f0);if(!r||r[1]==="normal")return e*1.2;switch(t=+r[2],r[3]){case"px":return t;case"%":t/=100;break}return e*t}const p0=t=>+t||0;function Zi(t,e){const r={},n=ne(e),o=n?Object.keys(e):e,i=ne(t)?n?s=>ue(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of o)r[s]=p0(i(s));return r}function m0(t){return Zi(t,{top:"y",right:"x",bottom:"y",left:"x"})}function un(t){return Zi(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ht(t){const e=m0(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ke(t,e){t=t||{},e=e||we.font;let r=ue(t.size,e.size);typeof r=="string"&&(r=parseInt(r,10));let n=ue(t.style,e.style);n&&!(""+n).match(h0)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const o={family:ue(t.family,e.family),lineHeight:g0(ue(t.lineHeight,e.lineHeight),r),size:r,style:n,weight:ue(t.weight,e.weight),string:""};return o.string=l0(o),o}function po(t,e,r,n){let o,i,s;for(o=0,i=t.length;o<i;++o)if(s=t[o],s!==void 0&&s!==void 0)return s}function b0(t,e,r){const{min:n,max:o}=t,i=il(e,(o-n)/2),s=(a,l)=>r&&a===0?0:a+l;return{min:s(n,-Math.abs(i)),max:s(o,i)}}function Tr(t,e){return Object.assign(Object.create(t),e)}function Ji(t,e=[""],r,n,o=()=>t[0]){const i=r||t;typeof n>"u"&&(n=Pl("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:o,override:a=>Ji([a,...t],e,i,n)};return new Proxy(s,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return Tl(a,l,()=>S0(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return Al(a).includes(l)},ownKeys(a){return Al(a)},set(a,l,c){const d=a._storage||(a._storage=o());return a[l]=d[l]=c,delete a._keys,!0}})}function Nr(t,e,r,n){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:r,_stack:new Set,_descriptors:Ol(t,n),setContext:i=>Nr(t,i,r,n),override:i=>Nr(t.override(i),e,r,n)};return new Proxy(o,{deleteProperty(i,s){return delete i[s],delete t[s],!0},get(i,s,a){return Tl(i,s,()=>v0(i,s,a))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(i,s){return Reflect.has(t,s)},ownKeys(){return Reflect.ownKeys(t)},set(i,s,a){return t[s]=a,delete i[s],!0}})}function Ol(t,e={scriptable:!0,indexable:!0}){const{_scriptable:r=e.scriptable,_indexable:n=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:r,indexable:n,isScriptable:Kt(r)?r:()=>r,isIndexable:Kt(n)?n:()=>n}}const y0=(t,e)=>t?t+Wi(e):e,Qi=(t,e)=>ne(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Tl(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const n=r();return t[e]=n,n}function v0(t,e,r){const{_proxy:n,_context:o,_subProxy:i,_descriptors:s}=t;let a=n[e];return Kt(a)&&s.isScriptable(e)&&(a=x0(e,a,t,r)),Fe(a)&&a.length&&(a=w0(e,a,t,s.isIndexable)),Qi(e,a)&&(a=Nr(a,o,i&&i[e],s)),a}function x0(t,e,r,n){const{_proxy:o,_context:i,_subProxy:s,_stack:a}=r;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(i,s||n);return a.delete(t),Qi(t,l)&&(l=es(o._scopes,o,t,l)),l}function w0(t,e,r,n){const{_proxy:o,_context:i,_subProxy:s,_descriptors:a}=r;if(typeof i.index<"u"&&n(t))return e[i.index%e.length];if(ne(e[0])){const l=e,c=o._scopes.filter(d=>d!==l);e=[];for(const d of l){const u=es(c,o,t,d);e.push(Nr(u,i,s&&s[t],a))}}return e}function Nl(t,e,r){return Kt(t)?t(e,r):t}const k0=(t,e)=>t===!0?e:typeof t=="string"?an(e,t):void 0;function C0(t,e,r,n,o){for(const i of e){const s=k0(r,i);if(s){t.add(s);const a=Nl(s._fallback,r,o);if(typeof a<"u"&&a!==r&&a!==n)return a}else if(s===!1&&typeof n<"u"&&r!==n)return null}return!1}function es(t,e,r,n){const o=e._rootScopes,i=Nl(e._fallback,r,n),s=[...t,...o],a=new Set;a.add(n);let l=Ml(a,s,r,i||r,n);return l===null||typeof i<"u"&&i!==r&&(l=Ml(a,s,i,l,n),l===null)?!1:Ji(Array.from(a),[""],o,i,()=>_0(e,r,n))}function Ml(t,e,r,n,o){for(;r;)r=C0(t,e,r,n,o);return r}function _0(t,e,r){const n=t._getTarget();e in n||(n[e]={});const o=n[e];return Fe(o)&&ne(r)?r:o||{}}function S0(t,e,r,n){let o;for(const i of e)if(o=Pl(y0(i,t),r),typeof o<"u")return Qi(t,o)?es(r,n,t,o):o}function Pl(t,e){for(const r of e){if(!r)continue;const n=r[t];if(typeof n<"u")return n}}function Al(t){let e=t._keys;return e||(e=t._keys=E0(t._scopes)),e}function E0(t){const e=new Set;for(const r of t)for(const n of Object.keys(r).filter(o=>!o.startsWith("_")))e.add(n);return Array.from(e)}function ts(){return typeof window<"u"&&typeof document<"u"}function rs(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function mo(t,e,r){let n;return typeof t=="string"?(n=parseInt(t,10),t.indexOf("%")!==-1&&(n=n/100*e.parentNode[r])):n=t,n}const bo=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function O0(t,e){return bo(t).getPropertyValue(e)}const T0=["top","right","bottom","left"];function dr(t,e,r){const n={};r=r?"-"+r:"";for(let o=0;o<4;o++){const i=T0[o];n[i]=parseFloat(t[e+"-"+i+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const N0=(t,e,r)=>(t>0||e>0)&&(!r||!r.shadowRoot);function M0(t,e){const r=t.touches,n=r&&r.length?r[0]:t,{offsetX:o,offsetY:i}=n;let s=!1,a,l;if(N0(o,i,t.target))a=o,l=i;else{const c=e.getBoundingClientRect();a=n.clientX-c.left,l=n.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function ur(t,e){if("native"in t)return t;const{canvas:r,currentDevicePixelRatio:n}=e,o=bo(r),i=o.boxSizing==="border-box",s=dr(o,"padding"),a=dr(o,"border","width"),{x:l,y:c,box:d}=M0(t,r),u=s.left+(d&&a.left),f=s.top+(d&&a.top);let{width:h,height:p}=e;return i&&(h-=s.width+a.width,p-=s.height+a.height),{x:Math.round((l-u)/h*r.width/n),y:Math.round((c-f)/p*r.height/n)}}function P0(t,e,r){let n,o;if(e===void 0||r===void 0){const i=t&&rs(t);if(!i)e=t.clientWidth,r=t.clientHeight;else{const s=i.getBoundingClientRect(),a=bo(i),l=dr(a,"border","width"),c=dr(a,"padding");e=s.width-c.width-l.width,r=s.height-c.height-l.height,n=mo(a.maxWidth,i,"clientWidth"),o=mo(a.maxHeight,i,"clientHeight")}}return{width:e,height:r,maxWidth:n||co,maxHeight:o||co}}const yo=t=>Math.round(t*10)/10;function A0(t,e,r,n){const o=bo(t),i=dr(o,"margin"),s=mo(o.maxWidth,t,"clientWidth")||co,a=mo(o.maxHeight,t,"clientHeight")||co,l=P0(t,e,r);let{width:c,height:d}=l;if(o.boxSizing==="content-box"){const f=dr(o,"border","width"),h=dr(o,"padding");c-=h.width+f.width,d-=h.height+f.height}return c=Math.max(0,c-i.width),d=Math.max(0,n?c/n:d-i.height),c=yo(Math.min(c,s,l.maxWidth)),d=yo(Math.min(d,a,l.maxHeight)),c&&!d&&(d=yo(c/2)),(e!==void 0||r!==void 0)&&n&&l.height&&d>l.height&&(d=l.height,c=yo(Math.floor(d*n))),{width:c,height:d}}function Il(t,e,r){const n=e||1,o=Math.floor(t.height*n),i=Math.floor(t.width*n);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(r||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),t.currentDevicePixelRatio!==n||s.height!==o||s.width!==i?(t.currentDevicePixelRatio=n,s.height=o,s.width=i,t.ctx.setTransform(n,0,0,n,0,0),!0):!1}const I0=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};ts()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function Dl(t,e){const r=O0(t,e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}const D0=function(t,e){return{x(r){return t+t+e-r},setWidth(r){e=r},textAlign(r){return r==="center"?r:r==="right"?"left":"right"},xPlus(r,n){return r-n},leftForLtr(r,n){return r-n}}},L0=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Mr(t,e,r){return t?D0(e,r):L0()}function Ll(t,e){let r,n;(e==="ltr"||e==="rtl")&&(r=t.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",e,"important"),t.prevTextDirection=n)}function Fl(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}/*!
12
12
  * Chart.js v4.4.8
13
13
  * https://www.chartjs.org
14
14
  * (c) 2025 Chart.js Contributors
15
15
  * Released under the MIT License
16
- */class L0{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,r,n,o){const i=r.listeners[o],s=r.duration;i.forEach(a=>a({chart:e,initial:r.initial,numSteps:s,currentStep:Math.min(n-r.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=gl.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let r=0;this._charts.forEach((n,o)=>{if(!n.running||!n.items.length)return;const i=n.items;let s=i.length-1,a=!1,l;for(;s>=0;--s)l=i[s],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(e),a=!0):(i[s]=i[i.length-1],i.pop());a&&(o.draw(),this._notify(o,n,e,"progress")),i.length||(n.running=!1,this._notify(o,n,e,"complete"),n.initial=!1),r+=i.length}),this._lastDate=e,r===0&&(this._running=!1)}_getAnims(e){const r=this._charts;let n=r.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},r.set(e,n)),n}listen(e,r,n){this._getAnims(e).listeners[r].push(n)}add(e,r){!r||!r.length||this._getAnims(e).items.push(...r)}has(e){return this._getAnims(e).items.length>0}start(e){const r=this._charts.get(e);r&&(r.running=!0,r.start=Date.now(),r.duration=r.items.reduce((n,o)=>Math.max(n,o._duration),0),this._refresh())}running(e){if(!this._running)return!1;const r=this._charts.get(e);return!(!r||!r.running||!r.items.length)}stop(e){const r=this._charts.get(e);if(!r||!r.items.length)return;const n=r.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();r.items=[],this._notify(e,r,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var It=new L0;const zl="transparent",F0={boolean(t,e,r){return r>.5?e:t},color(t,e,r){const n=xl(t||zl),o=n.valid&&xl(e||zl);return o&&o.valid?o.mix(n,r).hexString():e},number(t,e,r){return t+(e-t)*r}};class z0{constructor(e,r,n,o){const i=r[n];o=po([e.to,o,i,e.from]);const s=po([e.from,i,o]);this._active=!0,this._fn=e.fn||F0[e.type||typeof s],this._easing=cn[e.easing]||cn.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=r,this._prop=n,this._from=s,this._to=o,this._promises=void 0}active(){return this._active}update(e,r,n){if(this._active){this._notify(!1);const o=this._target[this._prop],i=n-this._start,s=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=po([e.to,r,o,e.from]),this._from=po([e.from,o,r])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const r=e-this._start,n=this._duration,o=this._prop,i=this._from,s=this._loop,a=this._to;let l;if(this._active=i!==a&&(s||r<n),!this._active){this._target[o]=a,this._notify(!0);return}if(r<0){this._target[o]=i;return}l=r/n%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(i,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((r,n)=>{e.push({res:r,rej:n})})}_notify(e){const r=e?"res":"rej",n=this._promises||[];for(let o=0;o<n.length;o++)n[o][r]()}}class Bl{constructor(e,r){this._chart=e,this._properties=new Map,this.configure(r)}configure(e){if(!ne(e))return;const r=Object.keys(we.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach(o=>{const i=e[o];if(!ne(i))return;const s={};for(const a of r)s[a]=i[a];(Fe(i.properties)&&i.properties||[o]).forEach(a=>{(a===o||!n.has(a))&&n.set(a,s)})})}_animateOptions(e,r){const n=r.options,o=$0(e,n);if(!o)return[];const i=this._createAnimations(o,n);return n.$shared&&B0(e.options.$animations,n).then(()=>{e.options=n},()=>{}),i}_createAnimations(e,r){const n=this._properties,o=[],i=e.$animations||(e.$animations={}),s=Object.keys(r),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(e,r));continue}const d=r[c];let u=i[c];const f=n.get(c);if(u)if(f&&u.active()){u.update(f,d,a);continue}else u.cancel();if(!f||!f.duration){e[c]=d;continue}i[c]=u=new z0(f,e,c,d),o.push(u)}return o}update(e,r){if(this._properties.size===0){Object.assign(e,r);return}const n=this._createAnimations(e,r);if(n.length)return It.add(this._chart,n),!0}}function B0(t,e){const r=[],n=Object.keys(e);for(let o=0;o<n.length;o++){const i=t[n[o]];i&&i.active()&&r.push(i.wait())}return Promise.all(r)}function $0(t,e){if(!e)return;let r=t.options;if(!r){t.options=e;return}return r.$shared&&(t.options=r=Object.assign({},r,{$shared:!1,$animations:{}})),r}function $l(t,e){const r=t&&t.options||{},n=r.reverse,o=r.min===void 0?e:0,i=r.max===void 0?e:0;return{start:n?i:o,end:n?o:i}}function j0(t,e,r){if(r===!1)return!1;const n=$l(t,r),o=$l(e,r);return{top:o.end,right:n.end,bottom:o.start,left:n.start}}function H0(t){let e,r,n,o;return ne(t)?(e=t.top,r=t.right,n=t.bottom,o=t.left):e=r=n=o=t,{top:e,right:r,bottom:n,left:o,disabled:t===!1}}function jl(t,e){const r=[],n=t._getSortedDatasetMetas(e);let o,i;for(o=0,i=n.length;o<i;++o)r.push(n[o].index);return r}function Hl(t,e,r,n={}){const o=t.keys,i=n.mode==="single";let s,a,l,c;if(e===null)return;let d=!1;for(s=0,a=o.length;s<a;++s){if(l=+o[s],l===r){if(d=!0,n.all)continue;break}c=t.values[l],Dt(c)&&(i||e===0||dl(e)===dl(c))&&(e+=c)}return!d&&!n.all?0:e}function W0(t,e){const{iScale:r,vScale:n}=e,o=r.axis==="x"?"x":"y",i=n.axis==="x"?"x":"y",s=Object.keys(t),a=new Array(s.length);let l,c,d;for(l=0,c=s.length;l<c;++l)d=s[l],a[l]={[o]:d,[i]:t[d]};return a}function ns(t,e){const r=t&&t.options.stacked;return r||r===void 0&&e.stack!==void 0}function V0(t,e,r){return`${t.id}.${e.id}.${r.stack||r.type}`}function R0(t){const{min:e,max:r,minDefined:n,maxDefined:o}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:o?r:Number.POSITIVE_INFINITY}}function Y0(t,e,r){const n=t[e]||(t[e]={});return n[r]||(n[r]={})}function Wl(t,e,r,n){for(const o of e.getMatchingVisibleMetas(n).reverse()){const i=t[o.index];if(r&&i>0||!r&&i<0)return o.index}return null}function Vl(t,e){const{chart:r,_cachedMeta:n}=t,o=r._stacks||(r._stacks={}),{iScale:i,vScale:s,index:a}=n,l=i.axis,c=s.axis,d=V0(i,s,n),u=e.length;let f;for(let h=0;h<u;++h){const p=e[h],{[l]:m,[c]:b}=p,v=p._stacks||(p._stacks={});f=v[c]=Y0(o,d,m),f[a]=b,f._top=Wl(f,s,!0,n.type),f._bottom=Wl(f,s,!1,n.type);const y=f._visualValues||(f._visualValues={});y[a]=b}}function os(t,e){const r=t.scales;return Object.keys(r).filter(n=>r[n].axis===e).shift()}function U0(t,e){return Tr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function K0(t,e,r){return Tr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:r,index:e,mode:"default",type:"data"})}function fn(t,e){const r=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const o of e){const i=o._stacks;if(!i||i[n]===void 0||i[n][r]===void 0)return;delete i[n][r],i[n]._visualValues!==void 0&&i[n]._visualValues[r]!==void 0&&delete i[n]._visualValues[r]}}}const is=t=>t==="reset"||t==="none",Rl=(t,e)=>e?t:Object.assign({},t),q0=(t,e,r)=>t&&!e.hidden&&e._stacked&&{keys:jl(r,!0),values:null};class hn{constructor(e,r){this.chart=e,this._ctx=e.ctx,this.index=r,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=ns(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&fn(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,r=this._cachedMeta,n=this.getDataset(),o=(u,f,h,p)=>u==="x"?f:u==="r"?p:h,i=r.xAxisID=ue(n.xAxisID,os(e,"x")),s=r.yAxisID=ue(n.yAxisID,os(e,"y")),a=r.rAxisID=ue(n.rAxisID,os(e,"r")),l=r.indexAxis,c=r.iAxisID=o(l,i,s,a),d=r.vAxisID=o(l,s,i,a);r.xScale=this.getScaleForId(i),r.yScale=this.getScaleForId(s),r.rScale=this.getScaleForId(a),r.iScale=this.getScaleForId(c),r.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const r=this._cachedMeta;return e===r.iScale?r.vScale:r.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&hl(this._data,this),e._stacked&&fn(e)}_dataCheck(){const e=this.getDataset(),r=e.data||(e.data=[]),n=this._data;if(ne(r)){const o=this._cachedMeta;this._data=W0(r,o)}else if(n!==r){if(n){hl(n,this);const o=this._cachedMeta;fn(o),o._parsed=[]}r&&Object.isExtensible(r)&&qp(r,this),this._syncList=[],this._data=r}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const r=this._cachedMeta,n=this.getDataset();let o=!1;this._dataCheck();const i=r._stacked;r._stacked=ns(r.vScale,r),r.stack!==n.stack&&(o=!0,fn(r),r.stack=n.stack),this._resyncElements(e),(o||i!==r._stacked)&&(Vl(this,r._parsed),r._stacked=ns(r.vScale,r))}configure(){const e=this.chart.config,r=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),r,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,r){const{_cachedMeta:n,_data:o}=this,{iScale:i,_stacked:s}=n,a=i.axis;let l=e===0&&r===o.length?!0:n._sorted,c=e>0&&n._parsed[e-1],d,u,f;if(this._parsing===!1)n._parsed=o,n._sorted=!0,f=o;else{Fe(o[e])?f=this.parseArrayData(n,o,e,r):ne(o[e])?f=this.parseObjectData(n,o,e,r):f=this.parsePrimitiveData(n,o,e,r);const h=()=>u[a]===null||c&&u[a]<c[a];for(d=0;d<r;++d)n._parsed[d+e]=u=f[d],l&&(h()&&(l=!1),c=u);n._sorted=l}s&&Vl(this,f)}parsePrimitiveData(e,r,n,o){const{iScale:i,vScale:s}=e,a=i.axis,l=s.axis,c=i.getLabels(),d=i===s,u=new Array(o);let f,h,p;for(f=0,h=o;f<h;++f)p=f+n,u[f]={[a]:d||i.parse(c[p],p),[l]:s.parse(r[p],p)};return u}parseArrayData(e,r,n,o){const{xScale:i,yScale:s}=e,a=new Array(o);let l,c,d,u;for(l=0,c=o;l<c;++l)d=l+n,u=r[d],a[l]={x:i.parse(u[0],d),y:s.parse(u[1],d)};return a}parseObjectData(e,r,n,o){const{xScale:i,yScale:s}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(o);let d,u,f,h;for(d=0,u=o;d<u;++d)f=d+n,h=r[f],c[d]={x:i.parse(an(h,a),f),y:s.parse(an(h,l),f)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,r,n){const o=this.chart,i=this._cachedMeta,s=r[e.axis],a={keys:jl(o,!0),values:r._stacks[e.axis]._visualValues};return Hl(a,s,i.index,{mode:n})}updateRangeFromParsed(e,r,n,o){const i=n[r.axis];let s=i===null?NaN:i;const a=o&&n._stacks[r.axis];o&&a&&(o.values=a,s=Hl(o,i,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,r){const n=this._cachedMeta,o=n._parsed,i=n._sorted&&e===n.iScale,s=o.length,a=this._getOtherScale(e),l=q0(r,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=R0(a);let f,h;function p(){h=o[f];const m=h[a.axis];return!Dt(h[e.axis])||d>m||u<m}for(f=0;f<s&&!(!p()&&(this.updateRangeFromParsed(c,e,h,l),i));++f);if(i){for(f=s-1;f>=0;--f)if(!p()){this.updateRangeFromParsed(c,e,h,l);break}}return c}getAllParsedValues(e){const r=this._cachedMeta._parsed,n=[];let o,i,s;for(o=0,i=r.length;o<i;++o)s=r[o][e.axis],Dt(s)&&n.push(s);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const r=this._cachedMeta,n=r.iScale,o=r.vScale,i=this.getParsed(e);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:o?""+o.getLabelForValue(i[o.axis]):""}}_update(e){const r=this._cachedMeta;this.update(e||"default"),r._clip=H0(ue(this.options.clip,j0(r.xScale,r.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,r=this.chart,n=this._cachedMeta,o=n.data||[],i=r.chartArea,s=[],a=this._drawStart||0,l=this._drawCount||o.length-a,c=this.options.drawActiveElementsOnTop;let d;for(n.dataset&&n.dataset.draw(e,i,a,l),d=a;d<a+l;++d){const u=o[d];u.hidden||(u.active&&c?s.push(u):u.draw(e,i))}for(d=0;d<s.length;++d)s[d].draw(e,i)}getStyle(e,r){const n=r?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,r,n){const o=this.getDataset();let i;if(e>=0&&e<this._cachedMeta.data.length){const s=this._cachedMeta.data[e];i=s.$context||(s.$context=K0(this.getContext(),e,s)),i.parsed=this.getParsed(e),i.raw=o.data[e],i.index=i.dataIndex=e}else i=this.$context||(this.$context=U0(this.chart.getContext(),this.index)),i.dataset=o,i.index=i.datasetIndex=this.index;return i.active=!!r,i.mode=n,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,r){return this._resolveElementOptions(this.dataElementType.id,r,e)}_resolveElementOptions(e,r="default",n){const o=r==="active",i=this._cachedDataOpts,s=e+"-"+r,a=i[s],l=this.enableOptionSharing&&lo(n);if(a)return Rl(a,l);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,e),u=o?[`${e}Hover`,"hover",e,""]:[e,""],f=c.getOptionScopes(this.getDataset(),d),h=Object.keys(we.elements[e]),p=()=>this.getContext(n,o,r),m=c.resolveNamedOptions(f,h,p,u);return m.$shared&&(m.$shared=l,i[s]=Object.freeze(Rl(m,l))),m}_resolveAnimations(e,r,n){const o=this.chart,i=this._cachedDataOpts,s=`animation-${r}`,a=i[s];if(a)return a;let l;if(o.options.animation!==!1){const d=this.chart.config,u=d.datasetAnimationScopeKeys(this._type,r),f=d.getOptionScopes(this.getDataset(),u);l=d.createResolver(f,this.getContext(e,n,r))}const c=new Bl(o,l&&l.animations);return l&&l._cacheable&&(i[s]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,r){return!r||is(e)||this.chart._animationsDisabled}_getSharedOptions(e,r){const n=this.resolveDataElementOptions(e,r),o=this._sharedOptions,i=this.getSharedOptions(n),s=this.includeOptions(r,i)||i!==o;return this.updateSharedOptions(i,r,n),{sharedOptions:i,includeOptions:s}}updateElement(e,r,n,o){is(o)?Object.assign(e,n):this._resolveAnimations(r,o).update(e,n)}updateSharedOptions(e,r,n){e&&!is(r)&&this._resolveAnimations(void 0,r).update(e,n)}_setStyle(e,r,n,o){e.active=o;const i=this.getStyle(r,o);this._resolveAnimations(r,n,o).update(e,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(e,r,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,r,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const r=this._data,n=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const o=n.length,i=r.length,s=Math.min(i,o);s&&this.parse(0,s),i>o?this._insertElements(o,i-o,e):i<o&&this._removeElements(i,o-i)}_insertElements(e,r,n=!0){const o=this._cachedMeta,i=o.data,s=e+r;let a;const l=c=>{for(c.length+=r,a=c.length-1;a>=s;a--)c[a]=c[a-r]};for(l(i),a=e;a<s;++a)i[a]=new this.dataElementType;this._parsing&&l(o._parsed),this.parse(e,r),n&&this.updateElements(i,e,r,"reset")}updateElements(e,r,n,o){}_removeElements(e,r){const n=this._cachedMeta;if(this._parsing){const o=n._parsed.splice(e,r);n._stacked&&fn(n,o)}n.data.splice(e,r)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[r,n,o]=e;this[r](n,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,r){r&&this._sync(["_removeElements",e,r]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ee(hn,"defaults",{}),ee(hn,"datasetElementType",null),ee(hn,"dataElementType",null);function G0(t,e,r){let n=1,o=1,i=0,s=0;if(e<Ce){const a=t,l=a+e,c=Math.cos(a),d=Math.sin(a),u=Math.cos(l),f=Math.sin(l),h=(_,x,w)=>fo(_,a,l,!0)?1:Math.max(x,x*r,w,w*r),p=(_,x,w)=>fo(_,a,l,!0)?-1:Math.min(x,x*r,w,w*r),m=h(0,c,u),b=h(Te,d,f),v=p(Ae,c,u),y=p(Ae+Te,d,f);n=(m-v)/2,o=(b-y)/2,i=-(m+v)/2,s=-(b+y)/2}return{ratioX:n,ratioY:o,offsetX:i,offsetY:s}}class gn extends hn{constructor(e,r){super(e,r),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,r){const n=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=n;else{let i=l=>+n[l];if(ne(n[e])){const{key:l="value"}=this._parsing;i=c=>+an(n[c],l)}let s,a;for(s=e,a=e+r;s<a;++s)o._parsed[s]=i(s)}}_getRotation(){return sr(this.options.rotation-90)}_getCircumference(){return sr(this.options.circumference)}_getRotationExtents(){let e=Ce,r=-Ce;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const o=this.chart.getDatasetMeta(n).controller,i=o._getRotation(),s=o._getCircumference();e=Math.min(e,i),r=Math.max(r,i+s)}return{rotation:e,circumference:r-e}}update(e){const r=this.chart,{chartArea:n}=r,o=this._cachedMeta,i=o.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-s)/2,0),l=Math.min(Ip(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:p,offsetY:m}=G0(u,d,l),b=(n.width-s)/f,v=(n.height-s)/h,y=Math.max(Math.min(b,v)/2,0),_=il(this.options.radius,y),x=Math.max(_*l,0),w=(_-x)/this._getVisibleDatasetWeightTotal();this.offsetX=p*_,this.offsetY=m*_,o.total=this.calculateTotal(),this.outerRadius=_-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(i,0,i.length,e)}_circumference(e,r){const n=this.options,o=this._cachedMeta,i=this._getCircumference();return r&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||o._parsed[e]===null||o.data[e].hidden?0:this.calculateCircumference(o._parsed[e]*i/Ce)}updateElements(e,r,n,o){const i=o==="reset",s=this.chart,a=s.chartArea,c=s.options.animation,d=(a.left+a.right)/2,u=(a.top+a.bottom)/2,f=i&&c.animateScale,h=f?0:this.innerRadius,p=f?0:this.outerRadius,{sharedOptions:m,includeOptions:b}=this._getSharedOptions(r,o);let v=this._getRotation(),y;for(y=0;y<r;++y)v+=this._circumference(y,i);for(y=r;y<r+n;++y){const _=this._circumference(y,i),x=e[y],w={x:d+this.offsetX,y:u+this.offsetY,startAngle:v,endAngle:v+_,circumference:_,outerRadius:p,innerRadius:h};b&&(w.options=m||this.resolveDataElementOptions(y,x.active?"active":o)),v+=_,this.updateElement(x,y,w,o)}}calculateTotal(){const e=this._cachedMeta,r=e.data;let n=0,o;for(o=0;o<r.length;o++){const i=e._parsed[o];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(o)&&!r[o].hidden&&(n+=Math.abs(i))}return n}calculateCircumference(e){const r=this._cachedMeta.total;return r>0&&!isNaN(e)?Ce*(Math.abs(e)/r):0}getLabelAndValue(e){const r=this._cachedMeta,n=this.chart,o=n.data.labels||[],i=n0(r._parsed[e],n.options.locale);return{label:o[e]||"",value:i}}getMaxBorderWidth(e){let r=0;const n=this.chart;let o,i,s,a,l;if(!e){for(o=0,i=n.data.datasets.length;o<i;++o)if(n.isDatasetVisible(o)){s=n.getDatasetMeta(o),e=s.data,a=s.controller;break}}if(!e)return 0;for(o=0,i=e.length;o<i;++o)l=a.resolveDataElementOptions(o),l.borderAlign!=="inner"&&(r=Math.max(r,l.borderWidth||0,l.hoverBorderWidth||0));return r}getMaxOffset(e){let r=0;for(let n=0,o=e.length;n<o;++n){const i=this.resolveDataElementOptions(n);r=Math.max(r,i.offset||0,i.hoverOffset||0)}return r}_getRingWeightOffset(e){let r=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(r+=this._getRingWeight(n));return r}_getRingWeight(e){return Math.max(ue(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ee(gn,"id","doughnut"),ee(gn,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ee(gn,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),ee(gn,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const r=e.data;if(r.labels.length&&r.datasets.length){const{labels:{pointStyle:n,color:o}}=e.legend.options;return r.labels.map((i,s)=>{const l=e.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:o,lineWidth:l.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,r,n){n.chart.toggleDataVisibility(r.index),n.chart.update()}}}});function fr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ss{constructor(e){ee(this,"options");this.options=e||{}}static override(e){Object.assign(ss.prototype,e)}init(){}formats(){return fr()}parse(){return fr()}format(){return fr()}add(){return fr()}diff(){return fr()}startOf(){return fr()}endOf(){return fr()}}var X0={_date:ss};function Z0(t,e,r,n){const{controller:o,data:i,_sorted:s}=t,a=o._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&e===a.axis&&e!=="r"&&s&&i.length){const c=a._reversePixels?Up:Ri;if(n){if(o._sharedOptions){const d=i[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const f=c(i,e,r-u),h=c(i,e,r+u);return{lo:f.lo,hi:h.hi}}}}else{const d=c(i,e,r);if(l){const{vScale:u}=o._cachedMeta,{_parsed:f}=t,h=f.slice(0,d.lo+1).reverse().findIndex(m=>!We(m[u.axis]));d.lo-=Math.max(0,h);const p=f.slice(d.hi).findIndex(m=>!We(m[u.axis]));d.hi+=Math.max(0,p)}return d}}return{lo:0,hi:i.length-1}}function vo(t,e,r,n,o){const i=t.getSortedVisibleDatasetMetas(),s=r[e];for(let a=0,l=i.length;a<l;++a){const{index:c,data:d}=i[a],{lo:u,hi:f}=Z0(i[a],e,s,o);for(let h=u;h<=f;++h){const p=d[h];p.skip||n(p,c,h)}}}function J0(t){const e=t.indexOf("x")!==-1,r=t.indexOf("y")!==-1;return function(n,o){const i=e?Math.abs(n.x-o.x):0,s=r?Math.abs(n.y-o.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function as(t,e,r,n,o){const i=[];return!o&&!t.isPointInArea(e)||vo(t,r,e,function(a,l,c){!o&&!El(a,t.chartArea,0)||a.inRange(e.x,e.y,n)&&i.push({element:a,datasetIndex:l,index:c})},!0),i}function Q0(t,e,r,n){let o=[];function i(s,a,l){const{startAngle:c,endAngle:d}=s.getProps(["startAngle","endAngle"],n),{angle:u}=ul(s,{x:e.x,y:e.y});fo(u,c,d)&&o.push({element:s,datasetIndex:a,index:l})}return vo(t,r,e,i),o}function em(t,e,r,n,o,i){let s=[];const a=J0(r);let l=Number.POSITIVE_INFINITY;function c(d,u,f){const h=d.inRange(e.x,e.y,o);if(n&&!h)return;const p=d.getCenterPoint(o);if(!(!!i||t.isPointInArea(p))&&!h)return;const b=a(e,p);b<l?(s=[{element:d,datasetIndex:u,index:f}],l=b):b===l&&s.push({element:d,datasetIndex:u,index:f})}return vo(t,r,e,c),s}function ls(t,e,r,n,o,i){return!i&&!t.isPointInArea(e)?[]:r==="r"&&!n?Q0(t,e,r,o):em(t,e,r,n,o,i)}function Yl(t,e,r,n,o){const i=[],s=r==="x"?"inXRange":"inYRange";let a=!1;return vo(t,r,e,(l,c,d)=>{l[s]&&l[s](e[r],o)&&(i.push({element:l,datasetIndex:c,index:d}),a=a||l.inRange(e.x,e.y,o))}),n&&!a?[]:i}var tm={modes:{index(t,e,r,n){const o=ur(e,t),i=r.axis||"x",s=r.includeInvisible||!1,a=r.intersect?as(t,o,i,n,s):ls(t,o,i,!1,n,s),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const d=a[0].index,u=c.data[d];u&&!u.skip&&l.push({element:u,datasetIndex:c.index,index:d})}),l):[]},dataset(t,e,r,n){const o=ur(e,t),i=r.axis||"xy",s=r.includeInvisible||!1;let a=r.intersect?as(t,o,i,n,s):ls(t,o,i,!1,n,s);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let d=0;d<c.length;++d)a.push({element:c[d],datasetIndex:l,index:d})}return a},point(t,e,r,n){const o=ur(e,t),i=r.axis||"xy",s=r.includeInvisible||!1;return as(t,o,i,n,s)},nearest(t,e,r,n){const o=ur(e,t),i=r.axis||"xy",s=r.includeInvisible||!1;return ls(t,o,i,r.intersect,n,s)},x(t,e,r,n){const o=ur(e,t);return Yl(t,o,"x",r.intersect,n)},y(t,e,r,n){const o=ur(e,t);return Yl(t,o,"y",r.intersect,n)}}};const Ul=["left","top","right","bottom"];function pn(t,e){return t.filter(r=>r.pos===e)}function Kl(t,e){return t.filter(r=>Ul.indexOf(r.pos)===-1&&r.box.axis===e)}function mn(t,e){return t.sort((r,n)=>{const o=e?n:r,i=e?r:n;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function rm(t){const e=[];let r,n,o,i,s,a;for(r=0,n=(t||[]).length;r<n;++r)o=t[r],{position:i,options:{stack:s,stackWeight:a=1}}=o,e.push({index:r,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:s&&i+s,stackWeight:a});return e}function nm(t){const e={};for(const r of t){const{stack:n,pos:o,stackWeight:i}=r;if(!n||!Ul.includes(o))continue;const s=e[n]||(e[n]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return e}function om(t,e){const r=nm(t),{vBoxMaxWidth:n,hBoxMaxHeight:o}=e;let i,s,a;for(i=0,s=t.length;i<s;++i){a=t[i];const{fullSize:l}=a.box,c=r[a.stack],d=c&&a.stackWeight/c.weight;a.horizontal?(a.width=d?d*n:l&&e.availableWidth,a.height=o):(a.width=n,a.height=d?d*o:l&&e.availableHeight)}return r}function im(t){const e=rm(t),r=mn(e.filter(c=>c.box.fullSize),!0),n=mn(pn(e,"left"),!0),o=mn(pn(e,"right")),i=mn(pn(e,"top"),!0),s=mn(pn(e,"bottom")),a=Kl(e,"x"),l=Kl(e,"y");return{fullSize:r,leftAndTop:n.concat(i),rightAndBottom:o.concat(l).concat(s).concat(a),chartArea:pn(e,"chartArea"),vertical:n.concat(o).concat(l),horizontal:i.concat(s).concat(a)}}function ql(t,e,r,n){return Math.max(t[r],e[r])+Math.max(t[n],e[n])}function Gl(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function sm(t,e,r,n){const{pos:o,box:i}=r,s=t.maxPadding;if(!ne(o)){r.size&&(t[o]-=r.size);const u=n[r.stack]||{size:0,count:1};u.size=Math.max(u.size,r.horizontal?i.height:i.width),r.size=u.size/u.count,t[o]+=r.size}i.getPadding&&Gl(s,i.getPadding());const a=Math.max(0,e.outerWidth-ql(s,t,"left","right")),l=Math.max(0,e.outerHeight-ql(s,t,"top","bottom")),c=a!==t.w,d=l!==t.h;return t.w=a,t.h=l,r.horizontal?{same:c,other:d}:{same:d,other:c}}function am(t){const e=t.maxPadding;function r(n){const o=Math.max(e[n]-t[n],0);return t[n]+=o,o}t.y+=r("top"),t.x+=r("left"),r("right"),r("bottom")}function lm(t,e){const r=e.maxPadding;function n(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(s=>{i[s]=Math.max(e[s],r[s])}),i}return n(t?["left","right"]:["top","bottom"])}function bn(t,e,r,n){const o=[];let i,s,a,l,c,d;for(i=0,s=t.length,c=0;i<s;++i){a=t[i],l=a.box,l.update(a.width||e.w,a.height||e.h,lm(a.horizontal,e));const{same:u,other:f}=sm(e,r,a,n);c|=u&&o.length,d=d||f,l.fullSize||o.push(a)}return c&&bn(o,e,r,n)||d}function xo(t,e,r,n,o){t.top=r,t.left=e,t.right=e+n,t.bottom=r+o,t.width=n,t.height=o}function Xl(t,e,r,n){const o=r.padding;let{x:i,y:s}=e;for(const a of t){const l=a.box,c=n[a.stack]||{placed:0,weight:1},d=a.stackWeight/c.weight||1;if(a.horizontal){const u=e.w*d,f=c.size||l.height;lo(c.start)&&(s=c.start),l.fullSize?xo(l,o.left,s,r.outerWidth-o.right-o.left,f):xo(l,e.left+c.placed,s,u,f),c.start=s,c.placed+=u,s=l.bottom}else{const u=e.h*d,f=c.size||l.width;lo(c.start)&&(i=c.start),l.fullSize?xo(l,i,o.top,f,r.outerHeight-o.bottom-o.top):xo(l,i,e.top+c.placed,f,u),c.start=i,c.placed+=u,i=l.right}}e.x=i,e.y=s}var qt={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(r){e.draw(r)}}]},t.boxes.push(e)},removeBox(t,e){const r=t.boxes?t.boxes.indexOf(e):-1;r!==-1&&t.boxes.splice(r,1)},configure(t,e,r){e.fullSize=r.fullSize,e.position=r.position,e.weight=r.weight},update(t,e,r,n){if(!t)return;const o=ht(t.options.layout.padding),i=Math.max(e-o.width,0),s=Math.max(r-o.height,0),a=im(t.boxes),l=a.vertical,c=a.horizontal;fe(t.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const d=l.reduce((m,b)=>b.box.options&&b.box.options.display===!1?m:m+1,0)||1,u=Object.freeze({outerWidth:e,outerHeight:r,padding:o,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/d,hBoxMaxHeight:s/2}),f=Object.assign({},o);Gl(f,ht(n));const h=Object.assign({maxPadding:f,w:i,h:s,x:o.left,y:o.top},o),p=om(l.concat(c),u);bn(a.fullSize,h,u,p),bn(l,h,u,p),bn(c,h,u,p)&&bn(l,h,u,p),am(h),Xl(a.leftAndTop,h,u,p),h.x+=h.w,h.y+=h.h,Xl(a.rightAndBottom,h,u,p),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},fe(a.chartArea,m=>{const b=m.box;Object.assign(b,t.chartArea),b.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class Zl{acquireContext(e,r){}releaseContext(e){return!1}addEventListener(e,r,n){}removeEventListener(e,r,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,r,n,o){return r=Math.max(0,r||e.width),n=n||e.height,{width:r,height:Math.max(0,o?Math.floor(r/o):n)}}isAttached(e){return!0}updateConfig(e){}}class cm extends Zl{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const wo="$chartjs",dm={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Jl=t=>t===null||t==="";function um(t,e){const r=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t[wo]={initial:{height:n,width:o,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",r.boxSizing=r.boxSizing||"border-box",Jl(o)){const i=Il(t,"width");i!==void 0&&(t.width=i)}if(Jl(n))if(t.style.height==="")t.height=t.width/(e||2);else{const i=Il(t,"height");i!==void 0&&(t.height=i)}return t}const Ql=A0?{passive:!0}:!1;function fm(t,e,r){t&&t.addEventListener(e,r,Ql)}function hm(t,e,r){t&&t.canvas&&t.canvas.removeEventListener(e,r,Ql)}function gm(t,e){const r=dm[t.type]||t.type,{x:n,y:o}=ur(t,e);return{type:r,chart:e,native:t,x:n!==void 0?n:null,y:o!==void 0?o:null}}function ko(t,e){for(const r of t)if(r===e||r.contains(e))return!0}function pm(t,e,r){const n=t.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||ko(a.addedNodes,n),s=s&&!ko(a.removedNodes,n);s&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}function mm(t,e,r){const n=t.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||ko(a.removedNodes,n),s=s&&!ko(a.addedNodes,n);s&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}const yn=new Map;let ec=0;function tc(){const t=window.devicePixelRatio;t!==ec&&(ec=t,yn.forEach((e,r)=>{r.currentDevicePixelRatio!==t&&e()}))}function bm(t,e){yn.size||window.addEventListener("resize",tc),yn.set(t,e)}function ym(t){yn.delete(t),yn.size||window.removeEventListener("resize",tc)}function vm(t,e,r){const n=t.canvas,o=n&&rs(n);if(!o)return;const i=pl((a,l)=>{const c=o.clientWidth;r(a,l),c<o.clientWidth&&r()},window),s=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||i(c,d)});return s.observe(o),bm(t,i),s}function cs(t,e,r){r&&r.disconnect(),e==="resize"&&ym(t)}function xm(t,e,r){const n=t.canvas,o=pl(i=>{t.ctx!==null&&r(gm(i,t))},t);return fm(n,e,o),o}class wm extends Zl{acquireContext(e,r){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(um(e,r),n):null}releaseContext(e){const r=e.canvas;if(!r[wo])return!1;const n=r[wo].initial;["height","width"].forEach(i=>{const s=n[i];We(s)?r.removeAttribute(i):r.setAttribute(i,s)});const o=n.style||{};return Object.keys(o).forEach(i=>{r.style[i]=o[i]}),r.width=r.width,delete r[wo],!0}addEventListener(e,r,n){this.removeEventListener(e,r);const o=e.$proxies||(e.$proxies={}),s={attach:pm,detach:mm,resize:vm}[r]||xm;o[r]=s(e,r,n)}removeEventListener(e,r){const n=e.$proxies||(e.$proxies={}),o=n[r];if(!o)return;({attach:cs,detach:cs,resize:cs}[r]||hm)(e,r,o),n[r]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,r,n,o){return P0(e,r,n,o)}isAttached(e){const r=e&&rs(e);return!!(r&&r.isConnected)}}function km(t){return!ts()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?cm:wm}let vn=(Ii=class{constructor(){ee(this,"x");ee(this,"y");ee(this,"active",!1);ee(this,"options");ee(this,"$animations")}tooltipPosition(e){const{x:r,y:n}=this.getProps(["x","y"],e);return{x:r,y:n}}hasValue(){return uo(this.x)&&uo(this.y)}getProps(e,r){const n=this.$animations;if(!r||!n)return this;const o={};return e.forEach(i=>{o[i]=n[i]&&n[i].active()?n[i]._to:this[i]}),o}},ee(Ii,"defaults",{}),ee(Ii,"defaultRoutes"),Ii);function Cm(t,e){const r=t.options.ticks,n=_m(t),o=Math.min(r.maxTicksLimit||n,n),i=r.major.enabled?Em(e):[],s=i.length,a=i[0],l=i[s-1],c=[];if(s>o)return Om(e,c,i,s/o),c;const d=Sm(i,e,o);if(s>0){let u,f;const h=s>1?Math.round((l-a)/(s-1)):null;for(Co(e,c,d,We(h)?0:a-h,a),u=0,f=s-1;u<f;u++)Co(e,c,d,i[u],i[u+1]);return Co(e,c,d,l,We(h)?e.length:l+h),c}return Co(e,c,d),c}function _m(t){const e=t.options.offset,r=t._tickSize(),n=t._length/r+(e?0:1),o=t._maxLength/r;return Math.floor(Math.min(n,o))}function Sm(t,e,r){const n=Tm(t),o=e.length/r;if(!n)return Math.max(o,1);const i=Hp(n);for(let s=0,a=i.length-1;s<a;s++){const l=i[s];if(l>o)return l}return Math.max(o,1)}function Em(t){const e=[];let r,n;for(r=0,n=t.length;r<n;r++)t[r].major&&e.push(r);return e}function Om(t,e,r,n){let o=0,i=r[0],s;for(n=Math.ceil(n),s=0;s<t.length;s++)s===i&&(e.push(t[s]),o++,i=r[o*n])}function Co(t,e,r,n,o){const i=ue(n,0),s=Math.min(ue(o,t.length),t.length);let a=0,l,c,d;for(r=Math.ceil(r),o&&(l=o-n,r=l/Math.floor(l/r)),d=i;d<0;)a++,d=Math.round(i+a*r);for(c=Math.max(i,0);c<s;c++)c===d&&(e.push(t[c]),a++,d=Math.round(i+a*r))}function Tm(t){const e=t.length;let r,n;if(e<2)return!1;for(n=t[0],r=1;r<e;++r)if(t[r]-t[r-1]!==n)return!1;return n}const Nm=t=>t==="left"?"right":t==="right"?"left":t,rc=(t,e,r)=>e==="top"||e==="left"?t[e]+r:t[e]-r,nc=(t,e)=>Math.min(e||t,t);function oc(t,e){const r=[],n=t.length/e,o=t.length;let i=0;for(;i<o;i+=n)r.push(t[Math.floor(i)]);return r}function Mm(t,e,r){const n=t.ticks.length,o=Math.min(e,n-1),i=t._startPixel,s=t._endPixel,a=1e-6;let l=t.getPixelForTick(o),c;if(!(r&&(n===1?c=Math.max(l-i,s-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(o-1))/2,l+=o<e?c:-c,l<i-a||l>s+a)))return l}function Pm(t,e){fe(t,r=>{const n=r.gc,o=n.length/2;let i;if(o>e){for(i=0;i<o;++i)delete r.data[n[i]];n.splice(0,o)}})}function xn(t){return t.drawTicks?t.tickLength:0}function ic(t,e){if(!t.display)return 0;const r=Ke(t.font,e),n=ht(t.padding);return(Fe(t.text)?t.text.length:1)*r.lineHeight+n.height}function Am(t,e){return Tr(t,{scale:e,type:"scale"})}function Dm(t,e,r){return Tr(t,{tick:r,index:e,type:"tick"})}function Im(t,e,r){let n=ml(t);return(r&&e!=="right"||!r&&e==="right")&&(n=Nm(n)),n}function Lm(t,e,r,n){const{top:o,left:i,bottom:s,right:a,chart:l}=t,{chartArea:c,scales:d}=l;let u=0,f,h,p;const m=s-o,b=a-i;if(t.isHorizontal()){if(h=et(n,i,a),ne(r)){const v=Object.keys(r)[0],y=r[v];p=d[v].getPixelForValue(y)+m-e}else r==="center"?p=(c.bottom+c.top)/2+m-e:p=rc(t,r,e);f=a-i}else{if(ne(r)){const v=Object.keys(r)[0],y=r[v];h=d[v].getPixelForValue(y)-b+e}else r==="center"?h=(c.left+c.right)/2-b+e:h=rc(t,r,e);p=et(n,s,o),u=r==="left"?-Te:Te}return{titleX:h,titleY:p,maxWidth:f,rotation:u}}class _o extends vn{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,r){return e}getUserBounds(){let{_userMin:e,_userMax:r,_suggestedMin:n,_suggestedMax:o}=this;return e=vt(e,Number.POSITIVE_INFINITY),r=vt(r,Number.NEGATIVE_INFINITY),n=vt(n,Number.POSITIVE_INFINITY),o=vt(o,Number.NEGATIVE_INFINITY),{min:vt(e,n),max:vt(r,o),minDefined:Dt(e),maxDefined:Dt(r)}}getMinMax(e){let{min:r,max:n,minDefined:o,maxDefined:i}=this.getUserBounds(),s;if(o&&i)return{min:r,max:n};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)s=a[l].controller.getMinMax(this,e),o||(r=Math.min(r,s.min)),i||(n=Math.max(n,s.max));return r=i&&r>n?n:r,n=o&&r>n?r:n,{min:vt(r,vt(n,r)),max:vt(n,vt(r,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){be(this.options.beforeUpdate,[this])}update(e,r,n){const{beginAtZero:o,grace:i,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=r,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=m0(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?oc(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=Cm(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,r,n;this.isHorizontal()?(r=this.left,n=this.right):(r=this.top,n=this.bottom,e=!e),this._startPixel=r,this._endPixel=n,this._reversePixels=e,this._length=n-r,this._alignToPixels=this.options.alignToPixels}afterUpdate(){be(this.options.afterUpdate,[this])}beforeSetDimensions(){be(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){be(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),be(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){be(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const r=this.options.ticks;let n,o,i;for(n=0,o=e.length;n<o;n++)i=e[n],i.label=be(r.callback,[i.value,n,e],this)}afterTickToLabelConversion(){be(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){be(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,r=e.ticks,n=nc(this.ticks.length,e.ticks.maxTicksLimit),o=r.minRotation||0,i=r.maxRotation;let s=o,a,l,c;if(!this._isVisible()||!r.display||o>=i||n<=1||!this.isHorizontal()){this.labelRotation=o;return}const d=this._getLabelSizes(),u=d.widest.width,f=d.highest.height,h=at(this.chart.width-u,0,this.maxWidth);a=e.offset?this.maxWidth/n:h/(n-1),u+6>a&&(a=h/(n-(e.offset?.5:1)),l=this.maxHeight-xn(e.grid)-r.padding-ic(e.title,this.chart.options.font),c=Math.sqrt(u*u+f*f),s=Vp(Math.min(Math.asin(at((d.highest.height+6)/a,-1,1)),Math.asin(at(l/c,-1,1))-Math.asin(at(f/c,-1,1)))),s=Math.max(o,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){be(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){be(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:r,options:{ticks:n,title:o,grid:i}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=ic(o,r.options.font);if(a?(e.width=this.maxWidth,e.height=xn(i)+l):(e.height=this.maxHeight,e.width=xn(i)+l),n.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:f}=this._getLabelSizes(),h=n.padding*2,p=sr(this.labelRotation),m=Math.cos(p),b=Math.sin(p);if(a){const v=n.mirror?0:b*u.width+m*f.height;e.height=Math.min(this.maxHeight,e.height+v+h)}else{const v=n.mirror?0:m*u.width+b*f.height;e.width=Math.min(this.maxWidth,e.width+v+h)}this._calculatePadding(c,d,b,m)}}this._handleMargins(),a?(this.width=this._length=r.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=r.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,r,n,o){const{ticks:{align:i,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?c?(f=o*e.width,h=n*r.height):(f=n*e.height,h=o*r.width):i==="start"?h=r.width:i==="end"?f=e.width:i!=="inner"&&(f=e.width/2,h=r.width/2),this.paddingLeft=Math.max((f-d+s)*this.width/(this.width-d),0),this.paddingRight=Math.max((h-u+s)*this.width/(this.width-u),0)}else{let d=r.height/2,u=e.height/2;i==="start"?(d=0,u=e.height):i==="end"&&(d=r.height,u=0),this.paddingTop=d+s,this.paddingBottom=u+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){be(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:r}=this.options;return r==="top"||r==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let r,n;for(r=0,n=e.length;r<n;r++)We(e[r].label)&&(e.splice(r,1),n--,r--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const r=this.options.ticks.sampleSize;let n=this.ticks;r<n.length&&(n=oc(n,r)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,r,n){const{ctx:o,_longestTextCache:i}=this,s=[],a=[],l=Math.floor(r/nc(r,n));let c=0,d=0,u,f,h,p,m,b,v,y,_,x,w;for(u=0;u<r;u+=l){if(p=e[u].label,m=this._resolveTickFontOptions(u),o.font=b=m.string,v=i[b]=i[b]||{data:{},gc:[]},y=m.lineHeight,_=x=0,!We(p)&&!Fe(p))_=kl(o,v.data,v.gc,_,p),x=y;else if(Fe(p))for(f=0,h=p.length;f<h;++f)w=p[f],!We(w)&&!Fe(w)&&(_=kl(o,v.data,v.gc,_,w),x+=y);s.push(_),a.push(x),c=Math.max(_,c),d=Math.max(x,d)}Pm(i,r);const S=s.indexOf(c),T=a.indexOf(d),M=N=>({width:s[N]||0,height:a[N]||0});return{first:M(0),last:M(r-1),widest:M(S),highest:M(T),widths:s,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,r){return NaN}getValueForPixel(e){}getPixelForTick(e){const r=this.ticks;return e<0||e>r.length-1?null:this.getPixelForValue(r[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const r=this._startPixel+e*this._length;return Yp(this._alignToPixels?cr(this.chart,r,0):r)}getDecimalForPixel(e){const r=(e-this._startPixel)/this._length;return this._reversePixels?1-r:r}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:r}=this;return e<0&&r<0?r:e>0&&r>0?e:0}getContext(e){const r=this.ticks||[];if(e>=0&&e<r.length){const n=r[e];return n.$context||(n.$context=Dm(this.getContext(),e,n))}return this.$context||(this.$context=Am(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,r=sr(this.labelRotation),n=Math.abs(Math.cos(r)),o=Math.abs(Math.sin(r)),i=this._getLabelSizes(),s=e.autoSkipPadding||0,a=i?i.widest.width+s:0,l=i?i.highest.height+s:0;return this.isHorizontal()?l*n>a*o?a/n:l/o:l*o<a*n?l/n:a/o}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const r=this.axis,n=this.chart,o=this.options,{grid:i,position:s,border:a}=o,l=i.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),f=xn(i),h=[],p=a.setContext(this.getContext()),m=p.display?p.width:0,b=m/2,v=function(L){return cr(n,L,m)};let y,_,x,w,S,T,M,N,E,I,A,D;if(s==="top")y=v(this.bottom),T=this.bottom-f,N=y-b,I=v(e.top)+b,D=e.bottom;else if(s==="bottom")y=v(this.top),I=e.top,D=v(e.bottom)-b,T=y+b,N=this.top+f;else if(s==="left")y=v(this.right),S=this.right-f,M=y-b,E=v(e.left)+b,A=e.right;else if(s==="right")y=v(this.left),E=e.left,A=v(e.right)-b,S=y+b,M=this.left+f;else if(r==="x"){if(s==="center")y=v((e.top+e.bottom)/2+.5);else if(ne(s)){const L=Object.keys(s)[0],z=s[L];y=v(this.chart.scales[L].getPixelForValue(z))}I=e.top,D=e.bottom,T=y+b,N=T+f}else if(r==="y"){if(s==="center")y=v((e.left+e.right)/2);else if(ne(s)){const L=Object.keys(s)[0],z=s[L];y=v(this.chart.scales[L].getPixelForValue(z))}S=y-b,M=S-f,E=e.left,A=e.right}const O=ue(o.ticks.maxTicksLimit,u),P=Math.max(1,Math.ceil(u/O));for(_=0;_<u;_+=P){const L=this.getContext(_),z=i.setContext(L),B=a.setContext(L),j=z.lineWidth,$=z.color,W=B.dash||[],V=B.dashOffset,Y=z.tickWidth,U=z.tickColor,K=z.tickBorderDash||[],G=z.tickBorderDashOffset;x=Mm(this,_,l),x!==void 0&&(w=cr(n,x,j),c?S=M=E=A=w:T=N=I=D=w,h.push({tx1:S,ty1:T,tx2:M,ty2:N,x1:E,y1:I,x2:A,y2:D,width:j,color:$,borderDash:W,borderDashOffset:V,tickWidth:Y,tickColor:U,tickBorderDash:K,tickBorderDashOffset:G}))}return this._ticksLength=u,this._borderValue=y,h}_computeLabelItems(e){const r=this.axis,n=this.options,{position:o,ticks:i}=n,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:d,mirror:u}=i,f=xn(n.grid),h=f+d,p=u?-d:h,m=-sr(this.labelRotation),b=[];let v,y,_,x,w,S,T,M,N,E,I,A,D="middle";if(o==="top")S=this.bottom-p,T=this._getXAxisLabelAlignment();else if(o==="bottom")S=this.top+p,T=this._getXAxisLabelAlignment();else if(o==="left"){const P=this._getYAxisLabelAlignment(f);T=P.textAlign,w=P.x}else if(o==="right"){const P=this._getYAxisLabelAlignment(f);T=P.textAlign,w=P.x}else if(r==="x"){if(o==="center")S=(e.top+e.bottom)/2+h;else if(ne(o)){const P=Object.keys(o)[0],L=o[P];S=this.chart.scales[P].getPixelForValue(L)+h}T=this._getXAxisLabelAlignment()}else if(r==="y"){if(o==="center")w=(e.left+e.right)/2-h;else if(ne(o)){const P=Object.keys(o)[0],L=o[P];w=this.chart.scales[P].getPixelForValue(L)}T=this._getYAxisLabelAlignment(f).textAlign}r==="y"&&(l==="start"?D="top":l==="end"&&(D="bottom"));const O=this._getLabelSizes();for(v=0,y=a.length;v<y;++v){_=a[v],x=_.label;const P=i.setContext(this.getContext(v));M=this.getPixelForTick(v)+i.labelOffset,N=this._resolveTickFontOptions(v),E=N.lineHeight,I=Fe(x)?x.length:1;const L=I/2,z=P.color,B=P.textStrokeColor,j=P.textStrokeWidth;let $=T;s?(w=M,T==="inner"&&(v===y-1?$=this.options.reverse?"left":"right":v===0?$=this.options.reverse?"right":"left":$="center"),o==="top"?c==="near"||m!==0?A=-I*E+E/2:c==="center"?A=-O.highest.height/2-L*E+E:A=-O.highest.height+E/2:c==="near"||m!==0?A=E/2:c==="center"?A=O.highest.height/2-L*E:A=O.highest.height-I*E,u&&(A*=-1),m!==0&&!P.showLabelBackdrop&&(w+=E/2*Math.sin(m))):(S=M,A=(1-I)*E/2);let W;if(P.showLabelBackdrop){const V=ht(P.backdropPadding),Y=O.heights[v],U=O.widths[v];let K=A-V.top,G=0-V.left;switch(D){case"middle":K-=Y/2;break;case"bottom":K-=Y;break}switch(T){case"center":G-=U/2;break;case"right":G-=U;break;case"inner":v===y-1?G-=U:v>0&&(G-=U/2);break}W={left:G,top:K,width:U+V.width,height:Y+V.height,color:P.backdropColor}}b.push({label:x,font:N,textOffset:A,options:{rotation:m,color:z,strokeColor:B,strokeWidth:j,textAlign:$,textBaseline:D,translation:[w,S],backdrop:W}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:r}=this.options;if(-sr(this.labelRotation))return e==="top"?"left":"right";let o="center";return r.align==="start"?o="left":r.align==="end"?o="right":r.align==="inner"&&(o="inner"),o}_getYAxisLabelAlignment(e){const{position:r,ticks:{crossAlign:n,mirror:o,padding:i}}=this.options,s=this._getLabelSizes(),a=e+i,l=s.widest.width;let c,d;return r==="left"?o?(d=this.right+i,n==="near"?c="left":n==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-a,n==="near"?c="right":n==="center"?(c="center",d-=l/2):(c="left",d=this.left)):r==="right"?o?(d=this.left+i,n==="near"?c="right":n==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+a,n==="near"?c="left":n==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,r=this.options.position;if(r==="left"||r==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(r==="top"||r==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:r},left:n,top:o,width:i,height:s}=this;r&&(e.save(),e.fillStyle=r,e.fillRect(n,o,i,s),e.restore())}getLineWidthForValue(e){const r=this.options.grid;if(!this._isVisible()||!r.display)return 0;const o=this.ticks.findIndex(i=>i.value===e);return o>=0?r.setContext(this.getContext(o)).lineWidth:0}drawGrid(e){const r=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,s;const a=(l,c,d)=>{!d.width||!d.color||(n.save(),n.lineWidth=d.width,n.strokeStyle=d.color,n.setLineDash(d.borderDash||[]),n.lineDashOffset=d.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(r.display)for(i=0,s=o.length;i<s;++i){const l=o[i];r.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),r.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:r,options:{border:n,grid:o}}=this,i=n.setContext(this.getContext()),s=n.display?i.width:0;if(!s)return;const a=o.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,d,u,f;this.isHorizontal()?(c=cr(e,this.left,s)-s/2,d=cr(e,this.right,a)+a/2,u=f=l):(u=cr(e,this.top,s)-s/2,f=cr(e,this.bottom,a)+a/2,c=d=l),r.save(),r.lineWidth=i.width,r.strokeStyle=i.color,r.beginPath(),r.moveTo(c,u),r.lineTo(d,f),r.stroke(),r.restore()}drawLabels(e){if(!this.options.ticks.display)return;const n=this.ctx,o=this._computeLabelArea();o&&qi(n,o);const i=this.getLabelItems(e);for(const s of i){const a=s.options,l=s.font,c=s.label,d=s.textOffset;go(n,c,0,d,l,a)}o&&Gi(n)}drawTitle(){const{ctx:e,options:{position:r,title:n,reverse:o}}=this;if(!n.display)return;const i=Ke(n.font),s=ht(n.padding),a=n.align;let l=i.lineHeight/2;r==="bottom"||r==="center"||ne(r)?(l+=s.bottom,Fe(n.text)&&(l+=i.lineHeight*(n.text.length-1))):l+=s.top;const{titleX:c,titleY:d,maxWidth:u,rotation:f}=Lm(this,l,r,a);go(e,n.text,0,0,i,{color:n.color,maxWidth:u,rotation:f,textAlign:Im(a,r,o),textBaseline:"middle",translation:[c,d]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,r=e.ticks&&e.ticks.z||0,n=ue(e.grid&&e.grid.z,-1),o=ue(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==_o.prototype.draw?[{z:r,draw:i=>{this.draw(i)}}]:[{z:n,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:r,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(e){const r=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let i,s;for(i=0,s=r.length;i<s;++i){const a=r[i];a[n]===this.id&&(!e||a.type===e)&&o.push(a)}return o}_resolveTickFontOptions(e){const r=this.options.ticks.setContext(this.getContext(e));return Ke(r.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class So{constructor(e,r,n){this.type=e,this.scope=r,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const r=Object.getPrototypeOf(e);let n;Bm(r)&&(n=this.register(r));const o=this.items,i=e.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in o||(o[i]=e,Fm(e,s,n),this.override&&we.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const r=this.items,n=e.id,o=this.scope;n in r&&delete r[n],o&&n in we[o]&&(delete we[o][n],this.override&&delete lr[n])}}function Fm(t,e,r){const n=on(Object.create(null),[r?we.get(r):{},we.get(e),t.defaults]);we.set(e,n),t.defaultRoutes&&zm(e,t.defaultRoutes),t.descriptors&&we.describe(e,t.descriptors)}function zm(t,e){Object.keys(e).forEach(r=>{const n=r.split("."),o=n.pop(),i=[t].concat(n).join("."),s=e[r].split("."),a=s.pop(),l=s.join(".");we.route(i,o,l,a)})}function Bm(t){return"id"in t&&"defaults"in t}class $m{constructor(){this.controllers=new So(hn,"datasets",!0),this.elements=new So(vn,"elements"),this.plugins=new So(Object,"plugins"),this.scales=new So(_o,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,r,n){[...r].forEach(o=>{const i=n||this._getRegistryForType(o);n||i.isForType(o)||i===this.plugins&&o.id?this._exec(e,i,o):fe(o,s=>{const a=n||this._getRegistryForType(s);this._exec(e,a,s)})})}_exec(e,r,n){const o=Wi(e);be(n["before"+o],[],n),r[e](n),be(n["after"+o],[],n)}_getRegistryForType(e){for(let r=0;r<this._typedRegistries.length;r++){const n=this._typedRegistries[r];if(n.isForType(e))return n}return this.plugins}_get(e,r,n){const o=r.get(e);if(o===void 0)throw new Error('"'+e+'" is not a registered '+n+".");return o}}var xt=new $m;class jm{constructor(){this._init=[]}notify(e,r,n,o){r==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const i=o?this._descriptors(e).filter(o):this._descriptors(e),s=this._notify(i,e,r,n);return r==="afterDestroy"&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),s}_notify(e,r,n,o){o=o||{};for(const i of e){const s=i.plugin,a=s[n],l=[r,o,i.options];if(be(a,l,s)===!1&&o.cancelable)return!1}return!0}invalidate(){We(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const r=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),r}_createDescriptors(e,r){const n=e&&e.config,o=ue(n.options&&n.options.plugins,{}),i=Hm(n);return o===!1&&!r?[]:Vm(e,i,o,r)}_notifyStateChanges(e){const r=this._oldCache||[],n=this._cache,o=(i,s)=>i.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(o(r,n),e,"stop"),this._notify(o(n,r),e,"start")}}function Hm(t){const e={},r=[],n=Object.keys(xt.plugins.items);for(let i=0;i<n.length;i++)r.push(xt.getPlugin(n[i]));const o=t.plugins||[];for(let i=0;i<o.length;i++){const s=o[i];r.indexOf(s)===-1&&(r.push(s),e[s.id]=!0)}return{plugins:r,localIds:e}}function Wm(t,e){return!e&&t===!1?null:t===!0?{}:t}function Vm(t,{plugins:e,localIds:r},n,o){const i=[],s=t.getContext();for(const a of e){const l=a.id,c=Wm(n[l],o);c!==null&&i.push({plugin:a,options:Rm(t.config,{plugin:a,local:r[l]},c,s)})}return i}function Rm(t,{plugin:e,local:r},n,o){const i=t.pluginScopeKeys(e),s=t.getOptionScopes(n,i);return r&&e.defaults&&s.push(e.defaults),t.createResolver(s,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ds(t,e){const r=we.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||r.indexAxis||"x"}function Ym(t,e){let r=t;return t==="_index_"?r=e:t==="_value_"&&(r=e==="x"?"y":"x"),r}function Um(t,e){return t===e?"_index_":"_value_"}function sc(t){if(t==="x"||t==="y"||t==="r")return t}function Km(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function us(t,...e){if(sc(t))return t;for(const r of e){const n=r.axis||Km(r.position)||t.length>1&&sc(t[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function ac(t,e,r){if(r[e+"AxisID"]===t)return{axis:e}}function qm(t,e){if(e.data&&e.data.datasets){const r=e.data.datasets.filter(n=>n.xAxisID===t||n.yAxisID===t);if(r.length)return ac(t,"x",r[0])||ac(t,"y",r[0])}return{}}function Gm(t,e){const r=lr[t.type]||{scales:{}},n=e.scales||{},o=ds(t.type,e),i=Object.create(null);return Object.keys(n).forEach(s=>{const a=n[s];if(!ne(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=us(s,a,qm(s,t),we.scales[a.type]),c=Um(l,o),d=r.scales||{};i[s]=sn(Object.create(null),[{axis:l},a,d[l],d[c]])}),t.data.datasets.forEach(s=>{const a=s.type||t.type,l=s.indexAxis||ds(a,e),d=(lr[a]||{}).scales||{};Object.keys(d).forEach(u=>{const f=Ym(u,l),h=s[f+"AxisID"]||f;i[h]=i[h]||Object.create(null),sn(i[h],[{axis:f},n[h],d[u]])})}),Object.keys(i).forEach(s=>{const a=i[s];sn(a,[we.scales[a.type],we.scale])}),i}function lc(t){const e=t.options||(t.options={});e.plugins=ue(e.plugins,{}),e.scales=Gm(t,e)}function cc(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function Xm(t){return t=t||{},t.data=cc(t.data),lc(t),t}const dc=new Map,uc=new Set;function Eo(t,e){let r=dc.get(t);return r||(r=e(),dc.set(t,r),uc.add(r)),r}const wn=(t,e,r)=>{const n=an(e,r);n!==void 0&&t.add(n)};class Zm{constructor(e){this._config=Xm(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=cc(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),lc(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Eo(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,r){return Eo(`${e}.transition.${r}`,()=>[[`datasets.${e}.transitions.${r}`,`transitions.${r}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,r){return Eo(`${e}-${r}`,()=>[[`datasets.${e}.elements.${r}`,`datasets.${e}`,`elements.${r}`,""]])}pluginScopeKeys(e){const r=e.id,n=this.type;return Eo(`${n}-plugin-${r}`,()=>[[`plugins.${r}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,r){const n=this._scopeCache;let o=n.get(e);return(!o||r)&&(o=new Map,n.set(e,o)),o}getOptionScopes(e,r,n){const{options:o,type:i}=this,s=this._cachedScopes(e,n),a=s.get(r);if(a)return a;const l=new Set;r.forEach(d=>{e&&(l.add(e),d.forEach(u=>wn(l,e,u))),d.forEach(u=>wn(l,o,u)),d.forEach(u=>wn(l,lr[i]||{},u)),d.forEach(u=>wn(l,we,u)),d.forEach(u=>wn(l,Ui,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),uc.has(r)&&s.set(r,c),c}chartOptionScopes(){const{options:e,type:r}=this;return[e,lr[r]||{},we.datasets[r]||{},{type:r},we,Ui]}resolveNamedOptions(e,r,n,o=[""]){const i={$shared:!0},{resolver:s,subPrefixes:a}=fc(this._resolverCache,e,o);let l=s;if(Qm(s,r)){i.$shared=!1,n=Kt(n)?n():n;const c=this.createResolver(e,n,a);l=Nr(s,n,c)}for(const c of r)i[c]=l[c];return i}createResolver(e,r,n=[""],o){const{resolver:i}=fc(this._resolverCache,e,n);return ne(r)?Nr(i,r,void 0,o):i}}function fc(t,e,r){let n=t.get(e);n||(n=new Map,t.set(e,n));const o=r.join();let i=n.get(o);return i||(i={resolver:Ji(e,r),subPrefixes:r.filter(a=>!a.toLowerCase().includes("hover"))},n.set(o,i)),i}const Jm=t=>ne(t)&&Object.getOwnPropertyNames(t).some(e=>Kt(t[e]));function Qm(t,e){const{isScriptable:r,isIndexable:n}=Ol(t);for(const o of e){const i=r(o),s=n(o),a=(s||i)&&t[o];if(i&&(Kt(a)||Jm(a))||s&&Fe(a))return!0}return!1}var eb="4.4.8";const tb=["top","bottom","left","right","chartArea"];function hc(t,e){return t==="top"||t==="bottom"||tb.indexOf(t)===-1&&e==="x"}function gc(t,e){return function(r,n){return r[t]===n[t]?r[e]-n[e]:r[t]-n[t]}}function pc(t){const e=t.chart,r=e.options.animation;e.notifyPlugins("afterRender"),be(r&&r.onComplete,[t],e)}function rb(t){const e=t.chart,r=e.options.animation;be(r&&r.onProgress,[t],e)}function mc(t){return ts()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Oo={},bc=t=>{const e=mc(t);return Object.values(Oo).filter(r=>r.canvas===e).pop()};function nb(t,e,r){const n=Object.keys(t);for(const o of n){const i=+o;if(i>=e){const s=t[o];delete t[o],(r>0||i>e)&&(t[i+r]=s)}}}function ob(t,e,r,n){return!r||t.type==="mouseout"?null:n?e:t}function To(t,e,r){return t.options.clip?t[r]:e[r]}function ib(t,e){const{xScale:r,yScale:n}=t;return r&&n?{left:To(r,e,"left"),right:To(r,e,"right"),top:To(n,e,"top"),bottom:To(n,e,"bottom")}:e}let No=(nr=class{static register(...e){xt.add(...e),yc()}static unregister(...e){xt.remove(...e),yc()}constructor(e,r){const n=this.config=new Zm(r),o=mc(e),i=bc(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||km(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,d=l&&l.width;if(this.id=Dp(),this.ctx=a,this.canvas=l,this.width=d,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new jm,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Xp(u=>this.update(u),s.resizeDelay||0),this._dataChanges=[],Oo[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}It.listen(this,"complete",pc),It.listen(this,"progress",rb),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:r},width:n,height:o,_aspectRatio:i}=this;return We(e)?r&&i?i:o?n/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return xt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Dl(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Cl(this.canvas,this.ctx),this}stop(){return It.stop(this),this}resize(e,r){It.running(this)?this._resizeBeforeDraw={width:e,height:r}:this._resize(e,r)}_resize(e,r){const n=this.options,o=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,e,r,i),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Dl(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),be(n.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const r=this.options.scales||{};fe(r,(n,o)=>{n.id=o})}buildOrUpdateScales(){const e=this.options,r=e.scales,n=this.scales,o=Object.keys(n).reduce((s,a)=>(s[a]=!1,s),{});let i=[];r&&(i=i.concat(Object.keys(r).map(s=>{const a=r[s],l=us(s,a),c=l==="r",d=l==="x";return{options:a,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),fe(i,s=>{const a=s.options,l=a.id,c=us(l,a),d=ue(a.type,s.dtype);(a.position===void 0||hc(a.position,c)!==hc(s.dposition))&&(a.position=s.dposition),o[l]=!0;let u=null;if(l in n&&n[l].type===d)u=n[l];else{const f=xt.getScale(d);u=new f({id:l,type:d,ctx:this.ctx,chart:this}),n[u.id]=u}u.init(a,e)}),fe(o,(s,a)=>{s||delete n[a]}),fe(n,s=>{qt.configure(this,s,s.options),qt.addBox(this,s)})}_updateMetasets(){const e=this._metasets,r=this.data.datasets.length,n=e.length;if(e.sort((o,i)=>o.index-i.index),n>r){for(let o=r;o<n;++o)this._destroyDatasetMeta(o);e.splice(r,n-r)}this._sortedMetasets=e.slice(0).sort(gc("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:r}}=this;e.length>r.length&&delete this._stacks,e.forEach((n,o)=>{r.filter(i=>i===n._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const e=[],r=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=r.length;n<o;n++){const i=r[n];let s=this.getDatasetMeta(n);const a=i.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(n),s=this.getDatasetMeta(n)),s.type=a,s.indexAxis=i.indexAxis||ds(a,this.options),s.order=i.order||0,s.index=n,s.label=""+i.label,s.visible=this.isDatasetVisible(n),s.controller)s.controller.updateIndex(n),s.controller.linkScales();else{const l=xt.getController(a),{datasetElementType:c,dataElementType:d}=we.datasets[a];Object.assign(l,{dataElementType:xt.getElement(d),datasetElementType:c&&xt.getElement(c)}),s.controller=new l(this,n),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){fe(this.data.datasets,(e,r)=>{this.getDatasetMeta(r).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const r=this.config;r.update();const n=this._options=r.createResolver(r.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,d=this.data.datasets.length;c<d;c++){const{controller:u}=this.getDatasetMeta(c),f=!o&&i.indexOf(u)===-1;u.buildOrUpdateElements(f),s=Math.max(+u.getMaxOverflow(),s)}s=this._minPadding=n.layout.autoPadding?s:0,this._updateLayout(s),o||fe(i,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(gc("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){fe(this.scales,e=>{qt.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,r=new Set(Object.keys(this._listeners)),n=new Set(e.events);(!ll(r,n)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,r=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:i}of r){const s=n==="_removeElements"?-i:i;nb(e,o,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const r=this.data.datasets.length,n=i=>new Set(e.filter(s=>s[0]===i).map((s,a)=>a+","+s.splice(1).join(","))),o=n(0);for(let i=1;i<r;i++)if(!ll(o,n(i)))return;return Array.from(o).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;qt.update(this,this.width,this.height,e);const r=this.chartArea,n=r.width<=0||r.height<=0;this._layers=[],fe(this.boxes,o=>{n&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let r=0,n=this.data.datasets.length;r<n;++r)this.getDatasetMeta(r).controller.configure();for(let r=0,n=this.data.datasets.length;r<n;++r)this._updateDataset(r,Kt(e)?e({datasetIndex:r}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,r){const n=this.getDatasetMeta(e),o={meta:n,index:e,mode:r,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",o)!==!1&&(n.controller._update(r),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(It.has(this)?this.attached&&!It.running(this)&&It.start(this):(this.draw(),pc({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:n,height:o}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(n,o)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const r=this._layers;for(e=0;e<r.length&&r[e].z<=0;++e)r[e].draw(this.chartArea);for(this._drawDatasets();e<r.length;++e)r[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const r=this._sortedMetasets,n=[];let o,i;for(o=0,i=r.length;o<i;++o){const s=r[o];(!e||s.visible)&&n.push(s)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let r=e.length-1;r>=0;--r)this._drawDataset(e[r]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const r=this.ctx,n=e._clip,o=!n.disabled,i=ib(e,this.chartArea),s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(o&&qi(r,{left:n.left===!1?0:i.left-n.left,right:n.right===!1?this.width:i.right+n.right,top:n.top===!1?0:i.top-n.top,bottom:n.bottom===!1?this.height:i.bottom+n.bottom}),e.controller.draw(),o&&Gi(r),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return El(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,r,n,o){const i=tm.modes[r];return typeof i=="function"?i(this,e,n,o):[]}getDatasetMeta(e){const r=this.data.datasets[e],n=this._metasets;let o=n.filter(i=>i&&i._dataset===r).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:r&&r.order||0,index:e,_dataset:r,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=Tr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const r=this.data.datasets[e];if(!r)return!1;const n=this.getDatasetMeta(e);return typeof n.hidden=="boolean"?!n.hidden:!r.hidden}setDatasetVisibility(e,r){const n=this.getDatasetMeta(e);n.hidden=!r}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,r,n){const o=n?"show":"hide",i=this.getDatasetMeta(e),s=i.controller._resolveAnimations(void 0,o);lo(r)?(i.data[r].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),s.update(i,{visible:n}),this.update(a=>a.datasetIndex===e?o:void 0))}hide(e,r){this._updateVisibility(e,r,!1)}show(e,r){this._updateVisibility(e,r,!0)}_destroyDatasetMeta(e){const r=this._metasets[e];r&&r.controller&&r.controller._destroy(),delete this._metasets[e]}_stop(){let e,r;for(this.stop(),It.remove(this),e=0,r=this.data.datasets.length;e<r;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:r}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Cl(e,r),this.platform.releaseContext(r),this.canvas=null,this.ctx=null),delete Oo[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,r=this.platform,n=(i,s)=>{r.addEventListener(this,i,s),e[i]=s},o=(i,s,a)=>{i.offsetX=s,i.offsetY=a,this._eventHandler(i)};fe(this.options.events,i=>n(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,r=this.platform,n=(l,c)=>{r.addEventListener(this,l,c),e[l]=c},o=(l,c)=>{e[l]&&(r.removeEventListener(this,l,c),delete e[l])},i=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",i),n("detach",s)};s=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),n("attach",a)},r.isAttached(this.canvas)?a():s()}unbindEvents(){fe(this._listeners,(e,r)=>{this.platform.removeEventListener(this,r,e)}),this._listeners={},fe(this._responsiveListeners,(e,r)=>{this.platform.removeEventListener(this,r,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,r,n){const o=n?"set":"remove";let i,s,a,l;for(r==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),a=0,l=e.length;a<l;++a){s=e[a];const c=s&&this.getDatasetMeta(s.datasetIndex).controller;c&&c[o+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const r=this._active||[],n=e.map(({datasetIndex:i,index:s})=>{const a=this.getDatasetMeta(i);if(!a)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:a.data[s],index:s}});!so(n,r)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,r))}notifyPlugins(e,r,n){return this._plugins.notify(this,e,r,n)}isPluginEnabled(e){return this._plugins._cache.filter(r=>r.plugin.id===e).length===1}_updateHoverStyles(e,r,n){const o=this.options.hover,i=(l,c)=>l.filter(d=>!c.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),s=i(r,e),a=n?e:i(e,r);s.length&&this.updateHoverStyle(s,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(e,r){const n={event:e,replay:r,cancelable:!0,inChartArea:this.isPointInArea(e)},o=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",n,o)===!1)return;const i=this._handleEvent(e,r,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(i||n.changed)&&this.render(),this}_handleEvent(e,r,n){const{_active:o=[],options:i}=this,s=r,a=this._getActiveElements(e,o,n,s),l=$p(e),c=ob(e,this._lastEvent,n,l);n&&(this._lastEvent=null,be(i.onHover,[e,a,this],this),l&&be(i.onClick,[e,a,this],this));const d=!so(a,o);return(d||r)&&(this._active=a,this._updateHoverStyles(a,o,r)),this._lastEvent=c,d}_getActiveElements(e,r,n,o){if(e.type==="mouseout")return[];if(!n)return r;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,o)}},ee(nr,"defaults",we),ee(nr,"instances",Oo),ee(nr,"overrides",lr),ee(nr,"registry",xt),ee(nr,"version",eb),ee(nr,"getChart",bc),nr);function yc(){return fe(No.instances,t=>t._plugins.invalidate())}function sb(t,e,r){const{startAngle:n,pixelMargin:o,x:i,y:s,outerRadius:a,innerRadius:l}=e;let c=o/a;t.beginPath(),t.arc(i,s,a,n-c,r+c),l>o?(c=o/l,t.arc(i,s,l,r+c,n-c,!0)):t.arc(i,s,o,r+Te,n-Te),t.closePath(),t.clip()}function ab(t){return Zi(t,["outerStart","outerEnd","innerStart","innerEnd"])}function lb(t,e,r,n){const o=ab(t.options.borderRadius),i=(r-e)/2,s=Math.min(i,n*e/2),a=l=>{const c=(r-Math.min(i,l))*n/2;return at(l,0,Math.min(i,c))};return{outerStart:a(o.outerStart),outerEnd:a(o.outerEnd),innerStart:at(o.innerStart,0,s),innerEnd:at(o.innerEnd,0,s)}}function Pr(t,e,r,n){return{x:r+t*Math.cos(e),y:n+t*Math.sin(e)}}function Mo(t,e,r,n,o,i){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:d}=e,u=Math.max(e.outerRadius+n+r-c,0),f=d>0?d+n+r+c:0;let h=0;const p=o-l;if(n){const P=d>0?d-n:0,L=u>0?u-n:0,z=(P+L)/2,B=z!==0?p*z/(z+n):p;h=(p-B)/2}const m=Math.max(.001,p*u-r/Ae)/u,b=(p-m)/2,v=l+b+h,y=o-b-h,{outerStart:_,outerEnd:x,innerStart:w,innerEnd:S}=lb(e,f,u,y-v),T=u-_,M=u-x,N=v+_/T,E=y-x/M,I=f+w,A=f+S,D=v+w/I,O=y-S/A;if(t.beginPath(),i){const P=(N+E)/2;if(t.arc(s,a,u,N,P),t.arc(s,a,u,P,E),x>0){const j=Pr(M,E,s,a);t.arc(j.x,j.y,x,E,y+Te)}const L=Pr(A,y,s,a);if(t.lineTo(L.x,L.y),S>0){const j=Pr(A,O,s,a);t.arc(j.x,j.y,S,y+Te,O+Math.PI)}const z=(y-S/f+(v+w/f))/2;if(t.arc(s,a,f,y-S/f,z,!0),t.arc(s,a,f,z,v+w/f,!0),w>0){const j=Pr(I,D,s,a);t.arc(j.x,j.y,w,D+Math.PI,v-Te)}const B=Pr(T,v,s,a);if(t.lineTo(B.x,B.y),_>0){const j=Pr(T,N,s,a);t.arc(j.x,j.y,_,v-Te,N)}}else{t.moveTo(s,a);const P=Math.cos(N)*u+s,L=Math.sin(N)*u+a;t.lineTo(P,L);const z=Math.cos(E)*u+s,B=Math.sin(E)*u+a;t.lineTo(z,B)}t.closePath()}function cb(t,e,r,n,o){const{fullCircles:i,startAngle:s,circumference:a}=e;let l=e.endAngle;if(i){Mo(t,e,r,n,l,o);for(let c=0;c<i;++c)t.fill();isNaN(a)||(l=s+(a%Ce||Ce))}return Mo(t,e,r,n,l,o),t.fill(),l}function db(t,e,r,n,o){const{fullCircles:i,startAngle:s,circumference:a,options:l}=e,{borderWidth:c,borderJoinStyle:d,borderDash:u,borderDashOffset:f}=l,h=l.borderAlign==="inner";if(!c)return;t.setLineDash(u||[]),t.lineDashOffset=f,h?(t.lineWidth=c*2,t.lineJoin=d||"round"):(t.lineWidth=c,t.lineJoin=d||"bevel");let p=e.endAngle;if(i){Mo(t,e,r,n,p,o);for(let m=0;m<i;++m)t.stroke();isNaN(a)||(p=s+(a%Ce||Ce))}h&&sb(t,e,p),i||(Mo(t,e,r,n,p,o),t.stroke())}class kn extends vn{constructor(r){super();ee(this,"circumference");ee(this,"endAngle");ee(this,"fullCircles");ee(this,"innerRadius");ee(this,"outerRadius");ee(this,"pixelMargin");ee(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,r&&Object.assign(this,r)}inRange(r,n,o){const i=this.getProps(["x","y"],o),{angle:s,distance:a}=ul(i,{x:r,y:n}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:u,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],o),h=(this.options.spacing+this.options.borderWidth)/2,p=ue(f,c-l),m=fo(s,l,c)&&l!==c,b=p>=Ce||m,v=ln(a,d+h,u+h);return b&&v}getCenterPoint(r){const{x:n,y:o,startAngle:i,endAngle:s,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],r),{offset:c,spacing:d}=this.options,u=(i+s)/2,f=(a+l+d+c)/2;return{x:n+Math.cos(u)*f,y:o+Math.sin(u)*f}}tooltipPosition(r){return this.getCenterPoint(r)}draw(r){const{options:n,circumference:o}=this,i=(n.offset||0)/4,s=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=o>Ce?Math.floor(o/Ce):0,o===0||this.innerRadius<0||this.outerRadius<0)return;r.save();const l=(this.startAngle+this.endAngle)/2;r.translate(Math.cos(l)*i,Math.sin(l)*i);const c=1-Math.sin(Math.min(Ae,o||0)),d=i*c;r.fillStyle=n.backgroundColor,r.strokeStyle=n.borderColor,cb(r,this,d,s,a),db(r,this,d,s,a),r.restore()}}ee(kn,"id","arc"),ee(kn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ee(kn,"defaultRoutes",{backgroundColor:"backgroundColor"}),ee(kn,"descriptors",{_scriptable:!0,_indexable:r=>r!=="borderDash"});const vc=(t,e)=>{let{boxHeight:r=e,boxWidth:n=e}=t;return t.usePointStyle&&(r=Math.min(r,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:r,itemHeight:Math.max(e,r)}},ub=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class xc extends vn{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,r,n){this.maxWidth=e,this.maxHeight=r,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let r=be(e.generateLabels,[this.chart],this)||[];e.filter&&(r=r.filter(n=>e.filter(n,this.chart.data))),e.sort&&(r=r.sort((n,o)=>e.sort(n,o,this.chart.data))),this.options.reverse&&r.reverse(),this.legendItems=r}fit(){const{options:e,ctx:r}=this;if(!e.display){this.width=this.height=0;return}const n=e.labels,o=Ke(n.font),i=o.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=vc(n,i);let c,d;r.font=o.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(s,i,a,l)+10):(d=this.maxHeight,c=this._fitCols(s,o,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(d,e.maxHeight||this.maxHeight)}_fitRows(e,r,n,o){const{ctx:i,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=o+a;let u=e;i.textAlign="left",i.textBaseline="middle";let f=-1,h=-d;return this.legendItems.forEach((p,m)=>{const b=n+r/2+i.measureText(p.text).width;(m===0||c[c.length-1]+b+2*a>s)&&(u+=d,c[c.length-(m>0?0:1)]=0,h+=d,f++),l[m]={left:0,top:h,row:f,width:b,height:o},c[c.length-1]+=b+a}),u}_fitCols(e,r,n,o){const{ctx:i,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=s-e;let u=a,f=0,h=0,p=0,m=0;return this.legendItems.forEach((b,v)=>{const{itemWidth:y,itemHeight:_}=fb(n,r,i,b,o);v>0&&h+_+2*a>d&&(u+=f+a,c.push({width:f,height:h}),p+=f+a,m++,f=h=0),l[v]={left:p,top:h,col:m,width:y,height:_},f=Math.max(f,y),h+=_+a}),u+=f,c.push({width:f,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:r,options:{align:n,labels:{padding:o},rtl:i}}=this,s=Mr(i,this.left,this.width);if(this.isHorizontal()){let a=0,l=et(n,this.left+o,this.right-this.lineWidths[a]);for(const c of r)a!==c.row&&(a=c.row,l=et(n,this.left+o,this.right-this.lineWidths[a])),c.top+=this.top+e+o,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+o}else{let a=0,l=et(n,this.top+e+o,this.bottom-this.columnSizes[a].height);for(const c of r)c.col!==a&&(a=c.col,l=et(n,this.top+e+o,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+o,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;qi(e,this),this._draw(),Gi(e)}}_draw(){const{options:e,columnSizes:r,lineWidths:n,ctx:o}=this,{align:i,labels:s}=e,a=we.color,l=Mr(e.rtl,this.left,this.width),c=Ke(s.font),{padding:d}=s,u=c.size,f=u/2;let h;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:p,boxHeight:m,itemHeight:b}=vc(s,u),v=function(S,T,M){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;o.save();const N=ue(M.lineWidth,1);if(o.fillStyle=ue(M.fillStyle,a),o.lineCap=ue(M.lineCap,"butt"),o.lineDashOffset=ue(M.lineDashOffset,0),o.lineJoin=ue(M.lineJoin,"miter"),o.lineWidth=N,o.strokeStyle=ue(M.strokeStyle,a),o.setLineDash(ue(M.lineDash,[])),s.usePointStyle){const E={radius:m*Math.SQRT2/2,pointStyle:M.pointStyle,rotation:M.rotation,borderWidth:N},I=l.xPlus(S,p/2),A=T+f;Sl(o,E,I,A,s.pointStyleWidth&&p)}else{const E=T+Math.max((u-m)/2,0),I=l.leftForLtr(S,p),A=un(M.borderRadius);o.beginPath(),Object.values(A).some(D=>D!==0)?Xi(o,{x:I,y:E,w:p,h:m,radius:A}):o.rect(I,E,p,m),o.fill(),N!==0&&o.stroke()}o.restore()},y=function(S,T,M){go(o,M.text,S,T+b/2,c,{strikethrough:M.hidden,textAlign:l.textAlign(M.textAlign)})},_=this.isHorizontal(),x=this._computeTitleHeight();_?h={x:et(i,this.left+d,this.right-n[0]),y:this.top+d+x,line:0}:h={x:this.left+d,y:et(i,this.top+x+d,this.bottom-r[0].height),line:0},Ll(this.ctx,e.textDirection);const w=b+d;this.legendItems.forEach((S,T)=>{o.strokeStyle=S.fontColor,o.fillStyle=S.fontColor;const M=o.measureText(S.text).width,N=l.textAlign(S.textAlign||(S.textAlign=s.textAlign)),E=p+f+M;let I=h.x,A=h.y;l.setWidth(this.width),_?T>0&&I+E+d>this.right&&(A=h.y+=w,h.line++,I=h.x=et(i,this.left+d,this.right-n[h.line])):T>0&&A+w>this.bottom&&(I=h.x=I+r[h.line].width+d,h.line++,A=h.y=et(i,this.top+x+d,this.bottom-r[h.line].height));const D=l.x(I);if(v(D,A,S),I=Zp(N,I+p+f,_?I+E:this.right,e.rtl),y(l.x(I),A,S),_)h.x+=E+d;else if(typeof S.text!="string"){const O=c.lineHeight;h.y+=wc(S,O)+d}else h.y+=w}),Fl(this.ctx,e.textDirection)}drawTitle(){const e=this.options,r=e.title,n=Ke(r.font),o=ht(r.padding);if(!r.display)return;const i=Mr(e.rtl,this.left,this.width),s=this.ctx,a=r.position,l=n.size/2,c=o.top+l;let d,u=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+c,u=et(e.align,u,this.right-f);else{const p=this.columnSizes.reduce((m,b)=>Math.max(m,b.height),0);d=c+et(e.align,this.top,this.bottom-p-e.labels.padding-this._computeTitleHeight())}const h=et(a,u,u+f);s.textAlign=i.textAlign(ml(a)),s.textBaseline="middle",s.strokeStyle=r.color,s.fillStyle=r.color,s.font=n.string,go(s,r.text,h,d,n)}_computeTitleHeight(){const e=this.options.title,r=Ke(e.font),n=ht(e.padding);return e.display?r.lineHeight+n.height:0}_getLegendItemAt(e,r){let n,o,i;if(ln(e,this.left,this.right)&&ln(r,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(o=i[n],ln(e,o.left,o.left+o.width)&&ln(r,o.top,o.top+o.height))return this.legendItems[n]}return null}handleEvent(e){const r=this.options;if(!pb(e.type,r))return;const n=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const o=this._hoveredItem,i=ub(o,n);o&&!i&&be(r.onLeave,[e,o,this],this),this._hoveredItem=n,n&&!i&&be(r.onHover,[e,n,this],this)}else n&&be(r.onClick,[e,n,this],this)}}function fb(t,e,r,n,o){const i=hb(n,t,e,r),s=gb(o,n,e.lineHeight);return{itemWidth:i,itemHeight:s}}function hb(t,e,r,n){let o=t.text;return o&&typeof o!="string"&&(o=o.reduce((i,s)=>i.length>s.length?i:s)),e+r.size/2+n.measureText(o).width}function gb(t,e,r){let n=t;return typeof e.text!="string"&&(n=wc(e,r)),n}function wc(t,e){const r=t.text?t.text.length:0;return e*r}function pb(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var mb={id:"legend",_element:xc,start(t,e,r){const n=t.legend=new xc({ctx:t.ctx,options:r,chart:t});qt.configure(t,n,r),qt.addBox(t,n)},stop(t){qt.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,r){const n=t.legend;qt.configure(t,n,r),n.options=r},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,r){const n=e.datasetIndex,o=r.chart;o.isDatasetVisible(n)?(o.hide(n),e.hidden=!0):(o.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:r,pointStyle:n,textAlign:o,color:i,useBorderRadius:s,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(r?0:void 0),d=ht(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:n||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const Cn={average(t){if(!t.length)return!1;let e,r,n=new Set,o=0,i=0;for(e=0,r=t.length;e<r;++e){const a=t[e].element;if(a&&a.hasValue()){const l=a.tooltipPosition();n.add(l.x),o+=l.y,++i}}return i===0||n.size===0?!1:{x:[...n].reduce((a,l)=>a+l)/n.size,y:o/i}},nearest(t,e){if(!t.length)return!1;let r=e.x,n=e.y,o=Number.POSITIVE_INFINITY,i,s,a;for(i=0,s=t.length;i<s;++i){const l=t[i].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),d=Rp(e,c);d<o&&(o=d,a=l)}}if(a){const l=a.tooltipPosition();r=l.x,n=l.y}return{x:r,y:n}}};function wt(t,e){return e&&(Fe(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Lt(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
16
+ */class F0{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,r,n,o){const i=r.listeners[o],s=r.duration;i.forEach(a=>a({chart:e,initial:r.initial,numSteps:s,currentStep:Math.min(n-r.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=gl.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let r=0;this._charts.forEach((n,o)=>{if(!n.running||!n.items.length)return;const i=n.items;let s=i.length-1,a=!1,l;for(;s>=0;--s)l=i[s],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(e),a=!0):(i[s]=i[i.length-1],i.pop());a&&(o.draw(),this._notify(o,n,e,"progress")),i.length||(n.running=!1,this._notify(o,n,e,"complete"),n.initial=!1),r+=i.length}),this._lastDate=e,r===0&&(this._running=!1)}_getAnims(e){const r=this._charts;let n=r.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},r.set(e,n)),n}listen(e,r,n){this._getAnims(e).listeners[r].push(n)}add(e,r){!r||!r.length||this._getAnims(e).items.push(...r)}has(e){return this._getAnims(e).items.length>0}start(e){const r=this._charts.get(e);r&&(r.running=!0,r.start=Date.now(),r.duration=r.items.reduce((n,o)=>Math.max(n,o._duration),0),this._refresh())}running(e){if(!this._running)return!1;const r=this._charts.get(e);return!(!r||!r.running||!r.items.length)}stop(e){const r=this._charts.get(e);if(!r||!r.items.length)return;const n=r.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();r.items=[],this._notify(e,r,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Dt=new F0;const zl="transparent",z0={boolean(t,e,r){return r>.5?e:t},color(t,e,r){const n=xl(t||zl),o=n.valid&&xl(e||zl);return o&&o.valid?o.mix(n,r).hexString():e},number(t,e,r){return t+(e-t)*r}};class B0{constructor(e,r,n,o){const i=r[n];o=po([e.to,o,i,e.from]);const s=po([e.from,i,o]);this._active=!0,this._fn=e.fn||z0[e.type||typeof s],this._easing=cn[e.easing]||cn.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=r,this._prop=n,this._from=s,this._to=o,this._promises=void 0}active(){return this._active}update(e,r,n){if(this._active){this._notify(!1);const o=this._target[this._prop],i=n-this._start,s=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=po([e.to,r,o,e.from]),this._from=po([e.from,o,r])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const r=e-this._start,n=this._duration,o=this._prop,i=this._from,s=this._loop,a=this._to;let l;if(this._active=i!==a&&(s||r<n),!this._active){this._target[o]=a,this._notify(!0);return}if(r<0){this._target[o]=i;return}l=r/n%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(i,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((r,n)=>{e.push({res:r,rej:n})})}_notify(e){const r=e?"res":"rej",n=this._promises||[];for(let o=0;o<n.length;o++)n[o][r]()}}class Bl{constructor(e,r){this._chart=e,this._properties=new Map,this.configure(r)}configure(e){if(!ne(e))return;const r=Object.keys(we.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach(o=>{const i=e[o];if(!ne(i))return;const s={};for(const a of r)s[a]=i[a];(Fe(i.properties)&&i.properties||[o]).forEach(a=>{(a===o||!n.has(a))&&n.set(a,s)})})}_animateOptions(e,r){const n=r.options,o=j0(e,n);if(!o)return[];const i=this._createAnimations(o,n);return n.$shared&&$0(e.options.$animations,n).then(()=>{e.options=n},()=>{}),i}_createAnimations(e,r){const n=this._properties,o=[],i=e.$animations||(e.$animations={}),s=Object.keys(r),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(e,r));continue}const d=r[c];let u=i[c];const f=n.get(c);if(u)if(f&&u.active()){u.update(f,d,a);continue}else u.cancel();if(!f||!f.duration){e[c]=d;continue}i[c]=u=new B0(f,e,c,d),o.push(u)}return o}update(e,r){if(this._properties.size===0){Object.assign(e,r);return}const n=this._createAnimations(e,r);if(n.length)return Dt.add(this._chart,n),!0}}function $0(t,e){const r=[],n=Object.keys(e);for(let o=0;o<n.length;o++){const i=t[n[o]];i&&i.active()&&r.push(i.wait())}return Promise.all(r)}function j0(t,e){if(!e)return;let r=t.options;if(!r){t.options=e;return}return r.$shared&&(t.options=r=Object.assign({},r,{$shared:!1,$animations:{}})),r}function $l(t,e){const r=t&&t.options||{},n=r.reverse,o=r.min===void 0?e:0,i=r.max===void 0?e:0;return{start:n?i:o,end:n?o:i}}function H0(t,e,r){if(r===!1)return!1;const n=$l(t,r),o=$l(e,r);return{top:o.end,right:n.end,bottom:o.start,left:n.start}}function W0(t){let e,r,n,o;return ne(t)?(e=t.top,r=t.right,n=t.bottom,o=t.left):e=r=n=o=t,{top:e,right:r,bottom:n,left:o,disabled:t===!1}}function jl(t,e){const r=[],n=t._getSortedDatasetMetas(e);let o,i;for(o=0,i=n.length;o<i;++o)r.push(n[o].index);return r}function Hl(t,e,r,n={}){const o=t.keys,i=n.mode==="single";let s,a,l,c;if(e===null)return;let d=!1;for(s=0,a=o.length;s<a;++s){if(l=+o[s],l===r){if(d=!0,n.all)continue;break}c=t.values[l],It(c)&&(i||e===0||dl(e)===dl(c))&&(e+=c)}return!d&&!n.all?0:e}function V0(t,e){const{iScale:r,vScale:n}=e,o=r.axis==="x"?"x":"y",i=n.axis==="x"?"x":"y",s=Object.keys(t),a=new Array(s.length);let l,c,d;for(l=0,c=s.length;l<c;++l)d=s[l],a[l]={[o]:d,[i]:t[d]};return a}function ns(t,e){const r=t&&t.options.stacked;return r||r===void 0&&e.stack!==void 0}function R0(t,e,r){return`${t.id}.${e.id}.${r.stack||r.type}`}function Y0(t){const{min:e,max:r,minDefined:n,maxDefined:o}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:o?r:Number.POSITIVE_INFINITY}}function U0(t,e,r){const n=t[e]||(t[e]={});return n[r]||(n[r]={})}function Wl(t,e,r,n){for(const o of e.getMatchingVisibleMetas(n).reverse()){const i=t[o.index];if(r&&i>0||!r&&i<0)return o.index}return null}function Vl(t,e){const{chart:r,_cachedMeta:n}=t,o=r._stacks||(r._stacks={}),{iScale:i,vScale:s,index:a}=n,l=i.axis,c=s.axis,d=R0(i,s,n),u=e.length;let f;for(let h=0;h<u;++h){const p=e[h],{[l]:m,[c]:b}=p,v=p._stacks||(p._stacks={});f=v[c]=U0(o,d,m),f[a]=b,f._top=Wl(f,s,!0,n.type),f._bottom=Wl(f,s,!1,n.type);const y=f._visualValues||(f._visualValues={});y[a]=b}}function os(t,e){const r=t.scales;return Object.keys(r).filter(n=>r[n].axis===e).shift()}function K0(t,e){return Tr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function q0(t,e,r){return Tr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:r,index:e,mode:"default",type:"data"})}function fn(t,e){const r=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const o of e){const i=o._stacks;if(!i||i[n]===void 0||i[n][r]===void 0)return;delete i[n][r],i[n]._visualValues!==void 0&&i[n]._visualValues[r]!==void 0&&delete i[n]._visualValues[r]}}}const is=t=>t==="reset"||t==="none",Rl=(t,e)=>e?t:Object.assign({},t),G0=(t,e,r)=>t&&!e.hidden&&e._stacked&&{keys:jl(r,!0),values:null};class hn{constructor(e,r){this.chart=e,this._ctx=e.ctx,this.index=r,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=ns(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&fn(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,r=this._cachedMeta,n=this.getDataset(),o=(u,f,h,p)=>u==="x"?f:u==="r"?p:h,i=r.xAxisID=ue(n.xAxisID,os(e,"x")),s=r.yAxisID=ue(n.yAxisID,os(e,"y")),a=r.rAxisID=ue(n.rAxisID,os(e,"r")),l=r.indexAxis,c=r.iAxisID=o(l,i,s,a),d=r.vAxisID=o(l,s,i,a);r.xScale=this.getScaleForId(i),r.yScale=this.getScaleForId(s),r.rScale=this.getScaleForId(a),r.iScale=this.getScaleForId(c),r.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const r=this._cachedMeta;return e===r.iScale?r.vScale:r.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&hl(this._data,this),e._stacked&&fn(e)}_dataCheck(){const e=this.getDataset(),r=e.data||(e.data=[]),n=this._data;if(ne(r)){const o=this._cachedMeta;this._data=V0(r,o)}else if(n!==r){if(n){hl(n,this);const o=this._cachedMeta;fn(o),o._parsed=[]}r&&Object.isExtensible(r)&&Gp(r,this),this._syncList=[],this._data=r}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const r=this._cachedMeta,n=this.getDataset();let o=!1;this._dataCheck();const i=r._stacked;r._stacked=ns(r.vScale,r),r.stack!==n.stack&&(o=!0,fn(r),r.stack=n.stack),this._resyncElements(e),(o||i!==r._stacked)&&(Vl(this,r._parsed),r._stacked=ns(r.vScale,r))}configure(){const e=this.chart.config,r=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),r,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,r){const{_cachedMeta:n,_data:o}=this,{iScale:i,_stacked:s}=n,a=i.axis;let l=e===0&&r===o.length?!0:n._sorted,c=e>0&&n._parsed[e-1],d,u,f;if(this._parsing===!1)n._parsed=o,n._sorted=!0,f=o;else{Fe(o[e])?f=this.parseArrayData(n,o,e,r):ne(o[e])?f=this.parseObjectData(n,o,e,r):f=this.parsePrimitiveData(n,o,e,r);const h=()=>u[a]===null||c&&u[a]<c[a];for(d=0;d<r;++d)n._parsed[d+e]=u=f[d],l&&(h()&&(l=!1),c=u);n._sorted=l}s&&Vl(this,f)}parsePrimitiveData(e,r,n,o){const{iScale:i,vScale:s}=e,a=i.axis,l=s.axis,c=i.getLabels(),d=i===s,u=new Array(o);let f,h,p;for(f=0,h=o;f<h;++f)p=f+n,u[f]={[a]:d||i.parse(c[p],p),[l]:s.parse(r[p],p)};return u}parseArrayData(e,r,n,o){const{xScale:i,yScale:s}=e,a=new Array(o);let l,c,d,u;for(l=0,c=o;l<c;++l)d=l+n,u=r[d],a[l]={x:i.parse(u[0],d),y:s.parse(u[1],d)};return a}parseObjectData(e,r,n,o){const{xScale:i,yScale:s}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(o);let d,u,f,h;for(d=0,u=o;d<u;++d)f=d+n,h=r[f],c[d]={x:i.parse(an(h,a),f),y:s.parse(an(h,l),f)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,r,n){const o=this.chart,i=this._cachedMeta,s=r[e.axis],a={keys:jl(o,!0),values:r._stacks[e.axis]._visualValues};return Hl(a,s,i.index,{mode:n})}updateRangeFromParsed(e,r,n,o){const i=n[r.axis];let s=i===null?NaN:i;const a=o&&n._stacks[r.axis];o&&a&&(o.values=a,s=Hl(o,i,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,r){const n=this._cachedMeta,o=n._parsed,i=n._sorted&&e===n.iScale,s=o.length,a=this._getOtherScale(e),l=G0(r,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=Y0(a);let f,h;function p(){h=o[f];const m=h[a.axis];return!It(h[e.axis])||d>m||u<m}for(f=0;f<s&&!(!p()&&(this.updateRangeFromParsed(c,e,h,l),i));++f);if(i){for(f=s-1;f>=0;--f)if(!p()){this.updateRangeFromParsed(c,e,h,l);break}}return c}getAllParsedValues(e){const r=this._cachedMeta._parsed,n=[];let o,i,s;for(o=0,i=r.length;o<i;++o)s=r[o][e.axis],It(s)&&n.push(s);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const r=this._cachedMeta,n=r.iScale,o=r.vScale,i=this.getParsed(e);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:o?""+o.getLabelForValue(i[o.axis]):""}}_update(e){const r=this._cachedMeta;this.update(e||"default"),r._clip=W0(ue(this.options.clip,H0(r.xScale,r.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,r=this.chart,n=this._cachedMeta,o=n.data||[],i=r.chartArea,s=[],a=this._drawStart||0,l=this._drawCount||o.length-a,c=this.options.drawActiveElementsOnTop;let d;for(n.dataset&&n.dataset.draw(e,i,a,l),d=a;d<a+l;++d){const u=o[d];u.hidden||(u.active&&c?s.push(u):u.draw(e,i))}for(d=0;d<s.length;++d)s[d].draw(e,i)}getStyle(e,r){const n=r?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,r,n){const o=this.getDataset();let i;if(e>=0&&e<this._cachedMeta.data.length){const s=this._cachedMeta.data[e];i=s.$context||(s.$context=q0(this.getContext(),e,s)),i.parsed=this.getParsed(e),i.raw=o.data[e],i.index=i.dataIndex=e}else i=this.$context||(this.$context=K0(this.chart.getContext(),this.index)),i.dataset=o,i.index=i.datasetIndex=this.index;return i.active=!!r,i.mode=n,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,r){return this._resolveElementOptions(this.dataElementType.id,r,e)}_resolveElementOptions(e,r="default",n){const o=r==="active",i=this._cachedDataOpts,s=e+"-"+r,a=i[s],l=this.enableOptionSharing&&lo(n);if(a)return Rl(a,l);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,e),u=o?[`${e}Hover`,"hover",e,""]:[e,""],f=c.getOptionScopes(this.getDataset(),d),h=Object.keys(we.elements[e]),p=()=>this.getContext(n,o,r),m=c.resolveNamedOptions(f,h,p,u);return m.$shared&&(m.$shared=l,i[s]=Object.freeze(Rl(m,l))),m}_resolveAnimations(e,r,n){const o=this.chart,i=this._cachedDataOpts,s=`animation-${r}`,a=i[s];if(a)return a;let l;if(o.options.animation!==!1){const d=this.chart.config,u=d.datasetAnimationScopeKeys(this._type,r),f=d.getOptionScopes(this.getDataset(),u);l=d.createResolver(f,this.getContext(e,n,r))}const c=new Bl(o,l&&l.animations);return l&&l._cacheable&&(i[s]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,r){return!r||is(e)||this.chart._animationsDisabled}_getSharedOptions(e,r){const n=this.resolveDataElementOptions(e,r),o=this._sharedOptions,i=this.getSharedOptions(n),s=this.includeOptions(r,i)||i!==o;return this.updateSharedOptions(i,r,n),{sharedOptions:i,includeOptions:s}}updateElement(e,r,n,o){is(o)?Object.assign(e,n):this._resolveAnimations(r,o).update(e,n)}updateSharedOptions(e,r,n){e&&!is(r)&&this._resolveAnimations(void 0,r).update(e,n)}_setStyle(e,r,n,o){e.active=o;const i=this.getStyle(r,o);this._resolveAnimations(r,n,o).update(e,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(e,r,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,r,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const r=this._data,n=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const o=n.length,i=r.length,s=Math.min(i,o);s&&this.parse(0,s),i>o?this._insertElements(o,i-o,e):i<o&&this._removeElements(i,o-i)}_insertElements(e,r,n=!0){const o=this._cachedMeta,i=o.data,s=e+r;let a;const l=c=>{for(c.length+=r,a=c.length-1;a>=s;a--)c[a]=c[a-r]};for(l(i),a=e;a<s;++a)i[a]=new this.dataElementType;this._parsing&&l(o._parsed),this.parse(e,r),n&&this.updateElements(i,e,r,"reset")}updateElements(e,r,n,o){}_removeElements(e,r){const n=this._cachedMeta;if(this._parsing){const o=n._parsed.splice(e,r);n._stacked&&fn(n,o)}n.data.splice(e,r)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[r,n,o]=e;this[r](n,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,r){r&&this._sync(["_removeElements",e,r]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ee(hn,"defaults",{}),ee(hn,"datasetElementType",null),ee(hn,"dataElementType",null);function X0(t,e,r){let n=1,o=1,i=0,s=0;if(e<Ce){const a=t,l=a+e,c=Math.cos(a),d=Math.sin(a),u=Math.cos(l),f=Math.sin(l),h=(_,x,w)=>fo(_,a,l,!0)?1:Math.max(x,x*r,w,w*r),p=(_,x,w)=>fo(_,a,l,!0)?-1:Math.min(x,x*r,w,w*r),m=h(0,c,u),b=h(Te,d,f),v=p(Ae,c,u),y=p(Ae+Te,d,f);n=(m-v)/2,o=(b-y)/2,i=-(m+v)/2,s=-(b+y)/2}return{ratioX:n,ratioY:o,offsetX:i,offsetY:s}}class gn extends hn{constructor(e,r){super(e,r),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,r){const n=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=n;else{let i=l=>+n[l];if(ne(n[e])){const{key:l="value"}=this._parsing;i=c=>+an(n[c],l)}let s,a;for(s=e,a=e+r;s<a;++s)o._parsed[s]=i(s)}}_getRotation(){return sr(this.options.rotation-90)}_getCircumference(){return sr(this.options.circumference)}_getRotationExtents(){let e=Ce,r=-Ce;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const o=this.chart.getDatasetMeta(n).controller,i=o._getRotation(),s=o._getCircumference();e=Math.min(e,i),r=Math.max(r,i+s)}return{rotation:e,circumference:r-e}}update(e){const r=this.chart,{chartArea:n}=r,o=this._cachedMeta,i=o.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-s)/2,0),l=Math.min(Lp(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:p,offsetY:m}=X0(u,d,l),b=(n.width-s)/f,v=(n.height-s)/h,y=Math.max(Math.min(b,v)/2,0),_=il(this.options.radius,y),x=Math.max(_*l,0),w=(_-x)/this._getVisibleDatasetWeightTotal();this.offsetX=p*_,this.offsetY=m*_,o.total=this.calculateTotal(),this.outerRadius=_-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(i,0,i.length,e)}_circumference(e,r){const n=this.options,o=this._cachedMeta,i=this._getCircumference();return r&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||o._parsed[e]===null||o.data[e].hidden?0:this.calculateCircumference(o._parsed[e]*i/Ce)}updateElements(e,r,n,o){const i=o==="reset",s=this.chart,a=s.chartArea,c=s.options.animation,d=(a.left+a.right)/2,u=(a.top+a.bottom)/2,f=i&&c.animateScale,h=f?0:this.innerRadius,p=f?0:this.outerRadius,{sharedOptions:m,includeOptions:b}=this._getSharedOptions(r,o);let v=this._getRotation(),y;for(y=0;y<r;++y)v+=this._circumference(y,i);for(y=r;y<r+n;++y){const _=this._circumference(y,i),x=e[y],w={x:d+this.offsetX,y:u+this.offsetY,startAngle:v,endAngle:v+_,circumference:_,outerRadius:p,innerRadius:h};b&&(w.options=m||this.resolveDataElementOptions(y,x.active?"active":o)),v+=_,this.updateElement(x,y,w,o)}}calculateTotal(){const e=this._cachedMeta,r=e.data;let n=0,o;for(o=0;o<r.length;o++){const i=e._parsed[o];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(o)&&!r[o].hidden&&(n+=Math.abs(i))}return n}calculateCircumference(e){const r=this._cachedMeta.total;return r>0&&!isNaN(e)?Ce*(Math.abs(e)/r):0}getLabelAndValue(e){const r=this._cachedMeta,n=this.chart,o=n.data.labels||[],i=o0(r._parsed[e],n.options.locale);return{label:o[e]||"",value:i}}getMaxBorderWidth(e){let r=0;const n=this.chart;let o,i,s,a,l;if(!e){for(o=0,i=n.data.datasets.length;o<i;++o)if(n.isDatasetVisible(o)){s=n.getDatasetMeta(o),e=s.data,a=s.controller;break}}if(!e)return 0;for(o=0,i=e.length;o<i;++o)l=a.resolveDataElementOptions(o),l.borderAlign!=="inner"&&(r=Math.max(r,l.borderWidth||0,l.hoverBorderWidth||0));return r}getMaxOffset(e){let r=0;for(let n=0,o=e.length;n<o;++n){const i=this.resolveDataElementOptions(n);r=Math.max(r,i.offset||0,i.hoverOffset||0)}return r}_getRingWeightOffset(e){let r=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(r+=this._getRingWeight(n));return r}_getRingWeight(e){return Math.max(ue(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ee(gn,"id","doughnut"),ee(gn,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ee(gn,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),ee(gn,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const r=e.data;if(r.labels.length&&r.datasets.length){const{labels:{pointStyle:n,color:o}}=e.legend.options;return r.labels.map((i,s)=>{const l=e.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:o,lineWidth:l.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,r,n){n.chart.toggleDataVisibility(r.index),n.chart.update()}}}});function fr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ss{constructor(e){ee(this,"options");this.options=e||{}}static override(e){Object.assign(ss.prototype,e)}init(){}formats(){return fr()}parse(){return fr()}format(){return fr()}add(){return fr()}diff(){return fr()}startOf(){return fr()}endOf(){return fr()}}var Z0={_date:ss};function J0(t,e,r,n){const{controller:o,data:i,_sorted:s}=t,a=o._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&e===a.axis&&e!=="r"&&s&&i.length){const c=a._reversePixels?Kp:Ri;if(n){if(o._sharedOptions){const d=i[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const f=c(i,e,r-u),h=c(i,e,r+u);return{lo:f.lo,hi:h.hi}}}}else{const d=c(i,e,r);if(l){const{vScale:u}=o._cachedMeta,{_parsed:f}=t,h=f.slice(0,d.lo+1).reverse().findIndex(m=>!We(m[u.axis]));d.lo-=Math.max(0,h);const p=f.slice(d.hi).findIndex(m=>!We(m[u.axis]));d.hi+=Math.max(0,p)}return d}}return{lo:0,hi:i.length-1}}function vo(t,e,r,n,o){const i=t.getSortedVisibleDatasetMetas(),s=r[e];for(let a=0,l=i.length;a<l;++a){const{index:c,data:d}=i[a],{lo:u,hi:f}=J0(i[a],e,s,o);for(let h=u;h<=f;++h){const p=d[h];p.skip||n(p,c,h)}}}function Q0(t){const e=t.indexOf("x")!==-1,r=t.indexOf("y")!==-1;return function(n,o){const i=e?Math.abs(n.x-o.x):0,s=r?Math.abs(n.y-o.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function as(t,e,r,n,o){const i=[];return!o&&!t.isPointInArea(e)||vo(t,r,e,function(a,l,c){!o&&!El(a,t.chartArea,0)||a.inRange(e.x,e.y,n)&&i.push({element:a,datasetIndex:l,index:c})},!0),i}function em(t,e,r,n){let o=[];function i(s,a,l){const{startAngle:c,endAngle:d}=s.getProps(["startAngle","endAngle"],n),{angle:u}=ul(s,{x:e.x,y:e.y});fo(u,c,d)&&o.push({element:s,datasetIndex:a,index:l})}return vo(t,r,e,i),o}function tm(t,e,r,n,o,i){let s=[];const a=Q0(r);let l=Number.POSITIVE_INFINITY;function c(d,u,f){const h=d.inRange(e.x,e.y,o);if(n&&!h)return;const p=d.getCenterPoint(o);if(!(!!i||t.isPointInArea(p))&&!h)return;const b=a(e,p);b<l?(s=[{element:d,datasetIndex:u,index:f}],l=b):b===l&&s.push({element:d,datasetIndex:u,index:f})}return vo(t,r,e,c),s}function ls(t,e,r,n,o,i){return!i&&!t.isPointInArea(e)?[]:r==="r"&&!n?em(t,e,r,o):tm(t,e,r,n,o,i)}function Yl(t,e,r,n,o){const i=[],s=r==="x"?"inXRange":"inYRange";let a=!1;return vo(t,r,e,(l,c,d)=>{l[s]&&l[s](e[r],o)&&(i.push({element:l,datasetIndex:c,index:d}),a=a||l.inRange(e.x,e.y,o))}),n&&!a?[]:i}var rm={modes:{index(t,e,r,n){const o=ur(e,t),i=r.axis||"x",s=r.includeInvisible||!1,a=r.intersect?as(t,o,i,n,s):ls(t,o,i,!1,n,s),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const d=a[0].index,u=c.data[d];u&&!u.skip&&l.push({element:u,datasetIndex:c.index,index:d})}),l):[]},dataset(t,e,r,n){const o=ur(e,t),i=r.axis||"xy",s=r.includeInvisible||!1;let a=r.intersect?as(t,o,i,n,s):ls(t,o,i,!1,n,s);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let d=0;d<c.length;++d)a.push({element:c[d],datasetIndex:l,index:d})}return a},point(t,e,r,n){const o=ur(e,t),i=r.axis||"xy",s=r.includeInvisible||!1;return as(t,o,i,n,s)},nearest(t,e,r,n){const o=ur(e,t),i=r.axis||"xy",s=r.includeInvisible||!1;return ls(t,o,i,r.intersect,n,s)},x(t,e,r,n){const o=ur(e,t);return Yl(t,o,"x",r.intersect,n)},y(t,e,r,n){const o=ur(e,t);return Yl(t,o,"y",r.intersect,n)}}};const Ul=["left","top","right","bottom"];function pn(t,e){return t.filter(r=>r.pos===e)}function Kl(t,e){return t.filter(r=>Ul.indexOf(r.pos)===-1&&r.box.axis===e)}function mn(t,e){return t.sort((r,n)=>{const o=e?n:r,i=e?r:n;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function nm(t){const e=[];let r,n,o,i,s,a;for(r=0,n=(t||[]).length;r<n;++r)o=t[r],{position:i,options:{stack:s,stackWeight:a=1}}=o,e.push({index:r,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:s&&i+s,stackWeight:a});return e}function om(t){const e={};for(const r of t){const{stack:n,pos:o,stackWeight:i}=r;if(!n||!Ul.includes(o))continue;const s=e[n]||(e[n]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return e}function im(t,e){const r=om(t),{vBoxMaxWidth:n,hBoxMaxHeight:o}=e;let i,s,a;for(i=0,s=t.length;i<s;++i){a=t[i];const{fullSize:l}=a.box,c=r[a.stack],d=c&&a.stackWeight/c.weight;a.horizontal?(a.width=d?d*n:l&&e.availableWidth,a.height=o):(a.width=n,a.height=d?d*o:l&&e.availableHeight)}return r}function sm(t){const e=nm(t),r=mn(e.filter(c=>c.box.fullSize),!0),n=mn(pn(e,"left"),!0),o=mn(pn(e,"right")),i=mn(pn(e,"top"),!0),s=mn(pn(e,"bottom")),a=Kl(e,"x"),l=Kl(e,"y");return{fullSize:r,leftAndTop:n.concat(i),rightAndBottom:o.concat(l).concat(s).concat(a),chartArea:pn(e,"chartArea"),vertical:n.concat(o).concat(l),horizontal:i.concat(s).concat(a)}}function ql(t,e,r,n){return Math.max(t[r],e[r])+Math.max(t[n],e[n])}function Gl(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function am(t,e,r,n){const{pos:o,box:i}=r,s=t.maxPadding;if(!ne(o)){r.size&&(t[o]-=r.size);const u=n[r.stack]||{size:0,count:1};u.size=Math.max(u.size,r.horizontal?i.height:i.width),r.size=u.size/u.count,t[o]+=r.size}i.getPadding&&Gl(s,i.getPadding());const a=Math.max(0,e.outerWidth-ql(s,t,"left","right")),l=Math.max(0,e.outerHeight-ql(s,t,"top","bottom")),c=a!==t.w,d=l!==t.h;return t.w=a,t.h=l,r.horizontal?{same:c,other:d}:{same:d,other:c}}function lm(t){const e=t.maxPadding;function r(n){const o=Math.max(e[n]-t[n],0);return t[n]+=o,o}t.y+=r("top"),t.x+=r("left"),r("right"),r("bottom")}function cm(t,e){const r=e.maxPadding;function n(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(s=>{i[s]=Math.max(e[s],r[s])}),i}return n(t?["left","right"]:["top","bottom"])}function bn(t,e,r,n){const o=[];let i,s,a,l,c,d;for(i=0,s=t.length,c=0;i<s;++i){a=t[i],l=a.box,l.update(a.width||e.w,a.height||e.h,cm(a.horizontal,e));const{same:u,other:f}=am(e,r,a,n);c|=u&&o.length,d=d||f,l.fullSize||o.push(a)}return c&&bn(o,e,r,n)||d}function xo(t,e,r,n,o){t.top=r,t.left=e,t.right=e+n,t.bottom=r+o,t.width=n,t.height=o}function Xl(t,e,r,n){const o=r.padding;let{x:i,y:s}=e;for(const a of t){const l=a.box,c=n[a.stack]||{placed:0,weight:1},d=a.stackWeight/c.weight||1;if(a.horizontal){const u=e.w*d,f=c.size||l.height;lo(c.start)&&(s=c.start),l.fullSize?xo(l,o.left,s,r.outerWidth-o.right-o.left,f):xo(l,e.left+c.placed,s,u,f),c.start=s,c.placed+=u,s=l.bottom}else{const u=e.h*d,f=c.size||l.width;lo(c.start)&&(i=c.start),l.fullSize?xo(l,i,o.top,f,r.outerHeight-o.bottom-o.top):xo(l,i,e.top+c.placed,f,u),c.start=i,c.placed+=u,i=l.right}}e.x=i,e.y=s}var qt={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(r){e.draw(r)}}]},t.boxes.push(e)},removeBox(t,e){const r=t.boxes?t.boxes.indexOf(e):-1;r!==-1&&t.boxes.splice(r,1)},configure(t,e,r){e.fullSize=r.fullSize,e.position=r.position,e.weight=r.weight},update(t,e,r,n){if(!t)return;const o=ht(t.options.layout.padding),i=Math.max(e-o.width,0),s=Math.max(r-o.height,0),a=sm(t.boxes),l=a.vertical,c=a.horizontal;fe(t.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const d=l.reduce((m,b)=>b.box.options&&b.box.options.display===!1?m:m+1,0)||1,u=Object.freeze({outerWidth:e,outerHeight:r,padding:o,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/d,hBoxMaxHeight:s/2}),f=Object.assign({},o);Gl(f,ht(n));const h=Object.assign({maxPadding:f,w:i,h:s,x:o.left,y:o.top},o),p=im(l.concat(c),u);bn(a.fullSize,h,u,p),bn(l,h,u,p),bn(c,h,u,p)&&bn(l,h,u,p),lm(h),Xl(a.leftAndTop,h,u,p),h.x+=h.w,h.y+=h.h,Xl(a.rightAndBottom,h,u,p),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},fe(a.chartArea,m=>{const b=m.box;Object.assign(b,t.chartArea),b.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class Zl{acquireContext(e,r){}releaseContext(e){return!1}addEventListener(e,r,n){}removeEventListener(e,r,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,r,n,o){return r=Math.max(0,r||e.width),n=n||e.height,{width:r,height:Math.max(0,o?Math.floor(r/o):n)}}isAttached(e){return!0}updateConfig(e){}}class dm extends Zl{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const wo="$chartjs",um={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Jl=t=>t===null||t==="";function fm(t,e){const r=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t[wo]={initial:{height:n,width:o,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",r.boxSizing=r.boxSizing||"border-box",Jl(o)){const i=Dl(t,"width");i!==void 0&&(t.width=i)}if(Jl(n))if(t.style.height==="")t.height=t.width/(e||2);else{const i=Dl(t,"height");i!==void 0&&(t.height=i)}return t}const Ql=I0?{passive:!0}:!1;function hm(t,e,r){t&&t.addEventListener(e,r,Ql)}function gm(t,e,r){t&&t.canvas&&t.canvas.removeEventListener(e,r,Ql)}function pm(t,e){const r=um[t.type]||t.type,{x:n,y:o}=ur(t,e);return{type:r,chart:e,native:t,x:n!==void 0?n:null,y:o!==void 0?o:null}}function ko(t,e){for(const r of t)if(r===e||r.contains(e))return!0}function mm(t,e,r){const n=t.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||ko(a.addedNodes,n),s=s&&!ko(a.removedNodes,n);s&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}function bm(t,e,r){const n=t.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||ko(a.removedNodes,n),s=s&&!ko(a.addedNodes,n);s&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}const yn=new Map;let ec=0;function tc(){const t=window.devicePixelRatio;t!==ec&&(ec=t,yn.forEach((e,r)=>{r.currentDevicePixelRatio!==t&&e()}))}function ym(t,e){yn.size||window.addEventListener("resize",tc),yn.set(t,e)}function vm(t){yn.delete(t),yn.size||window.removeEventListener("resize",tc)}function xm(t,e,r){const n=t.canvas,o=n&&rs(n);if(!o)return;const i=pl((a,l)=>{const c=o.clientWidth;r(a,l),c<o.clientWidth&&r()},window),s=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||i(c,d)});return s.observe(o),ym(t,i),s}function cs(t,e,r){r&&r.disconnect(),e==="resize"&&vm(t)}function wm(t,e,r){const n=t.canvas,o=pl(i=>{t.ctx!==null&&r(pm(i,t))},t);return hm(n,e,o),o}class km extends Zl{acquireContext(e,r){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(fm(e,r),n):null}releaseContext(e){const r=e.canvas;if(!r[wo])return!1;const n=r[wo].initial;["height","width"].forEach(i=>{const s=n[i];We(s)?r.removeAttribute(i):r.setAttribute(i,s)});const o=n.style||{};return Object.keys(o).forEach(i=>{r.style[i]=o[i]}),r.width=r.width,delete r[wo],!0}addEventListener(e,r,n){this.removeEventListener(e,r);const o=e.$proxies||(e.$proxies={}),s={attach:mm,detach:bm,resize:xm}[r]||wm;o[r]=s(e,r,n)}removeEventListener(e,r){const n=e.$proxies||(e.$proxies={}),o=n[r];if(!o)return;({attach:cs,detach:cs,resize:cs}[r]||gm)(e,r,o),n[r]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,r,n,o){return A0(e,r,n,o)}isAttached(e){const r=e&&rs(e);return!!(r&&r.isConnected)}}function Cm(t){return!ts()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?dm:km}let vn=(Di=class{constructor(){ee(this,"x");ee(this,"y");ee(this,"active",!1);ee(this,"options");ee(this,"$animations")}tooltipPosition(e){const{x:r,y:n}=this.getProps(["x","y"],e);return{x:r,y:n}}hasValue(){return uo(this.x)&&uo(this.y)}getProps(e,r){const n=this.$animations;if(!r||!n)return this;const o={};return e.forEach(i=>{o[i]=n[i]&&n[i].active()?n[i]._to:this[i]}),o}},ee(Di,"defaults",{}),ee(Di,"defaultRoutes"),Di);function _m(t,e){const r=t.options.ticks,n=Sm(t),o=Math.min(r.maxTicksLimit||n,n),i=r.major.enabled?Om(e):[],s=i.length,a=i[0],l=i[s-1],c=[];if(s>o)return Tm(e,c,i,s/o),c;const d=Em(i,e,o);if(s>0){let u,f;const h=s>1?Math.round((l-a)/(s-1)):null;for(Co(e,c,d,We(h)?0:a-h,a),u=0,f=s-1;u<f;u++)Co(e,c,d,i[u],i[u+1]);return Co(e,c,d,l,We(h)?e.length:l+h),c}return Co(e,c,d),c}function Sm(t){const e=t.options.offset,r=t._tickSize(),n=t._length/r+(e?0:1),o=t._maxLength/r;return Math.floor(Math.min(n,o))}function Em(t,e,r){const n=Nm(t),o=e.length/r;if(!n)return Math.max(o,1);const i=Wp(n);for(let s=0,a=i.length-1;s<a;s++){const l=i[s];if(l>o)return l}return Math.max(o,1)}function Om(t){const e=[];let r,n;for(r=0,n=t.length;r<n;r++)t[r].major&&e.push(r);return e}function Tm(t,e,r,n){let o=0,i=r[0],s;for(n=Math.ceil(n),s=0;s<t.length;s++)s===i&&(e.push(t[s]),o++,i=r[o*n])}function Co(t,e,r,n,o){const i=ue(n,0),s=Math.min(ue(o,t.length),t.length);let a=0,l,c,d;for(r=Math.ceil(r),o&&(l=o-n,r=l/Math.floor(l/r)),d=i;d<0;)a++,d=Math.round(i+a*r);for(c=Math.max(i,0);c<s;c++)c===d&&(e.push(t[c]),a++,d=Math.round(i+a*r))}function Nm(t){const e=t.length;let r,n;if(e<2)return!1;for(n=t[0],r=1;r<e;++r)if(t[r]-t[r-1]!==n)return!1;return n}const Mm=t=>t==="left"?"right":t==="right"?"left":t,rc=(t,e,r)=>e==="top"||e==="left"?t[e]+r:t[e]-r,nc=(t,e)=>Math.min(e||t,t);function oc(t,e){const r=[],n=t.length/e,o=t.length;let i=0;for(;i<o;i+=n)r.push(t[Math.floor(i)]);return r}function Pm(t,e,r){const n=t.ticks.length,o=Math.min(e,n-1),i=t._startPixel,s=t._endPixel,a=1e-6;let l=t.getPixelForTick(o),c;if(!(r&&(n===1?c=Math.max(l-i,s-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(o-1))/2,l+=o<e?c:-c,l<i-a||l>s+a)))return l}function Am(t,e){fe(t,r=>{const n=r.gc,o=n.length/2;let i;if(o>e){for(i=0;i<o;++i)delete r.data[n[i]];n.splice(0,o)}})}function xn(t){return t.drawTicks?t.tickLength:0}function ic(t,e){if(!t.display)return 0;const r=Ke(t.font,e),n=ht(t.padding);return(Fe(t.text)?t.text.length:1)*r.lineHeight+n.height}function Im(t,e){return Tr(t,{scale:e,type:"scale"})}function Dm(t,e,r){return Tr(t,{tick:r,index:e,type:"tick"})}function Lm(t,e,r){let n=ml(t);return(r&&e!=="right"||!r&&e==="right")&&(n=Mm(n)),n}function Fm(t,e,r,n){const{top:o,left:i,bottom:s,right:a,chart:l}=t,{chartArea:c,scales:d}=l;let u=0,f,h,p;const m=s-o,b=a-i;if(t.isHorizontal()){if(h=et(n,i,a),ne(r)){const v=Object.keys(r)[0],y=r[v];p=d[v].getPixelForValue(y)+m-e}else r==="center"?p=(c.bottom+c.top)/2+m-e:p=rc(t,r,e);f=a-i}else{if(ne(r)){const v=Object.keys(r)[0],y=r[v];h=d[v].getPixelForValue(y)-b+e}else r==="center"?h=(c.left+c.right)/2-b+e:h=rc(t,r,e);p=et(n,s,o),u=r==="left"?-Te:Te}return{titleX:h,titleY:p,maxWidth:f,rotation:u}}class _o extends vn{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,r){return e}getUserBounds(){let{_userMin:e,_userMax:r,_suggestedMin:n,_suggestedMax:o}=this;return e=vt(e,Number.POSITIVE_INFINITY),r=vt(r,Number.NEGATIVE_INFINITY),n=vt(n,Number.POSITIVE_INFINITY),o=vt(o,Number.NEGATIVE_INFINITY),{min:vt(e,n),max:vt(r,o),minDefined:It(e),maxDefined:It(r)}}getMinMax(e){let{min:r,max:n,minDefined:o,maxDefined:i}=this.getUserBounds(),s;if(o&&i)return{min:r,max:n};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)s=a[l].controller.getMinMax(this,e),o||(r=Math.min(r,s.min)),i||(n=Math.max(n,s.max));return r=i&&r>n?n:r,n=o&&r>n?r:n,{min:vt(r,vt(n,r)),max:vt(n,vt(r,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){be(this.options.beforeUpdate,[this])}update(e,r,n){const{beginAtZero:o,grace:i,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=r,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=b0(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?oc(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=_m(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,r,n;this.isHorizontal()?(r=this.left,n=this.right):(r=this.top,n=this.bottom,e=!e),this._startPixel=r,this._endPixel=n,this._reversePixels=e,this._length=n-r,this._alignToPixels=this.options.alignToPixels}afterUpdate(){be(this.options.afterUpdate,[this])}beforeSetDimensions(){be(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){be(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),be(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){be(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const r=this.options.ticks;let n,o,i;for(n=0,o=e.length;n<o;n++)i=e[n],i.label=be(r.callback,[i.value,n,e],this)}afterTickToLabelConversion(){be(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){be(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,r=e.ticks,n=nc(this.ticks.length,e.ticks.maxTicksLimit),o=r.minRotation||0,i=r.maxRotation;let s=o,a,l,c;if(!this._isVisible()||!r.display||o>=i||n<=1||!this.isHorizontal()){this.labelRotation=o;return}const d=this._getLabelSizes(),u=d.widest.width,f=d.highest.height,h=at(this.chart.width-u,0,this.maxWidth);a=e.offset?this.maxWidth/n:h/(n-1),u+6>a&&(a=h/(n-(e.offset?.5:1)),l=this.maxHeight-xn(e.grid)-r.padding-ic(e.title,this.chart.options.font),c=Math.sqrt(u*u+f*f),s=Rp(Math.min(Math.asin(at((d.highest.height+6)/a,-1,1)),Math.asin(at(l/c,-1,1))-Math.asin(at(f/c,-1,1)))),s=Math.max(o,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){be(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){be(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:r,options:{ticks:n,title:o,grid:i}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=ic(o,r.options.font);if(a?(e.width=this.maxWidth,e.height=xn(i)+l):(e.height=this.maxHeight,e.width=xn(i)+l),n.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:f}=this._getLabelSizes(),h=n.padding*2,p=sr(this.labelRotation),m=Math.cos(p),b=Math.sin(p);if(a){const v=n.mirror?0:b*u.width+m*f.height;e.height=Math.min(this.maxHeight,e.height+v+h)}else{const v=n.mirror?0:m*u.width+b*f.height;e.width=Math.min(this.maxWidth,e.width+v+h)}this._calculatePadding(c,d,b,m)}}this._handleMargins(),a?(this.width=this._length=r.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=r.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,r,n,o){const{ticks:{align:i,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?c?(f=o*e.width,h=n*r.height):(f=n*e.height,h=o*r.width):i==="start"?h=r.width:i==="end"?f=e.width:i!=="inner"&&(f=e.width/2,h=r.width/2),this.paddingLeft=Math.max((f-d+s)*this.width/(this.width-d),0),this.paddingRight=Math.max((h-u+s)*this.width/(this.width-u),0)}else{let d=r.height/2,u=e.height/2;i==="start"?(d=0,u=e.height):i==="end"&&(d=r.height,u=0),this.paddingTop=d+s,this.paddingBottom=u+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){be(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:r}=this.options;return r==="top"||r==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let r,n;for(r=0,n=e.length;r<n;r++)We(e[r].label)&&(e.splice(r,1),n--,r--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const r=this.options.ticks.sampleSize;let n=this.ticks;r<n.length&&(n=oc(n,r)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,r,n){const{ctx:o,_longestTextCache:i}=this,s=[],a=[],l=Math.floor(r/nc(r,n));let c=0,d=0,u,f,h,p,m,b,v,y,_,x,w;for(u=0;u<r;u+=l){if(p=e[u].label,m=this._resolveTickFontOptions(u),o.font=b=m.string,v=i[b]=i[b]||{data:{},gc:[]},y=m.lineHeight,_=x=0,!We(p)&&!Fe(p))_=kl(o,v.data,v.gc,_,p),x=y;else if(Fe(p))for(f=0,h=p.length;f<h;++f)w=p[f],!We(w)&&!Fe(w)&&(_=kl(o,v.data,v.gc,_,w),x+=y);s.push(_),a.push(x),c=Math.max(_,c),d=Math.max(x,d)}Am(i,r);const S=s.indexOf(c),T=a.indexOf(d),M=N=>({width:s[N]||0,height:a[N]||0});return{first:M(0),last:M(r-1),widest:M(S),highest:M(T),widths:s,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,r){return NaN}getValueForPixel(e){}getPixelForTick(e){const r=this.ticks;return e<0||e>r.length-1?null:this.getPixelForValue(r[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const r=this._startPixel+e*this._length;return Up(this._alignToPixels?cr(this.chart,r,0):r)}getDecimalForPixel(e){const r=(e-this._startPixel)/this._length;return this._reversePixels?1-r:r}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:r}=this;return e<0&&r<0?r:e>0&&r>0?e:0}getContext(e){const r=this.ticks||[];if(e>=0&&e<r.length){const n=r[e];return n.$context||(n.$context=Dm(this.getContext(),e,n))}return this.$context||(this.$context=Im(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,r=sr(this.labelRotation),n=Math.abs(Math.cos(r)),o=Math.abs(Math.sin(r)),i=this._getLabelSizes(),s=e.autoSkipPadding||0,a=i?i.widest.width+s:0,l=i?i.highest.height+s:0;return this.isHorizontal()?l*n>a*o?a/n:l/o:l*o<a*n?l/n:a/o}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const r=this.axis,n=this.chart,o=this.options,{grid:i,position:s,border:a}=o,l=i.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),f=xn(i),h=[],p=a.setContext(this.getContext()),m=p.display?p.width:0,b=m/2,v=function(L){return cr(n,L,m)};let y,_,x,w,S,T,M,N,E,D,A,I;if(s==="top")y=v(this.bottom),T=this.bottom-f,N=y-b,D=v(e.top)+b,I=e.bottom;else if(s==="bottom")y=v(this.top),D=e.top,I=v(e.bottom)-b,T=y+b,N=this.top+f;else if(s==="left")y=v(this.right),S=this.right-f,M=y-b,E=v(e.left)+b,A=e.right;else if(s==="right")y=v(this.left),E=e.left,A=v(e.right)-b,S=y+b,M=this.left+f;else if(r==="x"){if(s==="center")y=v((e.top+e.bottom)/2+.5);else if(ne(s)){const L=Object.keys(s)[0],z=s[L];y=v(this.chart.scales[L].getPixelForValue(z))}D=e.top,I=e.bottom,T=y+b,N=T+f}else if(r==="y"){if(s==="center")y=v((e.left+e.right)/2);else if(ne(s)){const L=Object.keys(s)[0],z=s[L];y=v(this.chart.scales[L].getPixelForValue(z))}S=y-b,M=S-f,E=e.left,A=e.right}const O=ue(o.ticks.maxTicksLimit,u),P=Math.max(1,Math.ceil(u/O));for(_=0;_<u;_+=P){const L=this.getContext(_),z=i.setContext(L),B=a.setContext(L),j=z.lineWidth,$=z.color,W=B.dash||[],V=B.dashOffset,Y=z.tickWidth,U=z.tickColor,K=z.tickBorderDash||[],G=z.tickBorderDashOffset;x=Pm(this,_,l),x!==void 0&&(w=cr(n,x,j),c?S=M=E=A=w:T=N=D=I=w,h.push({tx1:S,ty1:T,tx2:M,ty2:N,x1:E,y1:D,x2:A,y2:I,width:j,color:$,borderDash:W,borderDashOffset:V,tickWidth:Y,tickColor:U,tickBorderDash:K,tickBorderDashOffset:G}))}return this._ticksLength=u,this._borderValue=y,h}_computeLabelItems(e){const r=this.axis,n=this.options,{position:o,ticks:i}=n,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:d,mirror:u}=i,f=xn(n.grid),h=f+d,p=u?-d:h,m=-sr(this.labelRotation),b=[];let v,y,_,x,w,S,T,M,N,E,D,A,I="middle";if(o==="top")S=this.bottom-p,T=this._getXAxisLabelAlignment();else if(o==="bottom")S=this.top+p,T=this._getXAxisLabelAlignment();else if(o==="left"){const P=this._getYAxisLabelAlignment(f);T=P.textAlign,w=P.x}else if(o==="right"){const P=this._getYAxisLabelAlignment(f);T=P.textAlign,w=P.x}else if(r==="x"){if(o==="center")S=(e.top+e.bottom)/2+h;else if(ne(o)){const P=Object.keys(o)[0],L=o[P];S=this.chart.scales[P].getPixelForValue(L)+h}T=this._getXAxisLabelAlignment()}else if(r==="y"){if(o==="center")w=(e.left+e.right)/2-h;else if(ne(o)){const P=Object.keys(o)[0],L=o[P];w=this.chart.scales[P].getPixelForValue(L)}T=this._getYAxisLabelAlignment(f).textAlign}r==="y"&&(l==="start"?I="top":l==="end"&&(I="bottom"));const O=this._getLabelSizes();for(v=0,y=a.length;v<y;++v){_=a[v],x=_.label;const P=i.setContext(this.getContext(v));M=this.getPixelForTick(v)+i.labelOffset,N=this._resolveTickFontOptions(v),E=N.lineHeight,D=Fe(x)?x.length:1;const L=D/2,z=P.color,B=P.textStrokeColor,j=P.textStrokeWidth;let $=T;s?(w=M,T==="inner"&&(v===y-1?$=this.options.reverse?"left":"right":v===0?$=this.options.reverse?"right":"left":$="center"),o==="top"?c==="near"||m!==0?A=-D*E+E/2:c==="center"?A=-O.highest.height/2-L*E+E:A=-O.highest.height+E/2:c==="near"||m!==0?A=E/2:c==="center"?A=O.highest.height/2-L*E:A=O.highest.height-D*E,u&&(A*=-1),m!==0&&!P.showLabelBackdrop&&(w+=E/2*Math.sin(m))):(S=M,A=(1-D)*E/2);let W;if(P.showLabelBackdrop){const V=ht(P.backdropPadding),Y=O.heights[v],U=O.widths[v];let K=A-V.top,G=0-V.left;switch(I){case"middle":K-=Y/2;break;case"bottom":K-=Y;break}switch(T){case"center":G-=U/2;break;case"right":G-=U;break;case"inner":v===y-1?G-=U:v>0&&(G-=U/2);break}W={left:G,top:K,width:U+V.width,height:Y+V.height,color:P.backdropColor}}b.push({label:x,font:N,textOffset:A,options:{rotation:m,color:z,strokeColor:B,strokeWidth:j,textAlign:$,textBaseline:I,translation:[w,S],backdrop:W}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:r}=this.options;if(-sr(this.labelRotation))return e==="top"?"left":"right";let o="center";return r.align==="start"?o="left":r.align==="end"?o="right":r.align==="inner"&&(o="inner"),o}_getYAxisLabelAlignment(e){const{position:r,ticks:{crossAlign:n,mirror:o,padding:i}}=this.options,s=this._getLabelSizes(),a=e+i,l=s.widest.width;let c,d;return r==="left"?o?(d=this.right+i,n==="near"?c="left":n==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-a,n==="near"?c="right":n==="center"?(c="center",d-=l/2):(c="left",d=this.left)):r==="right"?o?(d=this.left+i,n==="near"?c="right":n==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+a,n==="near"?c="left":n==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,r=this.options.position;if(r==="left"||r==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(r==="top"||r==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:r},left:n,top:o,width:i,height:s}=this;r&&(e.save(),e.fillStyle=r,e.fillRect(n,o,i,s),e.restore())}getLineWidthForValue(e){const r=this.options.grid;if(!this._isVisible()||!r.display)return 0;const o=this.ticks.findIndex(i=>i.value===e);return o>=0?r.setContext(this.getContext(o)).lineWidth:0}drawGrid(e){const r=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,s;const a=(l,c,d)=>{!d.width||!d.color||(n.save(),n.lineWidth=d.width,n.strokeStyle=d.color,n.setLineDash(d.borderDash||[]),n.lineDashOffset=d.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(r.display)for(i=0,s=o.length;i<s;++i){const l=o[i];r.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),r.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:r,options:{border:n,grid:o}}=this,i=n.setContext(this.getContext()),s=n.display?i.width:0;if(!s)return;const a=o.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,d,u,f;this.isHorizontal()?(c=cr(e,this.left,s)-s/2,d=cr(e,this.right,a)+a/2,u=f=l):(u=cr(e,this.top,s)-s/2,f=cr(e,this.bottom,a)+a/2,c=d=l),r.save(),r.lineWidth=i.width,r.strokeStyle=i.color,r.beginPath(),r.moveTo(c,u),r.lineTo(d,f),r.stroke(),r.restore()}drawLabels(e){if(!this.options.ticks.display)return;const n=this.ctx,o=this._computeLabelArea();o&&qi(n,o);const i=this.getLabelItems(e);for(const s of i){const a=s.options,l=s.font,c=s.label,d=s.textOffset;go(n,c,0,d,l,a)}o&&Gi(n)}drawTitle(){const{ctx:e,options:{position:r,title:n,reverse:o}}=this;if(!n.display)return;const i=Ke(n.font),s=ht(n.padding),a=n.align;let l=i.lineHeight/2;r==="bottom"||r==="center"||ne(r)?(l+=s.bottom,Fe(n.text)&&(l+=i.lineHeight*(n.text.length-1))):l+=s.top;const{titleX:c,titleY:d,maxWidth:u,rotation:f}=Fm(this,l,r,a);go(e,n.text,0,0,i,{color:n.color,maxWidth:u,rotation:f,textAlign:Lm(a,r,o),textBaseline:"middle",translation:[c,d]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,r=e.ticks&&e.ticks.z||0,n=ue(e.grid&&e.grid.z,-1),o=ue(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==_o.prototype.draw?[{z:r,draw:i=>{this.draw(i)}}]:[{z:n,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:r,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(e){const r=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let i,s;for(i=0,s=r.length;i<s;++i){const a=r[i];a[n]===this.id&&(!e||a.type===e)&&o.push(a)}return o}_resolveTickFontOptions(e){const r=this.options.ticks.setContext(this.getContext(e));return Ke(r.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class So{constructor(e,r,n){this.type=e,this.scope=r,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const r=Object.getPrototypeOf(e);let n;$m(r)&&(n=this.register(r));const o=this.items,i=e.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in o||(o[i]=e,zm(e,s,n),this.override&&we.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const r=this.items,n=e.id,o=this.scope;n in r&&delete r[n],o&&n in we[o]&&(delete we[o][n],this.override&&delete lr[n])}}function zm(t,e,r){const n=on(Object.create(null),[r?we.get(r):{},we.get(e),t.defaults]);we.set(e,n),t.defaultRoutes&&Bm(e,t.defaultRoutes),t.descriptors&&we.describe(e,t.descriptors)}function Bm(t,e){Object.keys(e).forEach(r=>{const n=r.split("."),o=n.pop(),i=[t].concat(n).join("."),s=e[r].split("."),a=s.pop(),l=s.join(".");we.route(i,o,l,a)})}function $m(t){return"id"in t&&"defaults"in t}class jm{constructor(){this.controllers=new So(hn,"datasets",!0),this.elements=new So(vn,"elements"),this.plugins=new So(Object,"plugins"),this.scales=new So(_o,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,r,n){[...r].forEach(o=>{const i=n||this._getRegistryForType(o);n||i.isForType(o)||i===this.plugins&&o.id?this._exec(e,i,o):fe(o,s=>{const a=n||this._getRegistryForType(s);this._exec(e,a,s)})})}_exec(e,r,n){const o=Wi(e);be(n["before"+o],[],n),r[e](n),be(n["after"+o],[],n)}_getRegistryForType(e){for(let r=0;r<this._typedRegistries.length;r++){const n=this._typedRegistries[r];if(n.isForType(e))return n}return this.plugins}_get(e,r,n){const o=r.get(e);if(o===void 0)throw new Error('"'+e+'" is not a registered '+n+".");return o}}var xt=new jm;class Hm{constructor(){this._init=[]}notify(e,r,n,o){r==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const i=o?this._descriptors(e).filter(o):this._descriptors(e),s=this._notify(i,e,r,n);return r==="afterDestroy"&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),s}_notify(e,r,n,o){o=o||{};for(const i of e){const s=i.plugin,a=s[n],l=[r,o,i.options];if(be(a,l,s)===!1&&o.cancelable)return!1}return!0}invalidate(){We(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const r=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),r}_createDescriptors(e,r){const n=e&&e.config,o=ue(n.options&&n.options.plugins,{}),i=Wm(n);return o===!1&&!r?[]:Rm(e,i,o,r)}_notifyStateChanges(e){const r=this._oldCache||[],n=this._cache,o=(i,s)=>i.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(o(r,n),e,"stop"),this._notify(o(n,r),e,"start")}}function Wm(t){const e={},r=[],n=Object.keys(xt.plugins.items);for(let i=0;i<n.length;i++)r.push(xt.getPlugin(n[i]));const o=t.plugins||[];for(let i=0;i<o.length;i++){const s=o[i];r.indexOf(s)===-1&&(r.push(s),e[s.id]=!0)}return{plugins:r,localIds:e}}function Vm(t,e){return!e&&t===!1?null:t===!0?{}:t}function Rm(t,{plugins:e,localIds:r},n,o){const i=[],s=t.getContext();for(const a of e){const l=a.id,c=Vm(n[l],o);c!==null&&i.push({plugin:a,options:Ym(t.config,{plugin:a,local:r[l]},c,s)})}return i}function Ym(t,{plugin:e,local:r},n,o){const i=t.pluginScopeKeys(e),s=t.getOptionScopes(n,i);return r&&e.defaults&&s.push(e.defaults),t.createResolver(s,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ds(t,e){const r=we.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||r.indexAxis||"x"}function Um(t,e){let r=t;return t==="_index_"?r=e:t==="_value_"&&(r=e==="x"?"y":"x"),r}function Km(t,e){return t===e?"_index_":"_value_"}function sc(t){if(t==="x"||t==="y"||t==="r")return t}function qm(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function us(t,...e){if(sc(t))return t;for(const r of e){const n=r.axis||qm(r.position)||t.length>1&&sc(t[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function ac(t,e,r){if(r[e+"AxisID"]===t)return{axis:e}}function Gm(t,e){if(e.data&&e.data.datasets){const r=e.data.datasets.filter(n=>n.xAxisID===t||n.yAxisID===t);if(r.length)return ac(t,"x",r[0])||ac(t,"y",r[0])}return{}}function Xm(t,e){const r=lr[t.type]||{scales:{}},n=e.scales||{},o=ds(t.type,e),i=Object.create(null);return Object.keys(n).forEach(s=>{const a=n[s];if(!ne(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=us(s,a,Gm(s,t),we.scales[a.type]),c=Km(l,o),d=r.scales||{};i[s]=sn(Object.create(null),[{axis:l},a,d[l],d[c]])}),t.data.datasets.forEach(s=>{const a=s.type||t.type,l=s.indexAxis||ds(a,e),d=(lr[a]||{}).scales||{};Object.keys(d).forEach(u=>{const f=Um(u,l),h=s[f+"AxisID"]||f;i[h]=i[h]||Object.create(null),sn(i[h],[{axis:f},n[h],d[u]])})}),Object.keys(i).forEach(s=>{const a=i[s];sn(a,[we.scales[a.type],we.scale])}),i}function lc(t){const e=t.options||(t.options={});e.plugins=ue(e.plugins,{}),e.scales=Xm(t,e)}function cc(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function Zm(t){return t=t||{},t.data=cc(t.data),lc(t),t}const dc=new Map,uc=new Set;function Eo(t,e){let r=dc.get(t);return r||(r=e(),dc.set(t,r),uc.add(r)),r}const wn=(t,e,r)=>{const n=an(e,r);n!==void 0&&t.add(n)};class Jm{constructor(e){this._config=Zm(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=cc(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),lc(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Eo(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,r){return Eo(`${e}.transition.${r}`,()=>[[`datasets.${e}.transitions.${r}`,`transitions.${r}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,r){return Eo(`${e}-${r}`,()=>[[`datasets.${e}.elements.${r}`,`datasets.${e}`,`elements.${r}`,""]])}pluginScopeKeys(e){const r=e.id,n=this.type;return Eo(`${n}-plugin-${r}`,()=>[[`plugins.${r}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,r){const n=this._scopeCache;let o=n.get(e);return(!o||r)&&(o=new Map,n.set(e,o)),o}getOptionScopes(e,r,n){const{options:o,type:i}=this,s=this._cachedScopes(e,n),a=s.get(r);if(a)return a;const l=new Set;r.forEach(d=>{e&&(l.add(e),d.forEach(u=>wn(l,e,u))),d.forEach(u=>wn(l,o,u)),d.forEach(u=>wn(l,lr[i]||{},u)),d.forEach(u=>wn(l,we,u)),d.forEach(u=>wn(l,Ui,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),uc.has(r)&&s.set(r,c),c}chartOptionScopes(){const{options:e,type:r}=this;return[e,lr[r]||{},we.datasets[r]||{},{type:r},we,Ui]}resolveNamedOptions(e,r,n,o=[""]){const i={$shared:!0},{resolver:s,subPrefixes:a}=fc(this._resolverCache,e,o);let l=s;if(eb(s,r)){i.$shared=!1,n=Kt(n)?n():n;const c=this.createResolver(e,n,a);l=Nr(s,n,c)}for(const c of r)i[c]=l[c];return i}createResolver(e,r,n=[""],o){const{resolver:i}=fc(this._resolverCache,e,n);return ne(r)?Nr(i,r,void 0,o):i}}function fc(t,e,r){let n=t.get(e);n||(n=new Map,t.set(e,n));const o=r.join();let i=n.get(o);return i||(i={resolver:Ji(e,r),subPrefixes:r.filter(a=>!a.toLowerCase().includes("hover"))},n.set(o,i)),i}const Qm=t=>ne(t)&&Object.getOwnPropertyNames(t).some(e=>Kt(t[e]));function eb(t,e){const{isScriptable:r,isIndexable:n}=Ol(t);for(const o of e){const i=r(o),s=n(o),a=(s||i)&&t[o];if(i&&(Kt(a)||Qm(a))||s&&Fe(a))return!0}return!1}var tb="4.4.8";const rb=["top","bottom","left","right","chartArea"];function hc(t,e){return t==="top"||t==="bottom"||rb.indexOf(t)===-1&&e==="x"}function gc(t,e){return function(r,n){return r[t]===n[t]?r[e]-n[e]:r[t]-n[t]}}function pc(t){const e=t.chart,r=e.options.animation;e.notifyPlugins("afterRender"),be(r&&r.onComplete,[t],e)}function nb(t){const e=t.chart,r=e.options.animation;be(r&&r.onProgress,[t],e)}function mc(t){return ts()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Oo={},bc=t=>{const e=mc(t);return Object.values(Oo).filter(r=>r.canvas===e).pop()};function ob(t,e,r){const n=Object.keys(t);for(const o of n){const i=+o;if(i>=e){const s=t[o];delete t[o],(r>0||i>e)&&(t[i+r]=s)}}}function ib(t,e,r,n){return!r||t.type==="mouseout"?null:n?e:t}function To(t,e,r){return t.options.clip?t[r]:e[r]}function sb(t,e){const{xScale:r,yScale:n}=t;return r&&n?{left:To(r,e,"left"),right:To(r,e,"right"),top:To(n,e,"top"),bottom:To(n,e,"bottom")}:e}let No=(nr=class{static register(...e){xt.add(...e),yc()}static unregister(...e){xt.remove(...e),yc()}constructor(e,r){const n=this.config=new Jm(r),o=mc(e),i=bc(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||Cm(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,d=l&&l.width;if(this.id=Dp(),this.ctx=a,this.canvas=l,this.width=d,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Hm,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Zp(u=>this.update(u),s.resizeDelay||0),this._dataChanges=[],Oo[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Dt.listen(this,"complete",pc),Dt.listen(this,"progress",nb),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:r},width:n,height:o,_aspectRatio:i}=this;return We(e)?r&&i?i:o?n/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return xt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Il(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Cl(this.canvas,this.ctx),this}stop(){return Dt.stop(this),this}resize(e,r){Dt.running(this)?this._resizeBeforeDraw={width:e,height:r}:this._resize(e,r)}_resize(e,r){const n=this.options,o=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,e,r,i),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Il(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),be(n.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const r=this.options.scales||{};fe(r,(n,o)=>{n.id=o})}buildOrUpdateScales(){const e=this.options,r=e.scales,n=this.scales,o=Object.keys(n).reduce((s,a)=>(s[a]=!1,s),{});let i=[];r&&(i=i.concat(Object.keys(r).map(s=>{const a=r[s],l=us(s,a),c=l==="r",d=l==="x";return{options:a,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),fe(i,s=>{const a=s.options,l=a.id,c=us(l,a),d=ue(a.type,s.dtype);(a.position===void 0||hc(a.position,c)!==hc(s.dposition))&&(a.position=s.dposition),o[l]=!0;let u=null;if(l in n&&n[l].type===d)u=n[l];else{const f=xt.getScale(d);u=new f({id:l,type:d,ctx:this.ctx,chart:this}),n[u.id]=u}u.init(a,e)}),fe(o,(s,a)=>{s||delete n[a]}),fe(n,s=>{qt.configure(this,s,s.options),qt.addBox(this,s)})}_updateMetasets(){const e=this._metasets,r=this.data.datasets.length,n=e.length;if(e.sort((o,i)=>o.index-i.index),n>r){for(let o=r;o<n;++o)this._destroyDatasetMeta(o);e.splice(r,n-r)}this._sortedMetasets=e.slice(0).sort(gc("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:r}}=this;e.length>r.length&&delete this._stacks,e.forEach((n,o)=>{r.filter(i=>i===n._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const e=[],r=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=r.length;n<o;n++){const i=r[n];let s=this.getDatasetMeta(n);const a=i.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(n),s=this.getDatasetMeta(n)),s.type=a,s.indexAxis=i.indexAxis||ds(a,this.options),s.order=i.order||0,s.index=n,s.label=""+i.label,s.visible=this.isDatasetVisible(n),s.controller)s.controller.updateIndex(n),s.controller.linkScales();else{const l=xt.getController(a),{datasetElementType:c,dataElementType:d}=we.datasets[a];Object.assign(l,{dataElementType:xt.getElement(d),datasetElementType:c&&xt.getElement(c)}),s.controller=new l(this,n),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){fe(this.data.datasets,(e,r)=>{this.getDatasetMeta(r).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const r=this.config;r.update();const n=this._options=r.createResolver(r.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,d=this.data.datasets.length;c<d;c++){const{controller:u}=this.getDatasetMeta(c),f=!o&&i.indexOf(u)===-1;u.buildOrUpdateElements(f),s=Math.max(+u.getMaxOverflow(),s)}s=this._minPadding=n.layout.autoPadding?s:0,this._updateLayout(s),o||fe(i,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(gc("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){fe(this.scales,e=>{qt.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,r=new Set(Object.keys(this._listeners)),n=new Set(e.events);(!ll(r,n)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,r=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:i}of r){const s=n==="_removeElements"?-i:i;ob(e,o,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const r=this.data.datasets.length,n=i=>new Set(e.filter(s=>s[0]===i).map((s,a)=>a+","+s.splice(1).join(","))),o=n(0);for(let i=1;i<r;i++)if(!ll(o,n(i)))return;return Array.from(o).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;qt.update(this,this.width,this.height,e);const r=this.chartArea,n=r.width<=0||r.height<=0;this._layers=[],fe(this.boxes,o=>{n&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let r=0,n=this.data.datasets.length;r<n;++r)this.getDatasetMeta(r).controller.configure();for(let r=0,n=this.data.datasets.length;r<n;++r)this._updateDataset(r,Kt(e)?e({datasetIndex:r}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,r){const n=this.getDatasetMeta(e),o={meta:n,index:e,mode:r,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",o)!==!1&&(n.controller._update(r),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Dt.has(this)?this.attached&&!Dt.running(this)&&Dt.start(this):(this.draw(),pc({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:n,height:o}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(n,o)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const r=this._layers;for(e=0;e<r.length&&r[e].z<=0;++e)r[e].draw(this.chartArea);for(this._drawDatasets();e<r.length;++e)r[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const r=this._sortedMetasets,n=[];let o,i;for(o=0,i=r.length;o<i;++o){const s=r[o];(!e||s.visible)&&n.push(s)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let r=e.length-1;r>=0;--r)this._drawDataset(e[r]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const r=this.ctx,n=e._clip,o=!n.disabled,i=sb(e,this.chartArea),s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(o&&qi(r,{left:n.left===!1?0:i.left-n.left,right:n.right===!1?this.width:i.right+n.right,top:n.top===!1?0:i.top-n.top,bottom:n.bottom===!1?this.height:i.bottom+n.bottom}),e.controller.draw(),o&&Gi(r),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return El(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,r,n,o){const i=rm.modes[r];return typeof i=="function"?i(this,e,n,o):[]}getDatasetMeta(e){const r=this.data.datasets[e],n=this._metasets;let o=n.filter(i=>i&&i._dataset===r).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:r&&r.order||0,index:e,_dataset:r,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=Tr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const r=this.data.datasets[e];if(!r)return!1;const n=this.getDatasetMeta(e);return typeof n.hidden=="boolean"?!n.hidden:!r.hidden}setDatasetVisibility(e,r){const n=this.getDatasetMeta(e);n.hidden=!r}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,r,n){const o=n?"show":"hide",i=this.getDatasetMeta(e),s=i.controller._resolveAnimations(void 0,o);lo(r)?(i.data[r].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),s.update(i,{visible:n}),this.update(a=>a.datasetIndex===e?o:void 0))}hide(e,r){this._updateVisibility(e,r,!1)}show(e,r){this._updateVisibility(e,r,!0)}_destroyDatasetMeta(e){const r=this._metasets[e];r&&r.controller&&r.controller._destroy(),delete this._metasets[e]}_stop(){let e,r;for(this.stop(),Dt.remove(this),e=0,r=this.data.datasets.length;e<r;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:r}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Cl(e,r),this.platform.releaseContext(r),this.canvas=null,this.ctx=null),delete Oo[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,r=this.platform,n=(i,s)=>{r.addEventListener(this,i,s),e[i]=s},o=(i,s,a)=>{i.offsetX=s,i.offsetY=a,this._eventHandler(i)};fe(this.options.events,i=>n(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,r=this.platform,n=(l,c)=>{r.addEventListener(this,l,c),e[l]=c},o=(l,c)=>{e[l]&&(r.removeEventListener(this,l,c),delete e[l])},i=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",i),n("detach",s)};s=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),n("attach",a)},r.isAttached(this.canvas)?a():s()}unbindEvents(){fe(this._listeners,(e,r)=>{this.platform.removeEventListener(this,r,e)}),this._listeners={},fe(this._responsiveListeners,(e,r)=>{this.platform.removeEventListener(this,r,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,r,n){const o=n?"set":"remove";let i,s,a,l;for(r==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),a=0,l=e.length;a<l;++a){s=e[a];const c=s&&this.getDatasetMeta(s.datasetIndex).controller;c&&c[o+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const r=this._active||[],n=e.map(({datasetIndex:i,index:s})=>{const a=this.getDatasetMeta(i);if(!a)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:a.data[s],index:s}});!so(n,r)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,r))}notifyPlugins(e,r,n){return this._plugins.notify(this,e,r,n)}isPluginEnabled(e){return this._plugins._cache.filter(r=>r.plugin.id===e).length===1}_updateHoverStyles(e,r,n){const o=this.options.hover,i=(l,c)=>l.filter(d=>!c.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),s=i(r,e),a=n?e:i(e,r);s.length&&this.updateHoverStyle(s,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(e,r){const n={event:e,replay:r,cancelable:!0,inChartArea:this.isPointInArea(e)},o=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",n,o)===!1)return;const i=this._handleEvent(e,r,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(i||n.changed)&&this.render(),this}_handleEvent(e,r,n){const{_active:o=[],options:i}=this,s=r,a=this._getActiveElements(e,o,n,s),l=jp(e),c=ib(e,this._lastEvent,n,l);n&&(this._lastEvent=null,be(i.onHover,[e,a,this],this),l&&be(i.onClick,[e,a,this],this));const d=!so(a,o);return(d||r)&&(this._active=a,this._updateHoverStyles(a,o,r)),this._lastEvent=c,d}_getActiveElements(e,r,n,o){if(e.type==="mouseout")return[];if(!n)return r;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,o)}},ee(nr,"defaults",we),ee(nr,"instances",Oo),ee(nr,"overrides",lr),ee(nr,"registry",xt),ee(nr,"version",tb),ee(nr,"getChart",bc),nr);function yc(){return fe(No.instances,t=>t._plugins.invalidate())}function ab(t,e,r){const{startAngle:n,pixelMargin:o,x:i,y:s,outerRadius:a,innerRadius:l}=e;let c=o/a;t.beginPath(),t.arc(i,s,a,n-c,r+c),l>o?(c=o/l,t.arc(i,s,l,r+c,n-c,!0)):t.arc(i,s,o,r+Te,n-Te),t.closePath(),t.clip()}function lb(t){return Zi(t,["outerStart","outerEnd","innerStart","innerEnd"])}function cb(t,e,r,n){const o=lb(t.options.borderRadius),i=(r-e)/2,s=Math.min(i,n*e/2),a=l=>{const c=(r-Math.min(i,l))*n/2;return at(l,0,Math.min(i,c))};return{outerStart:a(o.outerStart),outerEnd:a(o.outerEnd),innerStart:at(o.innerStart,0,s),innerEnd:at(o.innerEnd,0,s)}}function Pr(t,e,r,n){return{x:r+t*Math.cos(e),y:n+t*Math.sin(e)}}function Mo(t,e,r,n,o,i){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:d}=e,u=Math.max(e.outerRadius+n+r-c,0),f=d>0?d+n+r+c:0;let h=0;const p=o-l;if(n){const P=d>0?d-n:0,L=u>0?u-n:0,z=(P+L)/2,B=z!==0?p*z/(z+n):p;h=(p-B)/2}const m=Math.max(.001,p*u-r/Ae)/u,b=(p-m)/2,v=l+b+h,y=o-b-h,{outerStart:_,outerEnd:x,innerStart:w,innerEnd:S}=cb(e,f,u,y-v),T=u-_,M=u-x,N=v+_/T,E=y-x/M,D=f+w,A=f+S,I=v+w/D,O=y-S/A;if(t.beginPath(),i){const P=(N+E)/2;if(t.arc(s,a,u,N,P),t.arc(s,a,u,P,E),x>0){const j=Pr(M,E,s,a);t.arc(j.x,j.y,x,E,y+Te)}const L=Pr(A,y,s,a);if(t.lineTo(L.x,L.y),S>0){const j=Pr(A,O,s,a);t.arc(j.x,j.y,S,y+Te,O+Math.PI)}const z=(y-S/f+(v+w/f))/2;if(t.arc(s,a,f,y-S/f,z,!0),t.arc(s,a,f,z,v+w/f,!0),w>0){const j=Pr(D,I,s,a);t.arc(j.x,j.y,w,I+Math.PI,v-Te)}const B=Pr(T,v,s,a);if(t.lineTo(B.x,B.y),_>0){const j=Pr(T,N,s,a);t.arc(j.x,j.y,_,v-Te,N)}}else{t.moveTo(s,a);const P=Math.cos(N)*u+s,L=Math.sin(N)*u+a;t.lineTo(P,L);const z=Math.cos(E)*u+s,B=Math.sin(E)*u+a;t.lineTo(z,B)}t.closePath()}function db(t,e,r,n,o){const{fullCircles:i,startAngle:s,circumference:a}=e;let l=e.endAngle;if(i){Mo(t,e,r,n,l,o);for(let c=0;c<i;++c)t.fill();isNaN(a)||(l=s+(a%Ce||Ce))}return Mo(t,e,r,n,l,o),t.fill(),l}function ub(t,e,r,n,o){const{fullCircles:i,startAngle:s,circumference:a,options:l}=e,{borderWidth:c,borderJoinStyle:d,borderDash:u,borderDashOffset:f}=l,h=l.borderAlign==="inner";if(!c)return;t.setLineDash(u||[]),t.lineDashOffset=f,h?(t.lineWidth=c*2,t.lineJoin=d||"round"):(t.lineWidth=c,t.lineJoin=d||"bevel");let p=e.endAngle;if(i){Mo(t,e,r,n,p,o);for(let m=0;m<i;++m)t.stroke();isNaN(a)||(p=s+(a%Ce||Ce))}h&&ab(t,e,p),i||(Mo(t,e,r,n,p,o),t.stroke())}class kn extends vn{constructor(r){super();ee(this,"circumference");ee(this,"endAngle");ee(this,"fullCircles");ee(this,"innerRadius");ee(this,"outerRadius");ee(this,"pixelMargin");ee(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,r&&Object.assign(this,r)}inRange(r,n,o){const i=this.getProps(["x","y"],o),{angle:s,distance:a}=ul(i,{x:r,y:n}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:u,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],o),h=(this.options.spacing+this.options.borderWidth)/2,p=ue(f,c-l),m=fo(s,l,c)&&l!==c,b=p>=Ce||m,v=ln(a,d+h,u+h);return b&&v}getCenterPoint(r){const{x:n,y:o,startAngle:i,endAngle:s,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],r),{offset:c,spacing:d}=this.options,u=(i+s)/2,f=(a+l+d+c)/2;return{x:n+Math.cos(u)*f,y:o+Math.sin(u)*f}}tooltipPosition(r){return this.getCenterPoint(r)}draw(r){const{options:n,circumference:o}=this,i=(n.offset||0)/4,s=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=o>Ce?Math.floor(o/Ce):0,o===0||this.innerRadius<0||this.outerRadius<0)return;r.save();const l=(this.startAngle+this.endAngle)/2;r.translate(Math.cos(l)*i,Math.sin(l)*i);const c=1-Math.sin(Math.min(Ae,o||0)),d=i*c;r.fillStyle=n.backgroundColor,r.strokeStyle=n.borderColor,db(r,this,d,s,a),ub(r,this,d,s,a),r.restore()}}ee(kn,"id","arc"),ee(kn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ee(kn,"defaultRoutes",{backgroundColor:"backgroundColor"}),ee(kn,"descriptors",{_scriptable:!0,_indexable:r=>r!=="borderDash"});const vc=(t,e)=>{let{boxHeight:r=e,boxWidth:n=e}=t;return t.usePointStyle&&(r=Math.min(r,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:r,itemHeight:Math.max(e,r)}},fb=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class xc extends vn{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,r,n){this.maxWidth=e,this.maxHeight=r,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let r=be(e.generateLabels,[this.chart],this)||[];e.filter&&(r=r.filter(n=>e.filter(n,this.chart.data))),e.sort&&(r=r.sort((n,o)=>e.sort(n,o,this.chart.data))),this.options.reverse&&r.reverse(),this.legendItems=r}fit(){const{options:e,ctx:r}=this;if(!e.display){this.width=this.height=0;return}const n=e.labels,o=Ke(n.font),i=o.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=vc(n,i);let c,d;r.font=o.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(s,i,a,l)+10):(d=this.maxHeight,c=this._fitCols(s,o,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(d,e.maxHeight||this.maxHeight)}_fitRows(e,r,n,o){const{ctx:i,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=o+a;let u=e;i.textAlign="left",i.textBaseline="middle";let f=-1,h=-d;return this.legendItems.forEach((p,m)=>{const b=n+r/2+i.measureText(p.text).width;(m===0||c[c.length-1]+b+2*a>s)&&(u+=d,c[c.length-(m>0?0:1)]=0,h+=d,f++),l[m]={left:0,top:h,row:f,width:b,height:o},c[c.length-1]+=b+a}),u}_fitCols(e,r,n,o){const{ctx:i,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=s-e;let u=a,f=0,h=0,p=0,m=0;return this.legendItems.forEach((b,v)=>{const{itemWidth:y,itemHeight:_}=hb(n,r,i,b,o);v>0&&h+_+2*a>d&&(u+=f+a,c.push({width:f,height:h}),p+=f+a,m++,f=h=0),l[v]={left:p,top:h,col:m,width:y,height:_},f=Math.max(f,y),h+=_+a}),u+=f,c.push({width:f,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:r,options:{align:n,labels:{padding:o},rtl:i}}=this,s=Mr(i,this.left,this.width);if(this.isHorizontal()){let a=0,l=et(n,this.left+o,this.right-this.lineWidths[a]);for(const c of r)a!==c.row&&(a=c.row,l=et(n,this.left+o,this.right-this.lineWidths[a])),c.top+=this.top+e+o,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+o}else{let a=0,l=et(n,this.top+e+o,this.bottom-this.columnSizes[a].height);for(const c of r)c.col!==a&&(a=c.col,l=et(n,this.top+e+o,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+o,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;qi(e,this),this._draw(),Gi(e)}}_draw(){const{options:e,columnSizes:r,lineWidths:n,ctx:o}=this,{align:i,labels:s}=e,a=we.color,l=Mr(e.rtl,this.left,this.width),c=Ke(s.font),{padding:d}=s,u=c.size,f=u/2;let h;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:p,boxHeight:m,itemHeight:b}=vc(s,u),v=function(S,T,M){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;o.save();const N=ue(M.lineWidth,1);if(o.fillStyle=ue(M.fillStyle,a),o.lineCap=ue(M.lineCap,"butt"),o.lineDashOffset=ue(M.lineDashOffset,0),o.lineJoin=ue(M.lineJoin,"miter"),o.lineWidth=N,o.strokeStyle=ue(M.strokeStyle,a),o.setLineDash(ue(M.lineDash,[])),s.usePointStyle){const E={radius:m*Math.SQRT2/2,pointStyle:M.pointStyle,rotation:M.rotation,borderWidth:N},D=l.xPlus(S,p/2),A=T+f;Sl(o,E,D,A,s.pointStyleWidth&&p)}else{const E=T+Math.max((u-m)/2,0),D=l.leftForLtr(S,p),A=un(M.borderRadius);o.beginPath(),Object.values(A).some(I=>I!==0)?Xi(o,{x:D,y:E,w:p,h:m,radius:A}):o.rect(D,E,p,m),o.fill(),N!==0&&o.stroke()}o.restore()},y=function(S,T,M){go(o,M.text,S,T+b/2,c,{strikethrough:M.hidden,textAlign:l.textAlign(M.textAlign)})},_=this.isHorizontal(),x=this._computeTitleHeight();_?h={x:et(i,this.left+d,this.right-n[0]),y:this.top+d+x,line:0}:h={x:this.left+d,y:et(i,this.top+x+d,this.bottom-r[0].height),line:0},Ll(this.ctx,e.textDirection);const w=b+d;this.legendItems.forEach((S,T)=>{o.strokeStyle=S.fontColor,o.fillStyle=S.fontColor;const M=o.measureText(S.text).width,N=l.textAlign(S.textAlign||(S.textAlign=s.textAlign)),E=p+f+M;let D=h.x,A=h.y;l.setWidth(this.width),_?T>0&&D+E+d>this.right&&(A=h.y+=w,h.line++,D=h.x=et(i,this.left+d,this.right-n[h.line])):T>0&&A+w>this.bottom&&(D=h.x=D+r[h.line].width+d,h.line++,A=h.y=et(i,this.top+x+d,this.bottom-r[h.line].height));const I=l.x(D);if(v(I,A,S),D=Jp(N,D+p+f,_?D+E:this.right,e.rtl),y(l.x(D),A,S),_)h.x+=E+d;else if(typeof S.text!="string"){const O=c.lineHeight;h.y+=wc(S,O)+d}else h.y+=w}),Fl(this.ctx,e.textDirection)}drawTitle(){const e=this.options,r=e.title,n=Ke(r.font),o=ht(r.padding);if(!r.display)return;const i=Mr(e.rtl,this.left,this.width),s=this.ctx,a=r.position,l=n.size/2,c=o.top+l;let d,u=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+c,u=et(e.align,u,this.right-f);else{const p=this.columnSizes.reduce((m,b)=>Math.max(m,b.height),0);d=c+et(e.align,this.top,this.bottom-p-e.labels.padding-this._computeTitleHeight())}const h=et(a,u,u+f);s.textAlign=i.textAlign(ml(a)),s.textBaseline="middle",s.strokeStyle=r.color,s.fillStyle=r.color,s.font=n.string,go(s,r.text,h,d,n)}_computeTitleHeight(){const e=this.options.title,r=Ke(e.font),n=ht(e.padding);return e.display?r.lineHeight+n.height:0}_getLegendItemAt(e,r){let n,o,i;if(ln(e,this.left,this.right)&&ln(r,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(o=i[n],ln(e,o.left,o.left+o.width)&&ln(r,o.top,o.top+o.height))return this.legendItems[n]}return null}handleEvent(e){const r=this.options;if(!mb(e.type,r))return;const n=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const o=this._hoveredItem,i=fb(o,n);o&&!i&&be(r.onLeave,[e,o,this],this),this._hoveredItem=n,n&&!i&&be(r.onHover,[e,n,this],this)}else n&&be(r.onClick,[e,n,this],this)}}function hb(t,e,r,n,o){const i=gb(n,t,e,r),s=pb(o,n,e.lineHeight);return{itemWidth:i,itemHeight:s}}function gb(t,e,r,n){let o=t.text;return o&&typeof o!="string"&&(o=o.reduce((i,s)=>i.length>s.length?i:s)),e+r.size/2+n.measureText(o).width}function pb(t,e,r){let n=t;return typeof e.text!="string"&&(n=wc(e,r)),n}function wc(t,e){const r=t.text?t.text.length:0;return e*r}function mb(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var bb={id:"legend",_element:xc,start(t,e,r){const n=t.legend=new xc({ctx:t.ctx,options:r,chart:t});qt.configure(t,n,r),qt.addBox(t,n)},stop(t){qt.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,r){const n=t.legend;qt.configure(t,n,r),n.options=r},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,r){const n=e.datasetIndex,o=r.chart;o.isDatasetVisible(n)?(o.hide(n),e.hidden=!0):(o.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:r,pointStyle:n,textAlign:o,color:i,useBorderRadius:s,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(r?0:void 0),d=ht(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:n||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const Cn={average(t){if(!t.length)return!1;let e,r,n=new Set,o=0,i=0;for(e=0,r=t.length;e<r;++e){const a=t[e].element;if(a&&a.hasValue()){const l=a.tooltipPosition();n.add(l.x),o+=l.y,++i}}return i===0||n.size===0?!1:{x:[...n].reduce((a,l)=>a+l)/n.size,y:o/i}},nearest(t,e){if(!t.length)return!1;let r=e.x,n=e.y,o=Number.POSITIVE_INFINITY,i,s,a;for(i=0,s=t.length;i<s;++i){const l=t[i].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),d=Yp(e,c);d<o&&(o=d,a=l)}}if(a){const l=a.tooltipPosition();r=l.x,n=l.y}return{x:r,y:n}}};function wt(t,e){return e&&(Fe(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Lt(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
17
17
  `)>-1?t.split(`
18
- `):t}function bb(t,e){const{element:r,datasetIndex:n,index:o}=e,i=t.getDatasetMeta(n).controller,{label:s,value:a}=i.getLabelAndValue(o);return{chart:t,label:s,parsed:i.getParsed(o),raw:t.data.datasets[n].data[o],formattedValue:a,dataset:i.getDataset(),dataIndex:o,datasetIndex:n,element:r}}function kc(t,e){const r=t.chart.ctx,{body:n,footer:o,title:i}=t,{boxWidth:s,boxHeight:a}=e,l=Ke(e.bodyFont),c=Ke(e.titleFont),d=Ke(e.footerFont),u=i.length,f=o.length,h=n.length,p=ht(e.padding);let m=p.height,b=0,v=n.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(v+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),v){const x=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;m+=h*x+(v-h)*l.lineHeight+(v-1)*e.bodySpacing}f&&(m+=e.footerMarginTop+f*d.lineHeight+(f-1)*e.footerSpacing);let y=0;const _=function(x){b=Math.max(b,r.measureText(x).width+y)};return r.save(),r.font=c.string,fe(t.title,_),r.font=l.string,fe(t.beforeBody.concat(t.afterBody),_),y=e.displayColors?s+2+e.boxPadding:0,fe(n,x=>{fe(x.before,_),fe(x.lines,_),fe(x.after,_)}),y=0,r.font=d.string,fe(t.footer,_),r.restore(),b+=p.width,{width:b,height:m}}function yb(t,e){const{y:r,height:n}=e;return r<n/2?"top":r>t.height-n/2?"bottom":"center"}function vb(t,e,r,n){const{x:o,width:i}=n,s=r.caretSize+r.caretPadding;if(t==="left"&&o+i+s>e.width||t==="right"&&o-i-s<0)return!0}function xb(t,e,r,n){const{x:o,width:i}=r,{width:s,chartArea:{left:a,right:l}}=t;let c="center";return n==="center"?c=o<=(a+l)/2?"left":"right":o<=i/2?c="left":o>=s-i/2&&(c="right"),vb(c,t,e,r)&&(c="center"),c}function Cc(t,e,r){const n=r.yAlign||e.yAlign||yb(t,r);return{xAlign:r.xAlign||e.xAlign||xb(t,e,r,n),yAlign:n}}function wb(t,e){let{x:r,width:n}=t;return e==="right"?r-=n:e==="center"&&(r-=n/2),r}function kb(t,e,r){let{y:n,height:o}=t;return e==="top"?n+=r:e==="bottom"?n-=o+r:n-=o/2,n}function _c(t,e,r,n){const{caretSize:o,caretPadding:i,cornerRadius:s}=t,{xAlign:a,yAlign:l}=r,c=o+i,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:h}=un(s);let p=wb(e,a);const m=kb(e,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(d,f)+o:a==="right"&&(p+=Math.max(u,h)+o),{x:at(p,0,n.width-e.width),y:at(m,0,n.height-e.height)}}function Po(t,e,r){const n=ht(r.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-n.right:t.x+n.left}function Sc(t){return wt([],Lt(t))}function Cb(t,e,r){return Tr(t,{tooltip:e,tooltipItems:r,type:"tooltip"})}function Ec(t,e){const r=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return r?t.override(r):t}const Oc={beforeTitle:At,title(t){if(t.length>0){const e=t[0],r=e.chart.data.labels,n=r?r.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return r[e.dataIndex]}return""},afterTitle:At,beforeBody:At,beforeLabel:At,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const r=t.formattedValue;return We(r)||(e+=r),e},labelColor(t){const r=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:r.borderColor,backgroundColor:r.backgroundColor,borderWidth:r.borderWidth,borderDash:r.borderDash,borderDashOffset:r.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const r=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:r.pointStyle,rotation:r.rotation}},afterLabel:At,afterBody:At,beforeFooter:At,footer:At,afterFooter:At};function qe(t,e,r,n){const o=t[e].call(r,n);return typeof o>"u"?Oc[e].call(r,n):o}let Tc=(Ha=class extends vn{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const r=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&r.options.animation&&n.animations,i=new Bl(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=Cb(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,r){const{callbacks:n}=r,o=qe(n,"beforeTitle",this,e),i=qe(n,"title",this,e),s=qe(n,"afterTitle",this,e);let a=[];return a=wt(a,Lt(o)),a=wt(a,Lt(i)),a=wt(a,Lt(s)),a}getBeforeBody(e,r){return Sc(qe(r.callbacks,"beforeBody",this,e))}getBody(e,r){const{callbacks:n}=r,o=[];return fe(e,i=>{const s={before:[],lines:[],after:[]},a=Ec(n,i);wt(s.before,Lt(qe(a,"beforeLabel",this,i))),wt(s.lines,qe(a,"label",this,i)),wt(s.after,Lt(qe(a,"afterLabel",this,i))),o.push(s)}),o}getAfterBody(e,r){return Sc(qe(r.callbacks,"afterBody",this,e))}getFooter(e,r){const{callbacks:n}=r,o=qe(n,"beforeFooter",this,e),i=qe(n,"footer",this,e),s=qe(n,"afterFooter",this,e);let a=[];return a=wt(a,Lt(o)),a=wt(a,Lt(i)),a=wt(a,Lt(s)),a}_createItems(e){const r=this._active,n=this.chart.data,o=[],i=[],s=[];let a=[],l,c;for(l=0,c=r.length;l<c;++l)a.push(bb(this.chart,r[l]));return e.filter&&(a=a.filter((d,u,f)=>e.filter(d,u,f,n))),e.itemSort&&(a=a.sort((d,u)=>e.itemSort(d,u,n))),fe(a,d=>{const u=Ec(e.callbacks,d);o.push(qe(u,"labelColor",this,d)),i.push(qe(u,"labelPointStyle",this,d)),s.push(qe(u,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=a,a}update(e,r){const n=this.options.setContext(this.getContext()),o=this._active;let i,s=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const a=Cn[n.position].call(this,o,this._eventPosition);s=this._createItems(n),this.title=this.getTitle(s,n),this.beforeBody=this.getBeforeBody(s,n),this.body=this.getBody(s,n),this.afterBody=this.getAfterBody(s,n),this.footer=this.getFooter(s,n);const l=this._size=kc(this,n),c=Object.assign({},a,l),d=Cc(this.chart,n,c),u=_c(n,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:r})}drawCaret(e,r,n,o){const i=this.getCaretPosition(e,n,o);r.lineTo(i.x1,i.y1),r.lineTo(i.x2,i.y2),r.lineTo(i.x3,i.y3)}getCaretPosition(e,r,n){const{xAlign:o,yAlign:i}=this,{caretSize:s,cornerRadius:a}=n,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:u}=un(a),{x:f,y:h}=e,{width:p,height:m}=r;let b,v,y,_,x,w;return i==="center"?(x=h+m/2,o==="left"?(b=f,v=b-s,_=x+s,w=x-s):(b=f+p,v=b+s,_=x-s,w=x+s),y=b):(o==="left"?v=f+Math.max(l,d)+s:o==="right"?v=f+p-Math.max(c,u)-s:v=this.caretX,i==="top"?(_=h,x=_-s,b=v-s,y=v+s):(_=h+m,x=_+s,b=v+s,y=v-s),w=_),{x1:b,x2:v,x3:y,y1:_,y2:x,y3:w}}drawTitle(e,r,n){const o=this.title,i=o.length;let s,a,l;if(i){const c=Mr(n.rtl,this.x,this.width);for(e.x=Po(this,n.titleAlign,n),r.textAlign=c.textAlign(n.titleAlign),r.textBaseline="middle",s=Ke(n.titleFont),a=n.titleSpacing,r.fillStyle=n.titleColor,r.font=s.string,l=0;l<i;++l)r.fillText(o[l],c.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+a,l+1===i&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,r,n,o,i){const s=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:l,boxWidth:c}=i,d=Ke(i.bodyFont),u=Po(this,"left",i),f=o.x(u),h=l<d.lineHeight?(d.lineHeight-l)/2:0,p=r.y+h;if(i.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},b=o.leftForLtr(f,c)+c/2,v=p+l/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,_l(e,m,b,v),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,_l(e,m,b,v)}else{e.lineWidth=ne(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const m=o.leftForLtr(f,c),b=o.leftForLtr(o.xPlus(f,1),c-2),v=un(s.borderRadius);Object.values(v).some(y=>y!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Xi(e,{x:m,y:p,w:c,h:l,radius:v}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Xi(e,{x:b,y:p+1,w:c-2,h:l-2,radius:v}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(m,p,c,l),e.strokeRect(m,p,c,l),e.fillStyle=s.backgroundColor,e.fillRect(b,p+1,c-2,l-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,r,n){const{body:o}=this,{bodySpacing:i,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:d}=n,u=Ke(n.bodyFont);let f=u.lineHeight,h=0;const p=Mr(n.rtl,this.x,this.width),m=function(M){r.fillText(M,p.x(e.x+h),e.y+f/2),e.y+=f+i},b=p.textAlign(s);let v,y,_,x,w,S,T;for(r.textAlign=s,r.textBaseline="middle",r.font=u.string,e.x=Po(this,b,n),r.fillStyle=n.bodyColor,fe(this.beforeBody,m),h=a&&b!=="right"?s==="center"?c/2+d:c+2+d:0,x=0,S=o.length;x<S;++x){for(v=o[x],y=this.labelTextColors[x],r.fillStyle=y,fe(v.before,m),_=v.lines,a&&_.length&&(this._drawColorBox(r,e,x,p,n),f=Math.max(u.lineHeight,l)),w=0,T=_.length;w<T;++w)m(_[w]),f=u.lineHeight;fe(v.after,m)}h=0,f=u.lineHeight,fe(this.afterBody,m),e.y-=i}drawFooter(e,r,n){const o=this.footer,i=o.length;let s,a;if(i){const l=Mr(n.rtl,this.x,this.width);for(e.x=Po(this,n.footerAlign,n),e.y+=n.footerMarginTop,r.textAlign=l.textAlign(n.footerAlign),r.textBaseline="middle",s=Ke(n.footerFont),r.fillStyle=n.footerColor,r.font=s.string,a=0;a<i;++a)r.fillText(o[a],l.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+n.footerSpacing}}drawBackground(e,r,n,o){const{xAlign:i,yAlign:s}=this,{x:a,y:l}=e,{width:c,height:d}=n,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:p}=un(o.cornerRadius);r.fillStyle=o.backgroundColor,r.strokeStyle=o.borderColor,r.lineWidth=o.borderWidth,r.beginPath(),r.moveTo(a+u,l),s==="top"&&this.drawCaret(e,r,n,o),r.lineTo(a+c-f,l),r.quadraticCurveTo(a+c,l,a+c,l+f),s==="center"&&i==="right"&&this.drawCaret(e,r,n,o),r.lineTo(a+c,l+d-p),r.quadraticCurveTo(a+c,l+d,a+c-p,l+d),s==="bottom"&&this.drawCaret(e,r,n,o),r.lineTo(a+h,l+d),r.quadraticCurveTo(a,l+d,a,l+d-h),s==="center"&&i==="left"&&this.drawCaret(e,r,n,o),r.lineTo(a,l+u),r.quadraticCurveTo(a,l,a+u,l),r.closePath(),r.fill(),o.borderWidth>0&&r.stroke()}_updateAnimationTarget(e){const r=this.chart,n=this.$animations,o=n&&n.x,i=n&&n.y;if(o||i){const s=Cn[e.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=kc(this,e),l=Object.assign({},s,this._size),c=Cc(r,e,l),d=_c(e,l,c,r);(o._to!==d.x||i._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){const r=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(r);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const s=ht(r.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;r.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,o,r),Ll(e,r.textDirection),i.y+=s.top,this.drawTitle(i,e,r),this.drawBody(i,e,r),this.drawFooter(i,e,r),Fl(e,r.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,r){const n=this._active,o=e.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),i=!so(n,o),s=this._positionChanged(o,r);(i||s)&&(this._active=o,this._eventPosition=r,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,r,n=!0){if(r&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],s=this._getActiveElements(e,i,r,n),a=this._positionChanged(s,e),l=r||!so(s,i)||a;return l&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,r))),l}_getActiveElements(e,r,n,o){const i=this.options;if(e.type==="mouseout")return[];if(!o)return r.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const s=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&s.reverse(),s}_positionChanged(e,r){const{caretX:n,caretY:o,options:i}=this,s=Cn[i.position].call(this,e,r);return s!==!1&&(n!==s.x||o!==s.y)}},ee(Ha,"positioners",Cn),Ha);var _b={id:"tooltip",_element:Tc,positioners:Cn,afterInit(t,e,r){r&&(t.tooltip=new Tc({chart:t,options:r}))},beforeUpdate(t,e,r){t.tooltip&&t.tooltip.initialize(r)},reset(t,e,r){t.tooltip&&t.tooltip.initialize(r)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const r={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...r,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",r)}},afterEvent(t,e){if(t.tooltip){const r=e.replay;t.tooltip.handleEvent(e.event,r,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Oc},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Ao={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ge=Object.keys(Ao);function Nc(t,e){return t-e}function Mc(t,e){if(We(e))return null;const r=t._adapter,{parser:n,round:o,isoWeekday:i}=t._parseOpts;let s=e;return typeof n=="function"&&(s=n(s)),Dt(s)||(s=typeof n=="string"?r.parse(s,n):r.parse(s)),s===null?null:(o&&(s=o==="week"&&(uo(i)||i===!0)?r.startOf(s,"isoWeek",i):r.startOf(s,o)),+s)}function Pc(t,e,r,n){const o=Ge.length;for(let i=Ge.indexOf(t);i<o-1;++i){const s=Ao[Ge[i]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((r-e)/(a*s.size))<=n)return Ge[i]}return Ge[o-1]}function Sb(t,e,r,n,o){for(let i=Ge.length-1;i>=Ge.indexOf(r);i--){const s=Ge[i];if(Ao[s].common&&t._adapter.diff(o,n,s)>=e-1)return s}return Ge[r?Ge.indexOf(r):0]}function Eb(t){for(let e=Ge.indexOf(t)+1,r=Ge.length;e<r;++e)if(Ao[Ge[e]].common)return Ge[e]}function Ac(t,e,r){if(!r)t[e]=!0;else if(r.length){const{lo:n,hi:o}=Vi(r,e),i=r[n]>=e?r[n]:r[o];t[i]=!0}}function Ob(t,e,r,n){const o=t._adapter,i=+o.startOf(e[0].value,n),s=e[e.length-1].value;let a,l;for(a=i;a<=s;a=+o.add(a,1,n))l=r[a],l>=0&&(e[l].major=!0);return e}function Dc(t,e,r){const n=[],o={},i=e.length;let s,a;for(s=0;s<i;++s)a=e[s],o[a]=s,n.push({value:a,major:!1});return i===0||!r?n:Ob(t,n,o,r)}class Do extends _o{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,r={}){const n=e.time||(e.time={}),o=this._adapter=new X0._date(e.adapters.date);o.init(r),sn(n.displayFormats,o.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=r.normalized}parse(e,r){return e===void 0?null:Mc(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,r=this._adapter,n=e.time.unit||"day";let{min:o,max:i,minDefined:s,maxDefined:a}=this.getUserBounds();function l(c){!s&&!isNaN(c.min)&&(o=Math.min(o,c.min)),!a&&!isNaN(c.max)&&(i=Math.max(i,c.max))}(!s||!a)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),o=Dt(o)&&!isNaN(o)?o:+r.startOf(Date.now(),n),i=Dt(i)&&!isNaN(i)?i:+r.endOf(Date.now(),n)+1,this.min=Math.min(o,i-1),this.max=Math.max(o+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(r=e[0],n=e[e.length-1]),{min:r,max:n}}buildTicks(){const e=this.options,r=e.time,n=e.ticks,o=n.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const i=this.min,s=this.max,a=Kp(o,i,s);return this._unit=r.unit||(n.autoSkip?Pc(r.minUnit,this.min,this.max,this._getLabelCapacity(i)):Sb(this,a.length,r.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:Eb(this._unit),this.initOffsets(o),e.reverse&&a.reverse(),Dc(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let r=0,n=0,o,i;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?r=1-o:r=(this.getDecimalForValue(e[1])-o)/2,i=this.getDecimalForValue(e[e.length-1]),e.length===1?n=i:n=(i-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;r=at(r,0,s),n=at(n,0,s),this._offsets={start:r,end:n,factor:1/(r+1+n)}}_generate(){const e=this._adapter,r=this.min,n=this.max,o=this.options,i=o.time,s=i.unit||Pc(i.minUnit,r,n,this._getLabelCapacity(r)),a=ue(o.ticks.stepSize,1),l=s==="week"?i.isoWeekday:!1,c=uo(l)||l===!0,d={};let u=r,f,h;if(c&&(u=+e.startOf(u,"isoWeek",l)),u=+e.startOf(u,c?"day":s),e.diff(n,r,s)>1e5*a)throw new Error(r+" and "+n+" are too far apart with stepSize of "+a+" "+s);const p=o.ticks.source==="data"&&this.getDataTimestamps();for(f=u,h=0;f<n;f=+e.add(f,a,s),h++)Ac(d,f,p);return(f===n||o.bounds==="ticks"||h===1)&&Ac(d,f,p),Object.keys(d).sort(Nc).map(m=>+m)}getLabelForValue(e){const r=this._adapter,n=this.options.time;return n.tooltipFormat?r.format(e,n.tooltipFormat):r.format(e,n.displayFormats.datetime)}format(e,r){const o=this.options.time.displayFormats,i=this._unit,s=r||o[i];return this._adapter.format(e,s)}_tickFormatFunction(e,r,n,o){const i=this.options,s=i.ticks.callback;if(s)return be(s,[e,r,n],this);const a=i.time.displayFormats,l=this._unit,c=this._majorUnit,d=l&&a[l],u=c&&a[c],f=n[r],h=c&&u&&f&&f.major;return this._adapter.format(e,o||(h?u:d))}generateTickLabels(e){let r,n,o;for(r=0,n=e.length;r<n;++r)o=e[r],o.label=this._tickFormatFunction(o.value,r,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const r=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((r.start+n)*r.factor)}getValueForPixel(e){const r=this._offsets,n=this.getDecimalForPixel(e)/r.factor-r.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const r=this.options.ticks,n=this.ctx.measureText(e).width,o=sr(this.isHorizontal()?r.maxRotation:r.minRotation),i=Math.cos(o),s=Math.sin(o),a=this._resolveTickFontOptions(0).size;return{w:n*i+a*s,h:n*s+a*i}}_getLabelCapacity(e){const r=this.options.time,n=r.displayFormats,o=n[r.unit]||n.millisecond,i=this._tickFormatFunction(e,0,Dc(this,[e],this._majorUnit),o),s=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let e=this._cache.data||[],r,n;if(e.length)return e;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(r=0,n=o.length;r<n;++r)e=e.concat(o[r].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let r,n;if(e.length)return e;const o=this.getLabels();for(r=0,n=o.length;r<n;++r)e.push(Mc(this,o[r]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return Gp(e.sort(Nc))}}ee(Do,"id","time"),ee(Do,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Io(t,e,r){let n=0,o=t.length-1,i,s,a,l;r?(e>=t[n].pos&&e<=t[o].pos&&({lo:n,hi:o}=Ri(t,"pos",e)),{pos:i,time:a}=t[n],{pos:s,time:l}=t[o]):(e>=t[n].time&&e<=t[o].time&&({lo:n,hi:o}=Ri(t,"time",e)),{time:i,pos:a}=t[n],{time:s,pos:l}=t[o]);const c=s-i;return c?a+(l-a)*(e-i)/c:a}class Ic extends Do{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),r=this._table=this.buildLookupTable(e);this._minPos=Io(r,this.min),this._tableRange=Io(r,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:r,max:n}=this,o=[],i=[];let s,a,l,c,d;for(s=0,a=e.length;s<a;++s)c=e[s],c>=r&&c<=n&&o.push(c);if(o.length<2)return[{time:r,pos:0},{time:n,pos:1}];for(s=0,a=o.length;s<a;++s)d=o[s+1],l=o[s-1],c=o[s],Math.round((d+l)/2)!==c&&i.push({time:c,pos:s/(a-1)});return i}_generate(){const e=this.min,r=this.max;let n=super.getDataTimestamps();return(!n.includes(e)||!n.length)&&n.splice(0,0,e),(!n.includes(r)||n.length===1)&&n.push(r),n.sort((o,i)=>o-i)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const r=this.getDataTimestamps(),n=this.getLabelTimestamps();return r.length&&n.length?e=this.normalize(r.concat(n)):e=r.length?r:n,e=this._cache.all=e,e}getDecimalForValue(e){return(Io(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const r=this._offsets,n=this.getDecimalForPixel(e)/r.factor-r.end;return Io(this._table,n*this._tableRange+this._minPos,!0)}}ee(Ic,"id","timeseries"),ee(Ic,"defaults",Do.defaults);const Lc="label";function Fc(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function Tb(t,e){const r=t.options;r&&e&&Object.assign(r,e)}function zc(t,e){t.labels=e}function Bc(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Lc;const n=[];t.datasets=e.map(o=>{const i=t.datasets.find(s=>s[r]===o[r]);return!i||!o.data||n.includes(i)?{...o}:(n.push(i),Object.assign(i,o),i)})}function Nb(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Lc;const r={labels:[],datasets:[]};return zc(r,t.labels),Bc(r,t.datasets,e),r}function Mb(t,e){const{height:r=150,width:n=300,redraw:o=!1,datasetIdKey:i,type:s,data:a,options:l,plugins:c=[],fallbackContent:d,updateMode:u,...f}=t,h=k.useRef(null),p=k.useRef(null),m=()=>{h.current&&(p.current=new No(h.current,{type:s,data:Nb(a,i),options:l&&{...l},plugins:c}),Fc(e,p.current))},b=()=>{Fc(e,null),p.current&&(p.current.destroy(),p.current=null)};return k.useEffect(()=>{!o&&p.current&&l&&Tb(p.current,l)},[o,l]),k.useEffect(()=>{!o&&p.current&&zc(p.current.config.data,a.labels)},[o,a.labels]),k.useEffect(()=>{!o&&p.current&&a.datasets&&Bc(p.current.config.data,a.datasets,i)},[o,a.datasets]),k.useEffect(()=>{p.current&&(o?(b(),setTimeout(m)):p.current.update(u))},[o,l,a.labels,a.datasets,u]),k.useEffect(()=>{p.current&&(b(),setTimeout(m))},[s]),k.useEffect(()=>(m(),()=>b()),[]),k.createElement("canvas",{ref:h,role:"img",height:r,width:n,...f},d)}const Pb=k.forwardRef(Mb);function Ab(t,e){return No.register(e),k.forwardRef((r,n)=>k.createElement(Pb,{...r,ref:n,type:t}))}const Db=Ab("doughnut",gn);No.register(kn,_b,mb);const Ib=()=>{const t={labels:["Planeado","Ejecutado"],datasets:[{label:"Presupuesto",data:[14.7,11.6],backgroundColor:["#EBE1FF","#9873e8"],borderColor:["#EBE1F9","#9873e1"],borderWidth:1,circumference:180,rotation:-90}]},e={responsive:!0,maintainAspectRatio:!1,plugins:{title:{display:!0,text:"PRESUPUESTO"},legend:{position:"right"},tooltip:{enabled:!0},doughnutLabel:{labels:[{text:"Total",font:{size:"16",weight:"bold"}},{text:`${t.datasets[0].data.reduce((n,o)=>n+o,0).toFixed(1)}`,font:{size:"20"}}]}}},r={id:"textCenter",beforeDraw(n){const{ctx:o,chartArea:{top:i,width:s,height:a}}=n,l="Total",c=t.datasets[0].data.reduce((u,f)=>u+f,0).toFixed(1),d=i+a*.75;o.save(),o.font="16px Arial",o.fillStyle="black",o.textAlign="center",o.fillText(l,s/2,d-15),o.font="bold 20px Arial",o.fillText(c,s/2,d+15),o.restore()}};return g.jsx("div",{className:"size-full min-h-[200px]",children:g.jsx(Db,{data:t,options:e,plugins:[r]})})},fs={overlay:"modal-module__overlay__cc2Es",modal:"modal-module__modal__WAkuU",closeButton:"modal-module__closeButton__1lo1j"};function Lb(t){return ge({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm52.7 283.3L256 278.6l-52.7 52.7c-6.2 6.2-16.4 6.2-22.6 0-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3l52.7-52.7-52.7-52.7c-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3 6.2-6.2 16.4-6.2 22.6 0l52.7 52.7 52.7-52.7c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6L278.6 256l52.7 52.7c6.2 6.2 6.2 16.4 0 22.6-6.2 6.3-16.4 6.3-22.6 0z"},child:[]}]})(t)}function Fb(t){return ge({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M144 136v107h179.9l-47.2-47.9c-5-5.1-5-13.3.1-18.4 5.1-5 13.3-5 18.4.1l69 70c2.4 2.5 3.7 5.8 3.7 9.1 0 1.7-.3 3.4-1 5-.6 1.5-1.6 2.9-2.7 4.1l-69 70c-5 5.1-13.3 5.2-18.4.1-5.1-5-5.2-13.3-.1-18.4l47.2-47.9H144v107c0 22 18 40 40 40h240c22 0 40-18 40-40V136c0-22-18-40-40-40H184c-22 0-40 18-40 40zM61 243c-7.2 0-13 5.8-13 13s5.8 13 13 13h83v-26H61z"},child:[]}]})(t)}const Ar=k.forwardRef(({isOpen:t,onClose:e,children:r,width:n="auto"},o)=>t?g.jsx("div",{className:fs.overlay,children:g.jsxs("div",{ref:o,className:fs.modal,style:{width:n},children:[g.jsx("button",{onClick:e,className:fs.closeButton,children:g.jsx(Lb,{})}),r]})}):null);/*! *****************************************************************************
18
+ `):t}function yb(t,e){const{element:r,datasetIndex:n,index:o}=e,i=t.getDatasetMeta(n).controller,{label:s,value:a}=i.getLabelAndValue(o);return{chart:t,label:s,parsed:i.getParsed(o),raw:t.data.datasets[n].data[o],formattedValue:a,dataset:i.getDataset(),dataIndex:o,datasetIndex:n,element:r}}function kc(t,e){const r=t.chart.ctx,{body:n,footer:o,title:i}=t,{boxWidth:s,boxHeight:a}=e,l=Ke(e.bodyFont),c=Ke(e.titleFont),d=Ke(e.footerFont),u=i.length,f=o.length,h=n.length,p=ht(e.padding);let m=p.height,b=0,v=n.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(v+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),v){const x=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;m+=h*x+(v-h)*l.lineHeight+(v-1)*e.bodySpacing}f&&(m+=e.footerMarginTop+f*d.lineHeight+(f-1)*e.footerSpacing);let y=0;const _=function(x){b=Math.max(b,r.measureText(x).width+y)};return r.save(),r.font=c.string,fe(t.title,_),r.font=l.string,fe(t.beforeBody.concat(t.afterBody),_),y=e.displayColors?s+2+e.boxPadding:0,fe(n,x=>{fe(x.before,_),fe(x.lines,_),fe(x.after,_)}),y=0,r.font=d.string,fe(t.footer,_),r.restore(),b+=p.width,{width:b,height:m}}function vb(t,e){const{y:r,height:n}=e;return r<n/2?"top":r>t.height-n/2?"bottom":"center"}function xb(t,e,r,n){const{x:o,width:i}=n,s=r.caretSize+r.caretPadding;if(t==="left"&&o+i+s>e.width||t==="right"&&o-i-s<0)return!0}function wb(t,e,r,n){const{x:o,width:i}=r,{width:s,chartArea:{left:a,right:l}}=t;let c="center";return n==="center"?c=o<=(a+l)/2?"left":"right":o<=i/2?c="left":o>=s-i/2&&(c="right"),xb(c,t,e,r)&&(c="center"),c}function Cc(t,e,r){const n=r.yAlign||e.yAlign||vb(t,r);return{xAlign:r.xAlign||e.xAlign||wb(t,e,r,n),yAlign:n}}function kb(t,e){let{x:r,width:n}=t;return e==="right"?r-=n:e==="center"&&(r-=n/2),r}function Cb(t,e,r){let{y:n,height:o}=t;return e==="top"?n+=r:e==="bottom"?n-=o+r:n-=o/2,n}function _c(t,e,r,n){const{caretSize:o,caretPadding:i,cornerRadius:s}=t,{xAlign:a,yAlign:l}=r,c=o+i,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:h}=un(s);let p=kb(e,a);const m=Cb(e,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(d,f)+o:a==="right"&&(p+=Math.max(u,h)+o),{x:at(p,0,n.width-e.width),y:at(m,0,n.height-e.height)}}function Po(t,e,r){const n=ht(r.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-n.right:t.x+n.left}function Sc(t){return wt([],Lt(t))}function _b(t,e,r){return Tr(t,{tooltip:e,tooltipItems:r,type:"tooltip"})}function Ec(t,e){const r=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return r?t.override(r):t}const Oc={beforeTitle:At,title(t){if(t.length>0){const e=t[0],r=e.chart.data.labels,n=r?r.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return r[e.dataIndex]}return""},afterTitle:At,beforeBody:At,beforeLabel:At,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const r=t.formattedValue;return We(r)||(e+=r),e},labelColor(t){const r=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:r.borderColor,backgroundColor:r.backgroundColor,borderWidth:r.borderWidth,borderDash:r.borderDash,borderDashOffset:r.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const r=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:r.pointStyle,rotation:r.rotation}},afterLabel:At,afterBody:At,beforeFooter:At,footer:At,afterFooter:At};function qe(t,e,r,n){const o=t[e].call(r,n);return typeof o>"u"?Oc[e].call(r,n):o}let Tc=(Ha=class extends vn{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const r=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&r.options.animation&&n.animations,i=new Bl(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=_b(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,r){const{callbacks:n}=r,o=qe(n,"beforeTitle",this,e),i=qe(n,"title",this,e),s=qe(n,"afterTitle",this,e);let a=[];return a=wt(a,Lt(o)),a=wt(a,Lt(i)),a=wt(a,Lt(s)),a}getBeforeBody(e,r){return Sc(qe(r.callbacks,"beforeBody",this,e))}getBody(e,r){const{callbacks:n}=r,o=[];return fe(e,i=>{const s={before:[],lines:[],after:[]},a=Ec(n,i);wt(s.before,Lt(qe(a,"beforeLabel",this,i))),wt(s.lines,qe(a,"label",this,i)),wt(s.after,Lt(qe(a,"afterLabel",this,i))),o.push(s)}),o}getAfterBody(e,r){return Sc(qe(r.callbacks,"afterBody",this,e))}getFooter(e,r){const{callbacks:n}=r,o=qe(n,"beforeFooter",this,e),i=qe(n,"footer",this,e),s=qe(n,"afterFooter",this,e);let a=[];return a=wt(a,Lt(o)),a=wt(a,Lt(i)),a=wt(a,Lt(s)),a}_createItems(e){const r=this._active,n=this.chart.data,o=[],i=[],s=[];let a=[],l,c;for(l=0,c=r.length;l<c;++l)a.push(yb(this.chart,r[l]));return e.filter&&(a=a.filter((d,u,f)=>e.filter(d,u,f,n))),e.itemSort&&(a=a.sort((d,u)=>e.itemSort(d,u,n))),fe(a,d=>{const u=Ec(e.callbacks,d);o.push(qe(u,"labelColor",this,d)),i.push(qe(u,"labelPointStyle",this,d)),s.push(qe(u,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=a,a}update(e,r){const n=this.options.setContext(this.getContext()),o=this._active;let i,s=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const a=Cn[n.position].call(this,o,this._eventPosition);s=this._createItems(n),this.title=this.getTitle(s,n),this.beforeBody=this.getBeforeBody(s,n),this.body=this.getBody(s,n),this.afterBody=this.getAfterBody(s,n),this.footer=this.getFooter(s,n);const l=this._size=kc(this,n),c=Object.assign({},a,l),d=Cc(this.chart,n,c),u=_c(n,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:r})}drawCaret(e,r,n,o){const i=this.getCaretPosition(e,n,o);r.lineTo(i.x1,i.y1),r.lineTo(i.x2,i.y2),r.lineTo(i.x3,i.y3)}getCaretPosition(e,r,n){const{xAlign:o,yAlign:i}=this,{caretSize:s,cornerRadius:a}=n,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:u}=un(a),{x:f,y:h}=e,{width:p,height:m}=r;let b,v,y,_,x,w;return i==="center"?(x=h+m/2,o==="left"?(b=f,v=b-s,_=x+s,w=x-s):(b=f+p,v=b+s,_=x-s,w=x+s),y=b):(o==="left"?v=f+Math.max(l,d)+s:o==="right"?v=f+p-Math.max(c,u)-s:v=this.caretX,i==="top"?(_=h,x=_-s,b=v-s,y=v+s):(_=h+m,x=_+s,b=v+s,y=v-s),w=_),{x1:b,x2:v,x3:y,y1:_,y2:x,y3:w}}drawTitle(e,r,n){const o=this.title,i=o.length;let s,a,l;if(i){const c=Mr(n.rtl,this.x,this.width);for(e.x=Po(this,n.titleAlign,n),r.textAlign=c.textAlign(n.titleAlign),r.textBaseline="middle",s=Ke(n.titleFont),a=n.titleSpacing,r.fillStyle=n.titleColor,r.font=s.string,l=0;l<i;++l)r.fillText(o[l],c.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+a,l+1===i&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,r,n,o,i){const s=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:l,boxWidth:c}=i,d=Ke(i.bodyFont),u=Po(this,"left",i),f=o.x(u),h=l<d.lineHeight?(d.lineHeight-l)/2:0,p=r.y+h;if(i.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},b=o.leftForLtr(f,c)+c/2,v=p+l/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,_l(e,m,b,v),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,_l(e,m,b,v)}else{e.lineWidth=ne(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const m=o.leftForLtr(f,c),b=o.leftForLtr(o.xPlus(f,1),c-2),v=un(s.borderRadius);Object.values(v).some(y=>y!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Xi(e,{x:m,y:p,w:c,h:l,radius:v}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Xi(e,{x:b,y:p+1,w:c-2,h:l-2,radius:v}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(m,p,c,l),e.strokeRect(m,p,c,l),e.fillStyle=s.backgroundColor,e.fillRect(b,p+1,c-2,l-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,r,n){const{body:o}=this,{bodySpacing:i,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:d}=n,u=Ke(n.bodyFont);let f=u.lineHeight,h=0;const p=Mr(n.rtl,this.x,this.width),m=function(M){r.fillText(M,p.x(e.x+h),e.y+f/2),e.y+=f+i},b=p.textAlign(s);let v,y,_,x,w,S,T;for(r.textAlign=s,r.textBaseline="middle",r.font=u.string,e.x=Po(this,b,n),r.fillStyle=n.bodyColor,fe(this.beforeBody,m),h=a&&b!=="right"?s==="center"?c/2+d:c+2+d:0,x=0,S=o.length;x<S;++x){for(v=o[x],y=this.labelTextColors[x],r.fillStyle=y,fe(v.before,m),_=v.lines,a&&_.length&&(this._drawColorBox(r,e,x,p,n),f=Math.max(u.lineHeight,l)),w=0,T=_.length;w<T;++w)m(_[w]),f=u.lineHeight;fe(v.after,m)}h=0,f=u.lineHeight,fe(this.afterBody,m),e.y-=i}drawFooter(e,r,n){const o=this.footer,i=o.length;let s,a;if(i){const l=Mr(n.rtl,this.x,this.width);for(e.x=Po(this,n.footerAlign,n),e.y+=n.footerMarginTop,r.textAlign=l.textAlign(n.footerAlign),r.textBaseline="middle",s=Ke(n.footerFont),r.fillStyle=n.footerColor,r.font=s.string,a=0;a<i;++a)r.fillText(o[a],l.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+n.footerSpacing}}drawBackground(e,r,n,o){const{xAlign:i,yAlign:s}=this,{x:a,y:l}=e,{width:c,height:d}=n,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:p}=un(o.cornerRadius);r.fillStyle=o.backgroundColor,r.strokeStyle=o.borderColor,r.lineWidth=o.borderWidth,r.beginPath(),r.moveTo(a+u,l),s==="top"&&this.drawCaret(e,r,n,o),r.lineTo(a+c-f,l),r.quadraticCurveTo(a+c,l,a+c,l+f),s==="center"&&i==="right"&&this.drawCaret(e,r,n,o),r.lineTo(a+c,l+d-p),r.quadraticCurveTo(a+c,l+d,a+c-p,l+d),s==="bottom"&&this.drawCaret(e,r,n,o),r.lineTo(a+h,l+d),r.quadraticCurveTo(a,l+d,a,l+d-h),s==="center"&&i==="left"&&this.drawCaret(e,r,n,o),r.lineTo(a,l+u),r.quadraticCurveTo(a,l,a+u,l),r.closePath(),r.fill(),o.borderWidth>0&&r.stroke()}_updateAnimationTarget(e){const r=this.chart,n=this.$animations,o=n&&n.x,i=n&&n.y;if(o||i){const s=Cn[e.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=kc(this,e),l=Object.assign({},s,this._size),c=Cc(r,e,l),d=_c(e,l,c,r);(o._to!==d.x||i._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){const r=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(r);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const s=ht(r.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;r.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,o,r),Ll(e,r.textDirection),i.y+=s.top,this.drawTitle(i,e,r),this.drawBody(i,e,r),this.drawFooter(i,e,r),Fl(e,r.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,r){const n=this._active,o=e.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),i=!so(n,o),s=this._positionChanged(o,r);(i||s)&&(this._active=o,this._eventPosition=r,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,r,n=!0){if(r&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],s=this._getActiveElements(e,i,r,n),a=this._positionChanged(s,e),l=r||!so(s,i)||a;return l&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,r))),l}_getActiveElements(e,r,n,o){const i=this.options;if(e.type==="mouseout")return[];if(!o)return r.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const s=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&s.reverse(),s}_positionChanged(e,r){const{caretX:n,caretY:o,options:i}=this,s=Cn[i.position].call(this,e,r);return s!==!1&&(n!==s.x||o!==s.y)}},ee(Ha,"positioners",Cn),Ha);var Sb={id:"tooltip",_element:Tc,positioners:Cn,afterInit(t,e,r){r&&(t.tooltip=new Tc({chart:t,options:r}))},beforeUpdate(t,e,r){t.tooltip&&t.tooltip.initialize(r)},reset(t,e,r){t.tooltip&&t.tooltip.initialize(r)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const r={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...r,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",r)}},afterEvent(t,e){if(t.tooltip){const r=e.replay;t.tooltip.handleEvent(e.event,r,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Oc},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Ao={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ge=Object.keys(Ao);function Nc(t,e){return t-e}function Mc(t,e){if(We(e))return null;const r=t._adapter,{parser:n,round:o,isoWeekday:i}=t._parseOpts;let s=e;return typeof n=="function"&&(s=n(s)),It(s)||(s=typeof n=="string"?r.parse(s,n):r.parse(s)),s===null?null:(o&&(s=o==="week"&&(uo(i)||i===!0)?r.startOf(s,"isoWeek",i):r.startOf(s,o)),+s)}function Pc(t,e,r,n){const o=Ge.length;for(let i=Ge.indexOf(t);i<o-1;++i){const s=Ao[Ge[i]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((r-e)/(a*s.size))<=n)return Ge[i]}return Ge[o-1]}function Eb(t,e,r,n,o){for(let i=Ge.length-1;i>=Ge.indexOf(r);i--){const s=Ge[i];if(Ao[s].common&&t._adapter.diff(o,n,s)>=e-1)return s}return Ge[r?Ge.indexOf(r):0]}function Ob(t){for(let e=Ge.indexOf(t)+1,r=Ge.length;e<r;++e)if(Ao[Ge[e]].common)return Ge[e]}function Ac(t,e,r){if(!r)t[e]=!0;else if(r.length){const{lo:n,hi:o}=Vi(r,e),i=r[n]>=e?r[n]:r[o];t[i]=!0}}function Tb(t,e,r,n){const o=t._adapter,i=+o.startOf(e[0].value,n),s=e[e.length-1].value;let a,l;for(a=i;a<=s;a=+o.add(a,1,n))l=r[a],l>=0&&(e[l].major=!0);return e}function Ic(t,e,r){const n=[],o={},i=e.length;let s,a;for(s=0;s<i;++s)a=e[s],o[a]=s,n.push({value:a,major:!1});return i===0||!r?n:Tb(t,n,o,r)}class Io extends _o{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,r={}){const n=e.time||(e.time={}),o=this._adapter=new Z0._date(e.adapters.date);o.init(r),sn(n.displayFormats,o.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=r.normalized}parse(e,r){return e===void 0?null:Mc(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,r=this._adapter,n=e.time.unit||"day";let{min:o,max:i,minDefined:s,maxDefined:a}=this.getUserBounds();function l(c){!s&&!isNaN(c.min)&&(o=Math.min(o,c.min)),!a&&!isNaN(c.max)&&(i=Math.max(i,c.max))}(!s||!a)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),o=It(o)&&!isNaN(o)?o:+r.startOf(Date.now(),n),i=It(i)&&!isNaN(i)?i:+r.endOf(Date.now(),n)+1,this.min=Math.min(o,i-1),this.max=Math.max(o+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(r=e[0],n=e[e.length-1]),{min:r,max:n}}buildTicks(){const e=this.options,r=e.time,n=e.ticks,o=n.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const i=this.min,s=this.max,a=qp(o,i,s);return this._unit=r.unit||(n.autoSkip?Pc(r.minUnit,this.min,this.max,this._getLabelCapacity(i)):Eb(this,a.length,r.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:Ob(this._unit),this.initOffsets(o),e.reverse&&a.reverse(),Ic(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let r=0,n=0,o,i;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?r=1-o:r=(this.getDecimalForValue(e[1])-o)/2,i=this.getDecimalForValue(e[e.length-1]),e.length===1?n=i:n=(i-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;r=at(r,0,s),n=at(n,0,s),this._offsets={start:r,end:n,factor:1/(r+1+n)}}_generate(){const e=this._adapter,r=this.min,n=this.max,o=this.options,i=o.time,s=i.unit||Pc(i.minUnit,r,n,this._getLabelCapacity(r)),a=ue(o.ticks.stepSize,1),l=s==="week"?i.isoWeekday:!1,c=uo(l)||l===!0,d={};let u=r,f,h;if(c&&(u=+e.startOf(u,"isoWeek",l)),u=+e.startOf(u,c?"day":s),e.diff(n,r,s)>1e5*a)throw new Error(r+" and "+n+" are too far apart with stepSize of "+a+" "+s);const p=o.ticks.source==="data"&&this.getDataTimestamps();for(f=u,h=0;f<n;f=+e.add(f,a,s),h++)Ac(d,f,p);return(f===n||o.bounds==="ticks"||h===1)&&Ac(d,f,p),Object.keys(d).sort(Nc).map(m=>+m)}getLabelForValue(e){const r=this._adapter,n=this.options.time;return n.tooltipFormat?r.format(e,n.tooltipFormat):r.format(e,n.displayFormats.datetime)}format(e,r){const o=this.options.time.displayFormats,i=this._unit,s=r||o[i];return this._adapter.format(e,s)}_tickFormatFunction(e,r,n,o){const i=this.options,s=i.ticks.callback;if(s)return be(s,[e,r,n],this);const a=i.time.displayFormats,l=this._unit,c=this._majorUnit,d=l&&a[l],u=c&&a[c],f=n[r],h=c&&u&&f&&f.major;return this._adapter.format(e,o||(h?u:d))}generateTickLabels(e){let r,n,o;for(r=0,n=e.length;r<n;++r)o=e[r],o.label=this._tickFormatFunction(o.value,r,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const r=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((r.start+n)*r.factor)}getValueForPixel(e){const r=this._offsets,n=this.getDecimalForPixel(e)/r.factor-r.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const r=this.options.ticks,n=this.ctx.measureText(e).width,o=sr(this.isHorizontal()?r.maxRotation:r.minRotation),i=Math.cos(o),s=Math.sin(o),a=this._resolveTickFontOptions(0).size;return{w:n*i+a*s,h:n*s+a*i}}_getLabelCapacity(e){const r=this.options.time,n=r.displayFormats,o=n[r.unit]||n.millisecond,i=this._tickFormatFunction(e,0,Ic(this,[e],this._majorUnit),o),s=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let e=this._cache.data||[],r,n;if(e.length)return e;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(r=0,n=o.length;r<n;++r)e=e.concat(o[r].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let r,n;if(e.length)return e;const o=this.getLabels();for(r=0,n=o.length;r<n;++r)e.push(Mc(this,o[r]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return Xp(e.sort(Nc))}}ee(Io,"id","time"),ee(Io,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Do(t,e,r){let n=0,o=t.length-1,i,s,a,l;r?(e>=t[n].pos&&e<=t[o].pos&&({lo:n,hi:o}=Ri(t,"pos",e)),{pos:i,time:a}=t[n],{pos:s,time:l}=t[o]):(e>=t[n].time&&e<=t[o].time&&({lo:n,hi:o}=Ri(t,"time",e)),{time:i,pos:a}=t[n],{time:s,pos:l}=t[o]);const c=s-i;return c?a+(l-a)*(e-i)/c:a}class Dc extends Io{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),r=this._table=this.buildLookupTable(e);this._minPos=Do(r,this.min),this._tableRange=Do(r,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:r,max:n}=this,o=[],i=[];let s,a,l,c,d;for(s=0,a=e.length;s<a;++s)c=e[s],c>=r&&c<=n&&o.push(c);if(o.length<2)return[{time:r,pos:0},{time:n,pos:1}];for(s=0,a=o.length;s<a;++s)d=o[s+1],l=o[s-1],c=o[s],Math.round((d+l)/2)!==c&&i.push({time:c,pos:s/(a-1)});return i}_generate(){const e=this.min,r=this.max;let n=super.getDataTimestamps();return(!n.includes(e)||!n.length)&&n.splice(0,0,e),(!n.includes(r)||n.length===1)&&n.push(r),n.sort((o,i)=>o-i)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const r=this.getDataTimestamps(),n=this.getLabelTimestamps();return r.length&&n.length?e=this.normalize(r.concat(n)):e=r.length?r:n,e=this._cache.all=e,e}getDecimalForValue(e){return(Do(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const r=this._offsets,n=this.getDecimalForPixel(e)/r.factor-r.end;return Do(this._table,n*this._tableRange+this._minPos,!0)}}ee(Dc,"id","timeseries"),ee(Dc,"defaults",Io.defaults);const Lc="label";function Fc(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function Nb(t,e){const r=t.options;r&&e&&Object.assign(r,e)}function zc(t,e){t.labels=e}function Bc(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Lc;const n=[];t.datasets=e.map(o=>{const i=t.datasets.find(s=>s[r]===o[r]);return!i||!o.data||n.includes(i)?{...o}:(n.push(i),Object.assign(i,o),i)})}function Mb(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Lc;const r={labels:[],datasets:[]};return zc(r,t.labels),Bc(r,t.datasets,e),r}function Pb(t,e){const{height:r=150,width:n=300,redraw:o=!1,datasetIdKey:i,type:s,data:a,options:l,plugins:c=[],fallbackContent:d,updateMode:u,...f}=t,h=k.useRef(null),p=k.useRef(null),m=()=>{h.current&&(p.current=new No(h.current,{type:s,data:Mb(a,i),options:l&&{...l},plugins:c}),Fc(e,p.current))},b=()=>{Fc(e,null),p.current&&(p.current.destroy(),p.current=null)};return k.useEffect(()=>{!o&&p.current&&l&&Nb(p.current,l)},[o,l]),k.useEffect(()=>{!o&&p.current&&zc(p.current.config.data,a.labels)},[o,a.labels]),k.useEffect(()=>{!o&&p.current&&a.datasets&&Bc(p.current.config.data,a.datasets,i)},[o,a.datasets]),k.useEffect(()=>{p.current&&(o?(b(),setTimeout(m)):p.current.update(u))},[o,l,a.labels,a.datasets,u]),k.useEffect(()=>{p.current&&(b(),setTimeout(m))},[s]),k.useEffect(()=>(m(),()=>b()),[]),k.createElement("canvas",{ref:h,role:"img",height:r,width:n,...f},d)}const Ab=k.forwardRef(Pb);function Ib(t,e){return No.register(e),k.forwardRef((r,n)=>k.createElement(Ab,{...r,ref:n,type:t}))}const Db=Ib("doughnut",gn);No.register(kn,Sb,bb);const Lb=()=>{const t={labels:["Planeado","Ejecutado"],datasets:[{label:"Presupuesto",data:[14.7,11.6],backgroundColor:["#EBE1FF","#9873e8"],borderColor:["#EBE1F9","#9873e1"],borderWidth:1,circumference:180,rotation:-90}]},e={responsive:!0,maintainAspectRatio:!1,plugins:{title:{display:!0,text:"PRESUPUESTO"},legend:{position:"right"},tooltip:{enabled:!0},doughnutLabel:{labels:[{text:"Total",font:{size:"16",weight:"bold"}},{text:`${t.datasets[0].data.reduce((n,o)=>n+o,0).toFixed(1)}`,font:{size:"20"}}]}}},r={id:"textCenter",beforeDraw(n){const{ctx:o,chartArea:{top:i,width:s,height:a}}=n,l="Total",c=t.datasets[0].data.reduce((u,f)=>u+f,0).toFixed(1),d=i+a*.75;o.save(),o.font="16px Arial",o.fillStyle="black",o.textAlign="center",o.fillText(l,s/2,d-15),o.font="bold 20px Arial",o.fillText(c,s/2,d+15),o.restore()}};return g.jsx("div",{className:"size-full min-h-[200px]",children:g.jsx(Db,{data:t,options:e,plugins:[r]})})},fs={overlay:"modal-module__overlay__cc2Es",modal:"modal-module__modal__WAkuU",closeButton:"modal-module__closeButton__1lo1j"};function Fb(t){return ge({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm52.7 283.3L256 278.6l-52.7 52.7c-6.2 6.2-16.4 6.2-22.6 0-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3l52.7-52.7-52.7-52.7c-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3 6.2-6.2 16.4-6.2 22.6 0l52.7 52.7 52.7-52.7c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6L278.6 256l52.7 52.7c6.2 6.2 6.2 16.4 0 22.6-6.2 6.3-16.4 6.3-22.6 0z"},child:[]}]})(t)}function zb(t){return ge({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M144 136v107h179.9l-47.2-47.9c-5-5.1-5-13.3.1-18.4 5.1-5 13.3-5 18.4.1l69 70c2.4 2.5 3.7 5.8 3.7 9.1 0 1.7-.3 3.4-1 5-.6 1.5-1.6 2.9-2.7 4.1l-69 70c-5 5.1-13.3 5.2-18.4.1-5.1-5-5.2-13.3-.1-18.4l47.2-47.9H144v107c0 22 18 40 40 40h240c22 0 40-18 40-40V136c0-22-18-40-40-40H184c-22 0-40 18-40 40zM61 243c-7.2 0-13 5.8-13 13s5.8 13 13 13h83v-26H61z"},child:[]}]})(t)}const Ar=k.forwardRef(({isOpen:t,onClose:e,children:r,width:n="auto"},o)=>t?g.jsx("div",{className:fs.overlay,children:g.jsxs("div",{ref:o,className:fs.modal,style:{width:n},children:[g.jsx("button",{onClick:e,className:fs.closeButton,children:g.jsx(Fb,{})}),r]})}):null);/*! *****************************************************************************
19
19
  Copyright (c) Microsoft Corporation.
20
20
 
21
21
  Permission to use, copy, modify, and/or distribute this software for any
@@ -28,33 +28,33 @@
28
28
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
29
29
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
30
30
  PERFORMANCE OF THIS SOFTWARE.
31
- ***************************************************************************** */var tt=function(){return tt=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},tt.apply(this,arguments)};function hr(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function Ve(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function hs(){return hs=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},hs.apply(this,arguments)}function Lo(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var zb=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Bb=Lo(function(t){return zb.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function $b(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function jb(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Hb=function(){function t(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(jb(this));var o=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var i=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;i&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
32
- `+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!i}if(this.isSpeedy){var s=$b(o);try{s.insertRule(n,s.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',a)}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t}(),Re="-ms-",Fo="-moz-",se="-webkit-",gs="comm",ps="rule",ms="decl",Wb="@import",$c="@keyframes",Vb=Math.abs,zo=String.fromCharCode,Rb=Object.assign;function Yb(t,e){return ze(t,0)^45?(((e<<2^ze(t,0))<<2^ze(t,1))<<2^ze(t,2))<<2^ze(t,3):0}function jc(t){return t.trim()}function Ub(t,e){return(t=e.exec(t))?t[0]:t}function ce(t,e,r){return t.replace(e,r)}function bs(t,e){return t.indexOf(e)}function ze(t,e){return t.charCodeAt(e)|0}function _n(t,e,r){return t.slice(e,r)}function kt(t){return t.length}function ys(t){return t.length}function Bo(t,e){return e.push(t),t}function Kb(t,e){return t.map(e).join("")}var $o=1,Dr=1,Hc=0,Xe=0,_e=0,Ir="";function jo(t,e,r,n,o,i,s){return{value:t,root:e,parent:r,type:n,props:o,children:i,line:$o,column:Dr,length:s,return:""}}function Sn(t,e){return Rb(jo("",null,null,"",null,null,0),t,{length:-t.length},e)}function qb(){return _e}function Gb(){return _e=Xe>0?ze(Ir,--Xe):0,Dr--,_e===10&&(Dr=1,$o--),_e}function rt(){return _e=Xe<Hc?ze(Ir,Xe++):0,Dr++,_e===10&&(Dr=1,$o++),_e}function Ct(){return ze(Ir,Xe)}function Ho(){return Xe}function En(t,e){return _n(Ir,t,e)}function On(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Wc(t){return $o=Dr=1,Hc=kt(Ir=t),Xe=0,[]}function Vc(t){return Ir="",t}function Wo(t){return jc(En(Xe-1,vs(t===91?t+2:t===40?t+1:t)))}function Xb(t){for(;(_e=Ct())&&_e<33;)rt();return On(t)>2||On(_e)>3?"":" "}function Zb(t,e){for(;--e&&rt()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return En(t,Ho()+(e<6&&Ct()==32&&rt()==32))}function vs(t){for(;rt();)switch(_e){case t:return Xe;case 34:case 39:t!==34&&t!==39&&vs(_e);break;case 40:t===41&&vs(t);break;case 92:rt();break}return Xe}function Jb(t,e){for(;rt()&&t+_e!==57;)if(t+_e===84&&Ct()===47)break;return"/*"+En(e,Xe-1)+"*"+zo(t===47?t:rt())}function Qb(t){for(;!On(Ct());)rt();return En(t,Xe)}function Rc(t){return Vc(Vo("",null,null,null,[""],t=Wc(t),0,[0],t))}function Vo(t,e,r,n,o,i,s,a,l){for(var c=0,d=0,u=s,f=0,h=0,p=0,m=1,b=1,v=1,y=0,_="",x=o,w=i,S=n,T=_;b;)switch(p=y,y=rt()){case 40:if(p!=108&&ze(T,u-1)==58){bs(T+=ce(Wo(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:T+=Wo(y);break;case 9:case 10:case 13:case 32:T+=Xb(p);break;case 92:T+=Zb(Ho()-1,7);continue;case 47:switch(Ct()){case 42:case 47:Bo(ey(Jb(rt(),Ho()),e,r),l);break;default:T+="/"}break;case 123*m:a[c++]=kt(T)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:b=0;case 59+d:h>0&&kt(T)-u&&Bo(h>32?Uc(T+";",n,r,u-1):Uc(ce(T," ","")+";",n,r,u-2),l);break;case 59:T+=";";default:if(Bo(S=Yc(T,e,r,c,d,o,a,_,x=[],w=[],u),i),y===123)if(d===0)Vo(T,e,S,S,x,i,u,a,w);else switch(f===99&&ze(T,3)===110?100:f){case 100:case 109:case 115:Vo(t,S,S,n&&Bo(Yc(t,S,S,0,0,o,a,_,o,x=[],u),w),o,w,u,a,n?x:w);break;default:Vo(T,S,S,S,[""],w,0,a,w)}}c=d=h=0,m=v=1,_=T="",u=s;break;case 58:u=1+kt(T),h=p;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&Gb()==125)continue}switch(T+=zo(y),y*m){case 38:v=d>0?1:(T+="\f",-1);break;case 44:a[c++]=(kt(T)-1)*v,v=1;break;case 64:Ct()===45&&(T+=Wo(rt())),f=Ct(),d=u=kt(_=T+=Qb(Ho())),y++;break;case 45:p===45&&kt(T)==2&&(m=0)}}return i}function Yc(t,e,r,n,o,i,s,a,l,c,d){for(var u=o-1,f=o===0?i:[""],h=ys(f),p=0,m=0,b=0;p<n;++p)for(var v=0,y=_n(t,u+1,u=Vb(m=s[p])),_=t;v<h;++v)(_=jc(m>0?f[v]+" "+y:ce(y,/&\f/g,f[v])))&&(l[b++]=_);return jo(t,e,r,o===0?ps:a,l,c,d)}function ey(t,e,r){return jo(t,e,r,gs,zo(qb()),_n(t,2,-2),0)}function Uc(t,e,r,n){return jo(t,e,r,ms,_n(t,0,n),_n(t,n+1,-1),n)}function gr(t,e){for(var r="",n=ys(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function Kc(t,e,r,n){switch(t.type){case Wb:case ms:return t.return=t.return||t.value;case gs:return"";case $c:return t.return=t.value+"{"+gr(t.children,n)+"}";case ps:t.value=t.props.join(",")}return kt(r=gr(t.children,n))?t.return=t.value+"{"+r+"}":""}function qc(t){var e=ys(t);return function(r,n,o,i){for(var s="",a=0;a<e;a++)s+=t[a](r,n,o,i)||"";return s}}function ty(t){return function(e){e.root||(e=e.return)&&t(e)}}var ry=function(e){var r=new WeakMap;return function(n){if(r.has(n))return r.get(n);var o=e(n);return r.set(n,o),o}},ny=function(e,r,n){for(var o=0,i=0;o=i,i=Ct(),o===38&&i===12&&(r[n]=1),!On(i);)rt();return En(e,Xe)},oy=function(e,r){var n=-1,o=44;do switch(On(o)){case 0:o===38&&Ct()===12&&(r[n]=1),e[n]+=ny(Xe-1,r,n);break;case 2:e[n]+=Wo(o);break;case 4:if(o===44){e[++n]=Ct()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=zo(o)}while(o=rt());return e},iy=function(e,r){return Vc(oy(Wc(e),r))},Gc=new WeakMap,sy=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!Gc.get(n))&&!o){Gc.set(e,!0);for(var i=[],s=iy(r,i),a=n.props,l=0,c=0;l<s.length;l++)for(var d=0;d<a.length;d++,c++)e.props[c]=i[l]?s[l].replace(/&\f/g,a[d]):a[d]+" "+s[l]}}},ay=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}},ly="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",cy=function(e){return e.type==="comm"&&e.children.indexOf(ly)>-1},dy=function(e){return function(r,n,o){if(!(r.type!=="rule"||e.compat)){var i=r.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var s=r.parent===o[0],a=s?o[0].children:o,l=a.length-1;l>=0;l--){var c=a[l];if(c.line<r.line)break;if(c.column<r.column){if(cy(c))return;break}}i.forEach(function(d){console.error('The pseudo class "'+d+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+d.split("-child")[0]+'-of-type".')})}}}},Xc=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},uy=function(e,r){for(var n=e-1;n>=0;n--)if(!Xc(r[n]))return!0;return!1},Zc=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},fy=function(e,r,n){Xc(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Zc(e)):uy(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Zc(e)))};function Jc(t,e){switch(Yb(t,e)){case 5103:return se+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return se+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return se+t+Fo+t+Re+t+t;case 6828:case 4268:return se+t+Re+t+t;case 6165:return se+t+Re+"flex-"+t+t;case 5187:return se+t+ce(t,/(\w+).+(:[^]+)/,se+"box-$1$2"+Re+"flex-$1$2")+t;case 5443:return se+t+Re+"flex-item-"+ce(t,/flex-|-self/,"")+t;case 4675:return se+t+Re+"flex-line-pack"+ce(t,/align-content|flex-|-self/,"")+t;case 5548:return se+t+Re+ce(t,"shrink","negative")+t;case 5292:return se+t+Re+ce(t,"basis","preferred-size")+t;case 6060:return se+"box-"+ce(t,"-grow","")+se+t+Re+ce(t,"grow","positive")+t;case 4554:return se+ce(t,/([^-])(transform)/g,"$1"+se+"$2")+t;case 6187:return ce(ce(ce(t,/(zoom-|grab)/,se+"$1"),/(image-set)/,se+"$1"),t,"")+t;case 5495:case 3959:return ce(t,/(image-set\([^]*)/,se+"$1$`$1");case 4968:return ce(ce(t,/(.+:)(flex-)?(.*)/,se+"box-pack:$3"+Re+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+se+t+t;case 4095:case 3583:case 4068:case 2532:return ce(t,/(.+)-inline(.+)/,se+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(kt(t)-1-e>6)switch(ze(t,e+1)){case 109:if(ze(t,e+4)!==45)break;case 102:return ce(t,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+Fo+(ze(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~bs(t,"stretch")?Jc(ce(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(ze(t,e+1)!==115)break;case 6444:switch(ze(t,kt(t)-3-(~bs(t,"!important")&&10))){case 107:return ce(t,":",":"+se)+t;case 101:return ce(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(ze(t,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Re+"$2box$3")+t}break;case 5936:switch(ze(t,e+11)){case 114:return se+t+Re+ce(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return se+t+Re+ce(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return se+t+Re+ce(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return se+t+Re+t+t}return t}var hy=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case ms:e.return=Jc(e.value,e.length);break;case $c:return gr([Sn(e,{value:ce(e.value,"@","@"+se)})],o);case ps:if(e.length)return Kb(e.props,function(i){switch(Ub(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return gr([Sn(e,{props:[ce(i,/:(read-\w+)/,":"+Fo+"$1")]})],o);case"::placeholder":return gr([Sn(e,{props:[ce(i,/:(plac\w+)/,":"+se+"input-$1")]}),Sn(e,{props:[ce(i,/:(plac\w+)/,":"+Fo+"$1")]}),Sn(e,{props:[ce(i,/:(plac\w+)/,Re+"input-$1")]})],o)}return""})}},Ro=typeof document<"u",gy=Ro?void 0:ry(function(){return Lo(function(){var t={};return function(e){return t[e]}})}),py=[hy],Qc=function(e){var r=e.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
33
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(Ro&&r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(x){var w=x.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=e.stylisPlugins||py;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var i={},s,a=[];Ro&&(s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var w=x.getAttribute("data-emotion").split(" "),S=1;S<w.length;S++)i[w[S]]=!0;a.push(x)}));var l,c=[sy,ay];if(process.env.NODE_ENV!=="production"&&c.push(dy({get compat(){return _.compat}}),fy),Ro){var d,u=[Kc,process.env.NODE_ENV!=="production"?function(x){x.root||(x.return?d.insert(x.return):x.value&&x.type!==gs&&d.insert(x.value+"{}"))}:ty(function(x){d.insert(x)})],f=qc(c.concat(o,u)),h=function(w){return gr(Rc(w),f)};l=function(w,S,T,M){d=T,process.env.NODE_ENV!=="production"&&S.map!==void 0&&(d={insert:function(E){T.insert(E+S.map)}}),h(w?w+"{"+S.styles+"}":S.styles),M&&(_.inserted[S.name]=!0)}}else{var p=[Kc],m=qc(c.concat(o,p)),b=function(w){return gr(Rc(w),m)},v=gy(o)(r),y=function(w,S){var T=S.name;return v[T]===void 0&&(v[T]=b(w?w+"{"+S.styles+"}":S.styles)),v[T]};l=function(w,S,T,M){var N=S.name,E=y(w,S);if(_.compat===void 0)return M&&(_.inserted[N]=!0),process.env.NODE_ENV==="development"&&S.map!==void 0?E+S.map:E;if(M)_.inserted[N]=E;else return E}}var _={key:r,sheet:new Hb({key:r,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:l};return _.sheet.hydrate(a),_},xs=typeof document<"u";function my(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):n+=o+" "}),n}var ed=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||xs===!1&&e.compat!==void 0)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},by=function(e,r,n){ed(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var i="",s=r;do{var a=e.insert(r===s?"."+o:"",s,e.sheet,!0);!xs&&a!==void 0&&(i+=a),s=s.next}while(s!==void 0);if(!xs&&i.length!==0)return i}};function yy(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var vy={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},td=`You have illegal escape sequence in your template literal, most likely inside content's property value.
31
+ ***************************************************************************** */var tt=function(){return tt=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},tt.apply(this,arguments)};function hr(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function Ve(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function hs(){return hs=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},hs.apply(this,arguments)}function Lo(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var Bb=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,$b=Lo(function(t){return Bb.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function jb(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Hb(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Wb=function(){function t(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Hb(this));var o=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var i=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;i&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
32
+ `+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!i}if(this.isSpeedy){var s=jb(o);try{s.insertRule(n,s.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',a)}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t}(),Re="-ms-",Fo="-moz-",se="-webkit-",gs="comm",ps="rule",ms="decl",Vb="@import",$c="@keyframes",Rb=Math.abs,zo=String.fromCharCode,Yb=Object.assign;function Ub(t,e){return ze(t,0)^45?(((e<<2^ze(t,0))<<2^ze(t,1))<<2^ze(t,2))<<2^ze(t,3):0}function jc(t){return t.trim()}function Kb(t,e){return(t=e.exec(t))?t[0]:t}function ce(t,e,r){return t.replace(e,r)}function bs(t,e){return t.indexOf(e)}function ze(t,e){return t.charCodeAt(e)|0}function _n(t,e,r){return t.slice(e,r)}function kt(t){return t.length}function ys(t){return t.length}function Bo(t,e){return e.push(t),t}function qb(t,e){return t.map(e).join("")}var $o=1,Ir=1,Hc=0,Xe=0,_e=0,Dr="";function jo(t,e,r,n,o,i,s){return{value:t,root:e,parent:r,type:n,props:o,children:i,line:$o,column:Ir,length:s,return:""}}function Sn(t,e){return Yb(jo("",null,null,"",null,null,0),t,{length:-t.length},e)}function Gb(){return _e}function Xb(){return _e=Xe>0?ze(Dr,--Xe):0,Ir--,_e===10&&(Ir=1,$o--),_e}function rt(){return _e=Xe<Hc?ze(Dr,Xe++):0,Ir++,_e===10&&(Ir=1,$o++),_e}function Ct(){return ze(Dr,Xe)}function Ho(){return Xe}function En(t,e){return _n(Dr,t,e)}function On(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Wc(t){return $o=Ir=1,Hc=kt(Dr=t),Xe=0,[]}function Vc(t){return Dr="",t}function Wo(t){return jc(En(Xe-1,vs(t===91?t+2:t===40?t+1:t)))}function Zb(t){for(;(_e=Ct())&&_e<33;)rt();return On(t)>2||On(_e)>3?"":" "}function Jb(t,e){for(;--e&&rt()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return En(t,Ho()+(e<6&&Ct()==32&&rt()==32))}function vs(t){for(;rt();)switch(_e){case t:return Xe;case 34:case 39:t!==34&&t!==39&&vs(_e);break;case 40:t===41&&vs(t);break;case 92:rt();break}return Xe}function Qb(t,e){for(;rt()&&t+_e!==57;)if(t+_e===84&&Ct()===47)break;return"/*"+En(e,Xe-1)+"*"+zo(t===47?t:rt())}function ey(t){for(;!On(Ct());)rt();return En(t,Xe)}function Rc(t){return Vc(Vo("",null,null,null,[""],t=Wc(t),0,[0],t))}function Vo(t,e,r,n,o,i,s,a,l){for(var c=0,d=0,u=s,f=0,h=0,p=0,m=1,b=1,v=1,y=0,_="",x=o,w=i,S=n,T=_;b;)switch(p=y,y=rt()){case 40:if(p!=108&&ze(T,u-1)==58){bs(T+=ce(Wo(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:T+=Wo(y);break;case 9:case 10:case 13:case 32:T+=Zb(p);break;case 92:T+=Jb(Ho()-1,7);continue;case 47:switch(Ct()){case 42:case 47:Bo(ty(Qb(rt(),Ho()),e,r),l);break;default:T+="/"}break;case 123*m:a[c++]=kt(T)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:b=0;case 59+d:h>0&&kt(T)-u&&Bo(h>32?Uc(T+";",n,r,u-1):Uc(ce(T," ","")+";",n,r,u-2),l);break;case 59:T+=";";default:if(Bo(S=Yc(T,e,r,c,d,o,a,_,x=[],w=[],u),i),y===123)if(d===0)Vo(T,e,S,S,x,i,u,a,w);else switch(f===99&&ze(T,3)===110?100:f){case 100:case 109:case 115:Vo(t,S,S,n&&Bo(Yc(t,S,S,0,0,o,a,_,o,x=[],u),w),o,w,u,a,n?x:w);break;default:Vo(T,S,S,S,[""],w,0,a,w)}}c=d=h=0,m=v=1,_=T="",u=s;break;case 58:u=1+kt(T),h=p;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&Xb()==125)continue}switch(T+=zo(y),y*m){case 38:v=d>0?1:(T+="\f",-1);break;case 44:a[c++]=(kt(T)-1)*v,v=1;break;case 64:Ct()===45&&(T+=Wo(rt())),f=Ct(),d=u=kt(_=T+=ey(Ho())),y++;break;case 45:p===45&&kt(T)==2&&(m=0)}}return i}function Yc(t,e,r,n,o,i,s,a,l,c,d){for(var u=o-1,f=o===0?i:[""],h=ys(f),p=0,m=0,b=0;p<n;++p)for(var v=0,y=_n(t,u+1,u=Rb(m=s[p])),_=t;v<h;++v)(_=jc(m>0?f[v]+" "+y:ce(y,/&\f/g,f[v])))&&(l[b++]=_);return jo(t,e,r,o===0?ps:a,l,c,d)}function ty(t,e,r){return jo(t,e,r,gs,zo(Gb()),_n(t,2,-2),0)}function Uc(t,e,r,n){return jo(t,e,r,ms,_n(t,0,n),_n(t,n+1,-1),n)}function gr(t,e){for(var r="",n=ys(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function Kc(t,e,r,n){switch(t.type){case Vb:case ms:return t.return=t.return||t.value;case gs:return"";case $c:return t.return=t.value+"{"+gr(t.children,n)+"}";case ps:t.value=t.props.join(",")}return kt(r=gr(t.children,n))?t.return=t.value+"{"+r+"}":""}function qc(t){var e=ys(t);return function(r,n,o,i){for(var s="",a=0;a<e;a++)s+=t[a](r,n,o,i)||"";return s}}function ry(t){return function(e){e.root||(e=e.return)&&t(e)}}var ny=function(e){var r=new WeakMap;return function(n){if(r.has(n))return r.get(n);var o=e(n);return r.set(n,o),o}},oy=function(e,r,n){for(var o=0,i=0;o=i,i=Ct(),o===38&&i===12&&(r[n]=1),!On(i);)rt();return En(e,Xe)},iy=function(e,r){var n=-1,o=44;do switch(On(o)){case 0:o===38&&Ct()===12&&(r[n]=1),e[n]+=oy(Xe-1,r,n);break;case 2:e[n]+=Wo(o);break;case 4:if(o===44){e[++n]=Ct()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=zo(o)}while(o=rt());return e},sy=function(e,r){return Vc(iy(Wc(e),r))},Gc=new WeakMap,ay=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!Gc.get(n))&&!o){Gc.set(e,!0);for(var i=[],s=sy(r,i),a=n.props,l=0,c=0;l<s.length;l++)for(var d=0;d<a.length;d++,c++)e.props[c]=i[l]?s[l].replace(/&\f/g,a[d]):a[d]+" "+s[l]}}},ly=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}},cy="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",dy=function(e){return e.type==="comm"&&e.children.indexOf(cy)>-1},uy=function(e){return function(r,n,o){if(!(r.type!=="rule"||e.compat)){var i=r.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var s=r.parent===o[0],a=s?o[0].children:o,l=a.length-1;l>=0;l--){var c=a[l];if(c.line<r.line)break;if(c.column<r.column){if(dy(c))return;break}}i.forEach(function(d){console.error('The pseudo class "'+d+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+d.split("-child")[0]+'-of-type".')})}}}},Xc=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},fy=function(e,r){for(var n=e-1;n>=0;n--)if(!Xc(r[n]))return!0;return!1},Zc=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},hy=function(e,r,n){Xc(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Zc(e)):fy(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Zc(e)))};function Jc(t,e){switch(Ub(t,e)){case 5103:return se+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return se+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return se+t+Fo+t+Re+t+t;case 6828:case 4268:return se+t+Re+t+t;case 6165:return se+t+Re+"flex-"+t+t;case 5187:return se+t+ce(t,/(\w+).+(:[^]+)/,se+"box-$1$2"+Re+"flex-$1$2")+t;case 5443:return se+t+Re+"flex-item-"+ce(t,/flex-|-self/,"")+t;case 4675:return se+t+Re+"flex-line-pack"+ce(t,/align-content|flex-|-self/,"")+t;case 5548:return se+t+Re+ce(t,"shrink","negative")+t;case 5292:return se+t+Re+ce(t,"basis","preferred-size")+t;case 6060:return se+"box-"+ce(t,"-grow","")+se+t+Re+ce(t,"grow","positive")+t;case 4554:return se+ce(t,/([^-])(transform)/g,"$1"+se+"$2")+t;case 6187:return ce(ce(ce(t,/(zoom-|grab)/,se+"$1"),/(image-set)/,se+"$1"),t,"")+t;case 5495:case 3959:return ce(t,/(image-set\([^]*)/,se+"$1$`$1");case 4968:return ce(ce(t,/(.+:)(flex-)?(.*)/,se+"box-pack:$3"+Re+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+se+t+t;case 4095:case 3583:case 4068:case 2532:return ce(t,/(.+)-inline(.+)/,se+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(kt(t)-1-e>6)switch(ze(t,e+1)){case 109:if(ze(t,e+4)!==45)break;case 102:return ce(t,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+Fo+(ze(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~bs(t,"stretch")?Jc(ce(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(ze(t,e+1)!==115)break;case 6444:switch(ze(t,kt(t)-3-(~bs(t,"!important")&&10))){case 107:return ce(t,":",":"+se)+t;case 101:return ce(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(ze(t,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Re+"$2box$3")+t}break;case 5936:switch(ze(t,e+11)){case 114:return se+t+Re+ce(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return se+t+Re+ce(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return se+t+Re+ce(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return se+t+Re+t+t}return t}var gy=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case ms:e.return=Jc(e.value,e.length);break;case $c:return gr([Sn(e,{value:ce(e.value,"@","@"+se)})],o);case ps:if(e.length)return qb(e.props,function(i){switch(Kb(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return gr([Sn(e,{props:[ce(i,/:(read-\w+)/,":"+Fo+"$1")]})],o);case"::placeholder":return gr([Sn(e,{props:[ce(i,/:(plac\w+)/,":"+se+"input-$1")]}),Sn(e,{props:[ce(i,/:(plac\w+)/,":"+Fo+"$1")]}),Sn(e,{props:[ce(i,/:(plac\w+)/,Re+"input-$1")]})],o)}return""})}},Ro=typeof document<"u",py=Ro?void 0:ny(function(){return Lo(function(){var t={};return function(e){return t[e]}})}),my=[gy],Qc=function(e){var r=e.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
33
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(Ro&&r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(x){var w=x.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=e.stylisPlugins||my;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var i={},s,a=[];Ro&&(s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var w=x.getAttribute("data-emotion").split(" "),S=1;S<w.length;S++)i[w[S]]=!0;a.push(x)}));var l,c=[ay,ly];if(process.env.NODE_ENV!=="production"&&c.push(uy({get compat(){return _.compat}}),hy),Ro){var d,u=[Kc,process.env.NODE_ENV!=="production"?function(x){x.root||(x.return?d.insert(x.return):x.value&&x.type!==gs&&d.insert(x.value+"{}"))}:ry(function(x){d.insert(x)})],f=qc(c.concat(o,u)),h=function(w){return gr(Rc(w),f)};l=function(w,S,T,M){d=T,process.env.NODE_ENV!=="production"&&S.map!==void 0&&(d={insert:function(E){T.insert(E+S.map)}}),h(w?w+"{"+S.styles+"}":S.styles),M&&(_.inserted[S.name]=!0)}}else{var p=[Kc],m=qc(c.concat(o,p)),b=function(w){return gr(Rc(w),m)},v=py(o)(r),y=function(w,S){var T=S.name;return v[T]===void 0&&(v[T]=b(w?w+"{"+S.styles+"}":S.styles)),v[T]};l=function(w,S,T,M){var N=S.name,E=y(w,S);if(_.compat===void 0)return M&&(_.inserted[N]=!0),process.env.NODE_ENV==="development"&&S.map!==void 0?E+S.map:E;if(M)_.inserted[N]=E;else return E}}var _={key:r,sheet:new Wb({key:r,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:l};return _.sheet.hydrate(a),_},xs=typeof document<"u";function by(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):n+=o+" "}),n}var ed=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||xs===!1&&e.compat!==void 0)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},yy=function(e,r,n){ed(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var i="",s=r;do{var a=e.insert(r===s?"."+o:"",s,e.sheet,!0);!xs&&a!==void 0&&(i+=a),s=s.next}while(s!==void 0);if(!xs&&i.length!==0)return i}};function vy(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var xy={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},td=`You have illegal escape sequence in your template literal, most likely inside content's property value.
34
34
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
35
35
  You can read more about this here:
36
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,xy="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",wy=/[A-Z]|^ms/g,rd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ws=function(e){return e.charCodeAt(1)===45},nd=function(e){return e!=null&&typeof e!="boolean"},ks=Lo(function(t){return ws(t)?t:t.replace(wy,"-$&").toLowerCase()}),Yo=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(rd,function(n,o,i){return gt={name:o,styles:i,next:gt},o})}return vy[e]!==1&&!ws(e)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var ky=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Cy=["normal","none","initial","inherit","unset"],_y=Yo,Sy=/^-ms-/,Ey=/-(.)/g,od={};Yo=function(e,r){if(e==="content"&&(typeof r!="string"||Cy.indexOf(r)===-1&&!ky.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var n=_y(e,r);return n!==""&&!ws(e)&&e.indexOf("-")!==-1&&od[e]===void 0&&(od[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Sy,"ms-").replace(Ey,function(o,i){return i.toUpperCase()})+"?")),n}}var id="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Tn(t,e,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(id);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return gt={name:r.name,styles:r.styles,next:gt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)gt={name:n.name,styles:n.styles,next:gt},n=n.next;var o=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(o+=r.map),o}return Oy(t,e,r)}case"function":{if(t!==void 0){var i=gt,s=r(t);return gt=i,Tn(t,e,s)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var a=[],l=r.replace(rd,function(c,d,u){var f="animation"+a.length;return a.push("const "+f+" = keyframes`"+u.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+f+"}"});a.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(a,["`"+l+"`"]).join(`
36
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,wy="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ky=/[A-Z]|^ms/g,rd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ws=function(e){return e.charCodeAt(1)===45},nd=function(e){return e!=null&&typeof e!="boolean"},ks=Lo(function(t){return ws(t)?t:t.replace(ky,"-$&").toLowerCase()}),Yo=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(rd,function(n,o,i){return gt={name:o,styles:i,next:gt},o})}return xy[e]!==1&&!ws(e)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var Cy=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,_y=["normal","none","initial","inherit","unset"],Sy=Yo,Ey=/^-ms-/,Oy=/-(.)/g,od={};Yo=function(e,r){if(e==="content"&&(typeof r!="string"||_y.indexOf(r)===-1&&!Cy.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var n=Sy(e,r);return n!==""&&!ws(e)&&e.indexOf("-")!==-1&&od[e]===void 0&&(od[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Ey,"ms-").replace(Oy,function(o,i){return i.toUpperCase()})+"?")),n}}var id="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Tn(t,e,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(id);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return gt={name:r.name,styles:r.styles,next:gt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)gt={name:n.name,styles:n.styles,next:gt},n=n.next;var o=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(o+=r.map),o}return Ty(t,e,r)}case"function":{if(t!==void 0){var i=gt,s=r(t);return gt=i,Tn(t,e,s)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var a=[],l=r.replace(rd,function(c,d,u){var f="animation"+a.length;return a.push("const "+f+" = keyframes`"+u.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+f+"}"});a.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(a,["`"+l+"`"]).join(`
37
37
  `)+`
38
38
 
39
39
  You should wrap it with \`css\` like this:
40
40
 
41
- `+("css`"+l+"`"))}break}return r}function Oy(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Tn(t,e,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")nd(s)&&(n+=ks(i)+":"+Yo(i,s)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(id);if(Array.isArray(s)&&typeof s[0]=="string"&&e==null)for(var a=0;a<s.length;a++)nd(s[a])&&(n+=ks(i)+":"+Yo(i,s[a])+";");else{var l=Tn(t,e,s);switch(i){case"animation":case"animationName":{n+=ks(i)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(xy),n+=i+"{"+l+"}"}}}}return n}var sd=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ad;process.env.NODE_ENV!=="production"&&(ad=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var gt,ld=function(e,r,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,i="";gt=void 0;var s=e[0];s==null||s.raw===void 0?(o=!1,i+=Tn(n,r,s)):(process.env.NODE_ENV!=="production"&&s[0]===void 0&&console.error(td),i+=s[0]);for(var a=1;a<e.length;a++)i+=Tn(n,r,e[a]),o&&(process.env.NODE_ENV!=="production"&&s[a]===void 0&&console.error(td),i+=s[a]);var l;process.env.NODE_ENV!=="production"&&(i=i.replace(ad,function(f){return l=f,""})),sd.lastIndex=0;for(var c="",d;(d=sd.exec(i))!==null;)c+="-"+d[1];var u=yy(i)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:i,map:l,next:gt,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:i,next:gt}},Ty=typeof document<"u",cd=function(e){return e()},Ny=C.useInsertionEffect?C.useInsertionEffect:!1,dd=Ty&&Ny||cd,ud=typeof document<"u",My={}.hasOwnProperty,Nn=k.createContext(typeof HTMLElement<"u"?Qc({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Nn.displayName="EmotionCacheContext"),Nn.Provider;var Cs=function(e){return k.forwardRef(function(r,n){var o=k.useContext(Nn);return e(r,o,n)})};ud||(Cs=function(e){return function(r){var n=k.useContext(Nn);return n===null?(n=Qc({key:"css"}),k.createElement(Nn.Provider,{value:n},e(r,n))):e(r,n)}});var _s=k.createContext({});process.env.NODE_ENV!=="production"&&(_s.displayName="EmotionThemeContext");var fd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",hd="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Py=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;ed(r,n,o);var i=dd(function(){return by(r,n,o)});if(!ud&&i!==void 0){for(var s,a=n.name,l=n.next;l!==void 0;)a+=" "+l.name,l=l.next;return k.createElement("style",(s={},s["data-emotion"]=r.key+" "+a,s.dangerouslySetInnerHTML={__html:i},s.nonce=r.sheet.nonce,s))}return null},Ay=Cs(function(t,e,r){var n=t.css;typeof n=="string"&&e.registered[n]!==void 0&&(n=e.registered[n]);var o=t[fd],i=[n],s="";typeof t.className=="string"?s=my(e.registered,i,t.className):t.className!=null&&(s=t.className+" ");var a=ld(i,void 0,k.useContext(_s));if(process.env.NODE_ENV!=="production"&&a.name.indexOf("-")===-1){var l=t[hd];l&&(a=ld([a,"label:"+l+";"]))}s+=e.key+"-"+a.name;var c={};for(var d in t)My.call(t,d)&&d!=="css"&&d!==fd&&(process.env.NODE_ENV==="production"||d!==hd)&&(c[d]=t[d]);return c.ref=r,c.className=s,k.createElement(k.Fragment,null,k.createElement(Py,{cache:e,serialized:a,isStringTag:typeof o=="string"}),k.createElement(o,c))});process.env.NODE_ENV!=="production"&&(Ay.displayName="EmotionCssPropInternal");var Ss=typeof document<"u";function Dy(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):n+=o+" "}),n}var gd=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||Ss===!1&&e.compat!==void 0)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},Iy=function(e,r,n){gd(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var i="",s=r;do{var a=e.insert(r===s?"."+o:"",s,e.sheet,!0);!Ss&&a!==void 0&&(i+=a),s=s.next}while(s!==void 0);if(!Ss&&i.length!==0)return i}};function Ly(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Fy={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},pd=`You have illegal escape sequence in your template literal, most likely inside content's property value.
41
+ `+("css`"+l+"`"))}break}return r}function Ty(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Tn(t,e,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")nd(s)&&(n+=ks(i)+":"+Yo(i,s)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(id);if(Array.isArray(s)&&typeof s[0]=="string"&&e==null)for(var a=0;a<s.length;a++)nd(s[a])&&(n+=ks(i)+":"+Yo(i,s[a])+";");else{var l=Tn(t,e,s);switch(i){case"animation":case"animationName":{n+=ks(i)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(wy),n+=i+"{"+l+"}"}}}}return n}var sd=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ad;process.env.NODE_ENV!=="production"&&(ad=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var gt,ld=function(e,r,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,i="";gt=void 0;var s=e[0];s==null||s.raw===void 0?(o=!1,i+=Tn(n,r,s)):(process.env.NODE_ENV!=="production"&&s[0]===void 0&&console.error(td),i+=s[0]);for(var a=1;a<e.length;a++)i+=Tn(n,r,e[a]),o&&(process.env.NODE_ENV!=="production"&&s[a]===void 0&&console.error(td),i+=s[a]);var l;process.env.NODE_ENV!=="production"&&(i=i.replace(ad,function(f){return l=f,""})),sd.lastIndex=0;for(var c="",d;(d=sd.exec(i))!==null;)c+="-"+d[1];var u=vy(i)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:i,map:l,next:gt,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:i,next:gt}},Ny=typeof document<"u",cd=function(e){return e()},My=C.useInsertionEffect?C.useInsertionEffect:!1,dd=Ny&&My||cd,ud=typeof document<"u",Py={}.hasOwnProperty,Nn=k.createContext(typeof HTMLElement<"u"?Qc({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Nn.displayName="EmotionCacheContext"),Nn.Provider;var Cs=function(e){return k.forwardRef(function(r,n){var o=k.useContext(Nn);return e(r,o,n)})};ud||(Cs=function(e){return function(r){var n=k.useContext(Nn);return n===null?(n=Qc({key:"css"}),k.createElement(Nn.Provider,{value:n},e(r,n))):e(r,n)}});var _s=k.createContext({});process.env.NODE_ENV!=="production"&&(_s.displayName="EmotionThemeContext");var fd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",hd="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Ay=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;ed(r,n,o);var i=dd(function(){return yy(r,n,o)});if(!ud&&i!==void 0){for(var s,a=n.name,l=n.next;l!==void 0;)a+=" "+l.name,l=l.next;return k.createElement("style",(s={},s["data-emotion"]=r.key+" "+a,s.dangerouslySetInnerHTML={__html:i},s.nonce=r.sheet.nonce,s))}return null},Iy=Cs(function(t,e,r){var n=t.css;typeof n=="string"&&e.registered[n]!==void 0&&(n=e.registered[n]);var o=t[fd],i=[n],s="";typeof t.className=="string"?s=by(e.registered,i,t.className):t.className!=null&&(s=t.className+" ");var a=ld(i,void 0,k.useContext(_s));if(process.env.NODE_ENV!=="production"&&a.name.indexOf("-")===-1){var l=t[hd];l&&(a=ld([a,"label:"+l+";"]))}s+=e.key+"-"+a.name;var c={};for(var d in t)Py.call(t,d)&&d!=="css"&&d!==fd&&(process.env.NODE_ENV==="production"||d!==hd)&&(c[d]=t[d]);return c.ref=r,c.className=s,k.createElement(k.Fragment,null,k.createElement(Ay,{cache:e,serialized:a,isStringTag:typeof o=="string"}),k.createElement(o,c))});process.env.NODE_ENV!=="production"&&(Iy.displayName="EmotionCssPropInternal");var Ss=typeof document<"u";function Dy(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):n+=o+" "}),n}var gd=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||Ss===!1&&e.compat!==void 0)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},Ly=function(e,r,n){gd(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var i="",s=r;do{var a=e.insert(r===s?"."+o:"",s,e.sheet,!0);!Ss&&a!==void 0&&(i+=a),s=s.next}while(s!==void 0);if(!Ss&&i.length!==0)return i}};function Fy(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var zy={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},pd=`You have illegal escape sequence in your template literal, most likely inside content's property value.
42
42
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
43
43
  You can read more about this here:
44
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,zy="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",By=/[A-Z]|^ms/g,md=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Es=function(e){return e.charCodeAt(1)===45},bd=function(e){return e!=null&&typeof e!="boolean"},Os=Lo(function(t){return Es(t)?t:t.replace(By,"-$&").toLowerCase()}),Uo=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(md,function(n,o,i){return pt={name:o,styles:i,next:pt},o})}return Fy[e]!==1&&!Es(e)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var $y=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,jy=["normal","none","initial","inherit","unset"],Hy=Uo,Wy=/^-ms-/,Vy=/-(.)/g,yd={};Uo=function(e,r){if(e==="content"&&(typeof r!="string"||jy.indexOf(r)===-1&&!$y.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var n=Hy(e,r);return n!==""&&!Es(e)&&e.indexOf("-")!==-1&&yd[e]===void 0&&(yd[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Wy,"ms-").replace(Vy,function(o,i){return i.toUpperCase()})+"?")),n}}var vd="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Mn(t,e,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(vd);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return pt={name:r.name,styles:r.styles,next:pt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)pt={name:n.name,styles:n.styles,next:pt},n=n.next;var o=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(o+=r.map),o}return Ry(t,e,r)}case"function":{if(t!==void 0){var i=pt,s=r(t);return pt=i,Mn(t,e,s)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var a=[],l=r.replace(md,function(d,u,f){var h="animation"+a.length;return a.push("const "+h+" = keyframes`"+f.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+h+"}"});a.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(a,["`"+l+"`"]).join(`
44
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,By="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",$y=/[A-Z]|^ms/g,md=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Es=function(e){return e.charCodeAt(1)===45},bd=function(e){return e!=null&&typeof e!="boolean"},Os=Lo(function(t){return Es(t)?t:t.replace($y,"-$&").toLowerCase()}),Uo=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(md,function(n,o,i){return pt={name:o,styles:i,next:pt},o})}return zy[e]!==1&&!Es(e)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var jy=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Hy=["normal","none","initial","inherit","unset"],Wy=Uo,Vy=/^-ms-/,Ry=/-(.)/g,yd={};Uo=function(e,r){if(e==="content"&&(typeof r!="string"||Hy.indexOf(r)===-1&&!jy.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var n=Wy(e,r);return n!==""&&!Es(e)&&e.indexOf("-")!==-1&&yd[e]===void 0&&(yd[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Vy,"ms-").replace(Ry,function(o,i){return i.toUpperCase()})+"?")),n}}var vd="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Mn(t,e,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(vd);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return pt={name:r.name,styles:r.styles,next:pt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)pt={name:n.name,styles:n.styles,next:pt},n=n.next;var o=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(o+=r.map),o}return Yy(t,e,r)}case"function":{if(t!==void 0){var i=pt,s=r(t);return pt=i,Mn(t,e,s)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var a=[],l=r.replace(md,function(d,u,f){var h="animation"+a.length;return a.push("const "+h+" = keyframes`"+f.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+h+"}"});a.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(a,["`"+l+"`"]).join(`
45
45
  `)+`
46
46
 
47
47
  You should wrap it with \`css\` like this:
48
48
 
49
- `+("css`"+l+"`"))}break}if(e==null)return r;var c=e[r];return c!==void 0?c:r}function Ry(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Mn(t,e,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")e!=null&&e[s]!==void 0?n+=i+"{"+e[s]+"}":bd(s)&&(n+=Os(i)+":"+Uo(i,s)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(vd);if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var a=0;a<s.length;a++)bd(s[a])&&(n+=Os(i)+":"+Uo(i,s[a])+";");else{var l=Mn(t,e,s);switch(i){case"animation":case"animationName":{n+=Os(i)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(zy),n+=i+"{"+l+"}"}}}}return n}var xd=/label:\s*([^\s;\n{]+)\s*(;|$)/g,wd;process.env.NODE_ENV!=="production"&&(wd=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var pt,Yy=function(e,r,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,i="";pt=void 0;var s=e[0];s==null||s.raw===void 0?(o=!1,i+=Mn(n,r,s)):(process.env.NODE_ENV!=="production"&&s[0]===void 0&&console.error(pd),i+=s[0]);for(var a=1;a<e.length;a++)i+=Mn(n,r,e[a]),o&&(process.env.NODE_ENV!=="production"&&s[a]===void 0&&console.error(pd),i+=s[a]);var l;process.env.NODE_ENV!=="production"&&(i=i.replace(wd,function(f){return l=f,""})),xd.lastIndex=0;for(var c="",d;(d=xd.exec(i))!==null;)c+="-"+d[1];var u=Ly(i)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:i,map:l,next:pt,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:i,next:pt}},Uy=Bb,Ky=function(e){return e!=="theme"},kd=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?Uy:Ky},Cd=function(e,r,n){var o;if(r){var i=r.shouldForwardProp;o=e.__emotion_forwardProp&&i?function(s){return e.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},_d=`You have illegal escape sequence in your template literal, most likely inside content's property value.
49
+ `+("css`"+l+"`"))}break}if(e==null)return r;var c=e[r];return c!==void 0?c:r}function Yy(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Mn(t,e,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")e!=null&&e[s]!==void 0?n+=i+"{"+e[s]+"}":bd(s)&&(n+=Os(i)+":"+Uo(i,s)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(vd);if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var a=0;a<s.length;a++)bd(s[a])&&(n+=Os(i)+":"+Uo(i,s[a])+";");else{var l=Mn(t,e,s);switch(i){case"animation":case"animationName":{n+=Os(i)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(By),n+=i+"{"+l+"}"}}}}return n}var xd=/label:\s*([^\s;\n{]+)\s*(;|$)/g,wd;process.env.NODE_ENV!=="production"&&(wd=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var pt,Uy=function(e,r,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,i="";pt=void 0;var s=e[0];s==null||s.raw===void 0?(o=!1,i+=Mn(n,r,s)):(process.env.NODE_ENV!=="production"&&s[0]===void 0&&console.error(pd),i+=s[0]);for(var a=1;a<e.length;a++)i+=Mn(n,r,e[a]),o&&(process.env.NODE_ENV!=="production"&&s[a]===void 0&&console.error(pd),i+=s[a]);var l;process.env.NODE_ENV!=="production"&&(i=i.replace(wd,function(f){return l=f,""})),xd.lastIndex=0;for(var c="",d;(d=xd.exec(i))!==null;)c+="-"+d[1];var u=Fy(i)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:i,map:l,next:pt,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:i,next:pt}},Ky=$b,qy=function(e){return e!=="theme"},kd=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?Ky:qy},Cd=function(e,r,n){var o;if(r){var i=r.shouldForwardProp;o=e.__emotion_forwardProp&&i?function(s){return e.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},_d=`You have illegal escape sequence in your template literal, most likely inside content's property value.
50
50
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
51
51
  You can read more about this here:
52
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,qy=typeof document<"u",Gy=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;gd(r,n,o);var i=dd(function(){return Iy(r,n,o)});if(!qy&&i!==void 0){for(var s,a=n.name,l=n.next;l!==void 0;)a+=" "+l.name,l=l.next;return k.createElement("style",(s={},s["data-emotion"]=r.key+" "+a,s.dangerouslySetInnerHTML={__html:i},s.nonce=r.sheet.nonce,s))}return null},Xy=function t(e,r){if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
53
- You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,i,s;r!==void 0&&(i=r.label,s=r.target);var a=Cd(e,r,n),l=a||kd(o),c=!l("as");return function(){var d=arguments,u=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(i!==void 0&&u.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)u.push.apply(u,d);else{process.env.NODE_ENV!=="production"&&d[0][0]===void 0&&console.error(_d),u.push(d[0][0]);for(var f=d.length,h=1;h<f;h++)process.env.NODE_ENV!=="production"&&d[0][h]===void 0&&console.error(_d),u.push(d[h],d[0][h])}var p=Cs(function(m,b,v){var y=c&&m.as||o,_="",x=[],w=m;if(m.theme==null){w={};for(var S in m)w[S]=m[S];w.theme=k.useContext(_s)}typeof m.className=="string"?_=Dy(b.registered,x,m.className):m.className!=null&&(_=m.className+" ");var T=Yy(u.concat(x),b.registered,w);_+=b.key+"-"+T.name,s!==void 0&&(_+=" "+s);var M=c&&a===void 0?kd(y):l,N={};for(var E in m)c&&E==="as"||M(E)&&(N[E]=m[E]);return N.className=_,N.ref=v,k.createElement(k.Fragment,null,k.createElement(Gy,{cache:b,serialized:T,isStringTag:typeof y=="string"}),k.createElement(y,N))});return p.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",p.defaultProps=e.defaultProps,p.__emotion_real=p,p.__emotion_base=o,p.__emotion_styles=u,p.__emotion_forwardProp=a,Object.defineProperty(p,"toString",{value:function(){return s===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+s}}),p.withComponent=function(m,b){return t(m,hs({},r,b,{shouldForwardProp:Cd(p,b,!0)})).apply(void 0,u)},p}},Zy=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],De=Xy.bind();Zy.forEach(function(t){De[t]=De(t)});var Sd={exports:{}};/*!
52
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Gy=typeof document<"u",Xy=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;gd(r,n,o);var i=dd(function(){return Ly(r,n,o)});if(!Gy&&i!==void 0){for(var s,a=n.name,l=n.next;l!==void 0;)a+=" "+l.name,l=l.next;return k.createElement("style",(s={},s["data-emotion"]=r.key+" "+a,s.dangerouslySetInnerHTML={__html:i},s.nonce=r.sheet.nonce,s))}return null},Zy=function t(e,r){if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
53
+ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,i,s;r!==void 0&&(i=r.label,s=r.target);var a=Cd(e,r,n),l=a||kd(o),c=!l("as");return function(){var d=arguments,u=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(i!==void 0&&u.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)u.push.apply(u,d);else{process.env.NODE_ENV!=="production"&&d[0][0]===void 0&&console.error(_d),u.push(d[0][0]);for(var f=d.length,h=1;h<f;h++)process.env.NODE_ENV!=="production"&&d[0][h]===void 0&&console.error(_d),u.push(d[h],d[0][h])}var p=Cs(function(m,b,v){var y=c&&m.as||o,_="",x=[],w=m;if(m.theme==null){w={};for(var S in m)w[S]=m[S];w.theme=k.useContext(_s)}typeof m.className=="string"?_=Dy(b.registered,x,m.className):m.className!=null&&(_=m.className+" ");var T=Uy(u.concat(x),b.registered,w);_+=b.key+"-"+T.name,s!==void 0&&(_+=" "+s);var M=c&&a===void 0?kd(y):l,N={};for(var E in m)c&&E==="as"||M(E)&&(N[E]=m[E]);return N.className=_,N.ref=v,k.createElement(k.Fragment,null,k.createElement(Xy,{cache:b,serialized:T,isStringTag:typeof y=="string"}),k.createElement(y,N))});return p.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",p.defaultProps=e.defaultProps,p.__emotion_real=p,p.__emotion_base=o,p.__emotion_styles=u,p.__emotion_forwardProp=a,Object.defineProperty(p,"toString",{value:function(){return s===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+s}}),p.withComponent=function(m,b){return t(m,hs({},r,b,{shouldForwardProp:Cd(p,b,!0)})).apply(void 0,u)},p}},Jy=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ie=Zy.bind();Jy.forEach(function(t){Ie[t]=Ie(t)});var Sd={exports:{}};/*!
54
54
  Copyright (c) 2018 Jed Watson.
55
55
  Licensed under the MIT License (MIT), see
56
56
  http://jedwatson.github.io/classnames
57
- */(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var n=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var s=typeof i;if(s==="string"||s==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var a=r.apply(null,i);a&&n.push(a)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var l in i)e.call(i,l)&&i[l]&&n.push(l)}}}return n.join(" ")}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(Sd);var Ne=Sd.exports,Jy=k.createContext(void 0),Qy=function(){var t=k.useContext(Jy);return t},ev=function(t){var e=k.useState(!!t&&typeof window<"u"&&window.matchMedia(t).matches),r=e[0],n=e[1];return k.useEffect(function(){if(t){var o=window.matchMedia(t),i=function(){o.matches!==r&&n(o.matches)};return i(),o.addEventListener("change",i),function(){return o.removeEventListener("change",i)}}},[r,t]),r},xe={root:"ps-sidebar-root",container:"ps-sidebar-container",image:"ps-sidebar-image",backdrop:"ps-sidebar-backdrop",collapsed:"ps-collapsed",toggled:"ps-toggled",rtl:"ps-rtl",broken:"ps-broken"},ae={root:"ps-menu-root",menuItemRoot:"ps-menuitem-root",subMenuRoot:"ps-submenu-root",button:"ps-menu-button",prefix:"ps-menu-prefix",suffix:"ps-menu-suffix",label:"ps-menu-label",icon:"ps-menu-icon",subMenuContent:"ps-submenu-content",SubMenuExpandIcon:"ps-submenu-expand-icon",disabled:"ps-disabled",active:"ps-active",open:"ps-open"},tv=De.div(Ed||(Ed=Ve([`
57
+ */(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var n=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var s=typeof i;if(s==="string"||s==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var a=r.apply(null,i);a&&n.push(a)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var l in i)e.call(i,l)&&i[l]&&n.push(l)}}}return n.join(" ")}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(Sd);var Ne=Sd.exports,Qy=k.createContext(void 0),ev=function(){var t=k.useContext(Qy);return t},tv=function(t){var e=k.useState(!!t&&typeof window<"u"&&window.matchMedia(t).matches),r=e[0],n=e[1];return k.useEffect(function(){if(t){var o=window.matchMedia(t),i=function(){o.matches!==r&&n(o.matches)};return i(),o.addEventListener("change",i),function(){return o.removeEventListener("change",i)}}},[r,t]),r},xe={root:"ps-sidebar-root",container:"ps-sidebar-container",image:"ps-sidebar-image",backdrop:"ps-sidebar-backdrop",collapsed:"ps-collapsed",toggled:"ps-toggled",rtl:"ps-rtl",broken:"ps-broken"},ae={root:"ps-menu-root",menuItemRoot:"ps-menuitem-root",subMenuRoot:"ps-submenu-root",button:"ps-menu-button",prefix:"ps-menu-prefix",suffix:"ps-menu-suffix",label:"ps-menu-label",icon:"ps-menu-icon",subMenuContent:"ps-submenu-content",SubMenuExpandIcon:"ps-submenu-expand-icon",disabled:"ps-disabled",active:"ps-active",open:"ps-open"},rv=Ie.div(Ed||(Ed=Ve([`
58
58
  position: fixed;
59
59
  top: 0px;
60
60
  right: 0px;
@@ -70,7 +70,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
70
70
  left: 0px;
71
71
  z-index: 1;
72
72
  background-color: rgb(0, 0, 0, 0.3);
73
- `]))),Ed,rv={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",always:"always",all:"all"},nv=De.aside(Od||(Od=Ve([`
73
+ `]))),Ed,nv={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",always:"always",all:"all"},ov=Ie.aside(Od||(Od=Ve([`
74
74
  position: relative;
75
75
  border-right-width: 1px;
76
76
  border-right-style: solid;
@@ -178,7 +178,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
178
178
  }
179
179
 
180
180
  `,`
181
- `])),function(t){var e=t.transitionDuration;return"width, left, right, ".concat(e,"ms")},function(t){var e=t.width;return e},function(t){var e=t.width;return e},xe.collapsed,function(t){var e=t.collapsedWidth;return e},function(t){var e=t.collapsedWidth;return e},xe.rtl,xe.broken,function(t){var e=t.rtl,r=t.width;return e?"":"left: -".concat(r,";")},xe.collapsed,function(t){var e=t.rtl,r=t.collapsedWidth;return e?"":"left: -".concat(r,"; ")},xe.toggled,function(t){var e=t.rtl;return e?"":"left: 0;"},xe.rtl,function(t){var e=t.width;return e},xe.collapsed,function(t){var e=t.collapsedWidth;return e},xe.toggled,function(t){var e=t.rootStyles;return e}),ov=De.div(Td||(Td=Ve([`
181
+ `])),function(t){var e=t.transitionDuration;return"width, left, right, ".concat(e,"ms")},function(t){var e=t.width;return e},function(t){var e=t.width;return e},xe.collapsed,function(t){var e=t.collapsedWidth;return e},function(t){var e=t.collapsedWidth;return e},xe.rtl,xe.broken,function(t){var e=t.rtl,r=t.width;return e?"":"left: -".concat(r,";")},xe.collapsed,function(t){var e=t.rtl,r=t.collapsedWidth;return e?"":"left: -".concat(r,"; ")},xe.toggled,function(t){var e=t.rtl;return e?"":"left: 0;"},xe.rtl,function(t){var e=t.width;return e},xe.collapsed,function(t){var e=t.collapsedWidth;return e},xe.toggled,function(t){var e=t.rootStyles;return e}),iv=Ie.div(Td||(Td=Ve([`
182
182
  position: relative;
183
183
  height: 100%;
184
184
  overflow-y: auto;
@@ -194,7 +194,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
194
194
  z-index: 3;
195
195
 
196
196
  `,`
197
- `])),function(t){var e=t.backgroundColor;return e?"background-color:".concat(e,";"):""}),iv=De.img(Nd||(Nd=Ve([`
197
+ `])),function(t){var e=t.backgroundColor;return e?"background-color:".concat(e,";"):""}),sv=Ie.img(Nd||(Nd=Ve([`
198
198
  &.`,` {
199
199
  width: 100%;
200
200
  height: 100%;
@@ -216,7 +216,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
216
216
  top: 0;
217
217
  z-index: 2;
218
218
  }
219
- `])),xe.image),Ko=k.createContext({collapsed:!1,toggled:!1,rtl:!1,transitionDuration:300}),sv=k.forwardRef(function(t,e){var r,n=t.collapsed,o=t.toggled,i=t.onBackdropClick,s=t.onBreakPoint,a=t.width,l=a===void 0?"250px":a,c=t.collapsedWidth,d=c===void 0?"80px":c,u=t.defaultCollapsed,f=t.className,h=t.children,p=t.breakPoint,m=t.customBreakPoint,b=t.backgroundColor,v=b===void 0?"rgb(249, 249, 249, 0.7)":b,y=t.transitionDuration,_=y===void 0?300:y,x=t.image,w=t.rtl,S=t.rootStyles,T=hr(t,["collapsed","toggled","onBackdropClick","onBreakPoint","width","collapsedWidth","defaultCollapsed","className","children","breakPoint","customBreakPoint","backgroundColor","transitionDuration","image","rtl","rootStyles"]),M=function(){if(m)return"(max-width: ".concat(m,")");if(p)return["xs","sm","md","lg","xl","xxl"].includes(p)?"(max-width: ".concat(rv[p],")"):p==="always"||p==="all"?(p==="always"&&console.warn('The "always" breakPoint is deprecated and will be removed in future release. Please use the "all" breakPoint instead.'),"screen"):"(max-width: ".concat(p,")")},N=k.useRef();N.current=function(B){s==null||s(B)};var E=ev(M()),I=k.useState(!1),A=I[0],D=I[1],O=Qy(),P=n??(!A&&u?!0:O==null?void 0:O.collapsed),L=o??(O==null?void 0:O.toggled),z=function(){i==null||i(),O==null||O.updateSidebarState({toggled:!1})};return k.useEffect(function(){var B;(B=N.current)===null||B===void 0||B.call(N,E)},[E]),k.useEffect(function(){O==null||O.updateSidebarState({broken:E,rtl:w,transitionDuration:_})},[E,O==null?void 0:O.updateSidebarState,w,_]),k.useEffect(function(){A||(O==null||O.updateSidebarState({collapsed:u}),D(!0))},[u,A,O==null?void 0:O.updateSidebarState]),k.createElement(Ko.Provider,{value:{collapsed:P,toggled:L,rtl:w,transitionDuration:_}},k.createElement(nv,tt({ref:e,"data-testid":"".concat(xe.root,"-test-id"),rtl:w,rootStyles:S,width:l,collapsedWidth:d,transitionDuration:_,className:Ne(xe.root,(r={},r[xe.collapsed]=P,r[xe.toggled]=L,r[xe.broken]=E,r[xe.rtl]=w,r),f)},T),k.createElement(ov,{"data-testid":"".concat(xe.container,"-test-id"),className:xe.container,backgroundColor:v},h),x&&k.createElement(iv,{"data-testid":"".concat(xe.image,"-test-id"),src:x,alt:"sidebar background",className:xe.image}),E&&L&&k.createElement(tv,{"data-testid":"".concat(xe.backdrop,"-test-id"),role:"button",tabIndex:0,"aria-label":"backdrop",onClick:z,onKeyPress:z,className:xe.backdrop})))}),Od,Td,Nd,Md=De.ul(Pd||(Pd=Ve([`
219
+ `])),xe.image),Ko=k.createContext({collapsed:!1,toggled:!1,rtl:!1,transitionDuration:300}),av=k.forwardRef(function(t,e){var r,n=t.collapsed,o=t.toggled,i=t.onBackdropClick,s=t.onBreakPoint,a=t.width,l=a===void 0?"250px":a,c=t.collapsedWidth,d=c===void 0?"80px":c,u=t.defaultCollapsed,f=t.className,h=t.children,p=t.breakPoint,m=t.customBreakPoint,b=t.backgroundColor,v=b===void 0?"rgb(249, 249, 249, 0.7)":b,y=t.transitionDuration,_=y===void 0?300:y,x=t.image,w=t.rtl,S=t.rootStyles,T=hr(t,["collapsed","toggled","onBackdropClick","onBreakPoint","width","collapsedWidth","defaultCollapsed","className","children","breakPoint","customBreakPoint","backgroundColor","transitionDuration","image","rtl","rootStyles"]),M=function(){if(m)return"(max-width: ".concat(m,")");if(p)return["xs","sm","md","lg","xl","xxl"].includes(p)?"(max-width: ".concat(nv[p],")"):p==="always"||p==="all"?(p==="always"&&console.warn('The "always" breakPoint is deprecated and will be removed in future release. Please use the "all" breakPoint instead.'),"screen"):"(max-width: ".concat(p,")")},N=k.useRef();N.current=function(B){s==null||s(B)};var E=tv(M()),D=k.useState(!1),A=D[0],I=D[1],O=ev(),P=n??(!A&&u?!0:O==null?void 0:O.collapsed),L=o??(O==null?void 0:O.toggled),z=function(){i==null||i(),O==null||O.updateSidebarState({toggled:!1})};return k.useEffect(function(){var B;(B=N.current)===null||B===void 0||B.call(N,E)},[E]),k.useEffect(function(){O==null||O.updateSidebarState({broken:E,rtl:w,transitionDuration:_})},[E,O==null?void 0:O.updateSidebarState,w,_]),k.useEffect(function(){A||(O==null||O.updateSidebarState({collapsed:u}),I(!0))},[u,A,O==null?void 0:O.updateSidebarState]),k.createElement(Ko.Provider,{value:{collapsed:P,toggled:L,rtl:w,transitionDuration:_}},k.createElement(ov,tt({ref:e,"data-testid":"".concat(xe.root,"-test-id"),rtl:w,rootStyles:S,width:l,collapsedWidth:d,transitionDuration:_,className:Ne(xe.root,(r={},r[xe.collapsed]=P,r[xe.toggled]=L,r[xe.broken]=E,r[xe.rtl]=w,r),f)},T),k.createElement(iv,{"data-testid":"".concat(xe.container,"-test-id"),className:xe.container,backgroundColor:v},h),x&&k.createElement(sv,{"data-testid":"".concat(xe.image,"-test-id"),src:x,alt:"sidebar background",className:xe.image}),E&&L&&k.createElement(rv,{"data-testid":"".concat(xe.backdrop,"-test-id"),role:"button",tabIndex:0,"aria-label":"backdrop",onClick:z,onKeyPress:z,className:xe.backdrop})))}),Od,Td,Nd,Md=Ie.ul(Pd||(Pd=Ve([`
220
220
  list-style-type: none;
221
221
  padding: 0;
222
222
  margin: 0;
@@ -224,7 +224,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
224
224
  list-style-type: none;
225
225
  padding: 0;
226
226
  margin: 0;
227
- `]))),Pd,av=De.nav(Dd||(Dd=Ve([`
227
+ `]))),Pd,lv=Ie.nav(Id||(Id=Ve([`
228
228
  &.`,` {
229
229
  `,`
230
230
  }
@@ -232,7 +232,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
232
232
  &.`,` {
233
233
  `,`
234
234
  }
235
- `])),ae.root,function(t){var e=t.rootStyles;return e}),Ad=k.createContext(void 0),qo=k.createContext(0),lv=function(t,e){var r=t.children,n=t.className,o=t.transitionDuration,i=o===void 0?300:o,s=t.closeOnClick,a=s===void 0?!1:s,l=t.rootStyles,c=t.menuItemStyles,d=t.renderExpandIcon,u=hr(t,["children","className","transitionDuration","closeOnClick","rootStyles","menuItemStyles","renderExpandIcon"]),f=k.useMemo(function(){return{transitionDuration:i,closeOnClick:a,menuItemStyles:c,renderExpandIcon:d}},[i,a,c,d]);return k.createElement(Ad.Provider,{value:f},k.createElement(qo.Provider,{value:0},k.createElement(av,tt({ref:e,className:Ne(ae.root,n),rootStyles:l},u),k.createElement(Md,null,r))))},cv=k.forwardRef(lv),Dd,Ts=function(){var t=k.useContext(Ad);if(t===void 0)throw new Error("Menu Component is required!");return t},dv=De.div(Id||(Id=Ve([`
235
+ `])),ae.root,function(t){var e=t.rootStyles;return e}),Ad=k.createContext(void 0),qo=k.createContext(0),cv=function(t,e){var r=t.children,n=t.className,o=t.transitionDuration,i=o===void 0?300:o,s=t.closeOnClick,a=s===void 0?!1:s,l=t.rootStyles,c=t.menuItemStyles,d=t.renderExpandIcon,u=hr(t,["children","className","transitionDuration","closeOnClick","rootStyles","menuItemStyles","renderExpandIcon"]),f=k.useMemo(function(){return{transitionDuration:i,closeOnClick:a,menuItemStyles:c,renderExpandIcon:d}},[i,a,c,d]);return k.createElement(Ad.Provider,{value:f},k.createElement(qo.Provider,{value:0},k.createElement(lv,tt({ref:e,className:Ne(ae.root,n),rootStyles:l},u),k.createElement(Md,null,r))))},dv=k.forwardRef(cv),Id,Ts=function(){var t=k.useContext(Ad);if(t===void 0)throw new Error("Menu Component is required!");return t},uv=Ie.div(Dd||(Dd=Ve([`
236
236
  height: 0px;
237
237
  overflow: hidden;
238
238
  z-index: 999;
@@ -277,7 +277,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
277
277
  `):`
278
278
  position: static!important;
279
279
  transform: none!important;
280
- `},function(t){var e=t.rootStyles;return e}),uv=function(t,e){var r=t.children,n=t.open,o=t.openWhenCollapsed,i=t.firstLevel,s=t.collapsed,a=t.defaultOpen,l=hr(t,["children","open","openWhenCollapsed","firstLevel","collapsed","defaultOpen"]),c=Ts().transitionDuration,d=k.useState(a)[0];return k.createElement(dv,tt({"data-testid":"".concat(ae.subMenuContent,"-test-id"),ref:e,firstLevel:i,collapsed:s,open:n,openWhenCollapsed:o,transitionDuration:c,defaultOpen:d},l),k.createElement(Md,null,r))},fv=k.forwardRef(uv),Id,Ld=De.span(Fd||(Fd=Ve([`
280
+ `},function(t){var e=t.rootStyles;return e}),fv=function(t,e){var r=t.children,n=t.open,o=t.openWhenCollapsed,i=t.firstLevel,s=t.collapsed,a=t.defaultOpen,l=hr(t,["children","open","openWhenCollapsed","firstLevel","collapsed","defaultOpen"]),c=Ts().transitionDuration,d=k.useState(a)[0];return k.createElement(uv,tt({"data-testid":"".concat(ae.subMenuContent,"-test-id"),ref:e,firstLevel:i,collapsed:s,open:n,openWhenCollapsed:o,transitionDuration:c,defaultOpen:d},l),k.createElement(Md,null,r))},hv=k.forwardRef(fv),Dd,Ld=Ie.span(Fd||(Fd=Ve([`
281
281
  flex-grow: 1;
282
282
  overflow: hidden;
283
283
  text-overflow: ellipsis;
@@ -291,7 +291,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
291
291
  white-space: nowrap;
292
292
 
293
293
  `,`;
294
- `])),function(t){var e=t.rootStyles;return e}),Fd,zd=De.span(Bd||(Bd=Ve([`
294
+ `])),function(t){var e=t.rootStyles;return e}),Fd,zd=Ie.span(Bd||(Bd=Ve([`
295
295
  width: 35px;
296
296
  min-width: 35px;
297
297
  height: 35px;
@@ -321,7 +321,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
321
321
  `,`
322
322
 
323
323
  `,`;
324
- `])),function(t){var e=t.rtl;return e?"margin-left: 10px;":"margin-right: 10px;"},function(t){var e=t.rootStyles;return e}),Bd,$d=De.span(jd||(jd=Ve([`
324
+ `])),function(t){var e=t.rtl;return e?"margin-left: 10px;":"margin-right: 10px;"},function(t){var e=t.rootStyles;return e}),Bd,$d=Ie.span(jd||(jd=Ve([`
325
325
  `,`
326
326
  opacity: `,`;
327
327
  transition: opacity `,`ms;
@@ -333,7 +333,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
333
333
  transition: opacity `,`ms;
334
334
 
335
335
  `,`;
336
- `])),function(t){var e=t.rtl;return e?"margin-left: 5px;":"margin-right: 5px;"},function(t){var e=t.firstLevel,r=t.collapsed;return e&&r?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),jd,Hd=De.span(Wd||(Wd=Ve([`
336
+ `])),function(t){var e=t.rtl;return e?"margin-left: 5px;":"margin-right: 5px;"},function(t){var e=t.firstLevel,r=t.collapsed;return e&&r?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),jd,Hd=Ie.span(Wd||(Wd=Ve([`
337
337
  margin-right: 5px;
338
338
  margin-left: 5px;
339
339
  opacity: `,`;
@@ -347,7 +347,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
347
347
  transition: opacity `,`ms;
348
348
 
349
349
  `,`;
350
- `])),function(t){var e=t.firstLevel,r=t.collapsed;return e&&r?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),Wd,hv=De.span(Vd||(Vd=Ve([`
350
+ `])),function(t){var e=t.firstLevel,r=t.collapsed;return e&&r?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),Wd,gv=Ie.span(Vd||(Vd=Ve([`
351
351
  `,`
352
352
 
353
353
  `,`;
@@ -361,7 +361,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
361
361
  top: 50%;
362
362
  transform: translateY(-50%);
363
363
 
364
- `)},function(t){var e=t.rootStyles;return e}),gv=De.span(Rd||(Rd=Ve([`
364
+ `)},function(t){var e=t.rootStyles;return e}),pv=Ie.span(Rd||(Rd=Ve([`
365
365
  display: inline-block;
366
366
  transition: transform 0.3s;
367
367
  `,`
@@ -382,7 +382,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
382
382
  border-top: 2px solid currentcolor;
383
383
  `:` border-right: 2px solid currentcolor;
384
384
  border-bottom: 2px solid currentcolor;
385
- `},function(t){var e=t.open,r=t.rtl;return e?r?"-135deg":"45deg":"-45deg"}),pv=De.span(Yd||(Yd=Ve([`
385
+ `},function(t){var e=t.open,r=t.rtl;return e?r?"-135deg":"45deg":"-45deg"}),mv=Ie.span(Yd||(Yd=Ve([`
386
386
  width: 5px;
387
387
  height: 5px;
388
388
  background-color: currentcolor;
@@ -394,11 +394,11 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
394
394
  background-color: currentcolor;
395
395
  border-radius: 50%;
396
396
  display: inline-block;
397
- `]))),Vd,Rd,Yd,Ze="top",lt="bottom",ct="right",Je="left",Go="auto",Pn=[Ze,lt,ct,Je],Lr="start",An="end",mv="clippingParents",Ud="viewport",Dn="popper",bv="reference",Kd=Pn.reduce(function(t,e){return t.concat([e+"-"+Lr,e+"-"+An])},[]),qd=[].concat(Pn,[Go]).reduce(function(t,e){return t.concat([e,e+"-"+Lr,e+"-"+An])},[]),yv="beforeRead",vv="read",xv="afterRead",wv="beforeMain",kv="main",Cv="afterMain",_v="beforeWrite",Sv="write",Ev="afterWrite",Ns=[yv,vv,xv,wv,kv,Cv,_v,Sv,Ev];function _t(t){return t?(t.nodeName||"").toLowerCase():null}function dt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function pr(t){var e=dt(t).Element;return t instanceof e||t instanceof Element}function nt(t){var e=dt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Ms(t){if(typeof ShadowRoot>"u")return!1;var e=dt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Ov(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},i=e.elements[r];!nt(i)||!_t(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function Tv(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],i=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),a=s.reduce(function(l,c){return l[c]="",l},{});!nt(o)||!_t(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var Nv={name:"applyStyles",enabled:!0,phase:"write",fn:Ov,effect:Tv,requires:["computeStyles"]};function mt(t){return t.split("-")[0]}var mr=Math.max,Xo=Math.min,Fr=Math.round;function Ps(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Gd(){return!/^((?!chrome|android).)*safari/i.test(Ps())}function zr(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,i=1;e&&nt(t)&&(o=t.offsetWidth>0&&Fr(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Fr(n.height)/t.offsetHeight||1);var s=pr(t)?dt(t):window,a=s.visualViewport,l=!Gd()&&r,c=(n.left+(l&&a?a.offsetLeft:0))/o,d=(n.top+(l&&a?a.offsetTop:0))/i,u=n.width/o,f=n.height/i;return{width:u,height:f,top:d,right:c+u,bottom:d+f,left:c,x:c,y:d}}function As(t){var e=zr(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function Xd(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Ms(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function bt(t){return dt(t).getComputedStyle(t)}function Mv(t){return["table","td","th"].indexOf(_t(t))>=0}function Gt(t){return((pr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Zo(t){return _t(t)==="html"?t:t.assignedSlot||t.parentNode||(Ms(t)?t.host:null)||Gt(t)}function Zd(t){return!nt(t)||bt(t).position==="fixed"?null:t.offsetParent}function Pv(t){var e=/firefox/i.test(Ps()),r=/Trident/i.test(Ps());if(r&&nt(t)){var n=bt(t);if(n.position==="fixed")return null}var o=Zo(t);for(Ms(o)&&(o=o.host);nt(o)&&["html","body"].indexOf(_t(o))<0;){var i=bt(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function In(t){for(var e=dt(t),r=Zd(t);r&&Mv(r)&&bt(r).position==="static";)r=Zd(r);return r&&(_t(r)==="html"||_t(r)==="body"&&bt(r).position==="static")?e:r||Pv(t)||e}function Ds(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ln(t,e,r){return mr(t,Xo(e,r))}function Av(t,e,r){var n=Ln(t,e,r);return n>r?r:n}function Jd(){return{top:0,right:0,bottom:0,left:0}}function Qd(t){return Object.assign({},Jd(),t)}function eu(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var Dv=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Qd(typeof e!="number"?e:eu(e,Pn))};function Iv(t){var e,r=t.state,n=t.name,o=t.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=mt(r.placement),l=Ds(a),c=[Je,ct].indexOf(a)>=0,d=c?"height":"width";if(!(!i||!s)){var u=Dv(o.padding,r),f=As(i),h=l==="y"?Ze:Je,p=l==="y"?lt:ct,m=r.rects.reference[d]+r.rects.reference[l]-s[l]-r.rects.popper[d],b=s[l]-r.rects.reference[l],v=In(i),y=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,_=m/2-b/2,x=u[h],w=y-f[d]-u[p],S=y/2-f[d]/2+_,T=Ln(x,S,w),M=l;r.modifiersData[n]=(e={},e[M]=T,e.centerOffset=T-S,e)}}function Lv(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;if(o!=null&&!(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(nt(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Xd(e.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=o}}var Fv={name:"arrow",enabled:!0,phase:"main",fn:Iv,effect:Lv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Br(t){return t.split("-")[1]}var zv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bv(t){var e=t.x,r=t.y,n=window,o=n.devicePixelRatio||1;return{x:Fr(e*o)/o||0,y:Fr(r*o)/o||0}}function tu(t){var e,r=t.popper,n=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,f=s.x,h=f===void 0?0:f,p=s.y,m=p===void 0?0:p,b=typeof d=="function"?d({x:h,y:m}):{x:h,y:m};h=b.x,m=b.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),_=Je,x=Ze,w=window;if(c){var S=In(r),T="clientHeight",M="clientWidth";if(S===dt(r)&&(S=Gt(r),bt(S).position!=="static"&&a==="absolute"&&(T="scrollHeight",M="scrollWidth")),S=S,o===Ze||(o===Je||o===ct)&&i===An){x=lt;var N=u&&S===w&&w.visualViewport?w.visualViewport.height:S[T];m-=N-n.height,m*=l?1:-1}if(o===Je||(o===Ze||o===lt)&&i===An){_=ct;var E=u&&S===w&&w.visualViewport?w.visualViewport.width:S[M];h-=E-n.width,h*=l?1:-1}}var I=Object.assign({position:a},c&&zv),A=d===!0?Bv({x:h,y:m}):{x:h,y:m};if(h=A.x,m=A.y,l){var D;return Object.assign({},I,(D={},D[x]=y?"0":"",D[_]=v?"0":"",D.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",D))}return Object.assign({},I,(e={},e[x]=y?m+"px":"",e[_]=v?h+"px":"",e.transform="",e))}function $v(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,s=i===void 0?!0:i,a=r.roundOffsets,l=a===void 0?!0:a;if(process.env.NODE_ENV!=="production"){var c=bt(e.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(u){return c.indexOf(u)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
397
+ `]))),Vd,Rd,Yd,Ze="top",lt="bottom",ct="right",Je="left",Go="auto",Pn=[Ze,lt,ct,Je],Lr="start",An="end",bv="clippingParents",Ud="viewport",In="popper",yv="reference",Kd=Pn.reduce(function(t,e){return t.concat([e+"-"+Lr,e+"-"+An])},[]),qd=[].concat(Pn,[Go]).reduce(function(t,e){return t.concat([e,e+"-"+Lr,e+"-"+An])},[]),vv="beforeRead",xv="read",wv="afterRead",kv="beforeMain",Cv="main",_v="afterMain",Sv="beforeWrite",Ev="write",Ov="afterWrite",Ns=[vv,xv,wv,kv,Cv,_v,Sv,Ev,Ov];function _t(t){return t?(t.nodeName||"").toLowerCase():null}function dt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function pr(t){var e=dt(t).Element;return t instanceof e||t instanceof Element}function nt(t){var e=dt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Ms(t){if(typeof ShadowRoot>"u")return!1;var e=dt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Tv(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},i=e.elements[r];!nt(i)||!_t(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function Nv(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],i=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),a=s.reduce(function(l,c){return l[c]="",l},{});!nt(o)||!_t(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var Mv={name:"applyStyles",enabled:!0,phase:"write",fn:Tv,effect:Nv,requires:["computeStyles"]};function mt(t){return t.split("-")[0]}var mr=Math.max,Xo=Math.min,Fr=Math.round;function Ps(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Gd(){return!/^((?!chrome|android).)*safari/i.test(Ps())}function zr(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,i=1;e&&nt(t)&&(o=t.offsetWidth>0&&Fr(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Fr(n.height)/t.offsetHeight||1);var s=pr(t)?dt(t):window,a=s.visualViewport,l=!Gd()&&r,c=(n.left+(l&&a?a.offsetLeft:0))/o,d=(n.top+(l&&a?a.offsetTop:0))/i,u=n.width/o,f=n.height/i;return{width:u,height:f,top:d,right:c+u,bottom:d+f,left:c,x:c,y:d}}function As(t){var e=zr(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function Xd(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Ms(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function bt(t){return dt(t).getComputedStyle(t)}function Pv(t){return["table","td","th"].indexOf(_t(t))>=0}function Gt(t){return((pr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Zo(t){return _t(t)==="html"?t:t.assignedSlot||t.parentNode||(Ms(t)?t.host:null)||Gt(t)}function Zd(t){return!nt(t)||bt(t).position==="fixed"?null:t.offsetParent}function Av(t){var e=/firefox/i.test(Ps()),r=/Trident/i.test(Ps());if(r&&nt(t)){var n=bt(t);if(n.position==="fixed")return null}var o=Zo(t);for(Ms(o)&&(o=o.host);nt(o)&&["html","body"].indexOf(_t(o))<0;){var i=bt(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Dn(t){for(var e=dt(t),r=Zd(t);r&&Pv(r)&&bt(r).position==="static";)r=Zd(r);return r&&(_t(r)==="html"||_t(r)==="body"&&bt(r).position==="static")?e:r||Av(t)||e}function Is(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ln(t,e,r){return mr(t,Xo(e,r))}function Iv(t,e,r){var n=Ln(t,e,r);return n>r?r:n}function Jd(){return{top:0,right:0,bottom:0,left:0}}function Qd(t){return Object.assign({},Jd(),t)}function eu(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var Dv=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Qd(typeof e!="number"?e:eu(e,Pn))};function Lv(t){var e,r=t.state,n=t.name,o=t.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=mt(r.placement),l=Is(a),c=[Je,ct].indexOf(a)>=0,d=c?"height":"width";if(!(!i||!s)){var u=Dv(o.padding,r),f=As(i),h=l==="y"?Ze:Je,p=l==="y"?lt:ct,m=r.rects.reference[d]+r.rects.reference[l]-s[l]-r.rects.popper[d],b=s[l]-r.rects.reference[l],v=Dn(i),y=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,_=m/2-b/2,x=u[h],w=y-f[d]-u[p],S=y/2-f[d]/2+_,T=Ln(x,S,w),M=l;r.modifiersData[n]=(e={},e[M]=T,e.centerOffset=T-S,e)}}function Fv(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;if(o!=null&&!(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(nt(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Xd(e.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=o}}var zv={name:"arrow",enabled:!0,phase:"main",fn:Lv,effect:Fv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Br(t){return t.split("-")[1]}var Bv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $v(t){var e=t.x,r=t.y,n=window,o=n.devicePixelRatio||1;return{x:Fr(e*o)/o||0,y:Fr(r*o)/o||0}}function tu(t){var e,r=t.popper,n=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,f=s.x,h=f===void 0?0:f,p=s.y,m=p===void 0?0:p,b=typeof d=="function"?d({x:h,y:m}):{x:h,y:m};h=b.x,m=b.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),_=Je,x=Ze,w=window;if(c){var S=Dn(r),T="clientHeight",M="clientWidth";if(S===dt(r)&&(S=Gt(r),bt(S).position!=="static"&&a==="absolute"&&(T="scrollHeight",M="scrollWidth")),S=S,o===Ze||(o===Je||o===ct)&&i===An){x=lt;var N=u&&S===w&&w.visualViewport?w.visualViewport.height:S[T];m-=N-n.height,m*=l?1:-1}if(o===Je||(o===Ze||o===lt)&&i===An){_=ct;var E=u&&S===w&&w.visualViewport?w.visualViewport.width:S[M];h-=E-n.width,h*=l?1:-1}}var D=Object.assign({position:a},c&&Bv),A=d===!0?$v({x:h,y:m}):{x:h,y:m};if(h=A.x,m=A.y,l){var I;return Object.assign({},D,(I={},I[x]=y?"0":"",I[_]=v?"0":"",I.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",I))}return Object.assign({},D,(e={},e[x]=y?m+"px":"",e[_]=v?h+"px":"",e.transform="",e))}function jv(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,s=i===void 0?!0:i,a=r.roundOffsets,l=a===void 0?!0:a;if(process.env.NODE_ENV!=="production"){var c=bt(e.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(u){return c.indexOf(u)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
398
398
 
399
399
  `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
400
400
 
401
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var d={placement:mt(e.placement),variation:Br(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,tu(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,tu(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var jv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$v,data:{}},Jo={passive:!0};function Hv(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,i=o===void 0?!0:o,s=n.resize,a=s===void 0?!0:s,l=dt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",r.update,Jo)}),a&&l.addEventListener("resize",r.update,Jo),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",r.update,Jo)}),a&&l.removeEventListener("resize",r.update,Jo)}}var Wv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Hv,data:{}},Vv={left:"right",right:"left",bottom:"top",top:"bottom"};function Qo(t){return t.replace(/left|right|bottom|top/g,function(e){return Vv[e]})}var Rv={start:"end",end:"start"};function ru(t){return t.replace(/start|end/g,function(e){return Rv[e]})}function Is(t){var e=dt(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Ls(t){return zr(Gt(t)).left+Is(t).scrollLeft}function Yv(t,e){var r=dt(t),n=Gt(t),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=Gd();(c||!c&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Ls(t),y:l}}function Uv(t){var e,r=Gt(t),n=Is(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=mr(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=mr(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Ls(t),l=-n.scrollTop;return bt(o||r).direction==="rtl"&&(a+=mr(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Fs(t){var e=bt(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function nu(t){return["html","body","#document"].indexOf(_t(t))>=0?t.ownerDocument.body:nt(t)&&Fs(t)?t:nu(Zo(t))}function Fn(t,e){var r;e===void 0&&(e=[]);var n=nu(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),i=dt(n),s=o?[i].concat(i.visualViewport||[],Fs(n)?n:[]):n,a=e.concat(s);return o?a:a.concat(Fn(Zo(s)))}function zs(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Kv(t,e){var r=zr(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function ou(t,e,r){return e===Ud?zs(Yv(t,r)):pr(e)?Kv(e,r):zs(Uv(Gt(t)))}function qv(t){var e=Fn(Zo(t)),r=["absolute","fixed"].indexOf(bt(t).position)>=0,n=r&&nt(t)?In(t):t;return pr(n)?e.filter(function(o){return pr(o)&&Xd(o,n)&&_t(o)!=="body"}):[]}function Gv(t,e,r,n){var o=e==="clippingParents"?qv(t):[].concat(e),i=[].concat(o,[r]),s=i[0],a=i.reduce(function(l,c){var d=ou(t,c,n);return l.top=mr(d.top,l.top),l.right=Xo(d.right,l.right),l.bottom=Xo(d.bottom,l.bottom),l.left=mr(d.left,l.left),l},ou(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function iu(t){var e=t.reference,r=t.element,n=t.placement,o=n?mt(n):null,i=n?Br(n):null,s=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,l;switch(o){case Ze:l={x:s,y:e.y-r.height};break;case lt:l={x:s,y:e.y+e.height};break;case ct:l={x:e.x+e.width,y:a};break;case Je:l={x:e.x-r.width,y:a};break;default:l={x:e.x,y:e.y}}var c=o?Ds(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case Lr:l[c]=l[c]-(e[d]/2-r[d]/2);break;case An:l[c]=l[c]+(e[d]/2-r[d]/2);break}}return l}function zn(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,i=r.strategy,s=i===void 0?t.strategy:i,a=r.boundary,l=a===void 0?mv:a,c=r.rootBoundary,d=c===void 0?Ud:c,u=r.elementContext,f=u===void 0?Dn:u,h=r.altBoundary,p=h===void 0?!1:h,m=r.padding,b=m===void 0?0:m,v=Qd(typeof b!="number"?b:eu(b,Pn)),y=f===Dn?bv:Dn,_=t.rects.popper,x=t.elements[p?y:f],w=Gv(pr(x)?x:x.contextElement||Gt(t.elements.popper),l,d,s),S=zr(t.elements.reference),T=iu({reference:S,element:_,placement:o}),M=zs(Object.assign({},_,T)),N=f===Dn?M:S,E={top:w.top-N.top+v.top,bottom:N.bottom-w.bottom+v.bottom,left:w.left-N.left+v.left,right:N.right-w.right+v.right},I=t.modifiersData.offset;if(f===Dn&&I){var A=I[o];Object.keys(E).forEach(function(D){var O=[ct,lt].indexOf(D)>=0?1:-1,P=[Ze,lt].indexOf(D)>=0?"y":"x";E[D]+=A[P]*O})}return E}function Xv(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?qd:l,d=Br(n),u=d?a?Kd:Kd.filter(function(p){return Br(p)===d}):Pn,f=u.filter(function(p){return c.indexOf(p)>=0});f.length===0&&(f=u,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var h=f.reduce(function(p,m){return p[m]=zn(t,{placement:m,boundary:o,rootBoundary:i,padding:s})[mt(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function Zv(t){if(mt(t)===Go)return[];var e=Qo(t);return[ru(t),e,ru(e)]}function Jv(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!0:s,l=r.fallbackPlacements,c=r.padding,d=r.boundary,u=r.rootBoundary,f=r.altBoundary,h=r.flipVariations,p=h===void 0?!0:h,m=r.allowedAutoPlacements,b=e.options.placement,v=mt(b),y=v===b,_=l||(y||!p?[Qo(b)]:Zv(b)),x=[b].concat(_).reduce(function(U,K){return U.concat(mt(K)===Go?Xv(e,{placement:K,boundary:d,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:m}):K)},[]),w=e.rects.reference,S=e.rects.popper,T=new Map,M=!0,N=x[0],E=0;E<x.length;E++){var I=x[E],A=mt(I),D=Br(I)===Lr,O=[Ze,lt].indexOf(A)>=0,P=O?"width":"height",L=zn(e,{placement:I,boundary:d,rootBoundary:u,altBoundary:f,padding:c}),z=O?D?ct:Je:D?lt:Ze;w[P]>S[P]&&(z=Qo(z));var B=Qo(z),j=[];if(i&&j.push(L[A]<=0),a&&j.push(L[z]<=0,L[B]<=0),j.every(function(U){return U})){N=I,M=!1;break}T.set(I,j)}if(M)for(var $=p?3:1,W=function(K){var G=x.find(function(de){var X=T.get(de);if(X)return X.slice(0,K).every(function(oe){return oe})});if(G)return N=G,"break"},V=$;V>0;V--){var Y=W(V);if(Y==="break")break}e.placement!==N&&(e.modifiersData[n]._skip=!0,e.placement=N,e.reset=!0)}}var Qv={name:"flip",enabled:!0,phase:"main",fn:Jv,requiresIfExists:["offset"],data:{_skip:!1}};function su(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function au(t){return[Ze,ct,lt,Je].some(function(e){return t[e]>=0})}function ex(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=zn(e,{elementContext:"reference"}),a=zn(e,{altBoundary:!0}),l=su(s,n),c=su(a,o,i),d=au(l),u=au(c);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}var tx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ex};function rx(t,e,r){var n=mt(t),o=[Je,Ze].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Je,ct].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function nx(t){var e=t.state,r=t.options,n=t.name,o=r.offset,i=o===void 0?[0,0]:o,s=qd.reduce(function(d,u){return d[u]=rx(u,e.rects,i),d},{}),a=s[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=s}var ox={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:nx};function ix(t){var e=t.state,r=t.name;e.modifiersData[r]=iu({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}var sx={name:"popperOffsets",enabled:!0,phase:"read",fn:ix,data:{}};function ax(t){return t==="x"?"y":"x"}function lx(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!1:s,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.padding,f=r.tether,h=f===void 0?!0:f,p=r.tetherOffset,m=p===void 0?0:p,b=zn(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=mt(e.placement),y=Br(e.placement),_=!y,x=Ds(v),w=ax(x),S=e.modifiersData.popperOffsets,T=e.rects.reference,M=e.rects.popper,N=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,E=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(S){if(i){var D,O=x==="y"?Ze:Je,P=x==="y"?lt:ct,L=x==="y"?"height":"width",z=S[x],B=z+b[O],j=z-b[P],$=h?-M[L]/2:0,W=y===Lr?T[L]:M[L],V=y===Lr?-M[L]:-T[L],Y=e.elements.arrow,U=h&&Y?As(Y):{width:0,height:0},K=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Jd(),G=K[O],de=K[P],X=Ln(0,T[L],U[L]),oe=_?T[L]/2-$-X-G-E.mainAxis:W-X-G-E.mainAxis,Ie=_?-T[L]/2+$+X+de+E.mainAxis:V+X+de+E.mainAxis,He=e.elements.arrow&&In(e.elements.arrow),J=He?x==="y"?He.clientTop||0:He.clientLeft||0:0,Ee=(D=I==null?void 0:I[x])!=null?D:0,le=z+oe-Ee-J,re=z+Ie-Ee,he=Ln(h?Xo(B,le):B,z,h?mr(j,re):j);S[x]=he,A[x]=he-z}if(a){var Q,R=x==="x"?Ze:Je,Oe=x==="x"?lt:ct,ie=S[w],ke=w==="y"?"height":"width",Le=ie+b[R],Pe=ie-b[Oe],ft=[Ze,Je].indexOf(v)!==-1,yt=(Q=I==null?void 0:I[w])!=null?Q:0,ot=ft?Le:ie-T[ke]-M[ke]-yt+E.altAxis,or=ft?ie+T[ke]+M[ke]-yt-E.altAxis:Pe,it=h&&ft?Av(ot,ie,or):Ln(h?ot:Le,ie,h?or:Pe);S[w]=it,A[w]=it-ie}e.modifiersData[n]=A}}var cx={name:"preventOverflow",enabled:!0,phase:"main",fn:lx,requiresIfExists:["offset"]};function dx(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ux(t){return t===dt(t)||!nt(t)?Is(t):dx(t)}function fx(t){var e=t.getBoundingClientRect(),r=Fr(e.width)/t.offsetWidth||1,n=Fr(e.height)/t.offsetHeight||1;return r!==1||n!==1}function hx(t,e,r){r===void 0&&(r=!1);var n=nt(e),o=nt(e)&&fx(e),i=Gt(e),s=zr(t,o,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((_t(e)!=="body"||Fs(i))&&(a=ux(e)),nt(e)?(l=zr(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=Ls(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function gx(t){var e=new Map,r=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function o(i){r.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!r.has(a)){var l=e.get(a);l&&o(l)}}),n.push(i)}return t.forEach(function(i){r.has(i.name)||o(i)}),n}function px(t){var e=gx(t);return Ns.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function mx(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function Xt(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return[].concat(r).reduce(function(o,i){return o.replace(/%s/,i)},t)}var br='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',bx='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',lu=["name","enabled","phase","fn","effect","requires","options"];function yx(t){t.forEach(function(e){[].concat(Object.keys(e),lu).filter(function(r,n,o){return o.indexOf(r)===n}).forEach(function(r){switch(r){case"name":typeof e.name!="string"&&console.error(Xt(br,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(Xt(br,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Ns.indexOf(e.phase)<0&&console.error(Xt(br,e.name,'"phase"',"either "+Ns.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(Xt(br,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(Xt(br,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(Xt(br,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(Xt(br,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+lu.map(function(n){return'"'+n+'"'}).join(", ")+'; but "'+r+'" was provided.')}e.requires&&e.requires.forEach(function(n){t.find(function(o){return o.name===n})==null&&console.error(Xt(bx,String(e.name),n,n))})})})}function vx(t,e){var r=new Set;return t.filter(function(n){var o=e(n);if(!r.has(o))return r.add(o),!0})}function xx(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var cu="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",wx="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",du={placement:"bottom",modifiers:[],strategy:"absolute"};function uu(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function kx(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,o=e.defaultOptions,i=o===void 0?du:o;return function(a,l,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},du,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},u=[],f=!1,h={state:d,setOptions:function(v){var y=typeof v=="function"?v(d.options):v;m(),d.options=Object.assign({},i,d.options,y),d.scrollParents={reference:pr(a)?Fn(a):a.contextElement?Fn(a.contextElement):[],popper:Fn(l)};var _=px(xx([].concat(n,d.options.modifiers)));if(d.orderedModifiers=_.filter(function(I){return I.enabled}),process.env.NODE_ENV!=="production"){var x=vx([].concat(_,d.options.modifiers),function(I){var A=I.name;return A});if(yx(x),mt(d.options.placement)===Go){var w=d.orderedModifiers.find(function(I){var A=I.name;return A==="flip"});w||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var S=bt(l),T=S.marginTop,M=S.marginRight,N=S.marginBottom,E=S.marginLeft;[T,M,N,E].some(function(I){return parseFloat(I)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return p(),h.update()},forceUpdate:function(){if(!f){var v=d.elements,y=v.reference,_=v.popper;if(!uu(y,_)){process.env.NODE_ENV!=="production"&&console.error(cu);return}d.rects={reference:hx(y,In(_),d.options.strategy==="fixed"),popper:As(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(I){return d.modifiersData[I.name]=Object.assign({},I.data)});for(var x=0,w=0;w<d.orderedModifiers.length;w++){if(process.env.NODE_ENV!=="production"&&(x+=1,x>100)){console.error(wx);break}if(d.reset===!0){d.reset=!1,w=-1;continue}var S=d.orderedModifiers[w],T=S.fn,M=S.options,N=M===void 0?{}:M,E=S.name;typeof T=="function"&&(d=T({state:d,options:N,name:E,instance:h})||d)}}},update:mx(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){m(),f=!0}};if(!uu(a,l))return process.env.NODE_ENV!=="production"&&console.error(cu),h;h.setOptions(c).then(function(b){!f&&c.onFirstUpdate&&c.onFirstUpdate(b)});function p(){d.orderedModifiers.forEach(function(b){var v=b.name,y=b.options,_=y===void 0?{}:y,x=b.effect;if(typeof x=="function"){var w=x({state:d,name:v,instance:h,options:_}),S=function(){};u.push(w||S)}})}function m(){u.forEach(function(b){return b()}),u=[]}return h}}var Cx=[Wv,sx,jv,Nv,ox,Qv,cx,Fv,tx],_x=kx({defaultModifiers:Cx}),Sx=function(t){var e=t.level,r=t.buttonRef,n=t.contentRef,o=k.useContext(Ko),i=o.collapsed,s=o.toggled,a=o.transitionDuration,l=k.useRef();return k.useEffect(function(){return e===0&&i&&n.current&&r.current&&(l.current=_x(r.current,n.current,{placement:"right",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]})),function(){var c;return(c=l.current)===null||c===void 0?void 0:c.destroy()}},[e,i,n,r]),k.useEffect(function(){if(n.current&&r.current){var c=new ResizeObserver(function(){var d;(d=l.current)===null||d===void 0||d.update()});c.observe(n.current),c.observe(r.current)}setTimeout(function(){var d;(d=l.current)===null||d===void 0||d.update()},a)},[a,s,n,r]),{popperInstance:l.current}},fu=function(t){var e=t.rtl,r=t.level,n=t.collapsed,o=t.disabled,i=t.active;return`
401
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var d={placement:mt(e.placement),variation:Br(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,tu(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,tu(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Hv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jv,data:{}},Jo={passive:!0};function Wv(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,i=o===void 0?!0:o,s=n.resize,a=s===void 0?!0:s,l=dt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",r.update,Jo)}),a&&l.addEventListener("resize",r.update,Jo),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",r.update,Jo)}),a&&l.removeEventListener("resize",r.update,Jo)}}var Vv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wv,data:{}},Rv={left:"right",right:"left",bottom:"top",top:"bottom"};function Qo(t){return t.replace(/left|right|bottom|top/g,function(e){return Rv[e]})}var Yv={start:"end",end:"start"};function ru(t){return t.replace(/start|end/g,function(e){return Yv[e]})}function Ds(t){var e=dt(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Ls(t){return zr(Gt(t)).left+Ds(t).scrollLeft}function Uv(t,e){var r=dt(t),n=Gt(t),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=Gd();(c||!c&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Ls(t),y:l}}function Kv(t){var e,r=Gt(t),n=Ds(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=mr(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=mr(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Ls(t),l=-n.scrollTop;return bt(o||r).direction==="rtl"&&(a+=mr(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Fs(t){var e=bt(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function nu(t){return["html","body","#document"].indexOf(_t(t))>=0?t.ownerDocument.body:nt(t)&&Fs(t)?t:nu(Zo(t))}function Fn(t,e){var r;e===void 0&&(e=[]);var n=nu(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),i=dt(n),s=o?[i].concat(i.visualViewport||[],Fs(n)?n:[]):n,a=e.concat(s);return o?a:a.concat(Fn(Zo(s)))}function zs(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function qv(t,e){var r=zr(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function ou(t,e,r){return e===Ud?zs(Uv(t,r)):pr(e)?qv(e,r):zs(Kv(Gt(t)))}function Gv(t){var e=Fn(Zo(t)),r=["absolute","fixed"].indexOf(bt(t).position)>=0,n=r&&nt(t)?Dn(t):t;return pr(n)?e.filter(function(o){return pr(o)&&Xd(o,n)&&_t(o)!=="body"}):[]}function Xv(t,e,r,n){var o=e==="clippingParents"?Gv(t):[].concat(e),i=[].concat(o,[r]),s=i[0],a=i.reduce(function(l,c){var d=ou(t,c,n);return l.top=mr(d.top,l.top),l.right=Xo(d.right,l.right),l.bottom=Xo(d.bottom,l.bottom),l.left=mr(d.left,l.left),l},ou(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function iu(t){var e=t.reference,r=t.element,n=t.placement,o=n?mt(n):null,i=n?Br(n):null,s=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,l;switch(o){case Ze:l={x:s,y:e.y-r.height};break;case lt:l={x:s,y:e.y+e.height};break;case ct:l={x:e.x+e.width,y:a};break;case Je:l={x:e.x-r.width,y:a};break;default:l={x:e.x,y:e.y}}var c=o?Is(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case Lr:l[c]=l[c]-(e[d]/2-r[d]/2);break;case An:l[c]=l[c]+(e[d]/2-r[d]/2);break}}return l}function zn(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,i=r.strategy,s=i===void 0?t.strategy:i,a=r.boundary,l=a===void 0?bv:a,c=r.rootBoundary,d=c===void 0?Ud:c,u=r.elementContext,f=u===void 0?In:u,h=r.altBoundary,p=h===void 0?!1:h,m=r.padding,b=m===void 0?0:m,v=Qd(typeof b!="number"?b:eu(b,Pn)),y=f===In?yv:In,_=t.rects.popper,x=t.elements[p?y:f],w=Xv(pr(x)?x:x.contextElement||Gt(t.elements.popper),l,d,s),S=zr(t.elements.reference),T=iu({reference:S,element:_,placement:o}),M=zs(Object.assign({},_,T)),N=f===In?M:S,E={top:w.top-N.top+v.top,bottom:N.bottom-w.bottom+v.bottom,left:w.left-N.left+v.left,right:N.right-w.right+v.right},D=t.modifiersData.offset;if(f===In&&D){var A=D[o];Object.keys(E).forEach(function(I){var O=[ct,lt].indexOf(I)>=0?1:-1,P=[Ze,lt].indexOf(I)>=0?"y":"x";E[I]+=A[P]*O})}return E}function Zv(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?qd:l,d=Br(n),u=d?a?Kd:Kd.filter(function(p){return Br(p)===d}):Pn,f=u.filter(function(p){return c.indexOf(p)>=0});f.length===0&&(f=u,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var h=f.reduce(function(p,m){return p[m]=zn(t,{placement:m,boundary:o,rootBoundary:i,padding:s})[mt(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function Jv(t){if(mt(t)===Go)return[];var e=Qo(t);return[ru(t),e,ru(e)]}function Qv(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!0:s,l=r.fallbackPlacements,c=r.padding,d=r.boundary,u=r.rootBoundary,f=r.altBoundary,h=r.flipVariations,p=h===void 0?!0:h,m=r.allowedAutoPlacements,b=e.options.placement,v=mt(b),y=v===b,_=l||(y||!p?[Qo(b)]:Jv(b)),x=[b].concat(_).reduce(function(U,K){return U.concat(mt(K)===Go?Zv(e,{placement:K,boundary:d,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:m}):K)},[]),w=e.rects.reference,S=e.rects.popper,T=new Map,M=!0,N=x[0],E=0;E<x.length;E++){var D=x[E],A=mt(D),I=Br(D)===Lr,O=[Ze,lt].indexOf(A)>=0,P=O?"width":"height",L=zn(e,{placement:D,boundary:d,rootBoundary:u,altBoundary:f,padding:c}),z=O?I?ct:Je:I?lt:Ze;w[P]>S[P]&&(z=Qo(z));var B=Qo(z),j=[];if(i&&j.push(L[A]<=0),a&&j.push(L[z]<=0,L[B]<=0),j.every(function(U){return U})){N=D,M=!1;break}T.set(D,j)}if(M)for(var $=p?3:1,W=function(K){var G=x.find(function(de){var X=T.get(de);if(X)return X.slice(0,K).every(function(oe){return oe})});if(G)return N=G,"break"},V=$;V>0;V--){var Y=W(V);if(Y==="break")break}e.placement!==N&&(e.modifiersData[n]._skip=!0,e.placement=N,e.reset=!0)}}var ex={name:"flip",enabled:!0,phase:"main",fn:Qv,requiresIfExists:["offset"],data:{_skip:!1}};function su(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function au(t){return[Ze,ct,lt,Je].some(function(e){return t[e]>=0})}function tx(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=zn(e,{elementContext:"reference"}),a=zn(e,{altBoundary:!0}),l=su(s,n),c=su(a,o,i),d=au(l),u=au(c);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}var rx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tx};function nx(t,e,r){var n=mt(t),o=[Je,Ze].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Je,ct].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function ox(t){var e=t.state,r=t.options,n=t.name,o=r.offset,i=o===void 0?[0,0]:o,s=qd.reduce(function(d,u){return d[u]=nx(u,e.rects,i),d},{}),a=s[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=s}var ix={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ox};function sx(t){var e=t.state,r=t.name;e.modifiersData[r]=iu({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}var ax={name:"popperOffsets",enabled:!0,phase:"read",fn:sx,data:{}};function lx(t){return t==="x"?"y":"x"}function cx(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!1:s,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.padding,f=r.tether,h=f===void 0?!0:f,p=r.tetherOffset,m=p===void 0?0:p,b=zn(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=mt(e.placement),y=Br(e.placement),_=!y,x=Is(v),w=lx(x),S=e.modifiersData.popperOffsets,T=e.rects.reference,M=e.rects.popper,N=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,E=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(S){if(i){var I,O=x==="y"?Ze:Je,P=x==="y"?lt:ct,L=x==="y"?"height":"width",z=S[x],B=z+b[O],j=z-b[P],$=h?-M[L]/2:0,W=y===Lr?T[L]:M[L],V=y===Lr?-M[L]:-T[L],Y=e.elements.arrow,U=h&&Y?As(Y):{width:0,height:0},K=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Jd(),G=K[O],de=K[P],X=Ln(0,T[L],U[L]),oe=_?T[L]/2-$-X-G-E.mainAxis:W-X-G-E.mainAxis,De=_?-T[L]/2+$+X+de+E.mainAxis:V+X+de+E.mainAxis,He=e.elements.arrow&&Dn(e.elements.arrow),J=He?x==="y"?He.clientTop||0:He.clientLeft||0:0,Ee=(I=D==null?void 0:D[x])!=null?I:0,le=z+oe-Ee-J,re=z+De-Ee,he=Ln(h?Xo(B,le):B,z,h?mr(j,re):j);S[x]=he,A[x]=he-z}if(a){var Q,R=x==="x"?Ze:Je,Oe=x==="x"?lt:ct,ie=S[w],ke=w==="y"?"height":"width",Le=ie+b[R],Pe=ie-b[Oe],ft=[Ze,Je].indexOf(v)!==-1,yt=(Q=D==null?void 0:D[w])!=null?Q:0,ot=ft?Le:ie-T[ke]-M[ke]-yt+E.altAxis,or=ft?ie+T[ke]+M[ke]-yt-E.altAxis:Pe,it=h&&ft?Iv(ot,ie,or):Ln(h?ot:Le,ie,h?or:Pe);S[w]=it,A[w]=it-ie}e.modifiersData[n]=A}}var dx={name:"preventOverflow",enabled:!0,phase:"main",fn:cx,requiresIfExists:["offset"]};function ux(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function fx(t){return t===dt(t)||!nt(t)?Ds(t):ux(t)}function hx(t){var e=t.getBoundingClientRect(),r=Fr(e.width)/t.offsetWidth||1,n=Fr(e.height)/t.offsetHeight||1;return r!==1||n!==1}function gx(t,e,r){r===void 0&&(r=!1);var n=nt(e),o=nt(e)&&hx(e),i=Gt(e),s=zr(t,o,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((_t(e)!=="body"||Fs(i))&&(a=fx(e)),nt(e)?(l=zr(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=Ls(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function px(t){var e=new Map,r=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function o(i){r.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!r.has(a)){var l=e.get(a);l&&o(l)}}),n.push(i)}return t.forEach(function(i){r.has(i.name)||o(i)}),n}function mx(t){var e=px(t);return Ns.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function bx(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function Xt(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return[].concat(r).reduce(function(o,i){return o.replace(/%s/,i)},t)}var br='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',yx='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',lu=["name","enabled","phase","fn","effect","requires","options"];function vx(t){t.forEach(function(e){[].concat(Object.keys(e),lu).filter(function(r,n,o){return o.indexOf(r)===n}).forEach(function(r){switch(r){case"name":typeof e.name!="string"&&console.error(Xt(br,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(Xt(br,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Ns.indexOf(e.phase)<0&&console.error(Xt(br,e.name,'"phase"',"either "+Ns.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(Xt(br,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(Xt(br,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(Xt(br,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(Xt(br,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+lu.map(function(n){return'"'+n+'"'}).join(", ")+'; but "'+r+'" was provided.')}e.requires&&e.requires.forEach(function(n){t.find(function(o){return o.name===n})==null&&console.error(Xt(yx,String(e.name),n,n))})})})}function xx(t,e){var r=new Set;return t.filter(function(n){var o=e(n);if(!r.has(o))return r.add(o),!0})}function wx(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var cu="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",kx="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",du={placement:"bottom",modifiers:[],strategy:"absolute"};function uu(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Cx(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,o=e.defaultOptions,i=o===void 0?du:o;return function(a,l,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},du,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},u=[],f=!1,h={state:d,setOptions:function(v){var y=typeof v=="function"?v(d.options):v;m(),d.options=Object.assign({},i,d.options,y),d.scrollParents={reference:pr(a)?Fn(a):a.contextElement?Fn(a.contextElement):[],popper:Fn(l)};var _=mx(wx([].concat(n,d.options.modifiers)));if(d.orderedModifiers=_.filter(function(D){return D.enabled}),process.env.NODE_ENV!=="production"){var x=xx([].concat(_,d.options.modifiers),function(D){var A=D.name;return A});if(vx(x),mt(d.options.placement)===Go){var w=d.orderedModifiers.find(function(D){var A=D.name;return A==="flip"});w||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var S=bt(l),T=S.marginTop,M=S.marginRight,N=S.marginBottom,E=S.marginLeft;[T,M,N,E].some(function(D){return parseFloat(D)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return p(),h.update()},forceUpdate:function(){if(!f){var v=d.elements,y=v.reference,_=v.popper;if(!uu(y,_)){process.env.NODE_ENV!=="production"&&console.error(cu);return}d.rects={reference:gx(y,Dn(_),d.options.strategy==="fixed"),popper:As(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(D){return d.modifiersData[D.name]=Object.assign({},D.data)});for(var x=0,w=0;w<d.orderedModifiers.length;w++){if(process.env.NODE_ENV!=="production"&&(x+=1,x>100)){console.error(kx);break}if(d.reset===!0){d.reset=!1,w=-1;continue}var S=d.orderedModifiers[w],T=S.fn,M=S.options,N=M===void 0?{}:M,E=S.name;typeof T=="function"&&(d=T({state:d,options:N,name:E,instance:h})||d)}}},update:bx(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){m(),f=!0}};if(!uu(a,l))return process.env.NODE_ENV!=="production"&&console.error(cu),h;h.setOptions(c).then(function(b){!f&&c.onFirstUpdate&&c.onFirstUpdate(b)});function p(){d.orderedModifiers.forEach(function(b){var v=b.name,y=b.options,_=y===void 0?{}:y,x=b.effect;if(typeof x=="function"){var w=x({state:d,name:v,instance:h,options:_}),S=function(){};u.push(w||S)}})}function m(){u.forEach(function(b){return b()}),u=[]}return h}}var _x=[Vv,ax,Hv,Mv,ix,ex,dx,zv,rx],Sx=Cx({defaultModifiers:_x}),Ex=function(t){var e=t.level,r=t.buttonRef,n=t.contentRef,o=k.useContext(Ko),i=o.collapsed,s=o.toggled,a=o.transitionDuration,l=k.useRef();return k.useEffect(function(){return e===0&&i&&n.current&&r.current&&(l.current=Sx(r.current,n.current,{placement:"right",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]})),function(){var c;return(c=l.current)===null||c===void 0?void 0:c.destroy()}},[e,i,n,r]),k.useEffect(function(){if(n.current&&r.current){var c=new ResizeObserver(function(){var d;(d=l.current)===null||d===void 0||d.update()});c.observe(n.current),c.observe(r.current)}setTimeout(function(){var d;(d=l.current)===null||d===void 0||d.update()},a)},[a,s,n,r]),{popperInstance:l.current}},fu=function(t){var e=t.rtl,r=t.level,n=t.collapsed,o=t.disabled,i=t.active;return`
402
402
  display: flex;
403
403
  align-items: center;
404
404
  height: 50px;
@@ -425,7 +425,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
425
425
 
426
426
  `).concat(i&&"background-color: #e2eef9;",`
427
427
 
428
- `)},Ex=function(t,e){var r=t.className,n=t.component,o=t.children,i=hr(t,["className","component","children"]);if(n){if(typeof n=="string")return k.createElement(n,tt(tt({className:Ne(r)},i),{ref:e}),o);var s=n.props,a=s.className,l=hr(s,["className"]);return k.cloneElement(n,tt(tt(tt({className:Ne(r,a)},i),l),{ref:e}),o)}else return k.createElement("a",tt({ref:e,className:Ne(r)},i),o)},hu=k.forwardRef(Ex),Ox=De.li(gu||(gu=Ve([`
428
+ `)},Ox=function(t,e){var r=t.className,n=t.component,o=t.children,i=hr(t,["className","component","children"]);if(n){if(typeof n=="string")return k.createElement(n,tt(tt({className:Ne(r)},i),{ref:e}),o);var s=n.props,a=s.className,l=hr(s,["className"]);return k.cloneElement(n,tt(tt(tt({className:Ne(r,a)},i),l),{ref:e}),o)}else return k.createElement("a",tt({ref:e,className:Ne(r)},i),o)},hu=k.forwardRef(Ox),Tx=Ie.li(gu||(gu=Ve([`
429
429
  position: relative;
430
430
  width: 100%;
431
431
 
@@ -451,7 +451,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
451
451
 
452
452
  `,`;
453
453
  }
454
- `])),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 fu({level:e,disabled:r,active:n,collapsed:o,rtl:i})},function(t){var e=t.buttonStyles;return e}),Tx=function(t,e){var r,n=t.children,o=t.className,i=t.label,s=t.icon,a=t.title,l=t.prefix,c=t.suffix,d=t.open,u=t.defaultOpen,f=t.active,h=f===void 0?!1:f,p=t.disabled,m=p===void 0?!1:p,b=t.rootStyles,v=t.component,y=t.onOpenChange,_=t.onClick,x=t.onKeyUp,w=hr(t,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),S=k.useContext(qo),T=k.useContext(Ko),M=T.collapsed,N=T.rtl,E=T.transitionDuration,I=Ts(),A=I.renderExpandIcon,D=I.closeOnClick,O=I.menuItemStyles,P=I.transitionDuration,L=k.useState(!!u),z=L[0],B=L[1],j=k.useState(!1),$=j[0],W=j[1],V=k.useState(!1),Y=V[0],U=V[1],K=k.useRef(null),G=k.useRef(null),de=k.useRef(),X=Sx({level:S,buttonRef:K,contentRef:G}).popperInstance,oe=k.useCallback(function(){var he,Q=G.current;if(Q){var R=(he=Q==null?void 0:Q.querySelector(".".concat(ae.subMenuContent," > ul")))===null||he===void 0?void 0:he.clientHeight;Q.style.overflow="hidden",Q.style.height="".concat(R,"px"),de.current=setTimeout(function(){Q.style.overflow="auto",Q.style.height="auto"},P)}},[P]),Ie=function(){var he,Q=G.current;if(Q){var R=(he=Q==null?void 0:Q.querySelector(".".concat(ae.subMenuContent," > ul")))===null||he===void 0?void 0:he.clientHeight;Q.style.overflow="hidden",Q.style.height="".concat(R,"px"),Q.offsetHeight,Q.style.height="0px"}},He=function(){S===0&&M||(typeof d>"u"?(clearTimeout(Number(de.current)),z?Ie():oe(),y==null||y(!z),B(!z)):y==null||y(!d))};k.useEffect(function(){!(S===0&&M)&&typeof d<"u"&&Y&&(clearTimeout(Number(de.current)),d?oe():Ie())},[M,oe,i,S,y,d]);var J=function(he){_==null||_(he),He()},Ee=function(he){x==null||x(he),he.key==="Enter"&&He()},le=function(he){if(O){var Q={level:S,disabled:m,active:h,isSubmenu:!0,open:d??z},R=O.root,Oe=O.button,ie=O.label,ke=O.icon,Le=O.prefix,Pe=O.suffix,ft=O.subMenuContent,yt=O.SubMenuExpandIcon;switch(he){case"root":return typeof R=="function"?R(Q):R;case"button":return typeof Oe=="function"?Oe(Q):Oe;case"label":return typeof ie=="function"?ie(Q):ie;case"icon":return typeof ke=="function"?ke(Q):ke;case"prefix":return typeof Le=="function"?Le(Q):Le;case"suffix":return typeof Pe=="function"?Pe(Q):Pe;case"SubMenuExpandIcon":return typeof yt=="function"?yt(Q):yt;case"subMenuContent":return typeof ft=="function"?ft(Q):ft;default:return}}};k.useEffect(function(){setTimeout(function(){return X==null?void 0:X.update()},E),M&&S===0&&W(!1)},[M,S,N,E,X]),k.useEffect(function(){var he=function(ie){var ke,Le,Pe;!$&&(!((ke=K.current)===null||ke===void 0)&&ke.contains(ie))?W(!0):(D&&!(!((Le=ie.closest(".".concat(ae.menuItemRoot)))===null||Le===void 0)&&Le.classList.contains(ae.subMenuRoot))||!(!((Pe=G.current)===null||Pe===void 0)&&Pe.contains(ie))&&$)&&W(!1)},Q=function(ie){he(ie.target)},R=function(ie){ie.key==="Enter"?he(ie.target):ie.key==="Escape"&&W(!1)},Oe=function(){document.removeEventListener("click",Q),document.removeEventListener("keyup",R)};return Oe(),M&&S===0&&(document.addEventListener("click",Q,!1),document.addEventListener("keyup",R,!1)),function(){Oe()}},[M,S,D,$]),k.useEffect(function(){U(!0)},[]);var re=(r={},r[ae.active]=h,r[ae.disabled]=m,r[ae.open]=d??z,r);return k.createElement(Ox,{ref:e,className:Ne(ae.menuItemRoot,ae.subMenuRoot,re,o),menuItemStyles:le("root"),level:S,collapsed:M,rtl:N,disabled:m,active:h,buttonStyles:le("button"),rootStyles:b},k.createElement(hu,tt({"data-testid":"".concat(ae.button,"-test-id"),ref:K,title:a,className:Ne(ae.button,re),onClick:J,onKeyUp:Ee,component:v,tabIndex:0},w),s&&k.createElement(zd,{rtl:N,className:Ne(ae.icon,re),rootStyles:le("icon")},s),l&&k.createElement($d,{collapsed:M,transitionDuration:E,firstLevel:S===0,className:Ne(ae.prefix,re),rtl:N,rootStyles:le("prefix")},l),k.createElement(Ld,{className:Ne(ae.label,re),rootStyles:le("label")},i),c&&k.createElement(Hd,{collapsed:M,transitionDuration:E,firstLevel:S===0,className:Ne(ae.suffix,re),rootStyles:le("suffix")},c),k.createElement(hv,{rtl:N,className:Ne(ae.SubMenuExpandIcon,re),collapsed:M,level:S,rootStyles:le("SubMenuExpandIcon")},A?A({level:S,disabled:m,active:h,open:d??z}):M&&S===0?k.createElement(pv,null):k.createElement(gv,{rtl:N,open:d??z}))),k.createElement(fv,{ref:G,openWhenCollapsed:$,open:d??z,firstLevel:S===0,collapsed:M,defaultOpen:d&&!Y||u,className:Ne(ae.subMenuContent,re),rootStyles:le("subMenuContent")},k.createElement(qo.Provider,{value:S+1},n)))};k.forwardRef(Tx);var gu,Nx=De.li(pu||(pu=Ve([`
454
+ `])),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 fu({level:e,disabled:r,active:n,collapsed:o,rtl:i})},function(t){var e=t.buttonStyles;return e}),Nx=function(t,e){var r,n=t.children,o=t.className,i=t.label,s=t.icon,a=t.title,l=t.prefix,c=t.suffix,d=t.open,u=t.defaultOpen,f=t.active,h=f===void 0?!1:f,p=t.disabled,m=p===void 0?!1:p,b=t.rootStyles,v=t.component,y=t.onOpenChange,_=t.onClick,x=t.onKeyUp,w=hr(t,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),S=k.useContext(qo),T=k.useContext(Ko),M=T.collapsed,N=T.rtl,E=T.transitionDuration,D=Ts(),A=D.renderExpandIcon,I=D.closeOnClick,O=D.menuItemStyles,P=D.transitionDuration,L=k.useState(!!u),z=L[0],B=L[1],j=k.useState(!1),$=j[0],W=j[1],V=k.useState(!1),Y=V[0],U=V[1],K=k.useRef(null),G=k.useRef(null),de=k.useRef(),X=Ex({level:S,buttonRef:K,contentRef:G}).popperInstance,oe=k.useCallback(function(){var he,Q=G.current;if(Q){var R=(he=Q==null?void 0:Q.querySelector(".".concat(ae.subMenuContent," > ul")))===null||he===void 0?void 0:he.clientHeight;Q.style.overflow="hidden",Q.style.height="".concat(R,"px"),de.current=setTimeout(function(){Q.style.overflow="auto",Q.style.height="auto"},P)}},[P]),De=function(){var he,Q=G.current;if(Q){var R=(he=Q==null?void 0:Q.querySelector(".".concat(ae.subMenuContent," > ul")))===null||he===void 0?void 0:he.clientHeight;Q.style.overflow="hidden",Q.style.height="".concat(R,"px"),Q.offsetHeight,Q.style.height="0px"}},He=function(){S===0&&M||(typeof d>"u"?(clearTimeout(Number(de.current)),z?De():oe(),y==null||y(!z),B(!z)):y==null||y(!d))};k.useEffect(function(){!(S===0&&M)&&typeof d<"u"&&Y&&(clearTimeout(Number(de.current)),d?oe():De())},[M,oe,i,S,y,d]);var J=function(he){_==null||_(he),He()},Ee=function(he){x==null||x(he),he.key==="Enter"&&He()},le=function(he){if(O){var Q={level:S,disabled:m,active:h,isSubmenu:!0,open:d??z},R=O.root,Oe=O.button,ie=O.label,ke=O.icon,Le=O.prefix,Pe=O.suffix,ft=O.subMenuContent,yt=O.SubMenuExpandIcon;switch(he){case"root":return typeof R=="function"?R(Q):R;case"button":return typeof Oe=="function"?Oe(Q):Oe;case"label":return typeof ie=="function"?ie(Q):ie;case"icon":return typeof ke=="function"?ke(Q):ke;case"prefix":return typeof Le=="function"?Le(Q):Le;case"suffix":return typeof Pe=="function"?Pe(Q):Pe;case"SubMenuExpandIcon":return typeof yt=="function"?yt(Q):yt;case"subMenuContent":return typeof ft=="function"?ft(Q):ft;default:return}}};k.useEffect(function(){setTimeout(function(){return X==null?void 0:X.update()},E),M&&S===0&&W(!1)},[M,S,N,E,X]),k.useEffect(function(){var he=function(ie){var ke,Le,Pe;!$&&(!((ke=K.current)===null||ke===void 0)&&ke.contains(ie))?W(!0):(I&&!(!((Le=ie.closest(".".concat(ae.menuItemRoot)))===null||Le===void 0)&&Le.classList.contains(ae.subMenuRoot))||!(!((Pe=G.current)===null||Pe===void 0)&&Pe.contains(ie))&&$)&&W(!1)},Q=function(ie){he(ie.target)},R=function(ie){ie.key==="Enter"?he(ie.target):ie.key==="Escape"&&W(!1)},Oe=function(){document.removeEventListener("click",Q),document.removeEventListener("keyup",R)};return Oe(),M&&S===0&&(document.addEventListener("click",Q,!1),document.addEventListener("keyup",R,!1)),function(){Oe()}},[M,S,I,$]),k.useEffect(function(){U(!0)},[]);var re=(r={},r[ae.active]=h,r[ae.disabled]=m,r[ae.open]=d??z,r);return k.createElement(Tx,{ref:e,className:Ne(ae.menuItemRoot,ae.subMenuRoot,re,o),menuItemStyles:le("root"),level:S,collapsed:M,rtl:N,disabled:m,active:h,buttonStyles:le("button"),rootStyles:b},k.createElement(hu,tt({"data-testid":"".concat(ae.button,"-test-id"),ref:K,title:a,className:Ne(ae.button,re),onClick:J,onKeyUp:Ee,component:v,tabIndex:0},w),s&&k.createElement(zd,{rtl:N,className:Ne(ae.icon,re),rootStyles:le("icon")},s),l&&k.createElement($d,{collapsed:M,transitionDuration:E,firstLevel:S===0,className:Ne(ae.prefix,re),rtl:N,rootStyles:le("prefix")},l),k.createElement(Ld,{className:Ne(ae.label,re),rootStyles:le("label")},i),c&&k.createElement(Hd,{collapsed:M,transitionDuration:E,firstLevel:S===0,className:Ne(ae.suffix,re),rootStyles:le("suffix")},c),k.createElement(gv,{rtl:N,className:Ne(ae.SubMenuExpandIcon,re),collapsed:M,level:S,rootStyles:le("SubMenuExpandIcon")},A?A({level:S,disabled:m,active:h,open:d??z}):M&&S===0?k.createElement(mv,null):k.createElement(pv,{rtl:N,open:d??z}))),k.createElement(hv,{ref:G,openWhenCollapsed:$,open:d??z,firstLevel:S===0,collapsed:M,defaultOpen:d&&!Y||u,className:Ne(ae.subMenuContent,re),rootStyles:le("subMenuContent")},k.createElement(qo.Provider,{value:S+1},n)))};k.forwardRef(Nx);var gu,Mx=Ie.li(pu||(pu=Ve([`
455
455
  width: 100%;
456
456
  position: relative;
457
457
 
@@ -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 fu({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,p=hr(t,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),m=k.useContext(qo),b=k.useContext(Ko),v=b.collapsed,y=b.rtl,_=b.transitionDuration,x=Ts().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(hu,tt({className:Ne(ae.button,S),"data-testid":"".concat(ae.button,"-test-id"),component:f,tabIndex:0},p),o&&k.createElement(zd,{rtl:y,className:Ne(ae.icon,S),rootStyles:w("icon")},o),s&&k.createElement($d,{collapsed:v,transitionDuration:_,firstLevel:m===0,className:Ne(ae.prefix,S),rtl:y,rootStyles:w("prefix")},s),k.createElement(Ld,{className:Ne(ae.label,S),rootStyles:w("label")},n),a&&k.createElement(Hd,{collapsed:v,transitionDuration:_,firstLevel:m===0,className:Ne(ae.suffix,S),rootStyles:w("suffix")},a)))},$r=k.forwardRef(Mx),pu;const Px={cardFormat:"card-module__cardFormat__LNrgl"},ei=k.forwardRef((t,e)=>{const{image:r,icon:n,title:o,description:i}=t;return g.jsxs("div",{className:`${Px.cardFormat} border px-3.5 py-7`,ref:e,children:[(r==null?void 0:r.type)==="image"?g.jsx(Rt,{classIm:"mx-auto",src:`../../../../public/assets/images/${r.name}.svg`,alt:r.name,width:74,height:74}):n?g.jsx("div",{className:"flex justify-center",children:g.jsx(n,{size:74})}):null,g.jsx("h3",{className:"my-3 font-bold",children:o}),g.jsx("p",{children:i})]})});ei.displayName="CardFormat";function Ax(t){return ge({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 Dx(t){return ge({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 Ix(t){return ge({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 Lx(t){return ge({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 mu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Bs={};Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.parse=Wx,Bs.serialize=Vx;const Fx=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,zx=/^[\u0021-\u003A\u003C-\u007E]*$/,Bx=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,$x=/^[\u0020-\u003A\u003D-\u007E]*$/,jx=Object.prototype.toString,Hx=(()=>{const t=function(){};return t.prototype=Object.create(null),t})();function Wx(t,e){const r=new Hx,n=t.length;if(n<2)return r;const o=(e==null?void 0:e.decode)||Rx;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=bu(t,i,s),d=yu(t,s,c),u=t.slice(c,d);if(r[u]===void 0){let f=bu(t,s+1,l),h=yu(t,l,f);const p=o(t.slice(f,h));r[u]=p}i=l+1}while(i<n);return r}function bu(t,e,r){do{const n=t.charCodeAt(e);if(n!==32&&n!==9)return e}while(++e<r);return r}function yu(t,e,r){for(;e>r;){const n=t.charCodeAt(--e);if(n!==32&&n!==9)return e+1}return r}function Vx(t,e,r){const n=(r==null?void 0:r.encode)||encodeURIComponent;if(!Fx.test(t))throw new TypeError(`argument name is invalid: ${t}`);const o=n(e);if(!zx.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(!Bx.test(r.domain))throw new TypeError(`option domain is invalid: ${r.domain}`);i+="; Domain="+r.domain}if(r.path){if(!$x.test(r.path))throw new TypeError(`option path is invalid: ${r.path}`);i+="; Path="+r.path}if(r.expires){if(!Yx(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 Rx(t){if(t.indexOf("%")===-1)return t;try{return decodeURIComponent(t)}catch{return t}}function Yx(t){return jx.call(t)==="[object Date]"}/**
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 fu({level:e,disabled:r,active:n,collapsed:o,rtl:i})},function(t){var e=t.buttonStyles;return e}),Px=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,p=hr(t,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),m=k.useContext(qo),b=k.useContext(Ko),v=b.collapsed,y=b.rtl,_=b.transitionDuration,x=Ts().menuItemStyles,w=function(T){if(x){var M={level:m,disabled:u,active:c,isSubmenu:!1},N=x.root,E=x.button,D=x.label,A=x.icon,I=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 D=="function"?D(M):D;case"icon":return typeof A=="function"?A(M):A;case"prefix":return typeof I=="function"?I(M):I;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(Mx,{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(hu,tt({className:Ne(ae.button,S),"data-testid":"".concat(ae.button,"-test-id"),component:f,tabIndex:0},p),o&&k.createElement(zd,{rtl:y,className:Ne(ae.icon,S),rootStyles:w("icon")},o),s&&k.createElement($d,{collapsed:v,transitionDuration:_,firstLevel:m===0,className:Ne(ae.prefix,S),rtl:y,rootStyles:w("prefix")},s),k.createElement(Ld,{className:Ne(ae.label,S),rootStyles:w("label")},n),a&&k.createElement(Hd,{collapsed:v,transitionDuration:_,firstLevel:m===0,className:Ne(ae.suffix,S),rootStyles:w("suffix")},a)))},$r=k.forwardRef(Px),pu;const Ax={cardFormat:"card-module__cardFormat__LNrgl"},ei=k.forwardRef((t,e)=>{const{image:r,icon:n,title:o,description:i}=t;return g.jsxs("div",{className:`${Ax.cardFormat} border px-3.5 py-7`,ref:e,children:[(r==null?void 0:r.type)==="image"?g.jsx(Rt,{classIm:"mx-auto",src:`../../../../public/assets/images/${r.name}.svg`,alt:r.name,width:74,height:74}):n?g.jsx("div",{className:"flex justify-center",children:g.jsx(n,{size:74})}):null,g.jsx("h3",{className:"my-3 font-bold",children:o}),g.jsx("p",{children:i})]})});ei.displayName="CardFormat";const Ix="/assets/images/logo%20mathilde.png";function Dx(t){return ge({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 Lx(t){return ge({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 Fx(t){return ge({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 zx(t){return ge({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 mu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Bs={};Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.parse=Rx,Bs.serialize=Yx;const Bx=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,$x=/^[\u0021-\u003A\u003C-\u007E]*$/,jx=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,Hx=/^[\u0020-\u003A\u003D-\u007E]*$/,Wx=Object.prototype.toString,Vx=(()=>{const t=function(){};return t.prototype=Object.create(null),t})();function Rx(t,e){const r=new Vx,n=t.length;if(n<2)return r;const o=(e==null?void 0:e.decode)||Ux;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=bu(t,i,s),d=yu(t,s,c),u=t.slice(c,d);if(r[u]===void 0){let f=bu(t,s+1,l),h=yu(t,l,f);const p=o(t.slice(f,h));r[u]=p}i=l+1}while(i<n);return r}function bu(t,e,r){do{const n=t.charCodeAt(e);if(n!==32&&n!==9)return e}while(++e<r);return r}function yu(t,e,r){for(;e>r;){const n=t.charCodeAt(--e);if(n!==32&&n!==9)return e+1}return r}function Yx(t,e,r){const n=(r==null?void 0:r.encode)||encodeURIComponent;if(!Bx.test(t))throw new TypeError(`argument name is invalid: ${t}`);const o=n(e);if(!$x.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(!jx.test(r.domain))throw new TypeError(`option domain is invalid: ${r.domain}`);i+="; Domain="+r.domain}if(r.path){if(!Hx.test(r.path))throw new TypeError(`option path is invalid: ${r.path}`);i+="; Path="+r.path}if(r.expires){if(!Kx(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 Ux(t){if(t.indexOf("%")===-1)return t;try{return decodeURIComponent(t)}catch{return t}}function Kx(t){return Wx.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 $s({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 js(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 vu(t,e,r="/"){return Ux(t,e,r,!1)}function Ux(t,e,r,n){let o=typeof e=="string"?js(e):e,i=Zt(o.pathname||"/",r);if(i==null)return null;let s=xu(t);Kx(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let c=ow(i);a=rw(s[l],c,n)}return a}function xu(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}".`),xu(i.children,e,d,c)),!(i.path==null&&!i.index)&&e.push({path:c,score:ew(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 wu(i.path))o(i,s,l)}),e}function wu(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=wu(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:tw(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var qx=/^:[\w-]+$/,Gx=3,Xx=2,Zx=1,Jx=10,Qx=-2,ku=t=>t==="*";function ew(t,e){let r=t.split("/"),n=r.length;return r.some(ku)&&(n+=Qx),e&&(n+=Xx),r.filter(o=>!ku(o)).reduce((o,i)=>o+(qx.test(i)?Gx:i===""?Zx:Jx),n)}function tw(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 rw(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=ti({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),f=l.route;if(!u&&c&&r&&!n[n.length-1].route.index&&(u=ti({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:lw(zt([i,u.pathnameBase])),route:f}),u.pathnameBase!=="/"&&(i=zt([i,u.pathnameBase]))}return s}function ti(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=nw(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 p=a[f]||"";s=i.slice(0,i.length-p.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 nw(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 ow(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 Zt(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 iw(t,e="/"){let{pathname:r,search:n="",hash:o=""}=typeof t=="string"?js(t):t;return{pathname:r?r.startsWith("/")?r:sw(r,e):e,search:cw(n),hash:dw(o)}}function sw(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 Hs(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 aw(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function Cu(t){let e=aw(t);return e.map((r,n)=>n===e.length-1?r.pathname:r.pathnameBase)}function _u(t,e,r,n=!1){let o;typeof t=="string"?o=js(t):(o={...t},Be(!o.pathname||!o.pathname.includes("?"),Hs("?","pathname","search",o)),Be(!o.pathname||!o.pathname.includes("#"),Hs("#","pathname","hash",o)),Be(!o.search||!o.search.includes("#"),Hs("#","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=iw(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,"/"),lw=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),cw=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,dw=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function uw(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var Su=["POST","PUT","PATCH","DELETE"];new Set(Su);var fw=["GET",...Su];new Set(fw);var jr=C.createContext(null);jr.displayName="DataRouter";var ri=C.createContext(null);ri.displayName="DataRouterState";var Eu=C.createContext({isTransitioning:!1});Eu.displayName="ViewTransition";var hw=C.createContext(new Map);hw.displayName="Fetchers";var gw=C.createContext(null);gw.displayName="Await";var Bt=C.createContext(null);Bt.displayName="Navigation";var Ws=C.createContext(null);Ws.displayName="Location";var $t=C.createContext({outlet:null,matches:[],isDataRoute:!1});$t.displayName="Route";var Vs=C.createContext(null);Vs.displayName="RouteError";function pw(t,{relative:e}={}){Be(ni(),"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 ni(){return C.useContext(Ws)!=null}function yr(){return Be(ni(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(Ws).location}var Ou="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Tu(t){C.useContext(Bt).static||C.useLayoutEffect(t)}function mw(){let{isDataRoute:t}=C.useContext($t);return t?Nw():bw()}function bw(){Be(ni(),"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}=yr(),i=JSON.stringify(Cu(n)),s=C.useRef(!1);return Tu(()=>{s.current=!0}),C.useCallback((l,c={})=>{if(Ft(s.current,Ou),!s.current)return;if(typeof l=="number"){r.go(l);return}let d=_u(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}=yr(),o=JSON.stringify(Cu(r));return C.useMemo(()=>_u(t,JSON.parse(o),n,e==="path"),[t,o,n,e])}function yw(t,e,r,n){Be(ni(),"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||"";Mu(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.
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 $s({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 js(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 vu(t,e,r="/"){return qx(t,e,r,!1)}function qx(t,e,r,n){let o=typeof e=="string"?js(e):e,i=Zt(o.pathname||"/",r);if(i==null)return null;let s=xu(t);Gx(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let c=sw(i);a=ow(s[l],c,n)}return a}function xu(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}".`),xu(i.children,e,d,c)),!(i.path==null&&!i.index)&&e.push({path:c,score:rw(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 wu(i.path))o(i,s,l)}),e}function wu(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=wu(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 Gx(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:nw(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var Xx=/^:[\w-]+$/,Zx=3,Jx=2,Qx=1,ew=10,tw=-2,ku=t=>t==="*";function rw(t,e){let r=t.split("/"),n=r.length;return r.some(ku)&&(n+=tw),e&&(n+=Jx),r.filter(o=>!ku(o)).reduce((o,i)=>o+(Xx.test(i)?Zx:i===""?Qx:ew),n)}function nw(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 ow(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=ti({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),f=l.route;if(!u&&c&&r&&!n[n.length-1].route.index&&(u=ti({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:dw(zt([i,u.pathnameBase])),route:f}),u.pathnameBase!=="/"&&(i=zt([i,u.pathnameBase]))}return s}function ti(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=iw(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 p=a[f]||"";s=i.slice(0,i.length-p.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 iw(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 sw(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 Zt(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 aw(t,e="/"){let{pathname:r,search:n="",hash:o=""}=typeof t=="string"?js(t):t;return{pathname:r?r.startsWith("/")?r:lw(r,e):e,search:uw(n),hash:fw(o)}}function lw(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 Hs(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 cw(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function Cu(t){let e=cw(t);return e.map((r,n)=>n===e.length-1?r.pathname:r.pathnameBase)}function _u(t,e,r,n=!1){let o;typeof t=="string"?o=js(t):(o={...t},Be(!o.pathname||!o.pathname.includes("?"),Hs("?","pathname","search",o)),Be(!o.pathname||!o.pathname.includes("#"),Hs("#","pathname","hash",o)),Be(!o.search||!o.search.includes("#"),Hs("#","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=aw(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,"/"),dw=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),uw=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,fw=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function hw(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var Su=["POST","PUT","PATCH","DELETE"];new Set(Su);var gw=["GET",...Su];new Set(gw);var jr=C.createContext(null);jr.displayName="DataRouter";var ri=C.createContext(null);ri.displayName="DataRouterState";var Eu=C.createContext({isTransitioning:!1});Eu.displayName="ViewTransition";var pw=C.createContext(new Map);pw.displayName="Fetchers";var mw=C.createContext(null);mw.displayName="Await";var Bt=C.createContext(null);Bt.displayName="Navigation";var Ws=C.createContext(null);Ws.displayName="Location";var $t=C.createContext({outlet:null,matches:[],isDataRoute:!1});$t.displayName="Route";var Vs=C.createContext(null);Vs.displayName="RouteError";function bw(t,{relative:e}={}){Be(ni(),"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 ni(){return C.useContext(Ws)!=null}function yr(){return Be(ni(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(Ws).location}var Ou="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Tu(t){C.useContext(Bt).static||C.useLayoutEffect(t)}function yw(){let{isDataRoute:t}=C.useContext($t);return t?Pw():vw()}function vw(){Be(ni(),"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}=yr(),i=JSON.stringify(Cu(n)),s=C.useRef(!1);return Tu(()=>{s.current=!0}),C.useCallback((l,c={})=>{if(Ft(s.current,Ou),!s.current)return;if(typeof l=="number"){r.go(l);return}let d=_u(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}=yr(),o=JSON.stringify(Cu(r));return C.useMemo(()=>_u(t,JSON.parse(o),n,e==="path"),[t,o,n,e])}function xw(t,e,r,n){Be(ni(),"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||"";Mu(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=yr(),h;h=f;let p=h.pathname||"/",m=p;if(d!=="/"){let y=d.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=!i&&r&&r.matches&&r.matches.length>0?r.matches:vu(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(Vs.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,p=null;r&&(u=i&&c.route.id?i[c.route.id]:void 0,h=c.route.errorElement||xw,s&&(a<0&&d===0?(Mu("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,p=null):a===d&&(f=!0,p=c.route.hydrateFallbackElement||null)));let m=e.concat(o.slice(0,d+1)),b=()=>{let v;return u?v=h:f?v=p: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 Rs(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,Rs(t)),e}function Sw(t){let e=C.useContext(ri);return Be(e,Rs(t)),e}function Ew(t){let e=C.useContext($t);return Be(e,Rs(t)),e}function Ys(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 Ys("useRouteId")}function Tw(){var n;let t=C.useContext(Vs),e=Sw("useRouteError"),r=Ys("useRouteError");return t!==void 0?t:(n=e.errors)==null?void 0:n[r]}function Nw(){let{router:t}=_w("useNavigate"),e=Ys("useNavigate"),r=C.useRef(!1);return Tu(()=>{r.current=!0}),C.useCallback(async(o,i={})=>{Ft(r.current,Ou),r.current&&(typeof o=="number"?t.navigate(o):await t.navigate(o,{fromRouteId:e,...i}))},[t,e])}var Nu={};function Mu(t,e,r){!e&&!Nu[t]&&(Nu[t]=!0,Ft(!1,r))}C.memo(Mw);function Mw({routes:t,future:e,state:r}){return yw(t,void 0,r,e)}var oi="get",ii="application/x-www-form-urlencoded";function si(t){return t!=null&&typeof t.tagName=="string"}function Pw(t){return si(t)&&t.tagName.toLowerCase()==="button"}function Aw(t){return si(t)&&t.tagName.toLowerCase()==="form"}function Dw(t){return si(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 ai=null;function Fw(){if(ai===null)try{new FormData(document.createElement("form"),0),ai=!1}catch{ai=!0}return ai}var zw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Us(t){return t!=null&&!zw.has(t)?(Ft(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ii}"`),null):t}function Bw(t,e){let r,n,o,i,s;if(Aw(t)){let a=t.getAttribute("action");n=a?Zt(a,e):null,r=t.getAttribute("method")||oi,o=Us(t.getAttribute("enctype"))||ii,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?Zt(l,e):null,r=t.getAttribute("formmethod")||a.getAttribute("method")||oi,o=Us(t.getAttribute("formenctype"))||Us(a.getAttribute("enctype"))||ii,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(si(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=oi,n=null,o=ii,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 Pu(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&&Zt(r.pathname,e)==="/"?r.pathname=`${e.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Au(){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(ri);return Ks(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var qs=C.createContext(void 0);qs.displayName="FrameworkContext";function Du(){let t=C.useContext(qs);return Ks(t,"You must render this element inside a <HydratedRouter> element"),t}function qw(t,e){let r=C.useContext(qs),[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)},p=()=>{o(!1),s(!1)};return r?t!=="intent"?[i,f,{}]:[i,f,{onFocus:$n(a,h),onBlur:$n(l,p),onMouseEnter:$n(c,h),onMouseLeave:$n(d,p),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}=Au(),n=C.useMemo(()=>vu(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}=Du(),[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=yr(),{manifest:o,routeModules:i}=Du(),{basename:s}=Au(),{loaderData:a,matches:l}=Kw(),c=C.useMemo(()=>Pu(t,e,l,o,n,"data"),[t,e,l,o,n]),d=C.useMemo(()=>Pu(t,e,l,o,n,"assets"),[t,e,l,o,n]),u=C.useMemo(()=>{if(t===n.pathname+n.search+n.hash)return[];let p=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:p.add(v.route.id))}),p.size===0)return[];let b=Uw(t,s);return m&&p.size>0&&b.searchParams.set("_routes",e.filter(v=>p.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(p=>C.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...r})),f.map(p=>C.createElement("link",{key:p,rel:"modulepreload",href:p,...r})),h.map(({key:p,link:m})=>C.createElement("link",{key:p,...m})))}function Jw(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}var Iu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Iu&&(window.__reactRouterVersion="7.4.0")}catch{}var Lu=/^(?:[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:p}=C.useContext(Bt),m=typeof c=="string"&&Lu.test(c),b,v=!1;if(typeof c=="string"&&m&&(b=c,Iu))try{let N=new URL(window.location.href),E=c.startsWith("//")?new URL(N.protocol+c):new URL(c),I=Zt(E.pathname,p);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]=qw(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=yr(),h=C.useContext(ri),{navigator:p,basename:m}=C.useContext(Bt),b=h!=null&&a1(u)&&a===!0,v=p.encodeLocation?p.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&&(_=Zt(_,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=oi,action:a,onSubmit:l,relative:c,preventScrollReset:d,viewTransition:u,...f},h)=>{let p=i1(),m=s1(a,{relative:c}),b=s.toLowerCase()==="get"?"get":"post",v=typeof a=="string"&&Lu.test(a),y=_=>{if(l&&l(_),_.defaultPrevented)return;_.preventDefault();let x=_.nativeEvent.submitter,w=(x==null?void 0:x.getAttribute("formmethod"))||s;p(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 Fu(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=yr(),c=Bn(t,{relative:i});return C.useCallback(d=>{if(Lw(d,e)){d.preventDefault();let u=r!==void 0?r:$s(l)===$s(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}=Fu("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=yr();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])),$s(i)}function a1(t,e={}){let r=C.useContext(Eu);Be(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Fu("useViewTransitionState"),o=Bn(t,{relative:e.relative});if(!r.isTransitioning)return!1;let i=Zt(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=Zt(r.nextLocation.pathname,n)||r.nextLocation.pathname;return ti(o.pathname,s)!=null||ti(o.pathname,i)!=null}new TextEncoder;const l1=()=>{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 g.jsx("div",{className:"fixed left-0 top-0 z-40 h-full",children:g.jsxs("div",{className:"flex flex-col",onMouseEnter:o,onMouseLeave:i,children:[g.jsxs(sv,{collapsed:t,rootStyles:{[`.${xe.container}`]:{backgroundColor:"#483FFF",color:"#483FFF",height:"100vh",display:"flex",flexDirection:"column"}},children:[g.jsx(Hr,{to:"/dashboard",children:g.jsx("div",{children:g.jsx(Rt,{classIm:"mx-auto",src:"../../../../public/assets/images/logo mathilde.png",alt:"Logo Mathilde ads",width:74,height:74})})}),g.jsxs(cv,{children:[g.jsxs($r,{icon:g.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"," "]}),g.jsx(Hr,{to:"https://dsp.mathilde-ads.com/login",children:g.jsxs($r,{icon:g.jsx(Ax,{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"," "]})}),g.jsxs($r,{icon:g.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"," "]}),g.jsxs($r,{icon:g.jsx(Ix,{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"," "]}),g.jsxs($r,{icon:g.jsx(Dx,{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"," "]}),g.jsx(Hr,{to:"/settings",children:g.jsxs($r,{icon:g.jsx(Lx,{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"," "]})})]}),g.jsx("div",{className:"mt-auto self-end p-4",children:g.jsx("div",{className:"flex justify-center rounded-lg bg-white p-2",children:g.jsx("button",{className:"cursor-pointer text-3xl",style:{color:"#483FFF"},children:g.jsx(Fb,{})})})})]}),g.jsx(Ar,{width:"40%",isOpen:r==="campanas",onClose:()=>n(null),children:g.jsxs("div",{className:"flex flex-col p-10",children:[g.jsx("h2",{className:"mb-3 text-center font-bold",children:"Selecciona el tipo de campaña que quieres crear"}),g.jsxs("div",{className:"flex",children:[g.jsx("div",{className:"w-3/6 p-2",children:g.jsx(ei,{image:{type:"image",name:"medios-propios"},title:"Medios Propios",description:"Crea y administra campañas a los usuarios que ingresan a tus canales."})}),g.jsx("div",{className:"w-3/6 p-2",children:g.jsx(Hr,{to:"/thirdPartyCampaign",children:g.jsx(ei,{image:{type:"image",name:"medios-pagos"},title:"Medios Pagos",description:"Activa campañas de Marketing Digital usando inventario de Redes Sociales y Google."})})})]})]})}),g.jsx(Ar,{isOpen:r==="audiencias",onClose:()=>n(null),children:g.jsx("h2",{children:"Audiencias"})}),g.jsx(Ar,{isOpen:r==="reportes",onClose:()=>n(null),children:g.jsx("h2",{children:"Reportes"})}),g.jsx(Ar,{isOpen:r==="facturacion",onClose:()=>n(null),children:g.jsx("h2",{children:"Facturación"})}),g.jsx(Ar,{isOpen:r==="configuracion",onClose:()=>n(null),children:g.jsx("h2",{children:"Configuración"})})]})})};function c1(t){return ge({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 d1(t){return ge({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 u1(t){return ge({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 zu(t){return ge({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 Bu(t){return ge({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 $u(t){return ge({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 f1(t){return ge({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 h1(t){return ge({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 g1(t){return ge({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 ju(t){return ge({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 p1(t){return ge({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 Hu(t){return ge({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 m1(t){return ge({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 b1(t){return ge({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 Gs="-";function y1(t){const e=x1(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;function o(s){const a=s.split(Gs);return a[0]===""&&a.length!==1&&a.shift(),Wu(a,e)||v1(s)}function i(s,a){const l=r[s]||[];return a&&n[s]?[...l,...n[s]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function Wu(t,e){var s;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?Wu(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const i=t.join(Gs);return(s=e.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId}const Vu=/^\[(.+)\]$/;function v1(t){if(Vu.test(t)){const e=Vu.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}}function x1(t){const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return k1(Object.entries(t.classGroups),r).forEach(([i,s])=>{Xs(s,n,i,e)}),n}function Xs(t,e,r,n){t.forEach(o=>{if(typeof o=="string"){const i=o===""?e:Ru(e,o);i.classGroupId=r;return}if(typeof o=="function"){if(w1(o)){Xs(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Xs(s,Ru(e,i),r,n)})})}function Ru(t,e){let r=t;return e.split(Gs).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function w1(t){return t.isThemeGetter}function k1(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 C1(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 Yu="!";function _1(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(Yu),h=f?u.substring(1):u,p=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}}}function S1(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 E1(t){return{cache:C1(t.cacheSize),splitModifiers:_1(t),...y1(t)}}const O1=/\s+/;function T1(t,e){const{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:o}=e,i=new Set;return t.trim().split(O1).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=S1(a).join(":");return{isTailwindClass:!0,modifierId:l?h+Yu: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 N1(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Uu(e))&&(n&&(n+=" "),n+=r);return n}function Uu(t){if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Uu(t[n]))&&(r&&(r+=" "),r+=e);return r}function M1(t,...e){let r,n,o,i=s;function s(l){const c=e.reduce((d,u)=>u(d),t());return r=E1(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=T1(l,r);return o(l,d),d}return function(){return i(N1.apply(null,arguments))}}function ye(t){const e=r=>r[t]||[];return e.isThemeGetter=!0,e}const Ku=/^\[(?:([a-z-]+):)?(.+)\]$/i,P1=/^\d+\/\d+$/,A1=new Set(["px","full","screen"]),D1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,I1=/\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$/,L1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,F1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,z1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function jt(t){return vr(t)||A1.has(t)||P1.test(t)}function Jt(t){return Wr(t,"length",Y1)}function vr(t){return!!t&&!Number.isNaN(Number(t))}function li(t){return Wr(t,"number",vr)}function jn(t){return!!t&&Number.isInteger(Number(t))}function B1(t){return t.endsWith("%")&&vr(t.slice(0,-1))}function Z(t){return Ku.test(t)}function Qt(t){return D1.test(t)}const $1=new Set(["length","size","percentage"]);function j1(t){return Wr(t,$1,qu)}function H1(t){return Wr(t,"position",qu)}const W1=new Set(["image","url"]);function V1(t){return Wr(t,W1,K1)}function R1(t){return Wr(t,"",U1)}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 Y1(t){return I1.test(t)&&!L1.test(t)}function qu(){return!1}function U1(t){return F1.test(t)}function K1(t){return z1.test(t)}function q1(){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"),p=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,Jt],O=()=>["auto",vr,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=()=>[vr,li],V=()=>[vr,Z];return{cacheSize:500,separator:":",theme:{colors:[Hn],spacing:[jt,Jt],blur:["none","",Qt,Z],brightness:W(),borderColor:[t],borderRadius:["none","","full",Qt,Z],borderSpacing:A(),borderWidth:D(),contrast:W(),grayscale:j(),hueRotate:V(),invert:j(),gap:A(),gradientColorStops:[t],gradientColorStopPositions:[B1,Jt],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:[Qt]}],"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:[Qt]},Qt]}],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",Qt,Jt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",li]}],"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",vr,li]}],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,Jt]}],"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(),H1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",j1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},V1]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"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,Jt]}],"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,Jt]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Qt,R1]}],"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",Qt,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,Jt,li]}],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=M1(q1);function xr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function Wn(t){if(!xr(t))return t;const e={};for(const r in t)e[r]=Wn(t[r]);return e}function H(t,e){if(xr(e)&&Object.keys(e).length===0)return Wn({...t,...e});const r={...t,...e};if(xr(e)&&xr(t))for(const n in e)xr(e[n])&&n in t&&xr(t[n])?r[n]=H(t[n],e[n]):r[n]=xr(e[n])?Wn(e[n]):e[n];return r}function UC(t){return t}const G1={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"}}},X1={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"},Z1={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"}},J1={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"}}},Q1={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},ek={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"}},tk={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"}},rk={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"}},nk={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"}}},ok={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"}},ik={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"}}},sk={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"}},ak={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"}}}}},lk={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"},ck={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"}}}},dk={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"}},uk={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"}},fk={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"}}},hk={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"}},gk={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"}}},pk={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"}},mk={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"}}},bk={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"}},yk={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"}},vk={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"}}},xk={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"}},wk={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"}},kk={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"}},Ck={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"}}}},_k={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"}}},Sk={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"}},Ek={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"}}}},Ok={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"}},Tk={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"}},Nk={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"}},Mk={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"},Pk={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:""}},Ak={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:""}}}},Dk={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:""}}},Ik={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"}},Lk={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"}}},Fk={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"},zk={theme:Wn({accordion:G1,alert:X1,avatar:Z1,badge:J1,blockquote:Q1,breadcrumb:ek,button:tk,buttonGroup:rk,card:nk,carousel:ok,checkbox:ik,datepicker:ak,darkThemeToggle:sk,dropdown:lk,fileInput:ck,floatingLabel:dk,footer:uk,helperText:fk,kbd:hk,label:gk,listGroup:mk,list:pk,modal:bk,navbar:yk,pagination:vk,popover:xk,progress:wk,radio:kk,rangeSlider:Ck,rating:_k,ratingAdvanced:Sk,select:Ek,textInput:Ak,textarea:Pk,toggleSwitch:Lk,sidebar:Ok,spinner:Tk,table:Nk,tabs:Mk,timeline:Dk,toast:Ik,tooltip:Fk})};function q(){return Wn(zk.theme)}const Gu=k.createContext(void 0);function Xu(){const t=k.useContext(Gu);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const Zu=({children:t,className:e,theme:r={},...n})=>{const{isOpen:o}=Xu(),i=H(q().accordion.content,r);return g.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-accordion-content",hidden:!o,...n,children:t})},Ju=({children:t,...e})=>{const{alwaysOpen:r}=e,[n,o]=k.useState(e.isOpen),i=r?{...e,isOpen:n,setOpen:()=>o(!n)}:e;return g.jsx(Gu.Provider,{value:i,children:t})},Qu=({as:t="h2",children:e,className:r,theme:n={},...o})=>{const{arrowIcon:i,flush:s,isOpen:a,setOpen:l}=Xu(),c=()=>typeof l<"u"&&l(),d=H(q().accordion.title,n);return g.jsxs("button",{className:F(d.base,d.flush[s?"on":"off"],d.open[a?"on":"off"],r),onClick:c,type:"button",...o,children:[g.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),i&&g.jsx(i,{"aria-hidden":!0,className:F(d.arrow.base,d.arrow.open[a?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},ef=({alwaysOpen:t=!1,arrowIcon:e=zu,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(q().accordion.root,s);return g.jsx("div",{className:F(u.base,u.flush[n?"on":"off"],i),"data-testid":"flowbite-accordion",...a,children:d})};ef.displayName="Accordion",Ju.displayName="Accordion.Panel",Qu.displayName="Accordion.Title",Zu.displayName="Accordion.Content",Object.assign(ef,{Panel:Ju,Title:Qu,Content:Zu});const tf=({children:t,className:e,theme:r={},...n})=>{const o=H(q().avatar.group,r);return g.jsx("div",{"data-testid":"avatar-group-element",className:F(o.base,e),...n,children:t})};tf.displayName="Avatar.Group";const rf=({className:t,href:e,theme:r={},total:n,...o})=>{const i=H(q().avatar.groupCounter,r);return g.jsxs("a",{href:e,className:F(i.base,t),...o,children:["+",n]})};rf.displayName="Avatar.GroupCounter";const nf=({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 p=H(q().avatar,f),m=F(p.root.img.base,e&&p.root.bordered,e&&p.root.color[o],a&&p.root.rounded,c&&p.root.stacked,p.root.img.on,p.root.size[l]),b={className:F(m,p.root.img.on),"data-testid":"flowbite-avatar-img"};return g.jsxs("div",{className:F(p.root.base,n),"data-testid":"flowbite-avatar",...h,children:[g.jsxs("div",{className:"relative",children:[i?typeof i=="string"?g.jsx("img",{alt:t,src:i,...b}):i({alt:t,...b}):s?g.jsx("div",{className:F(p.root.img.off,p.root.initials.base,c&&p.root.stacked,e&&p.root.bordered,e&&p.root.color[o],p.root.size[l],a&&p.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:g.jsx("span",{className:F(p.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:s})}):g.jsx("div",{className:F(m,p.root.img.off),"data-testid":"flowbite-avatar-img",children:g.jsx("svg",{className:p.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:g.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&&g.jsx("span",{"data-testid":"flowbite-avatar-status",className:F(p.root.status.base,p.root.status[d],p.root.statusPosition[u])})]}),r&&g.jsx("div",{children:r})]})};nf.displayName="Avatar",Object.assign(nf,{Group:tf,Counter:rf});const of=({children:t,color:e="info",href:r,icon:n,size:o="xs",className:i,theme:s={},...a})=>{const l=H(q().badge,s),c=()=>g.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&&g.jsx(n,{"aria-hidden":!0,className:l.icon.size[o],"data-testid":"flowbite-badge-icon"}),t&&g.jsx("span",{children:t})]});return r?g.jsx("a",{className:l.root.href,href:r,children:g.jsx(c,{})}):g.jsx(c,{})};of.displayName="Badge";const sf=({className:t,color:e="info",light:r,size:n="md",theme:o={},...i})=>{const s=H(q().spinner,o);return g.jsx("span",{role:"status",...i,children:g.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:[g.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"}),g.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"})]})})};sf.displayName="Spinner";const Zs=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)});Zs.displayName="ButtonBaseComponent";const af=(t,e,r)=>k.Children.map(t,(n,o)=>k.isValidElement(n)?n.props.children?k.cloneElement(n,{...n.props,children:af(n.props.children,e,r),positionInGroup:lf(o,k.Children.count(t))}):k.cloneElement(n,{outline:e,pill:r,positionInGroup:lf(o,k.Children.count(t))}):n),lf=(t,e)=>t===0?"start":t===e-1?"end":"middle",cf=({children:t,className:e,outline:r,pill:n,theme:o={},...i})=>{const s=k.useMemo(()=>af(t,r,n),[t,r,n]),a=H(q().buttonGroup,o);return g.jsx("div",{className:F(a.base,e),role:"group",...i,children:s})};cf.displayName="Button.Group";const df=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:p="md",theme:m={},...b},v)=>{const{buttonGroup:y,button:_}=q(),x=H(_,m),w=b;return g.jsx(Zs,{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:g.jsx("span",{className:F(x.inner.base,x.outline[u?"on":"off"],x.outline.pill[u&&f?"on":"off"],x.size[p],u&&!x.outline.color[r]&&x.inner.outline,i&&x.isProcessing,i&&x.inner.isProcessingPadding[p],x.inner.position[h]),children:g.jsxs(g.Fragment,{children:[i&&g.jsx("span",{className:F(x.spinnerSlot,x.spinnerLeftPosition[p]),children:a||g.jsx(sf,{size:p})}),typeof t<"u"?t:g.jsx("span",{"data-testid":"flowbite-button-label",className:F(x.label),children:i?s:d})]})})})});df.displayName="Button";const uf=Object.assign(df,{Group:cf}),ff=({children:t,...e})=>{const r=n=>{const i=n.target.closest('[role="banner"]');i==null||i.remove()};return g.jsx(uf,{onClick:r,...e,children:t})};ff.displayName="Banner.CollapseButton";const hf=({children:t,...e})=>g.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});hf.displayName="Banner",Object.assign(hf,{CollapseButton:ff});const gf=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(q().breadcrumb.item,o);return g.jsxs("li",{className:F(c.base,e),...i,children:[g.jsx(Hu,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),g.jsxs(l,{ref:s,className:c.href[a?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:r,children:[n&&g.jsx(n,{"aria-hidden":!0,className:c.icon}),t]})]})});gf.displayName="Breadcrumb.Item";const pf=({children:t,className:e,theme:r={},...n})=>{const o=H(q().breadcrumb.root,r);return g.jsx("nav",{"aria-label":"Breadcrumb",className:F(o.base,e),...n,children:g.jsx("ol",{className:o.list,children:t})})};pf.displayName="Breadcrumb",Object.assign(pf,{Item:gf});var mf={exports:{}};/*!
491
+ Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let f=yr(),h;h=f;let p=h.pathname||"/",m=p;if(d!=="/"){let y=d.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=!i&&r&&r.matches&&r.matches.length>0?r.matches:vu(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.`),Sw(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 ww(){let t=Mw(),e=hw(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 kw=C.createElement(ww,null),Cw=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(Vs.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function _w({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 Sw(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,p=null;r&&(u=i&&c.route.id?i[c.route.id]:void 0,h=c.route.errorElement||kw,s&&(a<0&&d===0?(Mu("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,p=null):a===d&&(f=!0,p=c.route.hydrateFallbackElement||null)));let m=e.concat(o.slice(0,d+1)),b=()=>{let v;return u?v=h:f?v=p:c.route.Component?v=C.createElement(c.route.Component,null):c.route.element?v=c.route.element:v=l,C.createElement(_w,{match:c,routeContext:{outlet:l,matches:m,isDataRoute:r!=null},children:v})};return r&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?C.createElement(Cw,{location:r.location,revalidation:r.revalidation,component:h,error:u,children:b(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):b()},null)}function Rs(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ew(t){let e=C.useContext(jr);return Be(e,Rs(t)),e}function Ow(t){let e=C.useContext(ri);return Be(e,Rs(t)),e}function Tw(t){let e=C.useContext($t);return Be(e,Rs(t)),e}function Ys(t){let e=Tw(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 Nw(){return Ys("useRouteId")}function Mw(){var n;let t=C.useContext(Vs),e=Ow("useRouteError"),r=Ys("useRouteError");return t!==void 0?t:(n=e.errors)==null?void 0:n[r]}function Pw(){let{router:t}=Ew("useNavigate"),e=Ys("useNavigate"),r=C.useRef(!1);return Tu(()=>{r.current=!0}),C.useCallback(async(o,i={})=>{Ft(r.current,Ou),r.current&&(typeof o=="number"?t.navigate(o):await t.navigate(o,{fromRouteId:e,...i}))},[t,e])}var Nu={};function Mu(t,e,r){!e&&!Nu[t]&&(Nu[t]=!0,Ft(!1,r))}C.memo(Aw);function Aw({routes:t,future:e,state:r}){return xw(t,void 0,r,e)}var oi="get",ii="application/x-www-form-urlencoded";function si(t){return t!=null&&typeof t.tagName=="string"}function Iw(t){return si(t)&&t.tagName.toLowerCase()==="button"}function Dw(t){return si(t)&&t.tagName.toLowerCase()==="form"}function Lw(t){return si(t)&&t.tagName.toLowerCase()==="input"}function Fw(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function zw(t,e){return t.button===0&&(!e||e==="_self")&&!Fw(t)}var ai=null;function Bw(){if(ai===null)try{new FormData(document.createElement("form"),0),ai=!1}catch{ai=!0}return ai}var $w=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Us(t){return t!=null&&!$w.has(t)?(Ft(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ii}"`),null):t}function jw(t,e){let r,n,o,i,s;if(Dw(t)){let a=t.getAttribute("action");n=a?Zt(a,e):null,r=t.getAttribute("method")||oi,o=Us(t.getAttribute("enctype"))||ii,i=new FormData(t)}else if(Iw(t)||Lw(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?Zt(l,e):null,r=t.getAttribute("formmethod")||a.getAttribute("method")||oi,o=Us(t.getAttribute("formenctype"))||Us(a.getAttribute("enctype"))||ii,i=new FormData(a,t),!Bw()){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(si(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=oi,n=null,o=ii,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 Hw(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 Ww(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 Vw(t,e,r){let n=await Promise.all(t.map(async o=>{let i=e.routes[o.route.id];if(i){let s=await Hw(i,r);return s.links?s.links():[]}return[]}));return Kw(n.flat(1).filter(Ww).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Pu(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 Rw(t,e,{includeHydrateFallback:r}={}){return Yw(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 Yw(t){return[...new Set(t)]}function Uw(t){let e={},r=Object.keys(t).sort();for(let n of r)e[n]=t[n];return e}function Kw(t,e){let r=new Set;return new Set(e),t.reduce((n,o)=>{let i=JSON.stringify(Uw(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&&Zt(r.pathname,e)==="/"?r.pathname=`${e.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Au(){let t=C.useContext(jr);return Ks(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Gw(){let t=C.useContext(ri);return Ks(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var qs=C.createContext(void 0);qs.displayName="FrameworkContext";function Iu(){let t=C.useContext(qs);return Ks(t,"You must render this element inside a <HydratedRouter> element"),t}function Xw(t,e){let r=C.useContext(qs),[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)},p=()=>{o(!1),s(!1)};return r?t!=="intent"?[i,f,{}]:[i,f,{onFocus:$n(a,h),onBlur:$n(l,p),onMouseEnter:$n(c,h),onMouseLeave:$n(d,p),onTouchStart:$n(u,h)}]:[!1,f,{}]}function $n(t,e){return r=>{t&&t(r),r.defaultPrevented||e(r)}}function Zw({page:t,...e}){let{router:r}=Au(),n=C.useMemo(()=>vu(r.routes,t,r.basename),[r.routes,t,r.basename]);return n?C.createElement(Qw,{page:t,matches:n,...e}):null}function Jw(t){let{manifest:e,routeModules:r}=Iu(),[n,o]=C.useState([]);return C.useEffect(()=>{let i=!1;return Vw(t,e,r).then(s=>{i||o(s)}),()=>{i=!0}},[t,e,r]),n}function Qw({page:t,matches:e,...r}){let n=yr(),{manifest:o,routeModules:i}=Iu(),{basename:s}=Au(),{loaderData:a,matches:l}=Gw(),c=C.useMemo(()=>Pu(t,e,l,o,n,"data"),[t,e,l,o,n]),d=C.useMemo(()=>Pu(t,e,l,o,n,"assets"),[t,e,l,o,n]),u=C.useMemo(()=>{if(t===n.pathname+n.search+n.hash)return[];let p=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:p.add(v.route.id))}),p.size===0)return[];let b=qw(t,s);return m&&p.size>0&&b.searchParams.set("_routes",e.filter(v=>p.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(()=>Rw(d,o),[d,o]),h=Jw(d);return C.createElement(C.Fragment,null,u.map(p=>C.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...r})),f.map(p=>C.createElement("link",{key:p,rel:"modulepreload",href:p,...r})),h.map(({key:p,link:m})=>C.createElement("link",{key:p,...m})))}function e1(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}var Du=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Du&&(window.__reactRouterVersion="7.4.0")}catch{}var Lu=/^(?:[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:p}=C.useContext(Bt),m=typeof c=="string"&&Lu.test(c),b,v=!1;if(typeof c=="string"&&m&&(b=c,Du))try{let N=new URL(window.location.href),E=c.startsWith("//")?new URL(N.protocol+c):new URL(c),D=Zt(E.pathname,p);E.origin===N.origin&&D!=null?c=D+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=bw(c,{relative:o}),[_,x,w]=Xw(n,f),S=o1(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:e1(h,x),target:l,"data-discover":!m&&r==="render"?"true":void 0});return _&&!m?C.createElement(C.Fragment,null,M,C.createElement(Zw,{page:y})):M});Hr.displayName="Link";var t1=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=yr(),h=C.useContext(ri),{navigator:p,basename:m}=C.useContext(Bt),b=h!=null&&c1(u)&&a===!0,v=p.encodeLocation?p.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&&(_=Zt(_,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)});t1.displayName="NavLink";var r1=C.forwardRef(({discover:t="render",fetcherKey:e,navigate:r,reloadDocument:n,replace:o,state:i,method:s=oi,action:a,onSubmit:l,relative:c,preventScrollReset:d,viewTransition:u,...f},h)=>{let p=a1(),m=l1(a,{relative:c}),b=s.toLowerCase()==="get"?"get":"post",v=typeof a=="string"&&Lu.test(a),y=_=>{if(l&&l(_),_.defaultPrevented)return;_.preventDefault();let x=_.nativeEvent.submitter,w=(x==null?void 0:x.getAttribute("formmethod"))||s;p(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})});r1.displayName="Form";function n1(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fu(t){let e=C.useContext(jr);return Be(e,n1(t)),e}function o1(t,{target:e,replace:r,state:n,preventScrollReset:o,relative:i,viewTransition:s}={}){let a=yw(),l=yr(),c=Bn(t,{relative:i});return C.useCallback(d=>{if(zw(d,e)){d.preventDefault();let u=r!==void 0?r:$s(l)===$s(c);a(t,{replace:u,state:n,preventScrollReset:o,relative:i,viewTransition:s})}},[l,a,c,r,n,e,t,o,i,s])}var i1=0,s1=()=>`__${String(++i1)}__`;function a1(){let{router:t}=Fu("useSubmit"),{basename:e}=C.useContext(Bt),r=Nw();return C.useCallback(async(n,o={})=>{let{action:i,method:s,encType:a,formData:l,body:c}=jw(n,e);if(o.navigate===!1){let d=o.fetcherKey||s1();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 l1(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=yr();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])),$s(i)}function c1(t,e={}){let r=C.useContext(Eu);Be(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Fu("useViewTransitionState"),o=Bn(t,{relative:e.relative});if(!r.isTransitioning)return!1;let i=Zt(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=Zt(r.nextLocation.pathname,n)||r.nextLocation.pathname;return ti(o.pathname,s)!=null||ti(o.pathname,i)!=null}new TextEncoder;const 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 g.jsx("div",{className:"fixed left-0 top-0 z-40 h-full",children:g.jsxs("div",{className:"flex flex-col",onMouseEnter:o,onMouseLeave:i,children:[g.jsxs(av,{collapsed:t,rootStyles:{[`.${xe.container}`]:{backgroundColor:"#483FFF",color:"#483FFF",height:"100vh",display:"flex",flexDirection:"column"}},children:[g.jsx(Hr,{to:"/dashboard",children:g.jsx("div",{children:g.jsx(Rt,{classIm:"mx-auto",src:Ix,alt:"Logo Mathilde ads",width:74,height:74})})}),g.jsxs(dv,{children:[g.jsxs($r,{icon:g.jsx(ap,{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"," "]}),g.jsx(Hr,{to:"https://dsp.mathilde-ads.com/login",children:g.jsxs($r,{icon:g.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"," "]})}),g.jsxs($r,{icon:g.jsx(lp,{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"," "]}),g.jsxs($r,{icon:g.jsx(Fx,{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"," "]}),g.jsxs($r,{icon:g.jsx(Lx,{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"," "]}),g.jsx(Hr,{to:"/settings",children:g.jsxs($r,{icon:g.jsx(zx,{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"," "]})})]}),g.jsx("div",{className:"mt-auto self-end p-4",children:g.jsx("div",{className:"flex justify-center rounded-lg bg-white p-2",children:g.jsx("button",{className:"cursor-pointer text-3xl",style:{color:"#483FFF"},children:g.jsx(zb,{})})})})]}),g.jsx(Ar,{width:"40%",isOpen:r==="campanas",onClose:()=>n(null),children:g.jsxs("div",{className:"flex flex-col p-10",children:[g.jsx("h2",{className:"mb-3 text-center font-bold",children:"Selecciona el tipo de campaña que quieres crear"}),g.jsxs("div",{className:"flex",children:[g.jsx("div",{className:"w-3/6 p-2",children:g.jsx(ei,{image:{type:"image",name:"medios-propios"},title:"Medios Propios",description:"Crea y administra campañas a los usuarios que ingresan a tus canales."})}),g.jsx("div",{className:"w-3/6 p-2",children:g.jsx(Hr,{to:"/thirdPartyCampaign",children:g.jsx(ei,{image:{type:"image",name:"medios-pagos"},title:"Medios Pagos",description:"Activa campañas de Marketing Digital usando inventario de Redes Sociales y Google."})})})]})]})}),g.jsx(Ar,{isOpen:r==="audiencias",onClose:()=>n(null),children:g.jsx("h2",{children:"Audiencias"})}),g.jsx(Ar,{isOpen:r==="reportes",onClose:()=>n(null),children:g.jsx("h2",{children:"Reportes"})}),g.jsx(Ar,{isOpen:r==="facturacion",onClose:()=>n(null),children:g.jsx("h2",{children:"Facturación"})}),g.jsx(Ar,{isOpen:r==="configuracion",onClose:()=>n(null),children:g.jsx("h2",{children:"Configuración"})})]})})};function u1(t){return ge({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 ge({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 ge({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 zu(t){return ge({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 Bu(t){return ge({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 $u(t){return ge({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 ge({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 ge({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 ge({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 ju(t){return ge({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 ge({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 Hu(t){return ge({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 ge({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 ge({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 Gs="-";function x1(t){const e=k1(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;function o(s){const a=s.split(Gs);return a[0]===""&&a.length!==1&&a.shift(),Wu(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 Wu(t,e){var s;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?Wu(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const i=t.join(Gs);return(s=e.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId}const Vu=/^\[(.+)\]$/;function w1(t){if(Vu.test(t)){const e=Vu.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])=>{Xs(s,n,i,e)}),n}function Xs(t,e,r,n){t.forEach(o=>{if(typeof o=="string"){const i=o===""?e:Ru(e,o);i.classGroupId=r;return}if(typeof o=="function"){if(C1(o)){Xs(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Xs(s,Ru(e,i),r,n)})})}function Ru(t,e){let r=t;return e.split(Gs).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 Yu="!";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(Yu),h=f?u.substring(1):u,p=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}}}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+Yu: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=Uu(e))&&(n&&(n+=" "),n+=r);return n}function Uu(t){if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Uu(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,I1=/^\d+\/\d+$/,D1=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 vr(t)||D1.has(t)||I1.test(t)}function Jt(t){return Wr(t,"length",K1)}function vr(t){return!!t&&!Number.isNaN(Number(t))}function li(t){return Wr(t,"number",vr)}function jn(t){return!!t&&Number.isInteger(Number(t))}function j1(t){return t.endsWith("%")&&vr(t.slice(0,-1))}function Z(t){return Ku.test(t)}function Qt(t){return L1.test(t)}const H1=new Set(["length","size","percentage"]);function W1(t){return Wr(t,H1,qu)}function V1(t){return Wr(t,"position",qu)}const R1=new Set(["image","url"]);function Y1(t){return Wr(t,R1,G1)}function U1(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 K1(t){return F1.test(t)&&!z1.test(t)}function qu(){return!1}function q1(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"),p=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"],D=()=>["auto",Z,e],A=()=>[Z,e],I=()=>["",jt,Jt],O=()=>["auto",vr,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=()=>[vr,li],V=()=>[vr,Z];return{cacheSize:500,separator:":",theme:{colors:[Hn],spacing:[jt,Jt],blur:["none","",Qt,Z],brightness:W(),borderColor:[t],borderRadius:["none","","full",Qt,Z],borderSpacing:A(),borderWidth:I(),contrast:W(),grayscale:j(),hueRotate:V(),invert:j(),gap:A(),gradientColorStops:[t],gradientColorStopPositions:[j1,Jt],inset:D(),margin:D(),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:[Qt]}],"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:D()}],"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:[Qt]},Qt]}],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",Qt,Jt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",li]}],"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",vr,li]}],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,Jt]}],"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:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"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,Jt]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[jt,Jt]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Qt,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",Qt,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,Jt,li]}],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 xr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function Wn(t){if(!xr(t))return t;const e={};for(const r in t)e[r]=Wn(t[r]);return e}function H(t,e){if(xr(e)&&Object.keys(e).length===0)return Wn({...t,...e});const r={...t,...e};if(xr(e)&&xr(t))for(const n in e)xr(e[n])&&n in t&&xr(t[n])?r[n]=H(t[n],e[n]):r[n]=xr(e[n])?Wn(e[n]):e[n];return r}function r_(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"},Ik={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:""}}}},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:Dk,textarea:Ik,toggleSwitch:zk,sidebar:Nk,spinner:Mk,table:Pk,tabs:Ak,timeline:Lk,toast:Fk,tooltip:Bk})};function q(){return Wn($k.theme)}const Gu=k.createContext(void 0);function Xu(){const t=k.useContext(Gu);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const Zu=({children:t,className:e,theme:r={},...n})=>{const{isOpen:o}=Xu(),i=H(q().accordion.content,r);return g.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-accordion-content",hidden:!o,...n,children:t})},Ju=({children:t,...e})=>{const{alwaysOpen:r}=e,[n,o]=k.useState(e.isOpen),i=r?{...e,isOpen:n,setOpen:()=>o(!n)}:e;return g.jsx(Gu.Provider,{value:i,children:t})},Qu=({as:t="h2",children:e,className:r,theme:n={},...o})=>{const{arrowIcon:i,flush:s,isOpen:a,setOpen:l}=Xu(),c=()=>typeof l<"u"&&l(),d=H(q().accordion.title,n);return g.jsxs("button",{className:F(d.base,d.flush[s?"on":"off"],d.open[a?"on":"off"],r),onClick:c,type:"button",...o,children:[g.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),i&&g.jsx(i,{"aria-hidden":!0,className:F(d.arrow.base,d.arrow.open[a?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},ef=({alwaysOpen:t=!1,arrowIcon:e=zu,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(q().accordion.root,s);return g.jsx("div",{className:F(u.base,u.flush[n?"on":"off"],i),"data-testid":"flowbite-accordion",...a,children:d})};ef.displayName="Accordion",Ju.displayName="Accordion.Panel",Qu.displayName="Accordion.Title",Zu.displayName="Accordion.Content",Object.assign(ef,{Panel:Ju,Title:Qu,Content:Zu});const tf=({children:t,className:e,theme:r={},...n})=>{const o=H(q().avatar.group,r);return g.jsx("div",{"data-testid":"avatar-group-element",className:F(o.base,e),...n,children:t})};tf.displayName="Avatar.Group";const rf=({className:t,href:e,theme:r={},total:n,...o})=>{const i=H(q().avatar.groupCounter,r);return g.jsxs("a",{href:e,className:F(i.base,t),...o,children:["+",n]})};rf.displayName="Avatar.GroupCounter";const nf=({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 p=H(q().avatar,f),m=F(p.root.img.base,e&&p.root.bordered,e&&p.root.color[o],a&&p.root.rounded,c&&p.root.stacked,p.root.img.on,p.root.size[l]),b={className:F(m,p.root.img.on),"data-testid":"flowbite-avatar-img"};return g.jsxs("div",{className:F(p.root.base,n),"data-testid":"flowbite-avatar",...h,children:[g.jsxs("div",{className:"relative",children:[i?typeof i=="string"?g.jsx("img",{alt:t,src:i,...b}):i({alt:t,...b}):s?g.jsx("div",{className:F(p.root.img.off,p.root.initials.base,c&&p.root.stacked,e&&p.root.bordered,e&&p.root.color[o],p.root.size[l],a&&p.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:g.jsx("span",{className:F(p.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:s})}):g.jsx("div",{className:F(m,p.root.img.off),"data-testid":"flowbite-avatar-img",children:g.jsx("svg",{className:p.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:g.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&&g.jsx("span",{"data-testid":"flowbite-avatar-status",className:F(p.root.status.base,p.root.status[d],p.root.statusPosition[u])})]}),r&&g.jsx("div",{children:r})]})};nf.displayName="Avatar",Object.assign(nf,{Group:tf,Counter:rf});const of=({children:t,color:e="info",href:r,icon:n,size:o="xs",className:i,theme:s={},...a})=>{const l=H(q().badge,s),c=()=>g.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&&g.jsx(n,{"aria-hidden":!0,className:l.icon.size[o],"data-testid":"flowbite-badge-icon"}),t&&g.jsx("span",{children:t})]});return r?g.jsx("a",{className:l.root.href,href:r,children:g.jsx(c,{})}):g.jsx(c,{})};of.displayName="Badge";const sf=({className:t,color:e="info",light:r,size:n="md",theme:o={},...i})=>{const s=H(q().spinner,o);return g.jsx("span",{role:"status",...i,children:g.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:[g.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"}),g.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"})]})})};sf.displayName="Spinner";const Zs=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)});Zs.displayName="ButtonBaseComponent";const af=(t,e,r)=>k.Children.map(t,(n,o)=>k.isValidElement(n)?n.props.children?k.cloneElement(n,{...n.props,children:af(n.props.children,e,r),positionInGroup:lf(o,k.Children.count(t))}):k.cloneElement(n,{outline:e,pill:r,positionInGroup:lf(o,k.Children.count(t))}):n),lf=(t,e)=>t===0?"start":t===e-1?"end":"middle",cf=({children:t,className:e,outline:r,pill:n,theme:o={},...i})=>{const s=k.useMemo(()=>af(t,r,n),[t,r,n]),a=H(q().buttonGroup,o);return g.jsx("div",{className:F(a.base,e),role:"group",...i,children:s})};cf.displayName="Button.Group";const df=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:p="md",theme:m={},...b},v)=>{const{buttonGroup:y,button:_}=q(),x=H(_,m),w=b;return g.jsx(Zs,{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:g.jsx("span",{className:F(x.inner.base,x.outline[u?"on":"off"],x.outline.pill[u&&f?"on":"off"],x.size[p],u&&!x.outline.color[r]&&x.inner.outline,i&&x.isProcessing,i&&x.inner.isProcessingPadding[p],x.inner.position[h]),children:g.jsxs(g.Fragment,{children:[i&&g.jsx("span",{className:F(x.spinnerSlot,x.spinnerLeftPosition[p]),children:a||g.jsx(sf,{size:p})}),typeof t<"u"?t:g.jsx("span",{"data-testid":"flowbite-button-label",className:F(x.label),children:i?s:d})]})})})});df.displayName="Button";const uf=Object.assign(df,{Group:cf}),ff=({children:t,...e})=>{const r=n=>{const i=n.target.closest('[role="banner"]');i==null||i.remove()};return g.jsx(uf,{onClick:r,...e,children:t})};ff.displayName="Banner.CollapseButton";const hf=({children:t,...e})=>g.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});hf.displayName="Banner",Object.assign(hf,{CollapseButton:ff});const gf=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(q().breadcrumb.item,o);return g.jsxs("li",{className:F(c.base,e),...i,children:[g.jsx(Hu,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),g.jsxs(l,{ref:s,className:c.href[a?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:r,children:[n&&g.jsx(n,{"aria-hidden":!0,className:c.icon}),t]})]})});gf.displayName="Breadcrumb.Item";const pf=({children:t,className:e,theme:r={},...n})=>{const o=H(q().breadcrumb.root,r);return g.jsx("nav",{"aria-label":"Breadcrumb",className:F(o.base,e),...n,children:g.jsx("ol",{className:o.list,children:t})})};pf.displayName="Breadcrumb",Object.assign(pf,{Item:gf});var mf={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})()})(mf);var Bk=mf.exports;const $k=mu(Bk);var Js={exports:{}};function bf(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,p=i;o=void 0,i=void 0,l=t.apply(h,p)}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}Js.exports.debounce=bf,Js.exports=bf;var jk=Js.exports;const Hk=mu(jk);var Wk=Object.defineProperty,Vk=(t,e,r)=>e in t?Wk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Me=(t,e,r)=>(Vk(t,typeof e!="symbol"?e+"":e,r),r);const Rk=300,Yk=0;class Uk 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=Hk(this.onEndScroll,Rk),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 g.jsx("div",{className:$k(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(Uk,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[Yk]});const Kk=k.forwardRef(({className:t,color:e="default",theme:r={},...n},o)=>{const i=H(q().checkbox,r);return g.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(q().helperText,n);return g.jsx("p",{className:F(s.root.base,s.root.colors[r],e),...i,children:o??t??""})};Vn.displayName="HelperText";const Qs=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(q().textInput,l);return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:F(f.base,e),children:[t&&g.jsx("span",{className:f.addon,children:t}),g.jsxs("div",{className:f.field.base,children:[o&&g.jsx("div",{className:f.field.icon.base,children:g.jsx(o,{className:f.field.icon.svg})}),i&&g.jsx("div",{"data-testid":"right-icon",className:f.field.rightIcon.base,children:g.jsx(i,{className:f.field.rightIcon.svg})}),g.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&&g.jsx(Vn,{color:r,children:n})]})});Qs.displayName="TextInput";const yf=k.createContext(void 0);function ci(){const t=k.useContext(yf);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||{}),vf=(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))(vf||{});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},di=(t,e)=>(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t.getTime()===e.getTime()),qk=(t,e,r)=>(Rn(t,e,r)||(e&&t<e?t=e:r&&t>r&&(t=r)),t),Gk=(t,e)=>{const r=new Date(t.getFullYear(),t.getMonth(),1);let o=r.getDay()-e;return o<0&&(o+=7),ea(r,-o)},Xk=(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(ea(n,i)));return r},ea=(t,e)=>{const r=new Date(t);return r.setDate(r.getDate()+e),r},Zk=(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},Jk=(t,e)=>{const r=t.getFullYear(),n=e+9;return r>=e&&r<=n},Qk=({theme:t={}})=>{const{theme:e,weekStart:r,minDate:n,maxDate:o,viewDate:i,selectedDate:s,changeSelectedDate:a,language:l}=ci(),c=H(e.views.days,t),d=Xk(l,r),u=Gk(i,r);return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:c.header.base,children:d.map((f,h)=>g.jsx("span",{className:c.header.title,children:f},h))}),g.jsx("div",{className:c.items.base,children:[...Array(42)].map((f,h)=>{const p=ea(u,h),m=Yn(l,p,{day:"numeric"}),b=di(s,p),v=!Rn(p,n,o);return g.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(p,!0)},children:m},h)})})]})},e2=({theme:t={}})=>{const{theme:e,selectedDate:r,viewDate:n,setViewDate:o,setView:i}=ci(),s=H(e.views.decades,t);return g.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=Jk(n,d),p=!Rn(n,u,f);return g.jsx("button",{disabled:p,type:"button",className:F(s.items.item.base,h&&s.items.item.selected,p&&s.items.item.disabled),onClick:()=>{p||(o(Vr(n,d-r.getFullYear())),i(ve.Years))},children:d},l)})})},t2=({theme:t={}})=>{const{theme:e,minDate:r,maxDate:n,selectedDate:o,viewDate:i,language:s,setViewDate:a,setView:l}=ci(),c=H(e.views.months,t);return g.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"}),p=di(o,f),m=!Rn(f,r,n);return g.jsx("button",{disabled:m,type:"button",className:F(c.items.item.base,p&&c.items.item.selected,m&&c.items.item.disabled),onClick:()=>{m||(a(f),l(ve.Days))},children:h},u)})})},r2=({theme:t={}})=>{const{theme:e,selectedDate:r,minDate:n,maxDate:o,viewDate:i,setViewDate:s,setView:a}=ci(),l=H(e.views.years,t);return g.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 p=di(r,h),m=!Rn(h,n,o);return g.jsx("button",{disabled:m,type:"button",className:F(l.items.item.base,p&&l.items.item.selected,m&&l.items.item.disabled),onClick:()=>{m||(s(h),a(ve.Months))},children:f},d)})})},n2=({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=vf.Sunday,className:h,theme:p={},onSelectedDateChanged:m,...b},v)=>{const y=H(q().datepicker,p);l=qk(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 g.jsx(e2,{theme:y.views.decades});case ve.Years:return g.jsx(r2,{theme:y.views.years});case ve.Months:return g.jsx(t2,{theme:y.views.months});case ve.Days:default:return g.jsx(Qk,{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(Zk($,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]),g.jsx(yf.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:g.jsxs("div",{className:F(y.root.base,h),children:[!r&&g.jsx(Qs,{theme:y.root.input,icon:u1,ref:I,onFocus:()=>{di(N,T)||E(T),x(!0)},value:T&&Yn(u,T),readOnly:!0,...b}),(_||r)&&g.jsx("div",{ref:A,className:F(y.popup.root.base,r&&y.popup.root.inline),children:g.jsxs("div",{className:y.popup.root.inner,children:[g.jsxs("div",{className:y.popup.header.base,children:[t&&g.jsx("div",{className:y.popup.header.title,children:t}),g.jsxs("div",{className:y.popup.header.selectors.base,children:[g.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:g.jsx(c1,{})}),g.jsx("button",{type:"button",className:F(y.popup.header.selectors.button.base,y.popup.header.selectors.button.view),onClick:()=>S(L()),children:z()}),g.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:g.jsx(d1,{})})]})]}),g.jsx("div",{className:y.popup.view.base,children:P(w)}),(o||s)&&g.jsxs("div",{className:y.popup.footer.base,children:[s&&g.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&&g.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})]})]})})]})})},o2=k.forwardRef(n2);o2.displayName="Datepicker";function ui(){return typeof window<"u"}function wr(t){return xf(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=(xf(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function xf(t){return ui()?t instanceof Node||t instanceof Qe(t).Node:!1}function pe(t){return ui()?t instanceof Element||t instanceof Qe(t).Element:!1}function $e(t){return ui()?t instanceof HTMLElement||t instanceof Qe(t).HTMLElement:!1}function ta(t){return!ui()||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 i2(t){return["table","td","th"].includes(wr(t))}function fi(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function ra(t){const e=na(),r=pe(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 s2(t){let e=Ht(t);for(;$e(e)&&!er(e);){if(ra(e))return e;if(fi(e))return null;e=Ht(e)}return null}function na(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function er(t){return["html","body","#document"].includes(wr(t))}function ut(t){return Qe(t).getComputedStyle(t)}function hi(t){return pe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ht(t){if(wr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ta(t)&&t.host||St(t);return ta(e)?e.host:e}function wf(t){const e=Ht(t);return er(e)?t.ownerDocument?t.ownerDocument.body:t.body:$e(e)&&Un(e)?e:wf(e)}function tr(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=wf(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),s=Qe(o);if(i){const a=oa(s);return e.concat(s,s.visualViewport||[],Un(o)?o:[],a&&r?tr(a):[])}return e.concat(o,tr(o,[],r))}function oa(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&&ta(r)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}function ia(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function kf(){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 Cf(t){return t.mozInputSource===0&&t.isTrusted?!0:la()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function sa(t){return a2()?!1:!la()&&t.width===0&&t.height===0||la()&&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 aa(){return/apple/i.test(navigator.vendor)}function la(){const t=/android/i;return t.test(ia())||t.test(kf())}function _f(){return ia().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function a2(){return kf().includes("jsdom/")}function gi(t,e){const r=["mouse","pen"];return e||r.push("",void 0),r.includes(t)}function l2(t){return"nativeEvent"in t}function c2(t){return t.matches("html,body")}function Ue(t){return(t==null?void 0:t.ownerDocument)||document}function ca(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 rr(t){return"composedPath"in t?t.composedPath()[0]:t.target}const d2="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function da(t){return $e(t)&&t.matches(d2)}function je(t){t.preventDefault(),t.stopPropagation()}function Sf(t){return t?t.getAttribute("role")==="combobox"&&da(t):!1}const u2=["top","right","bottom","left"],Ef=["start","end"],Of=u2.reduce((t,e)=>t.concat(e,e+"-"+Ef[0],e+"-"+Ef[1]),[]),Yr=Math.min,kr=Math.max,pi=Math.round,Ur=Math.floor,Ot=t=>({x:t,y:t}),f2={left:"right",right:"left",bottom:"top",top:"bottom"},h2={start:"end",end:"start"};function ua(t,e,r){return kr(t,Yr(e,r))}function Kr(t,e){return typeof t=="function"?t(e):t}function Wt(t){return t.split("-")[0]}function Tt(t){return t.split("-")[1]}function Tf(t){return t==="x"?"y":"x"}function fa(t){return t==="y"?"height":"width"}function mi(t){return["top","bottom"].includes(Wt(t))?"y":"x"}function ha(t){return Tf(mi(t))}function Nf(t,e,r){r===void 0&&(r=!1);const n=Tt(t),o=ha(t),i=fa(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=yi(s)),[s,yi(s)]}function g2(t){const e=yi(t);return[bi(t),e,bi(e)]}function bi(t){return t.replace(/start|end/g,e=>h2[e])}function p2(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 m2(t,e,r,n){const o=Tt(t);let i=p2(Wt(t),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),e&&(i=i.concat(i.map(bi)))),i}function yi(t){return t.replace(/left|right|bottom|top/g,e=>f2[e])}function b2(t){return{top:0,right:0,bottom:0,left:0,...t}}function Mf(t){return typeof t!="number"?b2(t):{top:t,right:t,bottom:t,left:t}}function vi(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 Pf(t,e,r){let{reference:n,floating:o}=t;const i=mi(e),s=ha(e),a=fa(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 y2=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}=Pf(c,n,l),f=n,h={},p=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&&p<=50&&(p++,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}=Pf(c,f,l)),m=-1)}return{x:d,y:u,placement:f,strategy:o,middlewareData:h}};async function ga(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}=Kr(e,t),p=Mf(h),b=a[f?u==="floating"?"reference":"floating":u],v=vi(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=vi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:_,strategy:l}):y);return{top:(v.top-w.top+p.top)/x.y,bottom:(w.bottom-v.bottom+p.bottom)/x.y,left:(v.left-w.left+p.left)/x.x,right:(w.right-v.right+p.right)/x.x}}const v2=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}=Kr(t,e)||{};if(c==null)return{};const u=Mf(d),f={x:r,y:n},h=ha(o),p=fa(h),m=await s.getDimensions(c),b=h==="y",v=b?"top":"left",y=b?"bottom":"right",_=b?"clientHeight":"clientWidth",x=i.reference[p]+i.reference[h]-f[h]-i.floating[p],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[p]);const M=x/2-w/2,N=T/2-m[p]/2-1,E=Yr(u[v],N),I=Yr(u[y],N),A=E,D=T-m[p]-I,O=T/2-m[p]/2+M,P=ua(A,O,D),L=!l.arrow&&Tt(o)!=null&&O!==P&&i.reference[p]/2-(O<A?E:I)-m[p]/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 x2(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?bi(o)!==o:!1):!0)}const w2=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=Of,autoAlignment:h=!0,...p}=Kr(t,e),m=u!==void 0||f===Of?x2(u||null,h,f):f,b=await ga(e,p),v=((r=s.autoPlacement)==null?void 0:r.index)||0,y=m[v];if(y==null)return{};const _=Nf(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}}:{}}}},k2=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:p="none",flipAlignment:m=!0,...b}=Kr(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?[yi(a)]:g2(a));!f&&p!=="none"&&x.push(...m2(a,m,p,_));const w=[a,...x],S=await ga(e,b),T=[];let M=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&T.push(S[v]),u){const A=Nf(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 C2(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=mi(r)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,u=Kr(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*d,y:f*c}:{x:f*c,y:h*d}}const _2=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 C2(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}}}}},S2=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}=Kr(t,e),c={x:r,y:n},d=await ga(e,l),u=mi(Wt(o)),f=Tf(u);let h=c[f],p=c[u];if(i){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=h+d[b],_=h-d[v];h=ua(y,h,_)}if(s){const b=u==="y"?"top":"left",v=u==="y"?"bottom":"right",y=p+d[b],_=p-d[v];p=ua(y,p,_)}const m=a.fn({...e,[f]:h,[u]:p});return{...m,data:{x:m.x-r,y:m.y-n}}}}};function Af(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=pi(r)!==i||pi(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function pa(t){return pe(t)?t:t.contextElement}function qr(t){const e=pa(t);if(!$e(e))return Ot(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:i}=Af(e);let s=(i?pi(r.width):r.width)/n,a=(i?pi(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const E2=Ot(0);function Df(t){const e=Qe(t);return!na()||!e.visualViewport?E2:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function O2(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Qe(t)?!1:e}function Cr(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),i=pa(t);let s=Ot(1);e&&(n?pe(n)&&(s=qr(n)):s=qr(t));const a=O2(i,r,n)?Df(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&&pe(n)?Qe(n):n;let p=f,m=oa(p);for(;m&&n&&h!==p;){const b=qr(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,p=Qe(m),m=oa(p)}}return vi({width:d,height:u,x:l,y:c})}function ma(t,e){const r=hi(t).scrollLeft;return e?e.left+r:Cr(St(t)).left+r}function If(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-(r?0:ma(t,n)),i=n.top+e.scrollTop;return{x:o,y:i}}function T2(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const i=o==="fixed",s=St(n),a=e?fi(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)&&((wr(n)!=="body"||Un(s))&&(l=hi(n)),$e(n))){const h=Cr(n);c=qr(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}const f=s&&!u&&!i?If(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 N2(t){return Array.from(t.getClientRects())}function M2(t){const e=St(t),r=hi(t),n=t.ownerDocument.body,o=kr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=kr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+ma(t);const a=-r.scrollTop;return ut(n).direction==="rtl"&&(s+=kr(e.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function P2(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=na();(!c||c&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function A2(t,e){const r=Cr(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,i=$e(t)?qr(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 Lf(t,e,r){let n;if(e==="viewport")n=P2(t,r);else if(e==="document")n=M2(St(t));else if(pe(e))n=A2(e,r);else{const o=Df(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return vi(n)}function Ff(t,e){const r=Ht(t);return r===e||!pe(r)||er(r)?!1:ut(r).position==="fixed"||Ff(r,e)}function D2(t,e){const r=e.get(t);if(r)return r;let n=tr(t,[],!1).filter(a=>pe(a)&&wr(a)!=="body"),o=null;const i=ut(t).position==="fixed";let s=i?Ht(t):t;for(;pe(s)&&!er(s);){const a=ut(s),l=ra(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Un(s)&&!l&&Ff(t,s))?n=n.filter(d=>d!==s):o=a,s=Ht(s)}return e.set(t,n),n}function I2(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const s=[...r==="clippingAncestors"?fi(e)?[]:D2(e,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,d)=>{const u=Lf(e,d,o);return c.top=kr(u.top,c.top),c.right=Yr(u.right,c.right),c.bottom=Yr(u.bottom,c.bottom),c.left=kr(u.left,c.left),c},Lf(e,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function L2(t){const{width:e,height:r}=Af(t);return{width:e,height:r}}function F2(t,e,r){const n=$e(e),o=St(e),i=r==="fixed",s=Cr(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=Ot(0);if(n||!n&&!i)if((wr(e)!=="body"||Un(o))&&(a=hi(e)),n){const f=Cr(e,!0,i,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else o&&(l.x=ma(o));const c=o&&!n&&!i?If(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 ba(t){return ut(t).position==="static"}function zf(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 Bf(t,e){const r=Qe(t);if(fi(t))return r;if(!$e(t)){let o=Ht(t);for(;o&&!er(o);){if(pe(o)&&!ba(o))return o;o=Ht(o)}return r}let n=zf(t,e);for(;n&&i2(n)&&ba(n);)n=zf(n,e);return n&&er(n)&&ba(n)&&!ra(n)?r:n||s2(t)||r}const z2=async function(t){const e=this.getOffsetParent||Bf,r=this.getDimensions,n=await r(t.floating);return{reference:F2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function B2(t){return ut(t).direction==="rtl"}const $2={convertOffsetParentRelativeRectToViewportRelativeRect:T2,getDocumentElement:St,getClippingRect:I2,getOffsetParent:Bf,getElementRects:z2,getClientRects:N2,getDimensions:L2,getScale:qr,isElement:pe,isRTL:B2};function $f(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function j2(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 p=Ur(u),m=Ur(o.clientWidth-(d+f)),b=Ur(o.clientHeight-(u+h)),v=Ur(d),_={rootMargin:-p+"px "+-m+"px "+-b+"px "+-v+"px",threshold:kr(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&&!$f(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 jf(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=pa(t),d=o||i?[...c?tr(c):[],...tr(e)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",r,{passive:!0}),i&&v.addEventListener("resize",r)});const u=c&&a?j2(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 p,m=l?Cr(t):null;l&&b();function b(){const v=Cr(t);m&&!$f(m,v)&&r(),m=v,p=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(p)}}const H2=_2,W2=w2,V2=S2,R2=k2,Hf=v2,Y2=(t,e,r)=>{const n=new Map,o={platform:$2,...r},i={...o.platform,_c:n};return y2(t,e,{...o,platform:i})};var xi=typeof document<"u"?k.useLayoutEffect:k.useEffect;function wi(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(!wi(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)&&!wi(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Wf(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Vf(t,e){const r=Wf(t);return Math.round(e*r)/r}function ya(t){const e=C.useRef(t);return xi(()=>{e.current=t}),e}function U2(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);wi(f,n)||h(n);const[p,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||p,w=s||b,S=C.useRef(null),T=C.useRef(null),M=C.useRef(d),N=l!=null,E=ya(l),I=ya(o),A=ya(c),D=C.useCallback(()=>{if(!S.current||!T.current)return;const B={placement:e,strategy:r,middleware:f};I.current&&(B.platform=I.current),Y2(S.current,T.current,B).then(j=>{const $={...j,isPositioned:A.current!==!1};O.current&&!wi(M.current,$)&&(M.current=$,Yg.flushSync(()=>{u($)}))})},[f,e,r,I,A]);xi(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(B=>({...B,isPositioned:!1})))},[c]);const O=C.useRef(!1);xi(()=>(O.current=!0,()=>{O.current=!1}),[]),xi(()=>{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=Vf(L.floating,d.x),$=Vf(L.floating,d.y);return a?{...B,transform:"translate("+j+"px, "+$+"px)",...Wf(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?Hf({element:n.current,padding:o}).fn(r):{}:n?Hf({element:n,padding:o}).fn(r):{}}}},q2=(t,e)=>({...H2(t),options:[t,e]}),G2=(t,e)=>({...V2(t),options:[t,e]}),X2=(t,e)=>({...R2(t),options:[t,e]}),Z2=(t,e)=>({...W2(t),options:[t,e]}),J2=(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})()})(mf);var jk=mf.exports;const Hk=mu(jk);var Js={exports:{}};function bf(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,p=i;o=void 0,i=void 0,l=t.apply(h,p)}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}Js.exports.debounce=bf,Js.exports=bf;var Wk=Js.exports;const Vk=mu(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,Kk=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=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 g.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(qk,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[Kk]});const Gk=k.forwardRef(({className:t,color:e="default",theme:r={},...n},o)=>{const i=H(q().checkbox,r);return g.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(q().helperText,n);return g.jsx("p",{className:F(s.root.base,s.root.colors[r],e),...i,children:o??t??""})};Vn.displayName="HelperText";const Qs=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(q().textInput,l);return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:F(f.base,e),children:[t&&g.jsx("span",{className:f.addon,children:t}),g.jsxs("div",{className:f.field.base,children:[o&&g.jsx("div",{className:f.field.icon.base,children:g.jsx(o,{className:f.field.icon.svg})}),i&&g.jsx("div",{"data-testid":"right-icon",className:f.field.rightIcon.base,children:g.jsx(i,{className:f.field.rightIcon.svg})}),g.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&&g.jsx(Vn,{color:r,children:n})]})});Qs.displayName="TextInput";const yf=k.createContext(void 0);function ci(){const t=k.useContext(yf);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||{}),vf=(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))(vf||{});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},di=(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),ea(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(ea(n,i)));return r},ea=(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}=ci(),c=H(e.views.days,t),d=Jk(l,r),u=Zk(i,r);return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:c.header.base,children:d.map((f,h)=>g.jsx("span",{className:c.header.title,children:f},h))}),g.jsx("div",{className:c.items.base,children:[...Array(42)].map((f,h)=>{const p=ea(u,h),m=Yn(l,p,{day:"numeric"}),b=di(s,p),v=!Rn(p,n,o);return g.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(p,!0)},children:m},h)})})]})},r2=({theme:t={}})=>{const{theme:e,selectedDate:r,viewDate:n,setViewDate:o,setView:i}=ci(),s=H(e.views.decades,t);return g.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),p=!Rn(n,u,f);return g.jsx("button",{disabled:p,type:"button",className:F(s.items.item.base,h&&s.items.item.selected,p&&s.items.item.disabled),onClick:()=>{p||(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}=ci(),c=H(e.views.months,t);return g.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"}),p=di(o,f),m=!Rn(f,r,n);return g.jsx("button",{disabled:m,type:"button",className:F(c.items.item.base,p&&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}=ci(),l=H(e.views.years,t);return g.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 p=di(r,h),m=!Rn(h,n,o);return g.jsx("button",{disabled:m,type:"button",className:F(l.items.item.base,p&&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=vf.Sunday,className:h,theme:p={},onSelectedDateChanged:m,...b},v)=>{const y=H(q().datepicker,p);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),D=k.useRef(null),A=k.useRef(null),I=(j,$)=>{M(j),m&&m(j),n&&w===ve.Days&&$==!0&&!r&&x(!1)},O=()=>{I(l,!0),l&&E(l)};k.useImperativeHandle(v,()=>({focus(){var j;(j=D.current)==null||j.focus()},clear(){O()}}));const P=j=>{switch(j){case ve.Decades:return g.jsx(r2,{theme:y.views.decades});case ve.Years:return g.jsx(o2,{theme:y.views.years});case ve.Months:return g.jsx(n2,{theme:y.views.months});case ve.Days:default:return g.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=D==null?void 0:D.current)==null?void 0:U.contains($.target);!W&&!V&&x(!1)};return document.addEventListener("mousedown",j),()=>{document.removeEventListener("mousedown",j)}},[D,A,x]),g.jsx(yf.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:I},children:g.jsxs("div",{className:F(y.root.base,h),children:[!r&&g.jsx(Qs,{theme:y.root.input,icon:h1,ref:D,onFocus:()=>{di(N,T)||E(T),x(!0)},value:T&&Yn(u,T),readOnly:!0,...b}),(_||r)&&g.jsx("div",{ref:A,className:F(y.popup.root.base,r&&y.popup.root.inline),children:g.jsxs("div",{className:y.popup.root.inner,children:[g.jsxs("div",{className:y.popup.header.base,children:[t&&g.jsx("div",{className:y.popup.header.title,children:t}),g.jsxs("div",{className:y.popup.header.selectors.base,children:[g.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:g.jsx(u1,{})}),g.jsx("button",{type:"button",className:F(y.popup.header.selectors.button.base,y.popup.header.selectors.button.view),onClick:()=>S(L()),children:z()}),g.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:g.jsx(f1,{})})]})]}),g.jsx("div",{className:y.popup.view.base,children:P(w)}),(o||s)&&g.jsxs("div",{className:y.popup.footer.base,children:[s&&g.jsx("button",{type:"button",className:F(y.popup.footer.button.base,y.popup.footer.button.today),onClick:()=>{const j=new Date;I(j,!0),E(j)},children:a}),o&&g.jsx("button",{type:"button",className:F(y.popup.footer.button.base,y.popup.footer.button.clear),onClick:()=>{I(l,!0),l&&E(l)},children:i})]})]})})]})})},s2=k.forwardRef(i2);s2.displayName="Datepicker";function ui(){return typeof window<"u"}function wr(t){return xf(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=(xf(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function xf(t){return ui()?t instanceof Node||t instanceof Qe(t).Node:!1}function pe(t){return ui()?t instanceof Element||t instanceof Qe(t).Element:!1}function $e(t){return ui()?t instanceof HTMLElement||t instanceof Qe(t).HTMLElement:!1}function ta(t){return!ui()||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(wr(t))}function fi(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function ra(t){const e=na(),r=pe(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)&&!er(e);){if(ra(e))return e;if(fi(e))return null;e=Ht(e)}return null}function na(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function er(t){return["html","body","#document"].includes(wr(t))}function ut(t){return Qe(t).getComputedStyle(t)}function hi(t){return pe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ht(t){if(wr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ta(t)&&t.host||St(t);return ta(e)?e.host:e}function wf(t){const e=Ht(t);return er(e)?t.ownerDocument?t.ownerDocument.body:t.body:$e(e)&&Un(e)?e:wf(e)}function tr(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=wf(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),s=Qe(o);if(i){const a=oa(s);return e.concat(s,s.visualViewport||[],Un(o)?o:[],a&&r?tr(a):[])}return e.concat(o,tr(o,[],r))}function oa(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&&ta(r)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}function ia(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function kf(){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 Cf(t){return t.mozInputSource===0&&t.isTrusted?!0:la()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function sa(t){return c2()?!1:!la()&&t.width===0&&t.height===0||la()&&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 aa(){return/apple/i.test(navigator.vendor)}function la(){const t=/android/i;return t.test(ia())||t.test(kf())}function _f(){return ia().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function c2(){return kf().includes("jsdom/")}function gi(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 ca(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 rr(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 da(t){return $e(t)&&t.matches(f2)}function je(t){t.preventDefault(),t.stopPropagation()}function Sf(t){return t?t.getAttribute("role")==="combobox"&&da(t):!1}const h2=["top","right","bottom","left"],Ef=["start","end"],Of=h2.reduce((t,e)=>t.concat(e,e+"-"+Ef[0],e+"-"+Ef[1]),[]),Yr=Math.min,kr=Math.max,pi=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 ua(t,e,r){return kr(t,Yr(e,r))}function Kr(t,e){return typeof t=="function"?t(e):t}function Wt(t){return t.split("-")[0]}function Tt(t){return t.split("-")[1]}function Tf(t){return t==="x"?"y":"x"}function fa(t){return t==="y"?"height":"width"}function mi(t){return["top","bottom"].includes(Wt(t))?"y":"x"}function ha(t){return Tf(mi(t))}function Nf(t,e,r){r===void 0&&(r=!1);const n=Tt(t),o=ha(t),i=fa(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=yi(s)),[s,yi(s)]}function m2(t){const e=yi(t);return[bi(t),e,bi(e)]}function bi(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(bi)))),i}function yi(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 Mf(t){return typeof t!="number"?v2(t):{top:t,right:t,bottom:t,left:t}}function vi(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 Pf(t,e,r){let{reference:n,floating:o}=t;const i=mi(e),s=ha(e),a=fa(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}=Pf(c,n,l),f=n,h={},p=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&&p<=50&&(p++,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}=Pf(c,f,l)),m=-1)}return{x:d,y:u,placement:f,strategy:o,middlewareData:h}};async function ga(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}=Kr(e,t),p=Mf(h),b=a[f?u==="floating"?"reference":"floating":u],v=vi(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=vi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:_,strategy:l}):y);return{top:(v.top-w.top+p.top)/x.y,bottom:(w.bottom-v.bottom+p.bottom)/x.y,left:(v.left-w.left+p.left)/x.x,right:(w.right-v.right+p.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}=Kr(t,e)||{};if(c==null)return{};const u=Mf(d),f={x:r,y:n},h=ha(o),p=fa(h),m=await s.getDimensions(c),b=h==="y",v=b?"top":"left",y=b?"bottom":"right",_=b?"clientHeight":"clientWidth",x=i.reference[p]+i.reference[h]-f[h]-i.floating[p],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[p]);const M=x/2-w/2,N=T/2-m[p]/2-1,E=Yr(u[v],N),D=Yr(u[y],N),A=E,I=T-m[p]-D,O=T/2-m[p]/2+M,P=ua(A,O,I),L=!l.arrow&&Tt(o)!=null&&O!==P&&i.reference[p]/2-(O<A?E:D)-m[p]/2<0,z=L?O<A?O-A:O-I: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?bi(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=Of,autoAlignment:h=!0,...p}=Kr(t,e),m=u!==void 0||f===Of?k2(u||null,h,f):f,b=await ga(e,p),v=((r=s.autoPlacement)==null?void 0:r.index)||0,y=m[v];if(y==null)return{};const _=Nf(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 D=Tt(E.placement);return[E.placement,D&&d?E.overflows.slice(0,2).reduce((A,I)=>A+I,0):E.overflows[0],E.overflows]}).sort((E,D)=>E[1]-D[1]),N=((o=T.filter(E=>E[2].slice(0,Tt(E[0])?2:3).every(D=>D<=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:p="none",flipAlignment:m=!0,...b}=Kr(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?[yi(a)]:m2(a));!f&&p!=="none"&&x.push(...y2(a,m,p,_));const w=[a,...x],S=await ga(e,b),T=[];let M=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&T.push(S[v]),u){const A=Nf(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,I=w[A];if(I)return{data:{index:A,overflows:M},reset:{placement:I}};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 D;const P=(D=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:D[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=mi(r)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,u=Kr(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),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}=Kr(t,e),c={x:r,y:n},d=await ga(e,l),u=mi(Wt(o)),f=Tf(u);let h=c[f],p=c[u];if(i){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=h+d[b],_=h-d[v];h=ua(y,h,_)}if(s){const b=u==="y"?"top":"left",v=u==="y"?"bottom":"right",y=p+d[b],_=p-d[v];p=ua(y,p,_)}const m=a.fn({...e,[f]:h,[u]:p});return{...m,data:{x:m.x-r,y:m.y-n}}}}};function Af(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=pi(r)!==i||pi(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function pa(t){return pe(t)?t:t.contextElement}function qr(t){const e=pa(t);if(!$e(e))return Ot(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:i}=Af(e);let s=(i?pi(r.width):r.width)/n,a=(i?pi(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!na()||!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 Cr(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),i=pa(t);let s=Ot(1);e&&(n?pe(n)&&(s=qr(n)):s=qr(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&&pe(n)?Qe(n):n;let p=f,m=oa(p);for(;m&&n&&h!==p;){const b=qr(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,p=Qe(m),m=oa(p)}}return vi({width:d,height:u,x:l,y:c})}function ma(t,e){const r=hi(t).scrollLeft;return e?e.left+r:Cr(St(t)).left+r}function Df(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-(r?0:ma(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?fi(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)&&((wr(n)!=="body"||Un(s))&&(l=hi(n)),$e(n))){const h=Cr(n);c=qr(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}const f=s&&!u&&!i?Df(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=hi(t),n=t.ownerDocument.body,o=kr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=kr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+ma(t);const a=-r.scrollTop;return ut(n).direction==="rtl"&&(s+=kr(e.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function I2(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=na();(!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=Cr(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,i=$e(t)?qr(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 Lf(t,e,r){let n;if(e==="viewport")n=I2(t,r);else if(e==="document")n=A2(St(t));else if(pe(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 vi(n)}function Ff(t,e){const r=Ht(t);return r===e||!pe(r)||er(r)?!1:ut(r).position==="fixed"||Ff(r,e)}function L2(t,e){const r=e.get(t);if(r)return r;let n=tr(t,[],!1).filter(a=>pe(a)&&wr(a)!=="body"),o=null;const i=ut(t).position==="fixed";let s=i?Ht(t):t;for(;pe(s)&&!er(s);){const a=ut(s),l=ra(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Un(s)&&!l&&Ff(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"?fi(e)?[]:L2(e,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,d)=>{const u=Lf(e,d,o);return c.top=kr(u.top,c.top),c.right=Yr(u.right,c.right),c.bottom=Yr(u.bottom,c.bottom),c.left=kr(u.left,c.left),c},Lf(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}=Af(t);return{width:e,height:r}}function B2(t,e,r){const n=$e(e),o=St(e),i=r==="fixed",s=Cr(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=Ot(0);if(n||!n&&!i)if((wr(e)!=="body"||Un(o))&&(a=hi(e)),n){const f=Cr(e,!0,i,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else o&&(l.x=ma(o));const c=o&&!n&&!i?Df(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 ba(t){return ut(t).position==="static"}function zf(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 Bf(t,e){const r=Qe(t);if(fi(t))return r;if(!$e(t)){let o=Ht(t);for(;o&&!er(o);){if(pe(o)&&!ba(o))return o;o=Ht(o)}return r}let n=zf(t,e);for(;n&&a2(n)&&ba(n);)n=zf(n,e);return n&&er(n)&&ba(n)&&!ra(n)?r:n||l2(t)||r}const $2=async function(t){const e=this.getOffsetParent||Bf,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:Bf,getElementRects:$2,getClientRects:P2,getDimensions:z2,getScale:qr,isElement:pe,isRTL:j2};function $f(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 p=Ur(u),m=Ur(o.clientWidth-(d+f)),b=Ur(o.clientHeight-(u+h)),v=Ur(d),_={rootMargin:-p+"px "+-m+"px "+-b+"px "+-v+"px",threshold:kr(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&&!$f(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 jf(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=pa(t),d=o||i?[...c?tr(c):[],...tr(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 p,m=l?Cr(t):null;l&&b();function b(){const v=Cr(t);m&&!$f(m,v)&&r(),m=v,p=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(p)}}const V2=E2,R2=C2,Y2=O2,U2=_2,Hf=w2,K2=(t,e,r)=>{const n=new Map,o={platform:H2,...r},i={...o.platform,_c:n};return x2(t,e,{...o,platform:i})};var xi=typeof document<"u"?k.useLayoutEffect:k.useEffect;function wi(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(!wi(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)&&!wi(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Wf(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Vf(t,e){const r=Wf(t);return Math.round(e*r)/r}function ya(t){const e=C.useRef(t);return xi(()=>{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);wi(f,n)||h(n);const[p,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||p,w=s||b,S=C.useRef(null),T=C.useRef(null),M=C.useRef(d),N=l!=null,E=ya(l),D=ya(o),A=ya(c),I=C.useCallback(()=>{if(!S.current||!T.current)return;const B={placement:e,strategy:r,middleware:f};D.current&&(B.platform=D.current),K2(S.current,T.current,B).then(j=>{const $={...j,isPositioned:A.current!==!1};O.current&&!wi(M.current,$)&&(M.current=$,Ug.flushSync(()=>{u($)}))})},[f,e,r,D,A]);xi(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(B=>({...B,isPositioned:!1})))},[c]);const O=C.useRef(!1);xi(()=>(O.current=!0,()=>{O.current=!1}),[]),xi(()=>{if(x&&(S.current=x),w&&(T.current=w),x&&w){if(E.current)return E.current(x,w,I);I()}},[x,w,I,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=Vf(L.floating,d.x),$=Vf(L.floating,d.y);return a?{...B,transform:"translate("+j+"px, "+$+"px)",...Wf(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:j,top:$}},[r,a,L.floating,d.x,d.y]);return C.useMemo(()=>({...d,update:I,refs:P,elements:L,floatingStyles:z}),[d,I,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?Hf({element:n.current,padding:o}).fn(r):{}:n?Hf({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 Q2=["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])"],ki=Q2.join(","),Rf=typeof Element>"u",Gr=Rf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ci=!Rf&&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},_i=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},e5=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},t5=function(e,r,n){if(_i(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(ki));return r&&Gr.call(e,ki)&&o.unshift(e),o=o.filter(n),o},r5=function t(e,r,n){for(var o=[],i=Array.from(e);i.length;){var s=i.shift();if(!_i(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,ki);d&&n.filter(s)&&(r||!e.includes(s))&&o.push(s);var u=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),f=!_i(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},Yf=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Uf=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e5(e))&&!Yf(e)?0:e.tabIndex},n5=function(e,r){var n=Uf(e);return n<0&&r&&!Yf(e)?0:n},o5=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},Kf=function(e){return e.tagName==="INPUT"},i5=function(e){return Kf(e)&&e.type==="hidden"},s5=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},a5=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},l5=function(e){if(!e.name)return!0;var r=e.form||Ci(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=a5(o,e.form);return!i||i===e},c5=function(e){return Kf(e)&&e.type==="radio"},d5=function(e){return c5(e)&&!l5(e)},u5=function(e){var r,n=e&&Ci(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=Ci(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},qf=function(e){var r=e.getBoundingClientRect(),n=r.width,o=r.height;return n===0&&o===0},f5=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=Ci(e);if(l&&!l.shadowRoot&&o(l)===!0)return qf(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=a}if(u5(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return qf(e);return!1},h5=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},g5=function(e,r){return!(r.disabled||_i(r)||i5(r)||f5(r,e)||s5(r)||h5(r))},va=function(e,r){return!(d5(r)||Uf(r)<0||!g5(e,r))},p5=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},m5=function t(e){var r=[],n=[];return e.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,l=n5(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(o5).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},Si=function(e,r){r=r||{};var n;return r.getShadowRoot?n=r5([e],r.includeContainer,{filter:va.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:p5}):n=t5(e,r.includeContainer,va.bind(null,r)),m5(n)},b5=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Gr.call(e,ki)===!1?!1:va(r,e)};function Gf(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 y5=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 y5(()=>{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 xa="ArrowUp",Kn="ArrowDown",Xr="ArrowLeft",Zr="ArrowRight";function Ei(t,e,r){return Math.floor(t/e)!==r}function qn(t,e){return e<0||e>=t.current.length}function wa(t,e){return Ye(t,{disabledIndices:e})}function Xf(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 v5(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===xa){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,p=l-(h-f);h===f?u=l:u=h>f?p:p-i}qn(t,u)&&(u=c)}if(r.key===Kn&&(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}))),qn(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&&Ei(u,i,f)&&(u=Ye(t,{startingIndex:c-c%i-1,disabledIndices:s}))):o&&(u=Ye(t,{startingIndex:c-c%i-1,disabledIndices:s})),Ei(u,i,f)&&(u=c)),r.key===Xr&&(d&&je(r),c%i!==0?(u=Ye(t,{startingIndex:c,disabledIndices:s,decrement:!0}),o&&Ei(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})),Ei(u,i,f)&&(u=c));const h=Ur(l/i)===f;qn(t,u)&&(o&&h?u=r.key===Xr?l:Ye(t,{startingIndex:c-c%i-1,disabledIndices:s}):u=c)}return u}function x5(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 w5(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 k5(t,e){return e.flatMap((r,n)=>t.includes(r)?[n]:[])}let Zf=0;function Vt(t,e){e===void 0&&(e={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=e;n&&cancelAnimationFrame(Zf);const i=()=>t==null?void 0:t.focus({preventScroll:r});o?i():Zf=requestAnimationFrame(i)}var me=typeof document<"u"?k.useLayoutEffect:k.useEffect;function C5(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 _5(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 Jf=C.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function S5(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(C5).forEach((d,u)=>{l.set(d,u)}),_5(o,l)||i(l)},[o]),C.createElement(Jf.Provider,{value:C.useMemo(()=>({register:s,unregister:a,map:o,elementsRef:r,labelsRef:n}),[s,a,o,r,n])},e)}function E5(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(Jf),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 ka=!1,O5=0;const Qf=()=>"floating-ui-"+O5++;function T5(){const[t,e]=C.useState(()=>ka?Qf():void 0);return me(()=>{t==null&&e(Qf())},[]),C.useEffect(()=>{ka||(ka=!0)},[]),t}const Oi=C.useId||T5;function N5(){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 M5=C.createContext(null),P5=C.createContext(null),Ti=()=>{var t;return((t=C.useContext(M5))==null?void 0:t.id)||null},Xn=()=>C.useContext(P5);function _r(t){return"data-floating-ui-"+t}function Mt(t){const e=k.useRef(t);return me(()=>{e.current=t}),e}const eh=_r("safe-polygon");function Ca(t,e,r){return r&&!gi(r)?0:typeof t=="number"?t:t==null?void 0:t[e]}function A5(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:p=!0}=e,m=Xn(),b=Ti(),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=Ca(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(eh),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&&!gi(_.current)||h>0&&Ca(y.current,"open")===0)return;const j=Ca(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(pe(s)){const B=s;return r&&B.addEventListener("mouseleave",z),a==null||a.addEventListener("mouseleave",z),p&&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),p&&B.removeEventListener("mousemove",P),B.removeEventListener("mouseenter",P),B.removeEventListener("mouseleave",L)}}},[s,a,c,t,f,h,p,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(eh,""),L.style.pointerEvents="none",M.current=!0,pe(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 D5(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 Sr(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 I5(t,e){let r,n=-1;function o(i,s){s>n&&(r=i,n=s),Sr(t,i).forEach(l=>{o(l.id,s+1)})}return o(e,0),t.find(i=>i.id===r)}let Jr=new WeakMap,Ni=new WeakSet,Mi={},_a=0;const L5=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,th=t=>t&&(t.host||th(t.parentNode)),F5=(t,e)=>e.map(r=>{if(t.contains(r))return r;const n=th(r);return t.contains(n)?n:null}).filter(r=>r!=null);function z5(t,e,r,n){const o="data-floating-ui-inert",i=n?"inert":r?"aria-hidden":null,s=F5(e,t),a=new Set,l=new Set(s),c=[];Mi[o]||(Mi[o]=new WeakMap);const d=Mi[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,p=>{if(a.has(p))f(p);else{const m=i?p.getAttribute(i):null,b=m!==null&&m!=="false",v=(Jr.get(p)||0)+1,y=(d.get(p)||0)+1;Jr.set(p,v),d.set(p,y),c.push(p),v===1&&b&&Ni.add(p),y===1&&p.setAttribute(o,""),!b&&i&&p.setAttribute(i,"true")}})}return _a++,()=>{c.forEach(h=>{const p=(Jr.get(h)||0)-1,m=(d.get(h)||0)-1;Jr.set(h,p),d.set(h,m),p||(!Ni.has(h)&&i&&h.removeAttribute(i),Ni.delete(h)),m||h.removeAttribute(o)}),_a--,_a||(Jr=new WeakMap,Jr=new WeakMap,Ni=new WeakSet,Mi={})}}function rh(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=Ue(t[0]).body;return z5(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 nh(t,e){const r=Si(t,Zn());e==="prev"&&r.reverse();const n=r.indexOf(Et(Ue(t)));return r.slice(n+1)[0]}function oh(){return nh(document.body,"next")}function ih(){return nh(document.body,"prev")}function Jn(t,e){const r=e||t.currentTarget,n=t.relatedTarget;return!n||!Se(r,n)}function B5(t){Si(t,Zn()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function $5(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 Sa={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 j5;function sh(t){t.key==="Tab"&&(t.target,clearTimeout(j5))}const Pi=C.forwardRef(function(e,r){const[n,o]=C.useState();me(()=>(aa()&&o("button"),document.addEventListener("keydown",sh),()=>{document.removeEventListener("keydown",sh)}),[]);const i={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[_r("focus-guard")]:"",style:Sa};return C.createElement("span",Gn({},e,i))}),ah=C.createContext(null),lh=_r("portal");function H5(t){let{id:e,root:r}=t===void 0?{}:t;const[n,o]=C.useState(null),i=Oi(),s=ch(),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(lh,""),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&&!pe(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(lh,""),l=c||l,l.appendChild(d),a.current=d,o(d)},[e,r,i,s]),n}function W5(t){let{children:e,id:r,root:n=null,preserveTabOrder:o=!0}=t;const i=H5({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(p){i&&Jn(p)&&(p.type==="focusin"?$5:B5)(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(ah.Provider,{value:C.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:i,setFocusManagerState:a}),[o,i])},f&&i&&C.createElement(Pi,{"data-type":"outside",ref:l,onFocus:h=>{if(Jn(h,i)){var p;(p=d.current)==null||p.focus()}else{const m=ih()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus()}}}),f&&i&&C.createElement("span",{"aria-owns":i.id,style:Sa}),i&&Wa.createPortal(e,i),f&&i&&C.createElement(Pi,{"data-type":"outside",ref:c,onFocus:h=>{if(Jn(h,i)){var p;(p=u.current)==null||p.focus()}else{const m=oh()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,h.nativeEvent))}}}))}const ch=()=>C.useContext(ah),V5=20;let Er=[];function Ea(t){Er=Er.filter(r=>r.isConnected);let e=t;if(!(!e||wr(e)==="body")){if(!b5(e,Zn())){const r=Si(e,Zn())[0];if(!r)return;e=r}Er.push(e),Er.length>V5&&(Er=Er.slice(-20))}}function dh(){return Er.slice().reverse().find(t=>t.isConnected)}const R5=C.forwardRef(function(e,r){return C.createElement("button",Gn({},e,{type:"button",ref:r,tabIndex:-1,style:Sa}))});function uh(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:p,events:m,dataRef:b,elements:{domReference:v,floating:y}}=e,_=typeof s=="number"&&s<0,x=Sf(v)&&_,w=L5()?i:!0,S=Mt(o),T=Mt(s),M=Mt(a),N=Xn(),E=ch(),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),$?Si($,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=rr(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(_r("focus-guard"))||N&&(Sr(N.nodesRef.current,h).find(K=>{var G,de;return Se((G=K.context)==null?void 0:G.elements.floating,Y)||Se((de=K.context)==null?void 0:de.elements.domReference,Y)})||D5(N.nodesRef.current,h).find(K=>{var G,de;return((G=K.context)==null?void 0:G.elements.floating)===Y||((de=K.context)==null?void 0:de.elements.domReference)===Y})));Y&&U&&!O.current&&Y!==dh()&&(D.current=!0,p(!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,p,d]),C.useEffect(()=>{var $;if(n)return;const W=Array.from((E==null||($=E.portalNode)==null?void 0:$.querySelectorAll("["+_r("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?rh(V,w,!w):rh(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,K=Se(y,W);!_&&!K&&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;Ea(V);function U(K){let{reason:G,event:de,nested:X}=K;G==="escape-key"&&f.domReference.current&&Ea(f.domReference.current),G==="hover"&&de.type==="mouseleave"&&(D.current=!0),G==="outside-press"&&(X?(D.current=!1,$=!0):D.current=!(Cf(de)||sa(de)))}return m.on("openchange",U),()=>{m.off("openchange",U);const K=Et(W),G=Se(y,K)||N&&Sr(N.nodesRef.current,h).some(oe=>{var Ie;return Se((Ie=oe.context)==null?void 0:Ie.elements.floating,K)});(G||Y.openEvent&&["click","mousedown"].includes(Y.openEvent.type))&&f.domReference.current&&Ea(f.domReference.current);const X=dh();M.current&&!D.current&&$e(X)&&(!(X!==K&&K!==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:p,refs:f}),()=>{E.setFocusManagerState(null)}},[n,E,l,u,p,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(R5,{ref:$==="start"?I:A,onClick:W=>p(!1,W.nativeEvent)},typeof c=="string"?c:"Dismiss")}const j=!n&&w&&(P||l);return C.createElement(C.Fragment,null,j&&C.createElement(Pi,{"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=oh()||v;V==null||V.focus()}else{var W;(W=E.beforeOutsideRef.current)==null||W.focus()}}}),!x&&B("start"),r,B("end"),j&&C.createElement(Pi,{"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=ih()||v;V==null||V.focus()}else{var W;(W=E.afterOutsideRef.current)==null||W.focus()}}}))}const Oa=new Set,Y5=C.forwardRef(function(e,r){let{lockScroll:n=!1,...o}=e;const i=Oi();return me(()=>{if(!n)return;Oa.add(i);const s=/iP(hone|ad|od)|iOS/.test(ia()),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,p;const m=((h=window.visualViewport)==null?void 0:h.offsetLeft)||0,b=((p=window.visualViewport)==null?void 0:p.offsetTop)||0;Object.assign(a,{position:"fixed",top:-(f-Math.floor(b))+"px",left:-(u-Math.floor(m))+"px",right:"0"})}return()=>{Oa.delete(i),Oa.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 fh(t){return $e(t.target)&&t.target.tagName==="BUTTON"}function hh(t){return da(t)}function gh(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&&(gi(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}gi(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||fh(h))&&(h.key===" "&&!hh(i)&&(h.preventDefault(),f.current=!0),h.key==="Enter"&&n(!(r&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||fh(h)||hh(i)||h.key===" "&&f.current&&(f.current=!1,n(!(r&&l),h.nativeEvent,"click"))}}}:{},[s,o,a,c,d,i,l,r,n])}const U5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},K5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ph=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 mh(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:p="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}=ph(b),{escapeKey:N,outsidePress:E}=ph(v),I=Nt(P=>{if(!r||!c||!d||P.key!=="Escape")return;const L=y?Sr(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,l2(P)?P.nativeEvent:P,"escape-key")}),A=Nt(P=>{var L;const z=()=>{var B;I(P),(B=rr(P))==null||B.removeEventListener("keydown",z)};(L=rr(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=rr(P),j="["+_r("inert")+"]",$=Ue(a).querySelectorAll(j);let W=pe(B)?B:null;for(;W&&!er(W);){const U=Ht(W);if(er(U)||!pe(U))break;W=U}if($.length&&pe(B)&&!c2(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,K=B.clientHeight>0&&B.scrollHeight>B.clientHeight;let G=K&&P.offsetX>B.clientWidth;if(K&&ut(B).direction==="rtl"&&(G=P.offsetX<=B.offsetWidth-B.clientWidth),G||U&&P.offsetY>B.clientHeight)return}const V=y&&Sr(y.nodesRef.current,o).some(U=>{var K;return ca(P,(K=U.context)==null?void 0:K.elements.floating)});if(ca(P,a)||ca(P,s)||V)return;const Y=y?Sr(y.nodesRef.current,o):[];if(Y.length>0){let U=!0;if(Y.forEach(K=>{var G;if((G=K.context)!=null&&G.open&&!K.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=rr(P))==null||B.removeEventListener(f,z)};(L=rr(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&&(pe(s)&&(z=tr(s)),pe(a)&&(z=z.concat(tr(a))),!pe(i)&&i&&i.contextElement&&(z=z.concat(tr(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,[U5[p]]: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,p,n,I])}let Ta;process.env.NODE_ENV!=="production"&&(Ta=new Set);function bh(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&&!pe(t.elements.reference)){var s;if(!((s=Ta)!=null&&s.has(M))){var a;(a=Ta)==null||a.add(M),console.error(M)}}}const[l,c]=C.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=U2(t),f=Xn(),h=Ti()!=null,p=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(()=>N5())[0],y=Oi(),_=C.useCallback(M=>{const N=pe(M)?{getBoundingClientRect:()=>M.getBoundingClientRect(),contextElement:M}:M;u.refs.setReference(N)},[u.refs]),x=C.useCallback(M=>{(pe(M)||M===null)&&(m.current=M,c(M)),(pe(u.refs.reference.current)||u.refs.reference.current===null||M!==null&&!pe(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:p}),[u,o,y,v,r,p,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 q5(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 p(){u.current=!0}return f.addEventListener("blur",h),f.addEventListener("keydown",p,!0),()=>{f.removeEventListener("blur",h),f.removeEventListener("keydown",p,!0)}},[s,r,a]),C.useEffect(()=>{if(!a)return;function f(h){let{reason:p}=h;(p==="reference-press"||p==="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){sa(f.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const h=rr(f.nativeEvent);if(l&&pe(h))try{if(aa()&&_f())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!da(h))return}n(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const h=f.relatedTarget,p=pe(h)&&h.hasAttribute(_r("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)||p||n(!1,f.nativeEvent,"focus")})}}}:{},[a,l,s,i,n])}const yh="active",vh="selected";function Na(t,e,r){const n=new Map,o=r==="item";let i=t;if(o&&t){const{[yh]:s,[vh]: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&&[yh,vh].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,p=new Array(h),m=0;m<h;m++)p[m]=arguments[m];return(f=n.get(c))==null?void 0:f.map(b=>b(...p)).find(b=>b!==void 0)}}}else s[c]=d}),s),{})}}function xh(t){t===void 0&&(t=[]);const e=t,r=C.useCallback(i=>Na(i,t,"reference"),e),n=C.useCallback(i=>Na(i,t,"floating"),e),o=C.useCallback(i=>Na(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 wh=!1;function Ai(t,e,r){switch(t){case"vertical":return e;case"horizontal":return r;default:return e||r}}function kh(t,e){return Ai(e,t===xa||t===Kn,t===Xr||t===Zr)}function Ma(t,e,r){return Ai(e,t===Kn,r?t===Xr:t===Zr)||t==="Enter"||t===" "||t===""}function G5(t,e,r){return Ai(e,r?t===Xr:t===Zr,t===Kn)}function Ch(t,e,r){return Ai(e,r?t===Zr:t===Xr,t===xa)}function X5(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:p=!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=Ti(),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),[K,G]=C.useState(),[de,X]=C.useState(),oe=Nt(function(J,Ee,le){le===void 0&&(le=!1);const re=J.current[Ee.current];re&&(b?(G(re.id),A==null||A.events.emit("virtualfocus",re),M&&(M.current=re)):Vt(re,{preventScroll:!0,sync:_f()&&aa()?wh||$.current:!1}),requestAnimationFrame(()=>{const he=U.current;he&&re&&(le||!z.current)&&(re.scrollIntoView==null||re.scrollIntoView(typeof he=="boolean"?{block:"nearest",inline:"nearest"}:he))}))});me(()=>{document.createElement("div").focus({get preventScroll(){return wh=!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||Ma(L.current,w,m)||p?wa(a,V.current):Xf(a,V.current),L.current=null,D(P.current))};Ee()}}else qn(a,l)||(P.current=l,oe(a,P,W.current),W.current=!1)},[d,r,s,l,u,p,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,re=Et(Ue(s)),he=Ee.some(Q=>Q.context&&Se(Q.context.elements.floating,re));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 re=a.current.indexOf(le);re!==-1&&D(re)}return{onFocus(le){let{currentTarget:re}=le;J(re)},onClick:le=>{let{currentTarget:re}=le;return re.focus({preventScroll:!0})},...y&&{onMouseMove(le){let{currentTarget:re}=le;J(re)},onPointerLeave(le){let{pointerType:re}=le;!z.current||re==="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(p&&Ch(R.key,w,m)){je(R),n(!1,R.nativeEvent,"list-navigation"),$e(i)&&!b&&i.focus();return}const Oe=P.current,ie=wa(a,J),ke=Xf(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=x5(Le,S,E),ft=Pe.findIndex(ot=>ot!=null&&!(J!=null&&J.includes(ot))),yt=Pe.reduce((ot,or,it)=>or!=null&&!(J!=null&&J.includes(or))?it:ot,-1);if(P.current=Pe[v5({current:Pe.map(ot=>ot!=null?a.current[ot]:null)},{event:R,orientation:w,loop:h,cols:S,disabledIndices:k5([...J||[],void 0],Pe),minIndex:ft,maxIndex:yt,prevIndex:w5(P.current,Le,Pe,S,R.key===Kn?"bl":R.key===Zr?"tr":"tl"),stopEvent:!0})],D(P.current),w==="both")return}if(kh(R.key,w)){if(je(R),r&&!b&&Et(R.currentTarget.ownerDocument)===R.currentTarget){P.current=Ma(R.key,w,m)?ie:ke,D(P.current);return}Ma(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})),qn(a,P.current)?D(null):D(P.current)}}function le(R){v==="auto"&&Cf(R.nativeEvent)&&(O.current=!0)}function re(R){O.current=v,v==="auto"&&sa(R.nativeEvent)&&(O.current=!0)}const he=b&&r&&Ie&&{"aria-activedescendant":de||K},Q=a.current.find(R=>(R==null?void 0:R.id)===K);return{reference:{...he,onKeyDown(R){z.current=!1;const Oe=R.key.indexOf("Arrow")===0,ie=G5(R.key,w,m),ke=Ch(R.key,w,m),Le=kh(R.key,w),Pe=(p?ie:Le)||R.key==="Enter"||R.key.trim()==="";if(b&&r){const or=A==null?void 0:A.nodesRef.current.find(Li=>Li.parentId==null),it=A&&or?I5(A.nodesRef.current,or.id):null;if(Oe&&it&&M){const Li=new KeyboardEvent("keydown",{key:R.key,bubbles:!0});if(ie||ke){var ft,yt;const AC=((ft=it.context)==null?void 0:ft.elements.domReference)===R.currentTarget,Rg=ke&&!AC?(yt=it.context)==null?void 0:yt.elements.domReference:ie?Q:null;Rg&&(je(R),Rg.dispatchEvent(Li),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(Li);return}}return Ee(R)}if(!(!r&&!_&&Oe)){if(Pe&&(L.current=p&&Le?null:R.key),p){ie&&(je(R),r?(P.current=wa(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:re,onMouseDown:le,onClick:le},floating:{"aria-orientation":w==="both"?void 0:w,...!Sf(i)&&he,onKeyDown:Ee,onPointerMove(){z.current=!0}},item:He}},[i,o,K,de,V,Y,a,d,w,m,b,r,Ie,p,u,_,f,S,h,v,D,n,He,A,M,N,E])}const Z5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function _h(t,e){var r;e===void 0&&(e={});const{open:n,floatingId:o}=t,{enabled:i=!0,role:s="dialog"}=e,a=(r=Z5.get(s))!=null?r:s,l=Oi(),d=Ti()!=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:p}=f;const m={role:"option",...h&&{id:o+"-option"}};switch(s){case"select":return{...m,"aria-selected":h&&p};case"combobox":return{...m,...h&&{"aria-selected":!0}}}return{}}}},[i,s,a,n,o,l,d])}function J5(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,p=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(p.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(p.current),p.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 Sh(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 Q5(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function eC(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(),p=h-l;if(s===null||a===null||p===0)return s=u,a=f,l=h,null;const m=u-s,b=f-a,y=Math.sqrt(m*m+b*b)/p;return s=u,a=f,l=h,y}const d=u=>{let{x:f,y:h,placement:p,elements:m,onClose:b,nodeId:v,tree:y}=u;return function(x){function w(){clearTimeout(o),b()}if(clearTimeout(o),!m.domReference||!m.floating||p==null||f==null||h==null)return;const{clientX:S,clientY:T}=x,M=[S,T],N=rr(x),E=x.type==="mouseleave",I=Se(m.floating,N),A=Se(m.domReference,N),D=m.domReference.getBoundingClientRect(),O=m.floating.getBoundingClientRect(),P=p.split("-")[0],L=f>O.right-O.width/2,z=h>O.bottom-O.height/2,B=Q5(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&&pe(x.relatedTarget)&&Se(m.floating,x.relatedTarget)||y&&Sr(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 K=[];switch(P){case"top":K=[[W,D.top+1],[W,O.bottom-1],[V,O.bottom-1],[V,D.top+1]];break;case"bottom":K=[[W,O.top+1],[W,D.bottom-1],[V,D.bottom-1],[V,O.top+1]];break;case"left":K=[[O.right-1,U],[O.right-1,Y],[D.left+1,Y],[D.left+1,U]];break;case"right":K=[[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(!Sh([S,T],K)){if(i&&!B)return w();if(!E&&n){const de=c(x.clientX,x.clientY);if(de!==null&&de<.1)return w()}Sh([S,T],G([f,h]))?!i&&n&&(o=window.setTimeout(w,40)):w()}}};return d.__options={blockPointerEvents:r},d}const tC=({arrowRef:t,placement:e})=>{const r=[];return r.push(q2(8)),r.push(e==="auto"?Z2():X2()),r.push(G2({padding:8})),t!=null&&t.current&&r.push(J2({element:t.current})),r},rC=({placement:t})=>t==="auto"?void 0:t,nC=({placement:t})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[t.split("-")[0]],Eh=({open:t,arrowRef:e,placement:r="top",setOpen:n})=>bh({placement:rC({placement:r}),open:t,onOpenChange:n,whileElementsMounted:jf,middleware:tC({placement:r,arrowRef:e})}),Oh=({context:t,trigger:e,role:r="tooltip",interactions:n=[]})=>xh([gh(t,{enabled:e==="click"}),A5(t,{enabled:e==="hover",handleClose:eC()}),mh(t),_h(t,{role:r}),...n]),Th=k.createContext(void 0);function Pa(){const t=k.useContext(Th);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const Aa=({className:t,theme:e={},...r})=>{const{theme:n}=Pa(),o=e.divider??n.floating.divider;return g.jsx("div",{className:F(o,t),...r})},Nh=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Pa(),i=r.header??o.floating.header;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:F(i,e),...n,children:t}),g.jsx(Aa,{})]})},Mh=k.forwardRef(({children:t,className:e,icon:r,onClick:n,theme:o={},...i},s)=>{const{ref:a,index:l}=E5({label:typeof t=="string"?t:void 0}),c=Gf([s,a]),{theme:d,activeIndex:u,dismissOnClick:f,getItemProps:h,handleSelect:p}=Pa(),m=u===l,b=H(d.floating.item,o),v=i;return g.jsx("li",{role:"menuitem",className:b.container,children:g.jsxs(Zs,{ref:c,className:F(b.base,e),...v,...h({onClick:()=>{n==null||n(),f&&p(null)}}),tabIndex:m?0:-1,children:[r&&g.jsx(r,{className:b.icon}),t]})})});Mh.displayName="DropdownItem";const oC={top:m1,right:Hu,bottom:ju,left:p1},iC=({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?g.jsx("button",{type:"button",ref:t.setReference,className:n==null?void 0:n.inlineWrapper,disabled:o,...d,children:e}):g.jsx(uf,{...l,disabled:o,type:"button",ref:t.setReference,...d,children:e})},Ph=({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),p=k.useRef([]),m=k.useRef([]),b=H(q().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}=Eh({open:s,setOpen:a,placement:_}),O=X5(I,{listRef:p,activeIndex:l,selectedIndex:d,onNavigate:c}),P=J5(I,{listRef:m,activeIndex:l,selectedIndex:d,onMatch:E}),{getReferenceProps:L,getFloatingProps:z,getItemProps:B}=Oh({context:I,role:"menu",trigger:x,interactions:[O,P]}),j=k.useMemo(()=>{const[$]=_.split("-");return oC[$]??ju},[_]);return g.jsxs(Th.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:r,getItemProps:B,handleSelect:N},children:[g.jsxs(iC,{...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&&g.jsx(j,{className:b.arrowIcon})]}),s&&g.jsx(uh,{context:I,modal:!1,children:g.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:g.jsx(S5,{elementsRef:p,labelsRef:m,children:g.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};Ph.displayName="Dropdown",Nh.displayName="Dropdown.Header",Aa.displayName="Dropdown.Divider",Object.assign(Ph,{Item:Mh,Header:Nh,Divider:Aa});const Ah=k.forwardRef(({className:t,color:e="gray",helperText:r,sizing:n="md",theme:o={},...i},s)=>{const a=H(q().fileInput,o);return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:F(a.root.base,t),children:g.jsx("div",{className:a.field.base,children:g.jsx("input",{className:F(a.field.input.base,a.field.input.colors[e],a.field.input.sizes[n]),...i,type:"file",ref:s})})}),r&&g.jsx(Vn,{color:e,children:r})]})});Ah.displayName="FileInput";const sC=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(q().floatingLabel,s);return g.jsxs("div",{children:[g.jsxs("div",{className:F("relative",o==="standard"?"z-0":""),children:[g.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}),g.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:F(u.label[r][o][n],a),children:t})]}),g.jsx("p",{id:"outlined_helper_text"+d,className:F(u.helperText[r],a),children:e})]})});sC.displayName="FloatingLabel";const Dh=({alt:t,className:e,children:r,href:n,name:o,src:i,theme:s={},...a})=>{const l=H(q().footer.brand,s);return g.jsx("div",{children:n?g.jsxs("a",{"data-testid":"flowbite-footer-brand",href:n,className:F(l.base,e),...a,children:[g.jsx("img",{alt:t,src:i,className:l.img}),g.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:o}),r]}):g.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(q().footer.copyright,n);return g.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:F(s.base,e),...i,children:["© ",o,r?g.jsx("a",{href:r,className:s.href,children:t}):g.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:s.span,children:t})]})},Lh=({className:t,theme:e={},...r})=>{const n=H(q().footer.divider,e);return g.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(q().footer.icon,o);return g.jsx("div",{children:r?g.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:r,className:F(s.base,e),...i,children:g.jsx(n,{className:s.size})}):g.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(q().footer.groupLink.link,o);return g.jsx("li",{className:F(s.base,r),children:g.jsx(t,{href:n,className:s.href,...i,children:e})})},Bh=({children:t,className:e,col:r=!1,theme:n={},...o})=>{const i=H(q().footer.groupLink,n);return g.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(q().footer.title,r);return g.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(q().footer,o);return g.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,color:r="default",disabled:n=!1,theme:o={},value:i,...s})=>{const a=H(q().label,o);return g.jsx("label",{className:F(a.root.base,a.root.colors[r],n&&a.root.disabled,e),"data-testid":"flowbite-label",...s,children:i??t??""})};Hh.displayName="Label";const Wh=({children:t,className:e,icon:r,theme:n={},...o})=>{const i=H(q().list.item,n);return g.jsxs("li",{className:F(i.withIcon[r?"on":"off"],e),...o,children:[r&&g.jsx(r,{className:F(i.icon)}),t]})},Vh=({children:t,className:e,unstyled:r,nested:n,ordered:o,horizontal:i,theme:s={},...a})=>{const l=H(q().list,s),c=o?"ol":"ul";return g.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})};Vh.displayName="List",Wh.displayName="List.Item",Object.assign(Vh,{Item:Wh});const Rh=({active:t,children:e,className:r,href:n,icon:o,onClick:i,theme:s={},disabled:a,...l})=>{const c=H(q().listGroup.item,s),d=typeof n<"u",u=d?"a":"button";return g.jsx("li",{className:F(c.base,r),children:g.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&&g.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},Yh=({children:t,className:e,theme:r={},...n})=>{const o=H(q().listGroup,r);return g.jsx("ul",{className:F(o.root.base,e),...n,children:t})};Yh.displayName="ListGroup",Rh.displayName="ListGroup.Item",Object.assign(Yh,{Item:Rh});const Uh=k.createContext(void 0);function Da(){const t=k.useContext(Uh);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const Kh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=Da(),s=H(o.body,r);return g.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}=Da(),s=H(o.footer,r);return g.jsx("div",{className:F(s.base,!i&&s.popup,e),...n,children:t})},Gh=({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}=Da(),f=H(l.header,n);return k.useLayoutEffect(()=>(u(a),()=>u(void 0)),[a,u]),g.jsxs("div",{className:F(f.base,c&&f.popup,r),...i,children:[g.jsx(t,{id:a,className:f.title,children:e}),g.jsx("button",{"aria-label":"Close",className:f.close.base,type:"button",onClick:d,children:g.jsx(b1,{"aria-hidden":!0,className:f.close.icon})})]})},Xh=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,p]=k.useState(void 0),m=H(q().modal,c),{context:b}=bh({open:a,onOpenChange:()=>n&&n()}),v=Gf([b.refs.setFloating,f]),y=gh(b),_=mh(b,{outsidePressEvent:"mousedown",enabled:r}),x=_h(b),{getFloatingProps:w}=xh([y,_,x]);return a?g.jsx(Uh.Provider,{value:{theme:m,popup:o,onClose:n,setHeaderId:p},children:g.jsx(W5,{root:s,children:g.jsx(Y5,{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:g.jsx(uh,{context:b,initialFocus:d,children:g.jsx("div",{ref:v,...w(u),"aria-labelledby":h,className:F(m.content.base,m.root.sizes[l]),children:g.jsx("div",{className:m.content.inner,children:t})})})})})}):null});Xh.displayName="Modal",Gh.displayName="Modal.Header",Kh.displayName="Modal.Body",qh.displayName="Modal.Footer",Object.assign(Xh,{Header:Gh,Body:Kh,Footer:qh});const Zh=k.createContext(void 0);function Di(){const t=k.useContext(Zh);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const Jh=({as:t="a",children:e,className:r,theme:n={},...o})=>{const{theme:i}=Di(),s=H(i.brand,n);return g.jsx(t,{className:F(s.base,r),...o,children:e})},Qh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i}=Di(),s=H(o.collapse,r);return g.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:F(s.base,s.hidden[i?"off":"on"],e),...n,children:g.jsx("ul",{className:s.list,children:t})})},eg=({active:t,as:e="a",disabled:r,children:n,className:o,theme:i={},onClick:s,...a})=>{const{theme:l,setIsOpen:c}=Di(),d=H(l.link,i),u=f=>{c(!1),s==null||s(f)};return g.jsx("li",{children:g.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})})},tg=({barIcon:t=tp,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i,setIsOpen:s}=Di(),a=H(o.toggle,r),l=()=>{s(!i)};return g.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:F(a.base,e),...n,children:[g.jsx("span",{className:"sr-only",children:"Open main menu"}),g.jsx(t,{"aria-hidden":!0,className:a.icon})]})},rg=({border:t,children:e,className:r,fluid:n=!1,menuOpen:o,rounded:i,theme:s={},...a})=>{const[l,c]=k.useState(o),d=H(q().navbar,s);return g.jsx(Zh.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:g.jsx("nav",{className:F(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[i?"on":"off"],r),...a,children:g.jsx("div",{className:F(d.root.inner.base,d.root.inner.fluid[n?"on":"off"]),children:e})})})};rg.displayName="Navbar",Jh.displayName="Navbar.Brand",Qh.displayName="Navbar.Collapse",eg.displayName="Navbar.Link",tg.displayName="Navbar.Toggle",Object.assign(rg,{Brand:Jh,Collapse:Qh,Link:eg,Toggle:tg});const aC=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(r=>r+t),Ia=({active:t,children:e,className:r,onClick:n,theme:o={},...i})=>{const s=H(q().pagination,o);return g.jsx("button",{type:"button",className:F(t&&s.pages.selector.active,r),onClick:n,...i,children:e})};Ia.displayName="Pagination.Button";const La=({children:t,className:e,onClick:r,theme:n={},disabled:o=!1,...i})=>{const s=H(q().pagination,n);return g.jsx("button",{type:"button",className:F(o&&s.pages.selector.disabled,e),disabled:o,onClick:r,...i,children:t})};La.displayName="Pagination.Navigation";const ng=({className:t,currentPage:e,layout:r="pagination",nextLabel:n="Next",onPageChange:o,previousLabel:i="Previous",renderPaginationButton:s=u=>g.jsx(Ia,{...u}),showIcons:a=!1,theme:l={},totalPages:c,...d})=>{const u=H(q().pagination,l),f=Math.min(Math.max(r==="pagination"?e+2:e+4,5),c),h=Math.max(1,f-4),p=()=>{o(Math.min(e+1,c))},m=()=>{o(Math.max(e-1,1))};return g.jsxs("nav",{className:F(u.base,t),...d,children:[r==="table"&&g.jsxs("div",{className:u.layout.table.base,children:["Showing ",g.jsx("span",{className:u.layout.table.span,children:h})," to ",g.jsx("span",{className:u.layout.table.span,children:f})," of ",g.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),g.jsxs("ul",{className:u.pages.base,children:[g.jsx("li",{children:g.jsxs(La,{className:F(u.pages.previous.base,a&&u.pages.showIcon),onClick:m,disabled:e===1,children:[a&&g.jsx(Bu,{"aria-hidden":!0,className:u.pages.previous.icon}),i]})}),r==="pagination"&&aC(h,f).map(b=>g.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)),g.jsx("li",{children:g.jsxs(La,{className:F(u.pages.next.base,a&&u.pages.showIcon),onClick:p,disabled:e===c,children:[n,a&&g.jsx($u,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};ng.displayName="Pagination",Object.assign(ng,{Button:Ia});const lC=k.forwardRef(({className:t,theme:e={},...r},n)=>{const o=H(q().radio,e);return g.jsx("input",{ref:n,type:"radio",className:F(o.root.base,t),...r})});lC.displayName="Radio";const cC=k.forwardRef(({className:t,sizing:e="md",theme:r={},...n},o)=>{const i=H(q().rangeSlider,r);return g.jsx(g.Fragment,{children:g.jsx("div",{"data-testid":"flowbite-range-slider",className:F(i.root.base,t),children:g.jsx("div",{className:i.field.base,children:g.jsx("input",{ref:o,type:"range",className:F(i.field.input.base,i.field.input.sizes[e]),...n})})})})});cC.displayName="RangeSlider";const og=({children:t,className:e,percentFilled:r=0,theme:n={},...o})=>{const i=H(q().ratingAdvanced,n);return g.jsxs("div",{className:F(i.base,e),...o,children:[g.jsx("span",{className:i.label,children:t}),g.jsx("div",{className:i.progress.base,children:g.jsx("div",{className:i.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${r}%`}})}),g.jsx("span",{className:i.progress.label,children:`${r}%`})]})},ig=k.createContext(void 0);function dC(){const t=k.useContext(ig);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const sg=({className:t,filled:e=!0,starIcon:r=h1,theme:n={},...o})=>{const{theme:i,size:s="sm"}=dC(),a=H(i.star,n);return g.jsx(r,{"data-testid":"flowbite-rating-star",className:F(a.sizes[s],a[e?"filled":"empty"],t),...o})},ag=({children:t,className:e,size:r="sm",theme:n={},...o})=>{const i=H(q().rating,n);return g.jsx(ig.Provider,{value:{theme:i,size:r},children:g.jsx("div",{className:F(i.root.base,e),...o,children:t})})};ag.displayName="Rating",sg.displayName="Rating.Star",og.displayName="Rating.Advanced",Object.assign(ag,{Star:sg,Advanced:og});const uC=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(q().select,l);return g.jsxs("div",{className:F(u.base,r),children:[t&&g.jsx("span",{className:u.addon,children:t}),g.jsxs("div",{className:u.field.base,children:[i&&g.jsx("div",{className:u.field.icon.base,children:g.jsx(i,{className:u.field.icon.svg})}),g.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&&g.jsx(Vn,{color:n,children:o})]})]})});uC.displayName="Select";const fC=({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),p=Eh({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}=p,T=q5(m),{getFloatingProps:M,getReferenceProps:N}=Oh({context:m,role:"tooltip",trigger:l,interactions:[T]});return k.useEffect(()=>{if(y.reference.current&&y.floating.current&&f)return jf(y.reference.current,y.floating.current,x)},[f,y.floating,y.reference,x]),g.jsxs(g.Fragment,{children:[g.jsx("div",{ref:y.setReference,className:a.target,"data-testid":"flowbite-tooltip-target",...N(),children:r}),g.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:[g.jsx("div",{className:a.content,children:o}),e&&g.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:" ",[nC({placement:p.placement})]:a.arrow.placement},children:" "})]})]})},Fa=({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(q().tooltip,a);return g.jsx(fC,{animation:t,arrow:e,content:o,placement:i,style:s,theme:d,trigger:l,className:n,...c,children:r})};Fa.displayName="Tooltip";const lg=k.createContext(void 0);function Qr(){const t=k.useContext(lg);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const za=k.createContext(void 0);function hC(){const t=k.useContext(za);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const cg=({children:t,className:e,icon:r,label:n,chevronIcon:o=zu,renderChevronIcon:i,open:s=!1,theme:a={},...l})=>{const c=k.useId(),[d,u]=k.useState(s),{theme:f,isCollapsed:h}=Qr(),p=H(f.collapse,a);k.useEffect(()=>u(s),[s]);const m=({children:b})=>g.jsx("li",{children:h&&!d?g.jsx(Fa,{content:n,placement:"right",children:b}):b});return g.jsxs(m,{children:[g.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:n,type:"button",className:F(p.button,e),...l,children:[r&&g.jsx(r,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:F(p.icon.base,p.icon.open[d?"on":"off"])}),h?g.jsx("span",{className:"sr-only",children:n}):g.jsxs(g.Fragment,{children:[g.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:p.label.base,children:n}),i?i(p,d):g.jsx(o,{"aria-hidden":!0,className:F(p.label.icon.base,p.label.icon.open[d?"on":"off"])})]})]}),g.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:p.list,children:g.jsx(za.Provider,{value:{isInsideCollapse:!0},children:t})})]})};cg.displayName="Sidebar.Collapse";const dg=({children:t,color:e="info",className:r,theme:n={},...o})=>{const{theme:i,isCollapsed:s}=Qr(),a=H(i.cta,n);return g.jsx("div",{"data-testid":"sidebar-cta",hidden:s,className:F(a.base,a.color[e],r),...o,children:t})};dg.displayName="Sidebar.CTA";const gC=({id:t,theme:e,isCollapsed:r,tooltipChildren:n,children:o,...i})=>g.jsx("li",{...i,children:r?g.jsx(Fa,{content:g.jsx(ug,{id:t,theme:e,children:n}),placement:"right",children:o}):o}),ug=({id:t,theme:e,children:r})=>g.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:F(e.content.base),children:r}),fg=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}=hC(),p=H(u.item,a);return g.jsx(gC,{theme:p,className:p.listItem,id:d,isCollapsed:f,tooltipChildren:r,children:g.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:F(p.base,t&&p.active,!f&&h&&((m=p.collapsed)==null?void 0:m.insideCollapse),n),...l,children:[o&&g.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:F((b=p.icon)==null?void 0:b.base,t&&((v=p.icon)==null?void 0:v.active))}),f&&!o&&g.jsx("span",{className:(y=p.collapsed)==null?void 0:y.noIcon,children:r.charAt(0).toLocaleUpperCase()??"?"}),!f&&g.jsx(ug,{id:d,theme:p,children:r}),!f&&i&&g.jsx(of,{color:s,"data-testid":"flowbite-sidebar-label",hidden:f,className:p.label,children:i})]})})});fg.displayName="Sidebar.Item";const hg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Qr(),i=H(o.itemGroup,r);return g.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:F(i.base,e),...n,children:g.jsx(za.Provider,{value:{isInsideCollapse:!1},children:t})})};hg.displayName="Sidebar.ItemGroup";const gg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Qr(),i=H(o.items,r);return g.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-sidebar-items",...n,children:t})};gg.displayName="Sidebar.Items";const pg=({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 g.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${a}`,href:r,className:F(d.base,e),...s,children:[g.jsx("img",{alt:o,src:n,className:d.img}),g.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${a}`,children:t})]})};pg.displayName="Sidebar.Logo";const mg=({children:t,as:e="nav",collapseBehavior:r="collapse",collapsed:n=!1,theme:o={},className:i,...s})=>{const a=H(q().sidebar,o);return g.jsx(lg.Provider,{value:{theme:a,isCollapsed:n},children:g.jsx(e,{"aria-label":"Sidebar",hidden:n&&r==="hide",className:F(a.root.base,a.root.collapsed[n?"on":"off"],i),...s,children:g.jsx("div",{className:a.root.inner,children:t})})})};mg.displayName="Sidebar",Object.assign(mg,{Collapse:cg,CTA:dg,Item:fg,Items:gg,ItemGroup:hg,Logo:pg});const bg=k.createContext(void 0);function pC(){const t=k.useContext(bg);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const yg=k.createContext(void 0);function Ba(){const t=k.useContext(yg);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const vg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=Ba(),s=H(i.body,r);return g.jsx(bg.Provider,{value:{theme:s},children:g.jsx("tbody",{className:F(s.base,e),ref:o,...n,children:t})})});vg.displayName="Table.Body";const xg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=pC(),s=H(i.cell,r);return g.jsx("td",{className:F(s.base,e),ref:o,...n,children:t})});xg.displayName="Table.Cell";const wg=k.createContext(void 0);function mC(){const t=k.useContext(wg);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const kg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=Ba(),s=H(i.head,r);return g.jsx(wg.Provider,{value:{theme:s},children:g.jsx("thead",{className:F(s.base,e),ref:o,...n,children:g.jsx("tr",{children:t})})})});kg.displayName="Table.Head";const Cg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=mC(),s=H(i.cell,r);return g.jsx("th",{className:F(s.base,e),ref:o,...n,children:t})});Cg.displayName="Table.HeadCell";const _g=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i,hoverable:s,striped:a}=Ba(),l=H(i.row,r);return g.jsx("tr",{ref:o,"data-testid":"table-row-element",className:F(l.base,a&&l.striped,s&&l.hovered,e),...n,children:t})});_g.displayName="Table.Row";const Sg=k.forwardRef(({children:t,className:e,striped:r,hoverable:n,theme:o={},...i},s)=>{const a=H(q().table,o);return g.jsx("div",{"data-testid":"table-element",className:F(a.root.wrapper),children:g.jsxs(yg.Provider,{value:{theme:a,striped:r,hoverable:n},children:[g.jsx("div",{className:F(a.root.shadow,e)}),g.jsx("table",{className:F(a.root.base,e),...i,ref:s,children:t})]})})});Sg.displayName="Table";const en=Object.assign(Sg,{Head:kg,Body:vg,Row:_g,Cell:xg,HeadCell:Cg}),Eg=({children:t,className:e})=>g.jsx("div",{className:e,children:t});Eg.displayName="Tabs.Item";const Og=k.forwardRef(({children:t,className:e,onActiveTabChange:r,style:n="default",theme:o={},...i},s)=>{const a=H(q().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,p]=k.useState(-1),m=x=>{f(x),r&&r(x)},b=({target:x})=>{m(x),p(x)},v=({event:x,target:w})=>{x.key==="ArrowLeft"&&p(Math.max(0,h-1)),x.key==="ArrowRight"&&p(Math.min(c.length-1,h+1)),x.key==="Enter"&&(m(w),p(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})),g.jsxs("div",{className:F(a.base,e),children:[g.jsx("div",{"aria-label":"Tabs",role:"tablist",className:F(a.tablist.base,a.tablist.styles[n],e),...i,children:c.map((x,w)=>g.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&&g.jsx(x.icon,{className:a.tablist.tabitem.icon}),x.title]},w))}),g.jsx("div",{className:F(a.tabitemcontainer.base,_),children:c.map((x,w)=>g.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))})]})});Og.displayName="Tabs",Object.assign(Og,{Item:Eg});const bC=k.forwardRef(({className:t,color:e="gray",helperText:r,shadow:n,theme:o={},...i},s)=>{const a=H(q().textarea,o);return g.jsxs(g.Fragment,{children:[g.jsx("textarea",{ref:s,className:F(a.base,a.colors[e],a.withShadow[n?"on":"off"],t),...i}),r&&g.jsx(Vn,{color:e,children:r})]})});bC.displayName="Textarea";const Tg=k.createContext(void 0);function $a(){const t=k.useContext(Tg);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const Ng=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=$a(),i=H(o.body,r);return g.jsx("div",{className:F(i.base,e),...n,children:t})},Mg=k.createContext(void 0);function ja(){const t=k.useContext(Mg);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const Pg=k.createContext(void 0);function Ag(){const t=k.useContext(Pg);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const Dg=({children:t,className:e,theme:r={},...n})=>{const{horizontal:o}=ja(),{theme:i}=Ag(),s=H(i.content,r);return g.jsx(Tg.Provider,{value:{theme:s},children:g.jsx("div",{"data-testid":"timeline-content",className:F(o&&s.root.base,e),...n,children:t})})},Ig=({children:t,className:e,theme:r={},...n})=>{const{theme:o,horizontal:i}=ja(),s=H(o.item,r);return g.jsx(Pg.Provider,{value:{theme:s},children:g.jsx("li",{"data-testid":"timeline-item",className:F(i&&s.root.horizontal,!i&&s.root.vertical,e),...n,children:t})})},Lg=({children:t,className:e,icon:r,theme:n={},...o})=>{const{horizontal:i}=ja(),{theme:s}=Ag(),a=H(s.point,n);return g.jsxs("div",{"data-testid":"timeline-point",className:F(i&&a.horizontal,!i&&a.vertical,e),...o,children:[t,r?g.jsx("span",{className:F(a.marker.icon.wrapper),children:g.jsx(r,{"aria-hidden":!0,className:F(a.marker.icon.base)})}):g.jsx("div",{className:F(i&&a.marker.base.horizontal,!i&&a.marker.base.vertical)}),i&&g.jsx("div",{className:F(a.line)})]})},Fg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=$a(),i=H(o.time,r);return g.jsx("time",{className:F(i.base,e),...n,children:t})},zg=({as:t="h3",children:e,className:r,theme:n={},...o})=>{const{theme:i}=$a(),s=H(i.title,n);return g.jsx(t,{className:F(s.base,r),...o,children:e})},Bg=({children:t,className:e,horizontal:r,theme:n={},...o})=>{const i=H(q().timeline,n);return g.jsx(Mg.Provider,{value:{theme:i,horizontal:r},children:g.jsx("ol",{"data-testid":"timeline-component",className:F(r&&i.root.direction.horizontal,!r&&i.root.direction.vertical,e),...o,children:t})})};Bg.displayName="Timeline",Ig.displayName="Timeline.Item",Lg.displayName="Timeline.Point",Dg.displayName="Timeline.Content",Fg.displayName="Timeline.Time",zg.displayName="Timeline.Title",Ng.displayName="Timeline.Body",Object.assign(Bg,{Item:Ig,Point:Lg,Content:Dg,Time:Fg,Title:zg,Body:Ng});const $g=k.createContext(void 0);function yC(){const t=k.useContext($g);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const jg=({className:t,onClick:e,theme:r={},xIcon:n=g1,onDismiss:o,...i})=>{const{theme:s,duration:a,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=yC(),f=H(s.toggle,r),h=p=>{if(e&&e(p),o){o();return}d(!l),setTimeout(()=>u(!c),a)};return g.jsx("button",{"aria-label":"Close",onClick:h,type:"button",className:F(f.base,t),...i,children:g.jsx(n,{"aria-hidden":!0,className:f.icon})})},vC={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},Hg=({children:t,className:e,duration:r=300,theme:n={},...o})=>{const[i,s]=k.useState(!1),[a,l]=k.useState(!1),c=H(q().toast,n);return a?null:g.jsx($g.Provider,{value:{theme:c,duration:r,isClosed:i,isRemoved:a,setIsClosed:s,setIsRemoved:l},children:g.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:F(c.root.base,vC[r],i&&c.root.closed,e),...o,children:t})})};Hg.displayName="Toast",jg.displayName="Toast.Toggle",Object.assign(Hg,{Toggle:jg});const xC=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(q().toggleSwitch,l),h=()=>a(!t),p=()=>{h()},m=b=>{b.code=="Enter"&&b.preventDefault()};return g.jsxs(g.Fragment,{children:[s&&t?g.jsx("input",{ref:d,checked:t,hidden:!0,name:s,readOnly:!0,type:"checkbox",className:"sr-only"}):null,g.jsxs("button",{"aria-checked":t,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:o,id:`${u}-flowbite-toggleswitch`,onClick:p,onKeyDown:m,role:"switch",tabIndex:0,type:"button",className:F(f.root.base,f.root.active[o?"off":"on"],e),...c,children:[g.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?g.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:f.root.label,children:i}):null]})]})});xC.displayName="ToggleSwitch";const wC=({currentPage:t,totalPages:e,onPageChange:r})=>g.jsxs("div",{className:"flex items-center justify-center gap-4",children:[g.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:g.jsx(Bu,{className:"h-5 w-5"})}),g.jsxs("span",{className:"text-sm text-gray-700",children:[t," de ",e]}),g.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:g.jsx($u,{className:"h-5 w-5"})})]}),kC=({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 p=f[h.relation];return p!=null&&String(p).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 g.jsxs("div",{className:"w-full",children:[g.jsx("div",{className:"mb-4 flex items-center justify-between",children:o&&g.jsx("h2",{className:"text-xl font-bold",children:o})}),g.jsxs("div",{className:"mb-4 flex",children:[r&&g.jsx("div",{className:"w-1/2",children:g.jsx(Qs,{rightIcon:f1,placeholder:"Buscar",value:i,onChange:f=>s(f.target.value)})}),u>1&&g.jsx("div",{className:"flex w-full justify-end",children:g.jsx(wC,{currentPage:a,totalPages:u,onPageChange:l})})]}),g.jsx("div",{className:"overflow-x-auto",children:g.jsxs(en,{striped:!0,children:[g.jsx(en.Head,{children:t.map((f,h)=>g.jsx(en.HeadCell,{children:f.header},h))}),g.jsx("hr",{}),g.jsx(en.Body,{className:"divide-y",children:d.map((f,h)=>g.jsx(en.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:t.map((p,m)=>{const b=f[p.relation];return g.jsx(en.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:p.cell?p.cell(f):b!=null?String(b):""},m)})},h))})]})})]})},Wg={"m-image-container":"layoutOutside-module__m-image-container__sCvFu","m-image":"layoutOutside-module__m-image__kZHyH"},CC=()=>g.jsxs("div",{className:"mt-32",children:[g.jsx(Rt,{classIm:"mx-auto",src:"../../../../public/assets/images/mathilde.png",alt:"Logo Mathilde ads",width:400,height:250}),g.jsx("div",{className:Wg["m-image-container"],children:g.jsx(Rt,{classIm:Wg["m-image"],src:"../../../../public/assets/images/background-mathilde.png",alt:"Logo Mathilde ads",width:400,height:300})})]}),_C=({onOpenModal:t,checked:e,onChange:r,label:n,...o})=>{const i=()=>{e||t(),r(!1)};return g.jsx("div",{className:"mb-5",children:g.jsxs("label",{className:eo["checkbox-container"],children:[g.jsx("input",{type:"checkbox",...o,checked:e,onChange:i,required:!0}),g.jsx("span",{className:eo.checkmark}),n&&g.jsx("span",{children:n})]})})},Vg=({validations:t})=>{const e=({isValid:n})=>g.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:g.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 g.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})=>g.jsxs("li",{className:"flex items-center",children:[g.jsx(e,{isValid:t[n]}),o]},n))})},SC=()=>{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}},EC=({formik:t})=>{const{password:e,setPassword:r,confirmPassword:n,setConfirmPassword:o,validations:i}=SC();return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"block",children:[g.jsx(Fi,{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&&g.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.password)})]}),g.jsxs("div",{className:"block",children:[g.jsx(Fi,{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&&g.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.confirmPassword)})]}),g.jsx(Vg,{validations:i})]})},OC=({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)=>g.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 g.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])"],ki=t5.join(","),Rf=typeof Element>"u",Gr=Rf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ci=!Rf&&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},_i=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(_i(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(ki));return r&&Gr.call(e,ki)&&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(!_i(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,ki);d&&n.filter(s)&&(r||!e.includes(s))&&o.push(s);var u=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),f=!_i(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},Yf=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Uf=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||r5(e))&&!Yf(e)?0:e.tabIndex},i5=function(e,r){var n=Uf(e);return n<0&&r&&!Yf(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||Ci(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&&Ci(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=Ci(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},qf=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=Ci(e);if(l&&!l.shadowRoot&&o(l)===!0)return qf(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 qf(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||_i(r)||a5(r)||g5(r,e)||l5(r)||p5(r))},va=function(e,r){return!(f5(r)||Uf(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)},Si=function(e,r){r=r||{};var n;return r.getShadowRoot?n=o5([e],r.includeContainer,{filter:va.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:b5}):n=n5(e,r.includeContainer,va.bind(null,r)),y5(n)},v5=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Gr.call(e,ki)===!1?!1:va(r,e)};function Gf(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 xa="ArrowUp",Kn="ArrowDown",Xr="ArrowLeft",Zr="ArrowRight";function Ei(t,e,r){return Math.floor(t/e)!==r}function qn(t,e){return e<0||e>=t.current.length}function wa(t,e){return Ye(t,{disabledIndices:e})}function Xf(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===xa){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,p=l-(h-f);h===f?u=l:u=h>f?p:p-i}qn(t,u)&&(u=c)}if(r.key===Kn&&(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}))),qn(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&&Ei(u,i,f)&&(u=Ye(t,{startingIndex:c-c%i-1,disabledIndices:s}))):o&&(u=Ye(t,{startingIndex:c-c%i-1,disabledIndices:s})),Ei(u,i,f)&&(u=c)),r.key===Xr&&(d&&je(r),c%i!==0?(u=Ye(t,{startingIndex:c,disabledIndices:s,decrement:!0}),o&&Ei(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})),Ei(u,i,f)&&(u=c));const h=Ur(l/i)===f;qn(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 Zf=0;function Vt(t,e){e===void 0&&(e={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=e;n&&cancelAnimationFrame(Zf);const i=()=>t==null?void 0:t.focus({preventScroll:r});o?i():Zf=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 Jf=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(Jf.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(Jf),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 ka=!1,N5=0;const Qf=()=>"floating-ui-"+N5++;function M5(){const[t,e]=C.useState(()=>ka?Qf():void 0);return me(()=>{t==null&&e(Qf())},[]),C.useEffect(()=>{ka||(ka=!0)},[]),t}const Oi=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),I5=C.createContext(null),Ti=()=>{var t;return((t=C.useContext(A5))==null?void 0:t.id)||null},Xn=()=>C.useContext(I5);function _r(t){return"data-floating-ui-"+t}function Mt(t){const e=k.useRef(t);return me(()=>{e.current=t}),e}const eh=_r("safe-polygon");function Ca(t,e,r){return r&&!gi(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:p=!0}=e,m=Xn(),b=Ti(),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 D=C.useCallback(function(O,P,L){P===void 0&&(P=!0),L===void 0&&(L="hover");const z=Ca(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},[]),I=C.useCallback(()=>{if(M.current){const O=Ue(l.floating.current).body;O.style.pointerEvents="",O.removeAttribute(eh),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&&!gi(_.current)||h>0&&Ca(y.current,"open")===0)return;const j=Ca(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(){I(),A(),D(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)&&D(B)}function z(B){O()||v.current==null||v.current({...t,tree:m,x:B.clientX,y:B.clientY,onClose(){I(),A(),D(B)}})(B)}if(pe(s)){const B=s;return r&&B.addEventListener("mouseleave",z),a==null||a.addEventListener("mouseleave",z),p&&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),p&&B.removeEventListener("mousemove",P),B.removeEventListener("mouseenter",P),B.removeEventListener("mouseleave",L)}}},[s,a,c,t,f,h,p,D,A,I,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(eh,""),L.style.pointerEvents="none",M.current=!0,pe(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(),I())},[r,A,I]),C.useEffect(()=>()=>{A(),clearTimeout(x.current),clearTimeout(S.current),I()},[c,s,A,I]),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){D(P.nativeEvent,!1)}}}},[c,h,r,n,D])}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 Sr(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),Sr(t,i).forEach(l=>{o(l.id,s+1)})}return o(e,0),t.find(i=>i.id===r)}let Jr=new WeakMap,Ni=new WeakSet,Mi={},_a=0;const z5=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,th=t=>t&&(t.host||th(t.parentNode)),B5=(t,e)=>e.map(r=>{if(t.contains(r))return r;const n=th(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=[];Mi[o]||(Mi[o]=new WeakMap);const d=Mi[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,p=>{if(a.has(p))f(p);else{const m=i?p.getAttribute(i):null,b=m!==null&&m!=="false",v=(Jr.get(p)||0)+1,y=(d.get(p)||0)+1;Jr.set(p,v),d.set(p,y),c.push(p),v===1&&b&&Ni.add(p),y===1&&p.setAttribute(o,""),!b&&i&&p.setAttribute(i,"true")}})}return _a++,()=>{c.forEach(h=>{const p=(Jr.get(h)||0)-1,m=(d.get(h)||0)-1;Jr.set(h,p),d.set(h,m),p||(!Ni.has(h)&&i&&h.removeAttribute(i),Ni.delete(h)),m||h.removeAttribute(o)}),_a--,_a||(Jr=new WeakMap,Jr=new WeakMap,Ni=new WeakSet,Mi={})}}function rh(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 nh(t,e){const r=Si(t,Zn());e==="prev"&&r.reverse();const n=r.indexOf(Et(Ue(t)));return r.slice(n+1)[0]}function oh(){return nh(document.body,"next")}function ih(){return nh(document.body,"prev")}function Jn(t,e){const r=e||t.currentTarget,n=t.relatedTarget;return!n||!Se(r,n)}function j5(t){Si(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 Sa={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 sh(t){t.key==="Tab"&&(t.target,clearTimeout(W5))}const Pi=C.forwardRef(function(e,r){const[n,o]=C.useState();me(()=>(aa()&&o("button"),document.addEventListener("keydown",sh),()=>{document.removeEventListener("keydown",sh)}),[]);const i={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[_r("focus-guard")]:"",style:Sa};return C.createElement("span",Gn({},e,i))}),ah=C.createContext(null),lh=_r("portal");function V5(t){let{id:e,root:r}=t===void 0?{}:t;const[n,o]=C.useState(null),i=Oi(),s=ch(),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(lh,""),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&&!pe(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(lh,""),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(p){i&&Jn(p)&&(p.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(ah.Provider,{value:C.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:i,setFocusManagerState:a}),[o,i])},f&&i&&C.createElement(Pi,{"data-type":"outside",ref:l,onFocus:h=>{if(Jn(h,i)){var p;(p=d.current)==null||p.focus()}else{const m=ih()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus()}}}),f&&i&&C.createElement("span",{"aria-owns":i.id,style:Sa}),i&&Wa.createPortal(e,i),f&&i&&C.createElement(Pi,{"data-type":"outside",ref:c,onFocus:h=>{if(Jn(h,i)){var p;(p=u.current)==null||p.focus()}else{const m=oh()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,h.nativeEvent))}}}))}const ch=()=>C.useContext(ah),Y5=20;let Er=[];function Ea(t){Er=Er.filter(r=>r.isConnected);let e=t;if(!(!e||wr(e)==="body")){if(!v5(e,Zn())){const r=Si(e,Zn())[0];if(!r)return;e=r}Er.push(e),Er.length>Y5&&(Er=Er.slice(-20))}}function dh(){return Er.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:Sa}))});function uh(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:p,events:m,dataRef:b,elements:{domReference:v,floating:y}}=e,_=typeof s=="number"&&s<0,x=Sf(v)&&_,w=z5()?i:!0,S=Mt(o),T=Mt(s),M=Mt(a),N=Xn(),E=ch(),D=C.useRef(null),A=C.useRef(null),I=C.useRef(!1),O=C.useRef(!1),P=E!=null,L=C.useCallback(function($){return $===void 0&&($=y),$?Si($,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=rr(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(_r("focus-guard"))||N&&(Sr(N.nodesRef.current,h).find(K=>{var G,de;return Se((G=K.context)==null?void 0:G.elements.floating,Y)||Se((de=K.context)==null?void 0:de.elements.domReference,Y)})||L5(N.nodesRef.current,h).find(K=>{var G,de;return((G=K.context)==null?void 0:G.elements.floating)===Y||((de=K.context)==null?void 0:de.elements.domReference)===Y})));Y&&U&&!O.current&&Y!==dh()&&(I.current=!0,p(!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,p,d]),C.useEffect(()=>{var $;if(n)return;const W=Array.from((E==null||($=E.portalNode)==null?void 0:$.querySelectorAll("["+_r("portal")+"]"))||[]);if(y){const V=[y,...W,D.current,A.current,S.current.includes("reference")||x?v:null].filter(U=>U!=null),Y=l||x?rh(V,w,!w):rh(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,K=Se(y,W);!_&&!K&&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;Ea(V);function U(K){let{reason:G,event:de,nested:X}=K;G==="escape-key"&&f.domReference.current&&Ea(f.domReference.current),G==="hover"&&de.type==="mouseleave"&&(I.current=!0),G==="outside-press"&&(X?(I.current=!1,$=!0):I.current=!(Cf(de)||sa(de)))}return m.on("openchange",U),()=>{m.off("openchange",U);const K=Et(W),G=Se(y,K)||N&&Sr(N.nodesRef.current,h).some(oe=>{var De;return Se((De=oe.context)==null?void 0:De.elements.floating,K)});(G||Y.openEvent&&["click","mousedown"].includes(Y.openEvent.type))&&f.domReference.current&&Ea(f.domReference.current);const X=dh();M.current&&!I.current&&$e(X)&&(!(X!==K&&K!==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:p,refs:f}),()=>{E.setFocusManagerState(null)}},[n,E,l,u,p,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"?D:A,onClick:W=>p(!1,W.nativeEvent)},typeof c=="string"?c:"Dismiss")}const j=!n&&w&&(P||l);return C.createElement(C.Fragment,null,j&&C.createElement(Pi,{"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(I.current=!1,Jn($,E.portalNode)){const V=oh()||v;V==null||V.focus()}else{var W;(W=E.beforeOutsideRef.current)==null||W.focus()}}}),!x&&B("start"),r,B("end"),j&&C.createElement(Pi,{"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&&(I.current=!0),Jn($,E.portalNode)){const V=ih()||v;V==null||V.focus()}else{var W;(W=E.afterOutsideRef.current)==null||W.focus()}}}))}const Oa=new Set,K5=C.forwardRef(function(e,r){let{lockScroll:n=!1,...o}=e;const i=Oi();return me(()=>{if(!n)return;Oa.add(i);const s=/iP(hone|ad|od)|iOS/.test(ia()),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,p;const m=((h=window.visualViewport)==null?void 0:h.offsetLeft)||0,b=((p=window.visualViewport)==null?void 0:p.offsetTop)||0;Object.assign(a,{position:"fixed",top:-(f-Math.floor(b))+"px",left:-(u-Math.floor(m))+"px",right:"0"})}return()=>{Oa.delete(i),Oa.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 fh(t){return $e(t.target)&&t.target.tagName==="BUTTON"}function hh(t){return da(t)}function gh(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&&(gi(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}gi(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||fh(h))&&(h.key===" "&&!hh(i)&&(h.preventDefault(),f.current=!0),h.key==="Enter"&&n(!(r&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||fh(h)||hh(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"},G5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ph=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 mh(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:p="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}=ph(b),{escapeKey:N,outsidePress:E}=ph(v),D=Nt(P=>{if(!r||!c||!d||P.key!=="Escape")return;const L=y?Sr(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;D(P),(B=rr(P))==null||B.removeEventListener("keydown",z)};(L=rr(P))==null||L.addEventListener("keydown",z)}),I=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=rr(P),j="["+_r("inert")+"]",$=Ue(a).querySelectorAll(j);let W=pe(B)?B:null;for(;W&&!er(W);){const U=Ht(W);if(er(U)||!pe(U))break;W=U}if($.length&&pe(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,K=B.clientHeight>0&&B.scrollHeight>B.clientHeight;let G=K&&P.offsetX>B.clientWidth;if(K&&ut(B).direction==="rtl"&&(G=P.offsetX<=B.offsetWidth-B.clientWidth),G||U&&P.offsetY>B.clientHeight)return}const V=y&&Sr(y.nodesRef.current,o).some(U=>{var K;return ca(P,(K=U.context)==null?void 0:K.elements.floating)});if(ca(P,a)||ca(P,s)||V)return;const Y=y?Sr(y.nodesRef.current,o):[];if(Y.length>0){let U=!0;if(Y.forEach(K=>{var G;if((G=K.context)!=null&&G.open&&!K.context.dataRef.current.__outsidePressBubbles){U=!1;return}}),!U)return}n(!1,P,"outside-press")}),O=Nt(P=>{var L;const z=()=>{var B;I(P),(B=rr(P))==null||B.removeEventListener(f,z)};(L=rr(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:D,N),x&&L.addEventListener(f,E?O:I,E);let z=[];return m&&(pe(s)&&(z=tr(s)),pe(a)&&(z=z.concat(tr(a))),!pe(i)&&i&&i.contextElement&&(z=z.concat(tr(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:D,N),x&&L.removeEventListener(f,E?O:I,E),z.forEach(B=>{B.removeEventListener("scroll",P)})}},[l,a,s,i,d,x,f,r,n,m,c,T,M,D,N,A,I,E,O]),C.useEffect(()=>{w.current=!1},[x,f]),C.useMemo(()=>c?{reference:{onKeyDown:D,[q5[p]]:P=>{h&&n(!1,P.nativeEvent,"reference-press")}},floating:{onKeyDown:D,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[G5[f]]:()=>{w.current=!0}}}:{},[c,h,f,p,n,D])}let Ta;process.env.NODE_ENV!=="production"&&(Ta=new Set);function bh(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&&!pe(t.elements.reference)){var s;if(!((s=Ta)!=null&&s.has(M))){var a;(a=Ta)==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=Ti()!=null,p=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=Oi(),_=C.useCallback(M=>{const N=pe(M)?{getBoundingClientRect:()=>M.getBoundingClientRect(),contextElement:M}:M;u.refs.setReference(N)},[u.refs]),x=C.useCallback(M=>{(pe(M)||M===null)&&(m.current=M,c(M)),(pe(u.refs.reference.current)||u.refs.reference.current===null||M!==null&&!pe(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:p}),[u,o,y,v,r,p,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 p(){u.current=!0}return f.addEventListener("blur",h),f.addEventListener("keydown",p,!0),()=>{f.removeEventListener("blur",h),f.removeEventListener("keydown",p,!0)}},[s,r,a]),C.useEffect(()=>{if(!a)return;function f(h){let{reason:p}=h;(p==="reference-press"||p==="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){sa(f.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const h=rr(f.nativeEvent);if(l&&pe(h))try{if(aa()&&_f())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!da(h))return}n(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const h=f.relatedTarget,p=pe(h)&&h.hasAttribute(_r("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)||p||n(!1,f.nativeEvent,"focus")})}}}:{},[a,l,s,i,n])}const yh="active",vh="selected";function Na(t,e,r){const n=new Map,o=r==="item";let i=t;if(o&&t){const{[yh]:s,[vh]: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&&[yh,vh].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,p=new Array(h),m=0;m<h;m++)p[m]=arguments[m];return(f=n.get(c))==null?void 0:f.map(b=>b(...p)).find(b=>b!==void 0)}}}else s[c]=d}),s),{})}}function xh(t){t===void 0&&(t=[]);const e=t,r=C.useCallback(i=>Na(i,t,"reference"),e),n=C.useCallback(i=>Na(i,t,"floating"),e),o=C.useCallback(i=>Na(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 wh=!1;function Ai(t,e,r){switch(t){case"vertical":return e;case"horizontal":return r;default:return e||r}}function kh(t,e){return Ai(e,t===xa||t===Kn,t===Xr||t===Zr)}function Ma(t,e,r){return Ai(e,t===Kn,r?t===Xr:t===Zr)||t==="Enter"||t===" "||t===""}function Z5(t,e,r){return Ai(e,r?t===Xr:t===Zr,t===Kn)}function Ch(t,e,r){return Ai(e,r?t===Zr:t===Xr,t===xa)}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:p=!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 D=Ti(),A=Xn(),I=Nt(c),O=C.useRef(v),P=C.useRef(u??-1),L=C.useRef(null),z=C.useRef(!0),B=C.useRef(I),j=C.useRef(!!s),$=C.useRef(!1),W=C.useRef(!1),V=Mt(x),Y=Mt(r),U=Mt(T),[K,G]=C.useState(),[de,X]=C.useState(),oe=Nt(function(J,Ee,le){le===void 0&&(le=!1);const re=J.current[Ee.current];re&&(b?(G(re.id),A==null||A.events.emit("virtualfocus",re),M&&(M.current=re)):Vt(re,{preventScroll:!0,sync:_f()&&aa()?wh||$.current:!1}),requestAnimationFrame(()=>{const he=U.current;he&&re&&(le||!z.current)&&(re.scrollIntoView==null||re.scrollIntoView(typeof he=="boolean"?{block:"nearest",inline:"nearest"}:he))}))});me(()=>{document.createElement("div").focus({get preventScroll(){return wh=!0,!1}})},[]),me(()=>{d&&(r&&s?O.current&&u!=null&&(W.current=!0,P.current=u,I(u)):j.current&&(P.current=-1,B.current(null)))},[d,r,s,u,I]),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||Ma(L.current,w,m)||p?wa(a,V.current):Xf(a,V.current),L.current=null,I(P.current))};Ee()}}else qn(a,l)||(P.current=l,oe(a,P,W.current),W.current=!1)},[d,r,s,l,u,p,a,w,m,I,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===D))==null||(J=J.context)==null?void 0:J.elements.floating,re=Et(Ue(s)),he=Ee.some(Q=>Q.context&&Se(Q.context.elements.floating,re));le&&!he&&z.current&&le.focus({preventScroll:!0})},[d,s,A,D,b]),me(()=>{if(!d||!A||!b||D)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,D,M]),me(()=>{B.current=I,j.current=!!s}),me(()=>{r||(L.current=null)},[r]);const De=l!=null,He=C.useMemo(()=>{function J(le){if(!r)return;const re=a.current.indexOf(le);re!==-1&&I(re)}return{onFocus(le){let{currentTarget:re}=le;J(re)},onClick:le=>{let{currentTarget:re}=le;return re.focus({preventScroll:!0})},...y&&{onMouseMove(le){let{currentTarget:re}=le;J(re)},onPointerLeave(le){let{pointerType:re}=le;!z.current||re==="touch"||(P.current=-1,oe(a,P),I(null),b||Vt(o.floating.current,{preventScroll:!0}))}}}},[r,o,oe,y,a,I,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(p&&Ch(R.key,w,m)){je(R),n(!1,R.nativeEvent,"list-navigation"),$e(i)&&!b&&i.focus();return}const Oe=P.current,ie=wa(a,J),ke=Xf(a,J);if(R.key==="Home"&&(je(R),P.current=ie,I(P.current)),R.key==="End"&&(je(R),P.current=ke,I(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,or,it)=>or!=null&&!(J!=null&&J.includes(or))?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===Kn?"bl":R.key===Zr?"tr":"tl"),stopEvent:!0})],I(P.current),w==="both")return}if(kh(R.key,w)){if(je(R),r&&!b&&Et(R.currentTarget.ownerDocument)===R.currentTarget){P.current=Ma(R.key,w,m)?ie:ke,I(P.current);return}Ma(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})),qn(a,P.current)?I(null):I(P.current)}}function le(R){v==="auto"&&Cf(R.nativeEvent)&&(O.current=!0)}function re(R){O.current=v,v==="auto"&&sa(R.nativeEvent)&&(O.current=!0)}const he=b&&r&&De&&{"aria-activedescendant":de||K},Q=a.current.find(R=>(R==null?void 0:R.id)===K);return{reference:{...he,onKeyDown(R){z.current=!1;const Oe=R.key.indexOf("Arrow")===0,ie=Z5(R.key,w,m),ke=Ch(R.key,w,m),Le=kh(R.key,w),Pe=(p?ie:Le)||R.key==="Enter"||R.key.trim()==="";if(b&&r){const or=A==null?void 0:A.nodesRef.current.find(Li=>Li.parentId==null),it=A&&or?F5(A.nodesRef.current,or.id):null;if(Oe&&it&&M){const Li=new KeyboardEvent("keydown",{key:R.key,bubbles:!0});if(ie||ke){var ft,yt;const BC=((ft=it.context)==null?void 0:ft.elements.domReference)===R.currentTarget,Yg=ke&&!BC?(yt=it.context)==null?void 0:yt.elements.domReference:ie?Q:null;Yg&&(je(R),Yg.dispatchEvent(Li),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(Li);return}}return Ee(R)}if(!(!r&&!_&&Oe)){if(Pe&&(L.current=p&&Le?null:R.key),p){ie&&(je(R),r?(P.current=wa(a,J),I(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&&I(P.current))}},onFocus(){r&&I(null)},onPointerDown:re,onMouseDown:le,onClick:le},floating:{"aria-orientation":w==="both"?void 0:w,...!Sf(i)&&he,onKeyDown:Ee,onPointerMove(){z.current=!0}},item:He}},[i,o,K,de,V,Y,a,d,w,m,b,r,De,p,u,_,f,S,h,v,I,n,He,A,M,N,E])}const Q5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function _h(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=Oi(),d=Ti()!=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:p}=f;const m={role:"option",...h&&{id:o+"-option"}};switch(s){case"select":return{...m,"aria-selected":h&&p};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,p=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(p.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,D){const A=x.current?x.current(E,D):E.find(I=>(I==null?void 0:I.toLocaleLowerCase().indexOf(D.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(p.current),p.current=setTimeout(()=>{m.current="",b.current=v.current,S(!1)},u);const A=b.current,I=T(E,[...E.slice((A||0)+1),...E.slice(0,(A||0)+1)],m.current);I!==-1?(y(I),v.current=I):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 Sh(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(),p=h-l;if(s===null||a===null||p===0)return s=u,a=f,l=h,null;const m=u-s,b=f-a,y=Math.sqrt(m*m+b*b)/p;return s=u,a=f,l=h,y}const d=u=>{let{x:f,y:h,placement:p,elements:m,onClose:b,nodeId:v,tree:y}=u;return function(x){function w(){clearTimeout(o),b()}if(clearTimeout(o),!m.domReference||!m.floating||p==null||f==null||h==null)return;const{clientX:S,clientY:T}=x,M=[S,T],N=rr(x),E=x.type==="mouseleave",D=Se(m.floating,N),A=Se(m.domReference,N),I=m.domReference.getBoundingClientRect(),O=m.floating.getBoundingClientRect(),P=p.split("-")[0],L=f>O.right-O.width/2,z=h>O.bottom-O.height/2,B=tC(M,I),j=O.width>I.width,$=O.height>I.height,W=(j?I:O).left,V=(j?I:O).right,Y=($?I:O).top,U=($?I:O).bottom;if(D&&(i=!0,!E))return;if(A&&(i=!1),A&&!E){i=!0;return}if(E&&pe(x.relatedTarget)&&Se(m.floating,x.relatedTarget)||y&&Sr(y.nodesRef.current,v).some(de=>{let{context:X}=de;return X==null?void 0:X.open}))return;if(P==="top"&&h>=I.bottom-1||P==="bottom"&&h<=I.top+1||P==="left"&&f>=I.right-1||P==="right"&&f<=I.left+1)return w();let K=[];switch(P){case"top":K=[[W,I.top+1],[W,O.bottom-1],[V,O.bottom-1],[V,I.top+1]];break;case"bottom":K=[[W,O.top+1],[W,I.bottom-1],[V,I.bottom-1],[V,O.top+1]];break;case"left":K=[[O.right-1,U],[O.right-1,Y],[I.left+1,Y],[I.left+1,U]];break;case"right":K=[[I.right-1,U],[I.right-1,Y],[O.left+1,Y],[O.left+1,U]];break}function G(de){let[X,oe]=de;switch(P){case"top":{const De=[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[De,He,...J]}case"bottom":{const De=[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[De,He,...J]}case"left":{const De=[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]],De,He]}case"right":{const De=[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[De,He,...J]}}}if(!Sh([S,T],K)){if(i&&!B)return w();if(!E&&n){const de=c(x.clientX,x.clientY);if(de!==null&&de<.1)return w()}Sh([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]],Eh=({open:t,arrowRef:e,placement:r="top",setOpen:n})=>bh({placement:oC({placement:r}),open:t,onOpenChange:n,whileElementsMounted:jf,middleware:nC({placement:r,arrowRef:e})}),Oh=({context:t,trigger:e,role:r="tooltip",interactions:n=[]})=>xh([gh(t,{enabled:e==="click"}),D5(t,{enabled:e==="hover",handleClose:rC()}),mh(t),_h(t,{role:r}),...n]),Th=k.createContext(void 0);function Pa(){const t=k.useContext(Th);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const Aa=({className:t,theme:e={},...r})=>{const{theme:n}=Pa(),o=e.divider??n.floating.divider;return g.jsx("div",{className:F(o,t),...r})},Nh=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Pa(),i=r.header??o.floating.header;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:F(i,e),...n,children:t}),g.jsx(Aa,{})]})},Mh=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=Gf([s,a]),{theme:d,activeIndex:u,dismissOnClick:f,getItemProps:h,handleSelect:p}=Pa(),m=u===l,b=H(d.floating.item,o),v=i;return g.jsx("li",{role:"menuitem",className:b.container,children:g.jsxs(Zs,{ref:c,className:F(b.base,e),...v,...h({onClick:()=>{n==null||n(),f&&p(null)}}),tabIndex:m?0:-1,children:[r&&g.jsx(r,{className:b.icon}),t]})})});Mh.displayName="DropdownItem";const sC={top:y1,right:Hu,bottom:ju,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?g.jsx("button",{type:"button",ref:t.setReference,className:n==null?void 0:n.inlineWrapper,disabled:o,...d,children:e}):g.jsx(uf,{...l,disabled:o,type:"button",ref:t.setReference,...d,children:e})},Ph=({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),p=k.useRef([]),m=k.useRef([]),b=H(q().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:D,floatingStyles:A,refs:I}=Eh({open:s,setOpen:a,placement:_}),O=J5(D,{listRef:p,activeIndex:l,selectedIndex:d,onNavigate:c}),P=eC(D,{listRef:m,activeIndex:l,selectedIndex:d,onMatch:E}),{getReferenceProps:L,getFloatingProps:z,getItemProps:B}=Oh({context:D,role:"menu",trigger:x,interactions:[O,P]}),j=k.useMemo(()=>{const[$]=_.split("-");return sC[$]??ju},[_]);return g.jsxs(Th.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:r,getItemProps:B,handleSelect:N},children:[g.jsxs(aC,{...M,refs:I,inline:S,theme:b,"data-testid":y,className:F(b.floating.target,M.className),setButtonWidth:h,getReferenceProps:L,renderTrigger:o,children:[w,T&&g.jsx(j,{className:b.arrowIcon})]}),s&&g.jsx(uh,{context:D,modal:!1,children:g.jsx("div",{ref:I.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:g.jsx(O5,{elementsRef:p,labelsRef:m,children:g.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};Ph.displayName="Dropdown",Nh.displayName="Dropdown.Header",Aa.displayName="Dropdown.Divider",Object.assign(Ph,{Item:Mh,Header:Nh,Divider:Aa});const Ah=k.forwardRef(({className:t,color:e="gray",helperText:r,sizing:n="md",theme:o={},...i},s)=>{const a=H(q().fileInput,o);return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:F(a.root.base,t),children:g.jsx("div",{className:a.field.base,children:g.jsx("input",{className:F(a.field.input.base,a.field.input.colors[e],a.field.input.sizes[n]),...i,type:"file",ref:s})})}),r&&g.jsx(Vn,{color:e,children:r})]})});Ah.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(q().floatingLabel,s);return g.jsxs("div",{children:[g.jsxs("div",{className:F("relative",o==="standard"?"z-0":""),children:[g.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}),g.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:F(u.label[r][o][n],a),children:t})]}),g.jsx("p",{id:"outlined_helper_text"+d,className:F(u.helperText[r],a),children:e})]})});lC.displayName="FloatingLabel";const Ih=({alt:t,className:e,children:r,href:n,name:o,src:i,theme:s={},...a})=>{const l=H(q().footer.brand,s);return g.jsx("div",{children:n?g.jsxs("a",{"data-testid":"flowbite-footer-brand",href:n,className:F(l.base,e),...a,children:[g.jsx("img",{alt:t,src:i,className:l.img}),g.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:o}),r]}):g.jsx("img",{alt:t,"data-testid":"flowbite-footer-brand",src:i,className:F(l.img,e),...a})})},Dh=({by:t,className:e,href:r,theme:n={},year:o,...i})=>{const s=H(q().footer.copyright,n);return g.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:F(s.base,e),...i,children:["© ",o,r?g.jsx("a",{href:r,className:s.href,children:t}):g.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:s.span,children:t})]})},Lh=({className:t,theme:e={},...r})=>{const n=H(q().footer.divider,e);return g.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(q().footer.icon,o);return g.jsx("div",{children:r?g.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:r,className:F(s.base,e),...i,children:g.jsx(n,{className:s.size})}):g.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(q().footer.groupLink.link,o);return g.jsx("li",{className:F(s.base,r),children:g.jsx(t,{href:n,className:s.href,...i,children:e})})},Bh=({children:t,className:e,col:r=!1,theme:n={},...o})=>{const i=H(q().footer.groupLink,n);return g.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(q().footer.title,r);return g.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(q().footer,o);return g.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",Dh.displayName="Footer.Copyright",zh.displayName="Footer.Link",Ih.displayName="Footer.Brand",Bh.displayName="Footer.LinkGroup",Fh.displayName="Footer.Icon",$h.displayName="Footer.Title",Lh.displayName="Footer.Divider",Object.assign(jh,{Copyright:Dh,Link:zh,LinkGroup:Bh,Brand:Ih,Icon:Fh,Title:$h,Divider:Lh});const Hh=({children:t,className:e,color:r="default",disabled:n=!1,theme:o={},value:i,...s})=>{const a=H(q().label,o);return g.jsx("label",{className:F(a.root.base,a.root.colors[r],n&&a.root.disabled,e),"data-testid":"flowbite-label",...s,children:i??t??""})};Hh.displayName="Label";const Wh=({children:t,className:e,icon:r,theme:n={},...o})=>{const i=H(q().list.item,n);return g.jsxs("li",{className:F(i.withIcon[r?"on":"off"],e),...o,children:[r&&g.jsx(r,{className:F(i.icon)}),t]})},Vh=({children:t,className:e,unstyled:r,nested:n,ordered:o,horizontal:i,theme:s={},...a})=>{const l=H(q().list,s),c=o?"ol":"ul";return g.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})};Vh.displayName="List",Wh.displayName="List.Item",Object.assign(Vh,{Item:Wh});const Rh=({active:t,children:e,className:r,href:n,icon:o,onClick:i,theme:s={},disabled:a,...l})=>{const c=H(q().listGroup.item,s),d=typeof n<"u",u=d?"a":"button";return g.jsx("li",{className:F(c.base,r),children:g.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&&g.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},Yh=({children:t,className:e,theme:r={},...n})=>{const o=H(q().listGroup,r);return g.jsx("ul",{className:F(o.root.base,e),...n,children:t})};Yh.displayName="ListGroup",Rh.displayName="ListGroup.Item",Object.assign(Yh,{Item:Rh});const Uh=k.createContext(void 0);function Ia(){const t=k.useContext(Uh);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const Kh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=Ia(),s=H(o.body,r);return g.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 g.jsx("div",{className:F(s.base,!i&&s.popup,e),...n,children:t})},Gh=({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]),g.jsxs("div",{className:F(f.base,c&&f.popup,r),...i,children:[g.jsx(t,{id:a,className:f.title,children:e}),g.jsx("button",{"aria-label":"Close",className:f.close.base,type:"button",onClick:d,children:g.jsx(v1,{"aria-hidden":!0,className:f.close.icon})})]})},Xh=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,p]=k.useState(void 0),m=H(q().modal,c),{context:b}=bh({open:a,onOpenChange:()=>n&&n()}),v=Gf([b.refs.setFloating,f]),y=gh(b),_=mh(b,{outsidePressEvent:"mousedown",enabled:r}),x=_h(b),{getFloatingProps:w}=xh([y,_,x]);return a?g.jsx(Uh.Provider,{value:{theme:m,popup:o,onClose:n,setHeaderId:p},children:g.jsx(R5,{root:s,children:g.jsx(K5,{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:g.jsx(uh,{context:b,initialFocus:d,children:g.jsx("div",{ref:v,...w(u),"aria-labelledby":h,className:F(m.content.base,m.root.sizes[l]),children:g.jsx("div",{className:m.content.inner,children:t})})})})})}):null});Xh.displayName="Modal",Gh.displayName="Modal.Header",Kh.displayName="Modal.Body",qh.displayName="Modal.Footer",Object.assign(Xh,{Header:Gh,Body:Kh,Footer:qh});const Zh=k.createContext(void 0);function Ii(){const t=k.useContext(Zh);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const Jh=({as:t="a",children:e,className:r,theme:n={},...o})=>{const{theme:i}=Ii(),s=H(i.brand,n);return g.jsx(t,{className:F(s.base,r),...o,children:e})},Qh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i}=Ii(),s=H(o.collapse,r);return g.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:F(s.base,s.hidden[i?"off":"on"],e),...n,children:g.jsx("ul",{className:s.list,children:t})})},eg=({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 g.jsx("li",{children:g.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})})},tg=({barIcon:t=rp,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i,setIsOpen:s}=Ii(),a=H(o.toggle,r),l=()=>{s(!i)};return g.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:F(a.base,e),...n,children:[g.jsx("span",{className:"sr-only",children:"Open main menu"}),g.jsx(t,{"aria-hidden":!0,className:a.icon})]})},rg=({border:t,children:e,className:r,fluid:n=!1,menuOpen:o,rounded:i,theme:s={},...a})=>{const[l,c]=k.useState(o),d=H(q().navbar,s);return g.jsx(Zh.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:g.jsx("nav",{className:F(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[i?"on":"off"],r),...a,children:g.jsx("div",{className:F(d.root.inner.base,d.root.inner.fluid[n?"on":"off"]),children:e})})})};rg.displayName="Navbar",Jh.displayName="Navbar.Brand",Qh.displayName="Navbar.Collapse",eg.displayName="Navbar.Link",tg.displayName="Navbar.Toggle",Object.assign(rg,{Brand:Jh,Collapse:Qh,Link:eg,Toggle:tg});const cC=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(r=>r+t),Da=({active:t,children:e,className:r,onClick:n,theme:o={},...i})=>{const s=H(q().pagination,o);return g.jsx("button",{type:"button",className:F(t&&s.pages.selector.active,r),onClick:n,...i,children:e})};Da.displayName="Pagination.Button";const La=({children:t,className:e,onClick:r,theme:n={},disabled:o=!1,...i})=>{const s=H(q().pagination,n);return g.jsx("button",{type:"button",className:F(o&&s.pages.selector.disabled,e),disabled:o,onClick:r,...i,children:t})};La.displayName="Pagination.Navigation";const ng=({className:t,currentPage:e,layout:r="pagination",nextLabel:n="Next",onPageChange:o,previousLabel:i="Previous",renderPaginationButton:s=u=>g.jsx(Da,{...u}),showIcons:a=!1,theme:l={},totalPages:c,...d})=>{const u=H(q().pagination,l),f=Math.min(Math.max(r==="pagination"?e+2:e+4,5),c),h=Math.max(1,f-4),p=()=>{o(Math.min(e+1,c))},m=()=>{o(Math.max(e-1,1))};return g.jsxs("nav",{className:F(u.base,t),...d,children:[r==="table"&&g.jsxs("div",{className:u.layout.table.base,children:["Showing ",g.jsx("span",{className:u.layout.table.span,children:h})," to ",g.jsx("span",{className:u.layout.table.span,children:f})," of ",g.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),g.jsxs("ul",{className:u.pages.base,children:[g.jsx("li",{children:g.jsxs(La,{className:F(u.pages.previous.base,a&&u.pages.showIcon),onClick:m,disabled:e===1,children:[a&&g.jsx(Bu,{"aria-hidden":!0,className:u.pages.previous.icon}),i]})}),r==="pagination"&&cC(h,f).map(b=>g.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)),g.jsx("li",{children:g.jsxs(La,{className:F(u.pages.next.base,a&&u.pages.showIcon),onClick:p,disabled:e===c,children:[n,a&&g.jsx($u,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};ng.displayName="Pagination",Object.assign(ng,{Button:Da});const dC=k.forwardRef(({className:t,theme:e={},...r},n)=>{const o=H(q().radio,e);return g.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(q().rangeSlider,r);return g.jsx(g.Fragment,{children:g.jsx("div",{"data-testid":"flowbite-range-slider",className:F(i.root.base,t),children:g.jsx("div",{className:i.field.base,children:g.jsx("input",{ref:o,type:"range",className:F(i.field.input.base,i.field.input.sizes[e]),...n})})})})});uC.displayName="RangeSlider";const og=({children:t,className:e,percentFilled:r=0,theme:n={},...o})=>{const i=H(q().ratingAdvanced,n);return g.jsxs("div",{className:F(i.base,e),...o,children:[g.jsx("span",{className:i.label,children:t}),g.jsx("div",{className:i.progress.base,children:g.jsx("div",{className:i.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${r}%`}})}),g.jsx("span",{className:i.progress.label,children:`${r}%`})]})},ig=k.createContext(void 0);function fC(){const t=k.useContext(ig);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const sg=({className:t,filled:e=!0,starIcon:r=p1,theme:n={},...o})=>{const{theme:i,size:s="sm"}=fC(),a=H(i.star,n);return g.jsx(r,{"data-testid":"flowbite-rating-star",className:F(a.sizes[s],a[e?"filled":"empty"],t),...o})},ag=({children:t,className:e,size:r="sm",theme:n={},...o})=>{const i=H(q().rating,n);return g.jsx(ig.Provider,{value:{theme:i,size:r},children:g.jsx("div",{className:F(i.root.base,e),...o,children:t})})};ag.displayName="Rating",sg.displayName="Rating.Star",og.displayName="Rating.Advanced",Object.assign(ag,{Star:sg,Advanced:og});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(q().select,l);return g.jsxs("div",{className:F(u.base,r),children:[t&&g.jsx("span",{className:u.addon,children:t}),g.jsxs("div",{className:u.field.base,children:[i&&g.jsx("div",{className:u.field.icon.base,children:g.jsx(i,{className:u.field.icon.svg})}),g.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&&g.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),p=Eh({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}=p,T=X5(m),{getFloatingProps:M,getReferenceProps:N}=Oh({context:m,role:"tooltip",trigger:l,interactions:[T]});return k.useEffect(()=>{if(y.reference.current&&y.floating.current&&f)return jf(y.reference.current,y.floating.current,x)},[f,y.floating,y.reference,x]),g.jsxs(g.Fragment,{children:[g.jsx("div",{ref:y.setReference,className:a.target,"data-testid":"flowbite-tooltip-target",...N(),children:r}),g.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:[g.jsx("div",{className:a.content,children:o}),e&&g.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:p.placement})]:a.arrow.placement},children:" "})]})]})},Fa=({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(q().tooltip,a);return g.jsx(gC,{animation:t,arrow:e,content:o,placement:i,style:s,theme:d,trigger:l,className:n,...c,children:r})};Fa.displayName="Tooltip";const lg=k.createContext(void 0);function Qr(){const t=k.useContext(lg);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const za=k.createContext(void 0);function pC(){const t=k.useContext(za);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const cg=({children:t,className:e,icon:r,label:n,chevronIcon:o=zu,renderChevronIcon:i,open:s=!1,theme:a={},...l})=>{const c=k.useId(),[d,u]=k.useState(s),{theme:f,isCollapsed:h}=Qr(),p=H(f.collapse,a);k.useEffect(()=>u(s),[s]);const m=({children:b})=>g.jsx("li",{children:h&&!d?g.jsx(Fa,{content:n,placement:"right",children:b}):b});return g.jsxs(m,{children:[g.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:n,type:"button",className:F(p.button,e),...l,children:[r&&g.jsx(r,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:F(p.icon.base,p.icon.open[d?"on":"off"])}),h?g.jsx("span",{className:"sr-only",children:n}):g.jsxs(g.Fragment,{children:[g.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:p.label.base,children:n}),i?i(p,d):g.jsx(o,{"aria-hidden":!0,className:F(p.label.icon.base,p.label.icon.open[d?"on":"off"])})]})]}),g.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:p.list,children:g.jsx(za.Provider,{value:{isInsideCollapse:!0},children:t})})]})};cg.displayName="Sidebar.Collapse";const dg=({children:t,color:e="info",className:r,theme:n={},...o})=>{const{theme:i,isCollapsed:s}=Qr(),a=H(i.cta,n);return g.jsx("div",{"data-testid":"sidebar-cta",hidden:s,className:F(a.base,a.color[e],r),...o,children:t})};dg.displayName="Sidebar.CTA";const mC=({id:t,theme:e,isCollapsed:r,tooltipChildren:n,children:o,...i})=>g.jsx("li",{...i,children:r?g.jsx(Fa,{content:g.jsx(ug,{id:t,theme:e,children:n}),placement:"right",children:o}):o}),ug=({id:t,theme:e,children:r})=>g.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:F(e.content.base),children:r}),fg=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(),p=H(u.item,a);return g.jsx(mC,{theme:p,className:p.listItem,id:d,isCollapsed:f,tooltipChildren:r,children:g.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:F(p.base,t&&p.active,!f&&h&&((m=p.collapsed)==null?void 0:m.insideCollapse),n),...l,children:[o&&g.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:F((b=p.icon)==null?void 0:b.base,t&&((v=p.icon)==null?void 0:v.active))}),f&&!o&&g.jsx("span",{className:(y=p.collapsed)==null?void 0:y.noIcon,children:r.charAt(0).toLocaleUpperCase()??"?"}),!f&&g.jsx(ug,{id:d,theme:p,children:r}),!f&&i&&g.jsx(of,{color:s,"data-testid":"flowbite-sidebar-label",hidden:f,className:p.label,children:i})]})})});fg.displayName="Sidebar.Item";const hg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Qr(),i=H(o.itemGroup,r);return g.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:F(i.base,e),...n,children:g.jsx(za.Provider,{value:{isInsideCollapse:!1},children:t})})};hg.displayName="Sidebar.ItemGroup";const gg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Qr(),i=H(o.items,r);return g.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-sidebar-items",...n,children:t})};gg.displayName="Sidebar.Items";const pg=({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 g.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${a}`,href:r,className:F(d.base,e),...s,children:[g.jsx("img",{alt:o,src:n,className:d.img}),g.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${a}`,children:t})]})};pg.displayName="Sidebar.Logo";const mg=({children:t,as:e="nav",collapseBehavior:r="collapse",collapsed:n=!1,theme:o={},className:i,...s})=>{const a=H(q().sidebar,o);return g.jsx(lg.Provider,{value:{theme:a,isCollapsed:n},children:g.jsx(e,{"aria-label":"Sidebar",hidden:n&&r==="hide",className:F(a.root.base,a.root.collapsed[n?"on":"off"],i),...s,children:g.jsx("div",{className:a.root.inner,children:t})})})};mg.displayName="Sidebar",Object.assign(mg,{Collapse:cg,CTA:dg,Item:fg,Items:gg,ItemGroup:hg,Logo:pg});const bg=k.createContext(void 0);function bC(){const t=k.useContext(bg);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const yg=k.createContext(void 0);function Ba(){const t=k.useContext(yg);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const vg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=Ba(),s=H(i.body,r);return g.jsx(bg.Provider,{value:{theme:s},children:g.jsx("tbody",{className:F(s.base,e),ref:o,...n,children:t})})});vg.displayName="Table.Body";const xg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=bC(),s=H(i.cell,r);return g.jsx("td",{className:F(s.base,e),ref:o,...n,children:t})});xg.displayName="Table.Cell";const wg=k.createContext(void 0);function yC(){const t=k.useContext(wg);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const kg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=Ba(),s=H(i.head,r);return g.jsx(wg.Provider,{value:{theme:s},children:g.jsx("thead",{className:F(s.base,e),ref:o,...n,children:g.jsx("tr",{children:t})})})});kg.displayName="Table.Head";const Cg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=yC(),s=H(i.cell,r);return g.jsx("th",{className:F(s.base,e),ref:o,...n,children:t})});Cg.displayName="Table.HeadCell";const _g=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i,hoverable:s,striped:a}=Ba(),l=H(i.row,r);return g.jsx("tr",{ref:o,"data-testid":"table-row-element",className:F(l.base,a&&l.striped,s&&l.hovered,e),...n,children:t})});_g.displayName="Table.Row";const Sg=k.forwardRef(({children:t,className:e,striped:r,hoverable:n,theme:o={},...i},s)=>{const a=H(q().table,o);return g.jsx("div",{"data-testid":"table-element",className:F(a.root.wrapper),children:g.jsxs(yg.Provider,{value:{theme:a,striped:r,hoverable:n},children:[g.jsx("div",{className:F(a.root.shadow,e)}),g.jsx("table",{className:F(a.root.base,e),...i,ref:s,children:t})]})})});Sg.displayName="Table";const en=Object.assign(Sg,{Head:kg,Body:vg,Row:_g,Cell:xg,HeadCell:Cg}),Eg=({children:t,className:e})=>g.jsx("div",{className:e,children:t});Eg.displayName="Tabs.Item";const Og=k.forwardRef(({children:t,className:e,onActiveTabChange:r,style:n="default",theme:o={},...i},s)=>{const a=H(q().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,p]=k.useState(-1),m=x=>{f(x),r&&r(x)},b=({target:x})=>{m(x),p(x)},v=({event:x,target:w})=>{x.key==="ArrowLeft"&&p(Math.max(0,h-1)),x.key==="ArrowRight"&&p(Math.min(c.length-1,h+1)),x.key==="Enter"&&(m(w),p(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})),g.jsxs("div",{className:F(a.base,e),children:[g.jsx("div",{"aria-label":"Tabs",role:"tablist",className:F(a.tablist.base,a.tablist.styles[n],e),...i,children:c.map((x,w)=>g.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&&g.jsx(x.icon,{className:a.tablist.tabitem.icon}),x.title]},w))}),g.jsx("div",{className:F(a.tabitemcontainer.base,_),children:c.map((x,w)=>g.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))})]})});Og.displayName="Tabs",Object.assign(Og,{Item:Eg});const vC=k.forwardRef(({className:t,color:e="gray",helperText:r,shadow:n,theme:o={},...i},s)=>{const a=H(q().textarea,o);return g.jsxs(g.Fragment,{children:[g.jsx("textarea",{ref:s,className:F(a.base,a.colors[e],a.withShadow[n?"on":"off"],t),...i}),r&&g.jsx(Vn,{color:e,children:r})]})});vC.displayName="Textarea";const Tg=k.createContext(void 0);function $a(){const t=k.useContext(Tg);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const Ng=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=$a(),i=H(o.body,r);return g.jsx("div",{className:F(i.base,e),...n,children:t})},Mg=k.createContext(void 0);function ja(){const t=k.useContext(Mg);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const Pg=k.createContext(void 0);function Ag(){const t=k.useContext(Pg);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const Ig=({children:t,className:e,theme:r={},...n})=>{const{horizontal:o}=ja(),{theme:i}=Ag(),s=H(i.content,r);return g.jsx(Tg.Provider,{value:{theme:s},children:g.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}=ja(),s=H(o.item,r);return g.jsx(Pg.Provider,{value:{theme:s},children:g.jsx("li",{"data-testid":"timeline-item",className:F(i&&s.root.horizontal,!i&&s.root.vertical,e),...n,children:t})})},Lg=({children:t,className:e,icon:r,theme:n={},...o})=>{const{horizontal:i}=ja(),{theme:s}=Ag(),a=H(s.point,n);return g.jsxs("div",{"data-testid":"timeline-point",className:F(i&&a.horizontal,!i&&a.vertical,e),...o,children:[t,r?g.jsx("span",{className:F(a.marker.icon.wrapper),children:g.jsx(r,{"aria-hidden":!0,className:F(a.marker.icon.base)})}):g.jsx("div",{className:F(i&&a.marker.base.horizontal,!i&&a.marker.base.vertical)}),i&&g.jsx("div",{className:F(a.line)})]})},Fg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=$a(),i=H(o.time,r);return g.jsx("time",{className:F(i.base,e),...n,children:t})},zg=({as:t="h3",children:e,className:r,theme:n={},...o})=>{const{theme:i}=$a(),s=H(i.title,n);return g.jsx(t,{className:F(s.base,r),...o,children:e})},Bg=({children:t,className:e,horizontal:r,theme:n={},...o})=>{const i=H(q().timeline,n);return g.jsx(Mg.Provider,{value:{theme:i,horizontal:r},children:g.jsx("ol",{"data-testid":"timeline-component",className:F(r&&i.root.direction.horizontal,!r&&i.root.direction.vertical,e),...o,children:t})})};Bg.displayName="Timeline",Dg.displayName="Timeline.Item",Lg.displayName="Timeline.Point",Ig.displayName="Timeline.Content",Fg.displayName="Timeline.Time",zg.displayName="Timeline.Title",Ng.displayName="Timeline.Body",Object.assign(Bg,{Item:Dg,Point:Lg,Content:Ig,Time:Fg,Title:zg,Body:Ng});const $g=k.createContext(void 0);function xC(){const t=k.useContext($g);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const jg=({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}=xC(),f=H(s.toggle,r),h=p=>{if(e&&e(p),o){o();return}d(!l),setTimeout(()=>u(!c),a)};return g.jsx("button",{"aria-label":"Close",onClick:h,type:"button",className:F(f.base,t),...i,children:g.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"},Hg=({children:t,className:e,duration:r=300,theme:n={},...o})=>{const[i,s]=k.useState(!1),[a,l]=k.useState(!1),c=H(q().toast,n);return a?null:g.jsx($g.Provider,{value:{theme:c,duration:r,isClosed:i,isRemoved:a,setIsClosed:s,setIsRemoved:l},children:g.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:F(c.root.base,wC[r],i&&c.root.closed,e),...o,children:t})})};Hg.displayName="Toast",jg.displayName="Toast.Toggle",Object.assign(Hg,{Toggle:jg});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(q().toggleSwitch,l),h=()=>a(!t),p=()=>{h()},m=b=>{b.code=="Enter"&&b.preventDefault()};return g.jsxs(g.Fragment,{children:[s&&t?g.jsx("input",{ref:d,checked:t,hidden:!0,name:s,readOnly:!0,type:"checkbox",className:"sr-only"}):null,g.jsxs("button",{"aria-checked":t,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:o,id:`${u}-flowbite-toggleswitch`,onClick:p,onKeyDown:m,role:"switch",tabIndex:0,type:"button",className:F(f.root.base,f.root.active[o?"off":"on"],e),...c,children:[g.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?g.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})=>g.jsxs("div",{className:"flex items-center justify-center gap-4",children:[g.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:g.jsx(Bu,{className:"h-5 w-5"})}),g.jsxs("span",{className:"text-sm text-gray-700",children:[t," de ",e]}),g.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:g.jsx($u,{className:"h-5 w-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 p=f[h.relation];return p!=null&&String(p).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 g.jsxs("div",{className:"w-full",children:[g.jsx("div",{className:"mb-4 flex items-center justify-between",children:o&&g.jsx("h2",{className:"text-xl font-bold",children:o})}),g.jsxs("div",{className:"mb-4 flex",children:[r&&g.jsx("div",{className:"w-1/2",children:g.jsx(Qs,{rightIcon:g1,placeholder:"Buscar",value:i,onChange:f=>s(f.target.value)})}),u>1&&g.jsx("div",{className:"flex w-full justify-end",children:g.jsx(CC,{currentPage:a,totalPages:u,onPageChange:l})})]}),g.jsx("div",{className:"overflow-x-auto",children:g.jsxs(en,{striped:!0,children:[g.jsx(en.Head,{children:t.map((f,h)=>g.jsx(en.HeadCell,{children:f.header},h))}),g.jsx("hr",{}),g.jsx(en.Body,{className:"divide-y",children:d.map((f,h)=>g.jsx(en.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:t.map((p,m)=>{const b=f[p.relation];return g.jsx(en.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:p.cell?p.cell(f):b!=null?String(b):""},m)})},h))})]})})]})},Wg={"m-image-container":"layoutOutside-module__m-image-container__sCvFu","m-image":"layoutOutside-module__m-image__kZHyH"},SC="/assets/images/mathilde.png",EC="/assets/images/background-mathilde.png",OC=()=>g.jsxs("div",{className:"mt-32",children:[g.jsx(Rt,{classIm:"mx-auto",src:SC,alt:"Logo Mathilde ads",width:400,height:250}),g.jsx("div",{className:Wg["m-image-container"],children:g.jsx(Rt,{classIm:Wg["m-image"],src:EC,alt:"Logo Mathilde ads",width:400,height:300})})]}),TC=({onOpenModal:t,checked:e,onChange:r,label:n,...o})=>{const i=()=>{e||t(),r(!1)};return g.jsx("div",{className:"mb-5",children:g.jsxs("label",{className:eo["checkbox-container"],children:[g.jsx("input",{type:"checkbox",...o,checked:e,onChange:i,required:!0}),g.jsx("span",{className:eo.checkmark}),n&&g.jsx("span",{children:n})]})})},Vg=({validations:t})=>{const e=({isValid:n})=>g.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:g.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 g.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})=>g.jsxs("li",{className:"flex items-center",children:[g.jsx(e,{isValid:t[n]}),o]},n))})},NC=()=>{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}},MC=({formik:t})=>{const{password:e,setPassword:r,confirmPassword:n,setConfirmPassword:o,validations:i}=NC();return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"block",children:[g.jsx(Fi,{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&&g.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.password)})]}),g.jsxs("div",{className:"block",children:[g.jsx(Fi,{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&&g.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.confirmPassword)})]}),g.jsx(Vg,{validations:i})]})},PC=({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)=>g.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 g.jsxs("li",{className:`
499
499
  ${s>0?"ml-7":""}
500
- `,children:[g.jsxs("div",{className:"flex items-center gap-2 py-1",children:[g.jsxs("div",{className:"flex min-w-[48px] items-center gap-1",children:[l&&g.jsx("button",{onClick:()=>n(a.id),className:"rounded-full p-1 transition-transform duration-200 hover:bg-gray-100",children:c?g.jsx(np,{className:"text-sm text-gray-500"}):g.jsx(rp,{className:"text-sm text-gray-500"})}),!l&&g.jsx("div",{className:"w-[28px]"})," ",a.icon&&g.jsx(a.icon,{className:`text-lg ${a.isActive?"text-blue-700 dark:text-blue-500":"text-gray-600"}`})]}),g.jsx("a",{href:a.href,className:`
500
+ `,children:[g.jsxs("div",{className:"flex items-center gap-2 py-1",children:[g.jsxs("div",{className:"flex min-w-[48px] items-center gap-1",children:[l&&g.jsx("button",{onClick:()=>n(a.id),className:"rounded-full p-1 transition-transform duration-200 hover:bg-gray-100",children:c?g.jsx(op,{className:"text-sm text-gray-500"}):g.jsx(np,{className:"text-sm text-gray-500"})}),!l&&g.jsx("div",{className:"w-[28px]"})," ",a.icon&&g.jsx(a.icon,{className:`text-lg ${a.isActive?"text-blue-700 dark:text-blue-500":"text-gray-600"}`})]}),g.jsx("a",{href:a.href,className:`
501
501
  flex-grow transition-colors duration-200
502
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 g.jsx("nav",{id:"TableOfContents",children:o(t)})},TC=({onChange:t})=>g.jsx("div",{className:"flex w-full items-center justify-center",children:g.jsxs(Hh,{htmlFor:"dropzone-file",className:"flex h-64 w-full cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed border-gray-300 bg-gray-50 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600",children:[g.jsxs("div",{className:"flex lg:w-1/4 md:w-2/4 items-center justify-center pb-6 pt-5",children:[g.jsx(Rt,{classIm:"mr-3",src:"../../../../public/assets/images/file.svg",alt:"icon dropzone",width:74,height:74}),g.jsxs("p",{className:"mb-2 text-sm font-light text-gray-400 dark:text-gray-400",children:[g.jsx("span",{className:"font-bold text-gray-500",children:"Arrastra"})," el feed de datos de tu campaña o"," ",g.jsx("span",{className:"font-bold text-gray-500",children:"selecciona el archivo de tu computadora"})]})]}),g.jsx(Ah,{id:"dropzone-file",className:"hidden",onChange:t})]})});function NC(t){return ge({attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2 5v10c0 0.55 0.45 1 1 1h9c0.55 0 1-0.45 1-1v-10h-11zM5 14h-1v-7h1v7zM7 14h-1v-7h1v7zM9 14h-1v-7h1v7zM11 14h-1v-7h1v7z"},child:[]},{tag:"path",attr:{d:"M13.25 2h-3.25v-1.25c0-0.412-0.338-0.75-0.75-0.75h-3.5c-0.412 0-0.75 0.338-0.75 0.75v1.25h-3.25c-0.413 0-0.75 0.337-0.75 0.75v1.25h13v-1.25c0-0.413-0.338-0.75-0.75-0.75zM9 2h-3v-0.987h3v0.987z"},child:[]}]})(t)}const MC=t=>{const e=Math.floor(Math.log(t)/Math.log(1024)),r=["Bytes","KB","MB","GB","TB"];return`${(t/Math.pow(1024,e)).toFixed(2)} ${r[e]}`},PC=({files:t,onDelete:e})=>g.jsx("div",{className:"mt-4",children:g.jsx("ul",{className:"list-disc",children:t.map((r,n)=>g.jsxs("div",{className:"mb-5 flex w-full items-center justify-between rounded-lg border-2 border-dashed border-gray-300 bg-gray-50 p-4 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600",children:[g.jsxs("div",{className:"flex items-center",children:[g.jsx(Rt,{classIm:"mr-3",src:"../../../../public/assets/images/fileSVG.svg",alt:"icon dropzone",width:50}),g.jsx("li",{className:"text-base font-semibold text-gray-700",children:r.name})]}),g.jsxs("div",{className:"mx-4 flex items-center",children:[g.jsx("span",{className:"flex text-sm",children:MC(r.size)}),g.jsx(NC,{className:"ml-2 text-4xl text-gray-400 cursor-pointer",onClick:()=>e(r)})]})]},n))})});te.ButtonFormat=Ug,te.CardFormat=ei,te.CardIndicator=dp,te.Checkbox=Kg,te.Dropzone=TC,te.ImageFormat=Rt,te.InputForm=Ra,te.LayoutOutside=CC,te.ListFile=PC,te.ModalFormat=Ar,te.MyDoughnutChart=Ib,te.PasswordInput=Fi,te.PasswordValidationList=Vg,te.ProgressBar=Xa,te.SelectForm=Za,te.SidebarMth=l1,te.TableComponent=kC,te.TableOfContents=OC,te.TermsCheckbox=_C,te.ValidationPassword=EC,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})});
503
+ `,children:a.title})]}),l&&c&&o(a.subItems||[],s+1)]},a.id)})});return g.jsx("nav",{id:"TableOfContents",children:o(t)})},AC="/assets/images/file.svg",Rg={"image/*":"Imágenes (JPG, PNG, GIF, etc.)","application/pdf":"Documentos PDF","application/msword":"Documentos Word (.doc)","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"Documentos Word (.docx)","application/vnd.ms-excel":"Hojas de cálculo Excel (.xls)","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"Hojas de cálculo Excel (.xlsx)","application/vnd.ms-powerpoint":"Presentaciones PowerPoint (.ppt)","application/vnd.openxmlformats-officedocument.presentationml.presentation":"Presentaciones PowerPoint (.pptx)","text/csv":"Archivos CSV","application/json":"Archivos JSON","application/xml":"Archivos XML"},IC=({onChange:t,accept:e="application/pdf",maxSize:r=10,multiple:n=!1,helperText:o="Arrastra el feed de datos de tu campaña o selecciona el archivo de tu computadora"})=>{const i=Array.isArray(e)?e.join(","):e,s=()=>Array.isArray(e)?e.map(a=>Rg[a]||a).join(", "):Rg[e]||e;return g.jsx("div",{className:"flex w-full items-center justify-center",children:g.jsxs(Hh,{htmlFor:"dropzone-file",className:"flex h-64 w-full cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed border-gray-300 bg-gray-50 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600",children:[g.jsxs("div",{className:"flex w-2/4 items-center justify-center pb-6 pt-5",children:[g.jsx(Rt,{classIm:"mr-3",src:AC,alt:"icon dropzone",width:74,height:74}),g.jsxs("div",{className:"flex flex-col",children:[g.jsxs("p",{className:"mb-2 text-sm font-light text-gray-400 dark:text-gray-400",children:[g.jsx("span",{className:"font-bold text-gray-500",children:"Arrastra"})," el feed de datos de tu campaña o"," ",g.jsx("span",{className:"font-bold text-gray-500",children:"selecciona el archivo de tu computadora"})," ",o]}),g.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:[g.jsx("span",{className:"font-semibold",children:"Tipos permitidos:"})," ",s()," | ",g.jsx("span",{className:"font-semibold",children:"Tamaño máximo:"})," ",r," MB"]})]})]}),g.jsx(Ah,{id:"dropzone-file",className:"hidden",onChange:t,accept:i,multiple:n})]})})};function DC(t){return ge({attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2 5v10c0 0.55 0.45 1 1 1h9c0.55 0 1-0.45 1-1v-10h-11zM5 14h-1v-7h1v7zM7 14h-1v-7h1v7zM9 14h-1v-7h1v7zM11 14h-1v-7h1v7z"},child:[]},{tag:"path",attr:{d:"M13.25 2h-3.25v-1.25c0-0.412-0.338-0.75-0.75-0.75h-3.5c-0.412 0-0.75 0.338-0.75 0.75v1.25h-3.25c-0.413 0-0.75 0.337-0.75 0.75v1.25h13v-1.25c0-0.413-0.338-0.75-0.75-0.75zM9 2h-3v-0.987h3v0.987z"},child:[]}]})(t)}const LC="/assets/images/fileSVG.svg",FC=t=>{const e=Math.floor(Math.log(t)/Math.log(1024)),r=["Bytes","KB","MB","GB","TB"];return`${(t/Math.pow(1024,e)).toFixed(2)} ${r[e]}`},zC=({files:t,onDelete:e})=>g.jsx("div",{className:"mt-4",children:g.jsx("ul",{className:"list-disc",children:t.map((r,n)=>g.jsxs("div",{className:"mb-5 flex w-full items-center justify-between rounded-lg border-2 border-dashed border-gray-300 bg-gray-50 p-4 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600",children:[g.jsxs("div",{className:"flex items-center",children:[g.jsx(Rt,{classIm:"mr-3",src:LC,alt:"icon dropzone",width:50}),g.jsx("li",{className:"text-base font-semibold text-gray-700",children:r.name})]}),g.jsxs("div",{className:"mx-4 flex items-center",children:[g.jsx("span",{className:"flex text-sm",children:FC(r.size)}),g.jsx(DC,{className:"ml-2 text-4xl text-gray-400 cursor-pointer",onClick:()=>e(r)})]})]},n))})});te.ButtonFormat=Kg,te.CardFormat=ei,te.CardIndicator=up,te.Checkbox=qg,te.Dropzone=IC,te.ImageFormat=Rt,te.InputForm=Ra,te.LayoutOutside=OC,te.ListFile=zC,te.ModalFormat=Ar,te.MyDoughnutChart=Lb,te.PasswordInput=Fi,te.PasswordValidationList=Vg,te.ProgressBar=Xa,te.SelectForm=Za,te.SidebarMth=d1,te.TableComponent=_C,te.TableOfContents=PC,te.TermsCheckbox=TC,te.ValidationPassword=MC,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})});