ui-mathilde-web 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/ui-mathilde-web.d.ts +47 -4
- package/dist/ui-mathilde-web.js +28714 -9127
- package/dist/ui-mathilde-web.umd.cjs +530 -44
- package/package.json +1 -1
|
@@ -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,ga){"use strict";var m2=Object.defineProperty;var y2=(te,g,k)=>g in te?m2(te,g,{enumerable:!0,configurable:!0,writable:!0,value:k}):te[g]=k;var ee=(te,g,k)=>y2(te,typeof g!="symbol"?g+"":g,k);var mi,Zt,ha;function pa(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 A=pa(k),Zh=pa(ga),Vn={"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"},Jh=({txtBtn:t,typeButton:e,full:r,onClick:n,disabled:o,type:i,leftIcon:s,rightIcon:a,iconSize:l=20})=>g.jsx("div",{className:`${r?Vn["mth-btn-full"]:""}`,children:g.jsxs("button",{type:i,className:`${Vn["mth-btn"]} ${Vn[`mth-btn-${e}`]} ${r?Vn["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})]})}),Rn={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY"},Qh=({label:t,value:e,checked:r,onChange:n})=>g.jsxs("label",{className:Rn["checkbox-container"],children:[g.jsx("input",{type:"checkbox",value:e,checked:r,onChange:n}),g.jsx("span",{className:Rn.checkmark}),t&&g.jsx("span",{className:"ml-2",children:t})]}),jt=({src:t,alt:e,width:r,height:n,classIm:o})=>g.jsx("img",{className:o,src:t,alt:e,width:r,height:n}),ba=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})]}));ba.displayName="InputForm";var ma={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ya=k.createContext&&k.createContext(ma),eg=["attr","size","title"];function tg(t,e){if(t==null)return{};var r=rg(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 rg(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 Yn(){return Yn=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},Yn.apply(this,arguments)}function va(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 Un(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?va(Object(r),!0).forEach(function(n){ng(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):va(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ng(t,e,r){return e=og(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function og(t){var e=ig(t,"string");return typeof e=="symbol"?e:String(e)}function ig(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 xa(t){return t&&t.map((e,r)=>k.createElement(e.tag,Un({key:r},e.attr),xa(e.child)))}function ge(t){return e=>k.createElement(sg,Yn({attr:Un({},t.attr)},e),xa(t.child))}function sg(t){var e=r=>{var{attr:n,size:o,title:i}=t,s=tg(t,eg),a=o||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),k.createElement("svg",Yn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:l,style:Un(Un({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 ya!==void 0?k.createElement(ya.Consumer,null,r=>e(r)):e(ma)}function ag(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 lg(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 cg(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 dg(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 ug(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 fg(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 hg(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 gg={"mth-password":"passwordInput-module__mth-password__R6DoN"},vi=({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:gg["mth-password"],children:o?g.jsx(dg,{}):g.jsx(ug,{})})]})})},wa={"progress-check":"progressBar-module__progress-check__TVlHq","progress-no-check":"progressBar-module__progress-no-check__YeVq1"},ka=({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?wa["progress-no-check"]:wa["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),"%"]})})]})},_a=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})]}));_a.displayName="SelectForm";const pg={conversiones:"https://ftp.mathilde-ads.com/151-a05ae956a2c7caeb6f6d8952cac41a24.svg",click:"https://ftp.mathilde-ads.com/151-81ace0b5242dabee10930b76df01d43b.svg",impresiones:"https://ftp.mathilde-ads.com/151-b50587f350bafb8f19a9308325b45467.svg",porcentaje:"https://ftp.mathilde-ads.com/151-846076c2407128d25fffa4f35342d415.svg",vistas:"https://ftp.mathilde-ads.com/151-2b68ef020e57a0986c576b16607d85dd.svg"},bg=({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(jt,{src:pg[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(ka,{start:n,end:o,current:i})})]})};/*!
|
|
1
|
+
(function(me,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],b):(me=typeof globalThis<"u"?globalThis:me||self,b(me["ui-mathilde-web"]={},me.jsxRuntime,me.React,me.ReactDOM))})(this,function(me,b,k,cd){"use strict";var fB=Object.defineProperty;var hB=(me,b,k)=>b in me?fB(me,b,{enumerable:!0,configurable:!0,writable:!0,value:k}):me[b]=k;var ge=(me,b,k)=>hB(me,typeof b!="symbol"?b+"":b,k);var ld,zn,Qh;function eg(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const I=eg(k),tg=eg(cd),ua={"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"},i5=({txtBtn:e,typeButton:t,full:r,onClick:n,disabled:o,type:i,leftIcon:s,rightIcon:a,iconSize:l=20})=>b.jsx("div",{className:`${r?ua["mth-btn-full"]:""}`,children:b.jsxs("button",{type:i,className:`${ua["mth-btn"]} ${ua[`mth-btn-${t}`]} ${r?ua["mth-btn-full"]:""} flex items-center justify-center gap-2`,onClick:n,disabled:o,children:[s&&b.jsx(s,{size:l}),e,a&&b.jsx(a,{size:l})]})}),fa={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY"},s5=({label:e,value:t,checked:r,onChange:n})=>b.jsxs("label",{className:fa["checkbox-container"],children:[b.jsx("input",{type:"checkbox",value:t,checked:r,onChange:n}),b.jsx("span",{className:fa.checkmark}),e&&b.jsx("span",{className:"ml-2",children:e})]}),Fn=({src:e,alt:t,width:r,height:n,classIm:o})=>b.jsx("img",{className:o,src:e,alt:t,width:r,height:n}),rg=k.forwardRef(({placeholder:e,label:t,error:r,type:n,classInclude:o,maxLength:i,onChange:s,...a},l)=>b.jsxs("div",{className:"mb-5",children:[t&&b.jsx("label",{className:" mb-1 block font-semibold",children:t}),b.jsx("input",{ref:l,type:n,placeholder:e,className:`w-full border p-2 ${o||""}`,maxLength:i,onChange:s,...a}),r&&b.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));rg.displayName="InputForm";var ng={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},og=k.createContext&&k.createContext(ng),a5=["attr","size","title"];function l5(e,t){if(e==null)return{};var r=c5(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function c5(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function ha(){return ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ha.apply(this,arguments)}function ig(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ga(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ig(Object(r),!0).forEach(function(n){d5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ig(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d5(e,t,r){return t=u5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u5(e){var t=f5(e,"string");return typeof t=="symbol"?t:String(t)}function f5(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sg(e){return e&&e.map((t,r)=>k.createElement(t.tag,ga({key:r},t.attr),sg(t.child)))}function Ve(e){return t=>k.createElement(h5,ha({attr:ga({},e.attr)},t),sg(e.child))}function h5(e){var t=r=>{var{attr:n,size:o,title:i}=e,s=l5(e,a5),a=o||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),k.createElement("svg",ha({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:l,style:ga(ga({color:e.color||r.color},r.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&k.createElement("title",null,i),e.children)};return og!==void 0?k.createElement(og.Consumer,null,r=>t(r)):t(ng)}function g5(e){return Ve({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:[]}]})(e)}function p5(e){return Ve({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:[]}]})(e)}function b5(e){return Ve({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:[]}]})(e)}function m5(e){return Ve({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:[]}]})(e)}function y5(e){return Ve({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:[]}]})(e)}const v5={"mth-password":"passwordInput-module__mth-password__R6DoN"},dd=({placeholder:e,onChange:t,value:r,...n})=>{const[o,i]=k.useState(!1),s=()=>{i(!o)};return b.jsx("div",{className:"mb-5",children:b.jsxs("div",{className:"relative inline-block w-full",children:[b.jsx("input",{type:o?"text":"password",value:r,className:"w-full border p-2 pr-10",onChange:t,placeholder:e,...n}),b.jsx("button",{type:"button",onClick:s,className:v5["mth-password"],children:o?b.jsx(m5,{}):b.jsx(y5,{})})]})})},ag={"progress-check":"progressBar-module__progress-check__TVlHq","progress-no-check":"progressBar-module__progress-no-check__YeVq1"},lg=({start:e,end:t,current:r})=>{const n=(r-e)/(t-e)*100;return b.jsxs("div",{className:"relative h-4 w-full overflow-hidden rounded-full bg-gray-200",children:[b.jsx("div",{className:`absolute left-0 top-0 h-full rounded-full ${n<50?ag["progress-no-check"]:ag["progress-check"]}`,style:{width:`${Math.min(n,100)}%`}}),b.jsx("div",{className:"absolute inset-0 flex items-center px-2",children:b.jsxs("span",{className:"z-10 text-sm font-medium text-gray-900",children:[r.toFixed(2),"%"]})})]})},cg=k.forwardRef(({options:e,label:t,error:r,value:n,onChange:o,...i},s)=>b.jsxs("div",{className:"mb-5",children:[t&&b.jsx("label",{className:"mb-1 block font-semibold",children:t}),b.jsxs("select",{ref:s,className:"w-full rounded border p-2",value:n,onChange:o,...i,children:[b.jsx("option",{disabled:!0,value:"",children:"Seleccione una opción"}),e==null?void 0:e.map(a=>b.jsx("option",{value:a.value,children:a.label},a.value))]}),r&&b.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));cg.displayName="SelectForm";const x5={conversiones:"https://ftp.mathilde-ads.com/151-a05ae956a2c7caeb6f6d8952cac41a24.svg",click:"https://ftp.mathilde-ads.com/151-81ace0b5242dabee10930b76df01d43b.svg",impresiones:"https://ftp.mathilde-ads.com/151-b50587f350bafb8f19a9308325b45467.svg",porcentaje:"https://ftp.mathilde-ads.com/151-846076c2407128d25fffa4f35342d415.svg",vistas:"https://ftp.mathilde-ads.com/151-2b68ef020e57a0986c576b16607d85dd.svg"},w5=({logo:e,number:t,title:r,start:n,end:o,current:i})=>{const s=a=>new Intl.NumberFormat("es-ES",{maximumFractionDigits:2,minimumFractionDigits:0}).format(a);return b.jsxs("div",{className:"flex flex-col border bg-white px-3.5 py-7",children:[b.jsx("div",{className:"flex justify-end",children:b.jsx(Fn,{src:x5[e]||"",alt:"Icon",width:30,height:30})}),b.jsx("h2",{className:"my-3 font-bold",children:r}),b.jsx("small",{className:"text-3xl",children:s(t)}),b.jsx("div",{className:"mt-2 w-full",children:b.jsx(lg,{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
|
|
6
|
+
*/function wi(e){return e+.5|0}const hn=(e,t,r)=>Math.max(Math.min(e,r),t);function ki(e){return hn(wi(e*2.55),0,255)}function gn(e){return hn(wi(e*255),0,255)}function qr(e){return hn(wi(e/2.55)/100,0,1)}function dg(e){return hn(wi(e*100),0,100)}const tr={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},ud=[..."0123456789ABCDEF"],k5=e=>ud[e&15],_5=e=>ud[(e&240)>>4]+ud[e&15],pa=e=>(e&240)>>4===(e&15),C5=e=>pa(e.r)&&pa(e.g)&&pa(e.b)&&pa(e.a);function S5(e){var t=e.length,r;return e[0]==="#"&&(t===4||t===5?r={r:255&tr[e[1]]*17,g:255&tr[e[2]]*17,b:255&tr[e[3]]*17,a:t===5?tr[e[4]]*17:255}:(t===7||t===9)&&(r={r:tr[e[1]]<<4|tr[e[2]],g:tr[e[3]]<<4|tr[e[4]],b:tr[e[5]]<<4|tr[e[6]],a:t===9?tr[e[7]]<<4|tr[e[8]]:255})),r}const E5=(e,t)=>e<255?t(e):"";function O5(e){var t=C5(e)?k5:_5;return e?"#"+t(e.r)+t(e.g)+t(e.b)+E5(e.a,t):void 0}const N5=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ug(e,t,r){const n=t*Math.min(r,1-r),o=(i,s=(i+e/30)%12)=>r-n*Math.max(Math.min(s-3,9-s,1),-1);return[o(0),o(8),o(4)]}function M5(e,t,r){const n=(o,i=(o+e/60)%6)=>r-r*t*Math.max(Math.min(i,4-i,1),0);return[n(5),n(3),n(1)]}function T5(e,t,r){const n=ug(e,1,.5);let o;for(t+r>1&&(o=1/(t+r),t*=o,r*=o),o=0;o<3;o++)n[o]*=1-t-r,n[o]+=t;return n}function D5(e,t,r,n,o){return e===o?(t-r)/n+(t<r?6:0):t===o?(r-e)/n+2:(e-t)/n+4}function fd(e){const r=e.r/255,n=e.g/255,o=e.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=D5(r,n,o,d,i),l=l*60+.5),[l|0,c||0,a]}function hd(e,t,r,n){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,r,n)).map(gn)}function gd(e,t,r){return hd(ug,e,t,r)}function P5(e,t,r){return hd(T5,e,t,r)}function I5(e,t,r){return hd(M5,e,t,r)}function fg(e){return(e%360+360)%360}function A5(e){const t=N5.exec(e);let r=255,n;if(!t)return;t[5]!==n&&(r=t[6]?ki(+t[5]):gn(+t[5]));const o=fg(+t[2]),i=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?n=P5(o,i,s):t[1]==="hsv"?n=I5(o,i,s):n=gd(o,i,s),{r:n[0],g:n[1],b:n[2],a:r}}function L5(e,t){var r=fd(e);r[0]=fg(r[0]+t),r=gd(r),e.r=r[0],e.g=r[1],e.b=r[2]}function z5(e){if(!e)return;const t=fd(e),r=t[0],n=dg(t[1]),o=dg(t[2]);return e.a<255?`hsla(${r}, ${n}%, ${o}%, ${qr(e.a)})`:`hsl(${r}, ${n}%, ${o}%)`}const hg={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"},gg={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 F5(){const e={},t=Object.keys(gg),r=Object.keys(hg);let n,o,i,s,a;for(n=0;n<t.length;n++){for(s=a=t[n],o=0;o<r.length;o++)i=r[o],a=a.replace(i,hg[i]);i=parseInt(gg[s],16),e[a]=[i>>16&255,i>>8&255,i&255]}return e}let ba;function j5(e){ba||(ba=F5(),ba.transparent=[0,0,0,0]);const t=ba[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const B5=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function W5(e){const t=B5.exec(e);let r=255,n,o,i;if(t){if(t[7]!==n){const s=+t[7];r=t[8]?ki(s):hn(s*255,0,255)}return n=+t[1],o=+t[3],i=+t[5],n=255&(t[2]?ki(n):hn(n,0,255)),o=255&(t[4]?ki(o):hn(o,0,255)),i=255&(t[6]?ki(i):hn(i,0,255)),{r:n,g:o,b:i,a:r}}}function H5(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${qr(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const pd=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Oo=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function $5(e,t,r){const n=Oo(qr(e.r)),o=Oo(qr(e.g)),i=Oo(qr(e.b));return{r:gn(pd(n+r*(Oo(qr(t.r))-n))),g:gn(pd(o+r*(Oo(qr(t.g))-o))),b:gn(pd(i+r*(Oo(qr(t.b))-i))),a:e.a+r*(t.a-e.a)}}function ma(e,t,r){if(e){let n=fd(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*r,t===0?360:1)),n=gd(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function pg(e,t){return e&&Object.assign(t||{},e)}function bg(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=gn(e[3]))):(t=pg(e,{r:0,g:0,b:0,a:1}),t.a=gn(t.a)),t}function V5(e){return e.charAt(0)==="r"?W5(e):A5(e)}class _i{constructor(t){if(t instanceof _i)return t;const r=typeof t;let n;r==="object"?n=bg(t):r==="string"&&(n=S5(t)||j5(t)||V5(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=pg(this._rgb);return t&&(t.a=qr(t.a)),t}set rgb(t){this._rgb=bg(t)}rgbString(){return this._valid?H5(this._rgb):void 0}hexString(){return this._valid?O5(this._rgb):void 0}hslString(){return this._valid?z5(this._rgb):void 0}mix(t,r){if(t){const n=this.rgb,o=t.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(t,r){return t&&(this._rgb=$5(this._rgb,t._rgb,r)),this}clone(){return new _i(this.rgb)}alpha(t){return this._rgb.a=gn(t),this}clearer(t){const r=this._rgb;return r.a*=1-t,this}greyscale(){const t=this._rgb,r=wi(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=r,this}opaquer(t){const r=this._rgb;return r.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return ma(this._rgb,2,t),this}darken(t){return ma(this._rgb,2,-t),this}saturate(t){return ma(this._rgb,1,t),this}desaturate(t){return ma(this._rgb,1,-t),this}rotate(t){return L5(this._rgb,t),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 Pt(){}const jg=(()=>{let t=0;return()=>t++})();function He(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 At(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function yt(t,e){return At(t)?t:e}function ue(t,e){return typeof t>"u"?e:t}const $g=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,Pa=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function me(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 Xn(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 Zn(t){if(Fe(t))return t.map(Zn);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]]=Zn(t[r[o]]);return e}return t}function Aa(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function Hg(t,e,r,n){if(!Aa(t))return;const o=e[t],i=r[t];ne(o)&&ne(i)?Xr(o,i,n):e[t]=Zn(i)}function Xr(t,e,r){const n=Fe(e)?e:[e],o=n.length;if(!ne(t))return t;r=r||{};const i=r.merger||Hg;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 Zr(t,e){return Xr(t,e,{merger:Wg})}function Wg(t,e,r){if(!Aa(t))return;const n=e[t],o=r[t];ne(n)&&ne(o)?Zr(n,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Zn(o))}const Da={"":t=>t,x:t=>t.x,y:t=>t.y};function Vg(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 Rg(t){const e=Vg(t);return r=>{for(const n of e){if(n==="")break;r=r&&r[n]}return r}}function Jr(t,e){return(Da[e]||(Da[e]=Rg(e)))(t)}function Si(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Jn=t=>typeof t<"u",Wt=t=>typeof t=="function",Ia=(t,e)=>{if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0};function Yg(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Ae=Math.PI,_e=2*Ae,Qn=Number.POSITIVE_INFINITY,Ug=Ae/180,Te=Ae/2,Qt=Ae/4,La=Ae*2/3,Fa=Math.sign;function qg(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 Kg(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function eo(t){return!Kg(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function er(t){return t*(Ae/180)}function Gg(t){return t*(180/Ae)}function za(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+=_e),{angle:i,distance:o}}function Xg(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function tr(t){return(t%_e+_e)%_e}function to(t,e,r,n){const o=tr(t),i=tr(e),s=tr(r),a=tr(i-o),l=tr(s-o),c=tr(o-i),d=tr(o-s);return o===i||o===s||n&&i===s||a>l&&c<d}function st(t,e,r){return Math.max(e,Math.min(r,t))}function Zg(t){return st(t,-32768,32767)}function Qr(t,e,r,n=1e-6){return t>=Math.min(e,r)-n&&t<=Math.max(e,r)+n}function Ei(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 Oi=(t,e,r,n)=>Ei(t,r,n?o=>{const i=t[o][e];return i<r||i===r&&t[o+1][e]===r}:o=>t[o][e]<r),Jg=(t,e,r)=>Ei(t,r,n=>t[n][e]>=r);function Qg(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 Ba=["push","pop","shift","splice","unshift"];function e0(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Ba.forEach(r=>{const n="_onData"+Si(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 ja(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)&&(Ba.forEach(i=>{delete t[i]}),delete t._chartjs)}function t0(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const $a=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function Ha(t,e){let r=[],n=!1;return function(...o){r=o,n||(n=!0,$a.call(window,()=>{n=!1,t.apply(e,r)}))}}function r0(t,e){let r;return function(...n){return e?(clearTimeout(r),r=setTimeout(t,e,n)):t.apply(this,n),e}}const Wa=t=>t==="start"?"left":t==="end"?"right":"center",Qe=(t,e,r)=>t==="start"?e:t==="end"?r:(e+r)/2,n0=(t,e,r,n)=>t===(n?"left":"right")?r:t==="center"?(e+r)/2:e,ro=t=>t===0||t===1,Va=(t,e,r)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*_e/r)),Ra=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*_e/r)+1,en={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=>ro(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=>ro(t)?t:Va(t,.075,.3),easeOutElastic:t=>ro(t)?t:Ra(t,.075,.3),easeInOutElastic(t){return ro(t)?t:t<.5?.5*Va(t*2,.1125,.45):.5+.5*Ra(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-en.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?en.easeInBounce(t*2)*.5:en.easeOutBounce(t*2-1)*.5+.5};function Ya(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Ua(t){return Ya(t)?t:new Gr(t)}function Ti(t){return Ya(t)?t:new Gr(t).saturate(.5).darken(.1).hexString()}const o0=["x","y","borderWidth","radius","tension"],i0=["color","borderColor","backgroundColor"];function s0(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:i0},numbers:{type:"number",properties:o0}}),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 a0(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const qa=new Map;function l0(t,e){e=e||{};const r=t+JSON.stringify(e);let n=qa.get(r);return n||(n=new Intl.NumberFormat(t,e),qa.set(r,n)),n}function c0(t,e,r){return l0(e,r).format(t)}var d0={formatters:{values(t){return Fe(t)?t:""+t}}};function u0(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:d0.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 rr=Object.create(null),Ni=Object.create(null);function tn(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 Mi(t,e,r){return typeof e=="string"?Xr(tn(t,e),r):Xr(tn(t,""),e)}class f0{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)=>Ti(o.backgroundColor),this.hoverBorderColor=(n,o)=>Ti(o.borderColor),this.hoverColor=(n,o)=>Ti(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 Mi(this,e,r)}get(e){return tn(this,e)}describe(e,r){return Mi(Ni,e,r)}override(e,r){return Mi(rr,e,r)}route(e,r,n,o){const i=tn(this,e),s=tn(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 f0({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[s0,a0,u0]);function h0(t){return!t||He(t.size)||He(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Ka(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 nr(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 Ga(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Xa(t,e,r,n){Za(t,e,r,n,null)}function Za(t,e,r,n,o){let i,s,a,l,c,d,u,f;const h=e.pointStyle,p=e.rotation,b=e.radius;let m=(p||0)*Ug;if(h&&typeof h=="object"&&(i=h.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){t.save(),t.translate(r,n),t.rotate(m),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(b)||b<=0)){switch(t.beginPath(),h){default:o?t.ellipse(r,n,o/2,b,0,0,_e):t.arc(r,n,b,0,_e),t.closePath();break;case"triangle":d=o?o/2:b,t.moveTo(r+Math.sin(m)*d,n-Math.cos(m)*b),m+=La,t.lineTo(r+Math.sin(m)*d,n-Math.cos(m)*b),m+=La,t.lineTo(r+Math.sin(m)*d,n-Math.cos(m)*b),t.closePath();break;case"rectRounded":c=b*.516,l=b-c,s=Math.cos(m+Qt)*l,u=Math.cos(m+Qt)*(o?o/2-c:l),a=Math.sin(m+Qt)*l,f=Math.sin(m+Qt)*(o?o/2-c:l),t.arc(r-u,n-a,c,m-Ae,m-Te),t.arc(r+f,n-s,c,m-Te,m),t.arc(r+u,n+a,c,m,m+Te),t.arc(r-f,n+s,c,m+Te,m+Ae),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*b,d=o?o/2:l,t.rect(r-d,n-l,2*d,2*l);break}m+=Qt;case"rectRot":u=Math.cos(m)*(o?o/2:b),s=Math.cos(m)*b,a=Math.sin(m)*b,f=Math.sin(m)*(o?o/2:b),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":m+=Qt;case"cross":u=Math.cos(m)*(o?o/2:b),s=Math.cos(m)*b,a=Math.sin(m)*b,f=Math.sin(m)*(o?o/2:b),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(m)*(o?o/2:b),s=Math.cos(m)*b,a=Math.sin(m)*b,f=Math.sin(m)*(o?o/2:b),t.moveTo(r-u,n-a),t.lineTo(r+u,n+a),t.moveTo(r+f,n-s),t.lineTo(r-f,n+s),m+=Qt,u=Math.cos(m)*(o?o/2:b),s=Math.cos(m)*b,a=Math.sin(m)*b,f=Math.sin(m)*(o?o/2:b),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(m)*b,a=Math.sin(m)*b,t.moveTo(r-s,n-a),t.lineTo(r+s,n+a);break;case"dash":t.moveTo(r,n),t.lineTo(r+Math.cos(m)*(o?o/2:b),n+Math.sin(m)*b);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function Ja(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 Pi(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Ai(t){t.restore()}function g0(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),He(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 p0(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 b0(t,e){const r=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=r}function no(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,g0(t,i),l=0;l<s.length;++l)c=s[l],i.backdrop&&b0(t,i.backdrop),a&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),He(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(c,r,n,i.maxWidth)),t.fillText(c,r,n,i.maxWidth),p0(t,r,n,c,i),n+=Number(o.lineHeight);t.restore()}function Di(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 m0=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,y0=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function v0(t,e){const r=(""+t).match(m0);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 x0=t=>+t||0;function Ii(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]=x0(i(s));return r}function w0(t){return Ii(t,{top:"y",right:"x",bottom:"y",left:"x"})}function rn(t){return Ii(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ft(t){const e=w0(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ue(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(y0)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const o={family:ue(t.family,e.family),lineHeight:v0(ue(t.lineHeight,e.lineHeight),r),size:r,style:n,weight:ue(t.weight,e.weight),string:""};return o.string=h0(o),o}function oo(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 k0(t,e,r){const{min:n,max:o}=t,i=Pa(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 wr(t,e){return Object.assign(Object.create(t),e)}function Li(t,e=[""],r,n,o=()=>t[0]){const i=r||t;typeof n>"u"&&(n=nl("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:o,override:a=>Li([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 el(a,l,()=>M0(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return ol(a).includes(l)},ownKeys(a){return ol(a)},set(a,l,c){const d=a._storage||(a._storage=o());return a[l]=d[l]=c,delete a._keys,!0}})}function kr(t,e,r,n){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:r,_stack:new Set,_descriptors:Qa(t,n),setContext:i=>kr(t,i,r,n),override:i=>kr(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 el(i,s,()=>C0(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 Qa(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:Wt(r)?r:()=>r,isIndexable:Wt(n)?n:()=>n}}const _0=(t,e)=>t?t+Si(e):e,Fi=(t,e)=>ne(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function el(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const n=r();return t[e]=n,n}function C0(t,e,r){const{_proxy:n,_context:o,_subProxy:i,_descriptors:s}=t;let a=n[e];return Wt(a)&&s.isScriptable(e)&&(a=S0(e,a,t,r)),Fe(a)&&a.length&&(a=E0(e,a,t,s.isIndexable)),Fi(e,a)&&(a=kr(a,o,i&&i[e],s)),a}function S0(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),Fi(t,l)&&(l=zi(o._scopes,o,t,l)),l}function E0(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=zi(c,o,t,d);e.push(kr(u,i,s&&s[t],a))}}return e}function tl(t,e,r){return Wt(t)?t(e,r):t}const O0=(t,e)=>t===!0?e:typeof t=="string"?Jr(e,t):void 0;function T0(t,e,r,n,o){for(const i of e){const s=O0(r,i);if(s){t.add(s);const a=tl(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 zi(t,e,r,n){const o=e._rootScopes,i=tl(e._fallback,r,n),s=[...t,...o],a=new Set;a.add(n);let l=rl(a,s,r,i||r,n);return l===null||typeof i<"u"&&i!==r&&(l=rl(a,s,i,l,n),l===null)?!1:Li(Array.from(a),[""],o,i,()=>N0(e,r,n))}function rl(t,e,r,n,o){for(;r;)r=T0(t,e,r,n,o);return r}function N0(t,e,r){const n=t._getTarget();e in n||(n[e]={});const o=n[e];return Fe(o)&&ne(r)?r:o||{}}function M0(t,e,r,n){let o;for(const i of e)if(o=nl(_0(i,t),r),typeof o<"u")return Fi(t,o)?zi(r,n,t,o):o}function nl(t,e){for(const r of e){if(!r)continue;const n=r[t];if(typeof n<"u")return n}}function ol(t){let e=t._keys;return e||(e=t._keys=P0(t._scopes)),e}function P0(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 Bi(){return typeof window<"u"&&typeof document<"u"}function ji(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function io(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 so=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function A0(t,e){return so(t).getPropertyValue(e)}const D0=["top","right","bottom","left"];function or(t,e,r){const n={};r=r?"-"+r:"";for(let o=0;o<4;o++){const i=D0[o];n[i]=parseFloat(t[e+"-"+i+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const I0=(t,e,r)=>(t>0||e>0)&&(!r||!r.shadowRoot);function L0(t,e){const r=t.touches,n=r&&r.length?r[0]:t,{offsetX:o,offsetY:i}=n;let s=!1,a,l;if(I0(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 ir(t,e){if("native"in t)return t;const{canvas:r,currentDevicePixelRatio:n}=e,o=so(r),i=o.boxSizing==="border-box",s=or(o,"padding"),a=or(o,"border","width"),{x:l,y:c,box:d}=L0(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 F0(t,e,r){let n,o;if(e===void 0||r===void 0){const i=t&&ji(t);if(!i)e=t.clientWidth,r=t.clientHeight;else{const s=i.getBoundingClientRect(),a=so(i),l=or(a,"border","width"),c=or(a,"padding");e=s.width-c.width-l.width,r=s.height-c.height-l.height,n=io(a.maxWidth,i,"clientWidth"),o=io(a.maxHeight,i,"clientHeight")}}return{width:e,height:r,maxWidth:n||Qn,maxHeight:o||Qn}}const ao=t=>Math.round(t*10)/10;function z0(t,e,r,n){const o=so(t),i=or(o,"margin"),s=io(o.maxWidth,t,"clientWidth")||Qn,a=io(o.maxHeight,t,"clientHeight")||Qn,l=F0(t,e,r);let{width:c,height:d}=l;if(o.boxSizing==="content-box"){const f=or(o,"border","width"),h=or(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=ao(Math.min(c,s,l.maxWidth)),d=ao(Math.min(d,a,l.maxHeight)),c&&!d&&(d=ao(c/2)),(e!==void 0||r!==void 0)&&n&&l.height&&d>l.height&&(d=l.height,c=ao(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 B0=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Bi()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function sl(t,e){const r=A0(t,e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}const j0=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}}},$0=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function _r(t,e,r){return t?j0(e,r):$0()}function al(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 ll(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}/*!
|
|
11
|
+
*/function Xr(){}const Y5=(()=>{let e=0;return()=>e++})();function kt(e){return e==null}function ht(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function xe(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Gr(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function _r(e,t){return Gr(e)?e:t}function Ne(e,t){return typeof e>"u"?t:e}const U5=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,mg=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function je(e,t,r){if(e&&typeof e.call=="function")return e.apply(r,t)}function Me(e,t,r,n){let o,i,s;if(ht(e))for(i=e.length,o=0;o<i;o++)t.call(r,e[o],o);else if(xe(e))for(s=Object.keys(e),i=s.length,o=0;o<i;o++)t.call(r,e[s[o]],s[o])}function ya(e,t){let r,n,o,i;if(!e||!t||e.length!==t.length)return!1;for(r=0,n=e.length;r<n;++r)if(o=e[r],i=t[r],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function va(e){if(ht(e))return e.map(va);if(xe(e)){const t=Object.create(null),r=Object.keys(e),n=r.length;let o=0;for(;o<n;++o)t[r[o]]=va(e[r[o]]);return t}return e}function yg(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function R5(e,t,r,n){if(!yg(e))return;const o=t[e],i=r[e];xe(o)&&xe(i)?Ci(o,i,n):t[e]=va(i)}function Ci(e,t,r){const n=ht(t)?t:[t],o=n.length;if(!xe(e))return e;r=r||{};const i=r.merger||R5;let s;for(let a=0;a<o;++a){if(s=n[a],!xe(s))continue;const l=Object.keys(s);for(let c=0,d=l.length;c<d;++c)i(l[c],e,s,r)}return e}function Si(e,t){return Ci(e,t,{merger:q5})}function q5(e,t,r){if(!yg(e))return;const n=t[e],o=r[e];xe(n)&&xe(o)?Si(n,o):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=va(o))}const vg={"":e=>e,x:e=>e.x,y:e=>e.y};function X5(e){const t=e.split("."),r=[];let n="";for(const o of t)n+=o,n.endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}function G5(e){const t=X5(e);return r=>{for(const n of t){if(n==="")break;r=r&&r[n]}return r}}function Ei(e,t){return(vg[t]||(vg[t]=G5(t)))(e)}function bd(e){return e.charAt(0).toUpperCase()+e.slice(1)}const xa=e=>typeof e<"u",pn=e=>typeof e=="function",xg=(e,t)=>{if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0};function K5(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const ct=Math.PI,Ze=2*ct,wa=Number.POSITIVE_INFINITY,Z5=ct/180,nt=ct/2,jn=ct/4,wg=ct*2/3,kg=Math.sign;function Q5(e){const t=[],r=Math.sqrt(e);let n;for(n=1;n<r;n++)e%n===0&&(t.push(n),t.push(e/n));return r===(r|0)&&t.push(r),t.sort((o,i)=>o-i).pop(),t}function J5(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function ka(e){return!J5(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function Bn(e){return e*(ct/180)}function eC(e){return e*(180/ct)}function _g(e,t){const r=t.x-e.x,n=t.y-e.y,o=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i<-.5*ct&&(i+=Ze),{angle:i,distance:o}}function tC(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Wn(e){return(e%Ze+Ze)%Ze}function _a(e,t,r,n){const o=Wn(e),i=Wn(t),s=Wn(r),a=Wn(i-o),l=Wn(s-o),c=Wn(o-i),d=Wn(o-s);return o===i||o===s||n&&i===s||a>l&&c<d}function rr(e,t,r){return Math.max(t,Math.min(r,e))}function rC(e){return rr(e,-32768,32767)}function Oi(e,t,r,n=1e-6){return e>=Math.min(t,r)-n&&e<=Math.max(t,r)+n}function md(e,t,r){r=r||(s=>e[s]<t);let n=e.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 yd=(e,t,r,n)=>md(e,r,n?o=>{const i=e[o][t];return i<r||i===r&&e[o+1][t]===r}:o=>e[o][t]<r),nC=(e,t,r)=>md(e,r,n=>e[n][t]>=r);function oC(e,t,r){let n=0,o=e.length;for(;n<o&&e[n]<t;)n++;for(;o>n&&e[o-1]>r;)o--;return n>0||o<e.length?e.slice(n,o):e}const Cg=["push","pop","shift","splice","unshift"];function iC(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Cg.forEach(r=>{const n="_onData"+bd(r),o=e[r];Object.defineProperty(e,r,{configurable:!0,enumerable:!1,value(...i){const s=o.apply(this,i);return e._chartjs.listeners.forEach(a=>{typeof a[n]=="function"&&a[n](...i)}),s}})})}function Sg(e,t){const r=e._chartjs;if(!r)return;const n=r.listeners,o=n.indexOf(t);o!==-1&&n.splice(o,1),!(n.length>0)&&(Cg.forEach(i=>{delete e[i]}),delete e._chartjs)}function sC(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Eg=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function Og(e,t){let r=[],n=!1;return function(...o){r=o,n||(n=!0,Eg.call(window,()=>{n=!1,e.apply(t,r)}))}}function aC(e,t){let r;return function(...n){return t?(clearTimeout(r),r=setTimeout(e,t,n)):e.apply(this,n),t}}const Ng=e=>e==="start"?"left":e==="end"?"right":"center",qt=(e,t,r)=>e==="start"?t:e==="end"?r:(t+r)/2,lC=(e,t,r,n)=>e===(n?"left":"right")?r:e==="center"?(t+r)/2:t,Ca=e=>e===0||e===1,Mg=(e,t,r)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Ze/r)),Tg=(e,t,r)=>Math.pow(2,-10*e)*Math.sin((e-t)*Ze/r)+1,Ni={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*nt)+1,easeOutSine:e=>Math.sin(e*nt),easeInOutSine:e=>-.5*(Math.cos(ct*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Ca(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Ca(e)?e:Mg(e,.075,.3),easeOutElastic:e=>Ca(e)?e:Tg(e,.075,.3),easeInOutElastic(e){return Ca(e)?e:e<.5?.5*Mg(e*2,.1125,.45):.5+.5*Tg(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Ni.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Ni.easeInBounce(e*2)*.5:Ni.easeOutBounce(e*2-1)*.5+.5};function Dg(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Pg(e){return Dg(e)?e:new _i(e)}function vd(e){return Dg(e)?e:new _i(e).saturate(.5).darken(.1).hexString()}const cC=["x","y","borderWidth","radius","tension"],dC=["color","borderColor","backgroundColor"];function uC(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:dC},numbers:{type:"number",properties:cC}}),e.describe("animations",{_fallback:"animation"}),e.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:t=>t|0}}}})}function fC(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Ig=new Map;function hC(e,t){t=t||{};const r=e+JSON.stringify(t);let n=Ig.get(r);return n||(n=new Intl.NumberFormat(e,t),Ig.set(r,n)),n}function gC(e,t,r){return hC(t,r).format(e)}var pC={formatters:{values(e){return ht(e)?e:""+e}}};function bC(e){e.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:(t,r)=>r.lineWidth,tickColor:(t,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:pC.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Hn=Object.create(null),xd=Object.create(null);function Mi(e,t){if(!t)return e;const r=t.split(".");for(let n=0,o=r.length;n<o;++n){const i=r[n];e=e[i]||(e[i]=Object.create(null))}return e}function wd(e,t,r){return typeof t=="string"?Ci(Mi(e,t),r):Ci(Mi(e,""),t)}class mC{constructor(t,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)=>vd(o.backgroundColor),this.hoverBorderColor=(n,o)=>vd(o.borderColor),this.hoverColor=(n,o)=>vd(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(t),this.apply(r)}set(t,r){return wd(this,t,r)}get(t){return Mi(this,t)}describe(t,r){return wd(xd,t,r)}override(t,r){return wd(Hn,t,r)}route(t,r,n,o){const i=Mi(this,t),s=Mi(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 xe(l)?Object.assign({},c,l):Ne(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(r=>r(this))}}var Xe=new mC({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[uC,fC,bC]);function yC(e){return!e||kt(e.size)||kt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Ag(e,t,r,n,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,r.push(o)),i>n&&(n=i),n}function $n(e,t,r){const n=e.currentDevicePixelRatio,o=r!==0?Math.max(r/2,.5):0;return Math.round((t-o)*n)/n+o}function Lg(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function zg(e,t,r,n){Fg(e,t,r,n,null)}function Fg(e,t,r,n,o){let i,s,a,l,c,d,u,f;const h=t.pointStyle,g=t.rotation,p=t.radius;let m=(g||0)*Z5;if(h&&typeof h=="object"&&(i=h.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){e.save(),e.translate(r,n),e.rotate(m),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(p)||p<=0)){switch(e.beginPath(),h){default:o?e.ellipse(r,n,o/2,p,0,0,Ze):e.arc(r,n,p,0,Ze),e.closePath();break;case"triangle":d=o?o/2:p,e.moveTo(r+Math.sin(m)*d,n-Math.cos(m)*p),m+=wg,e.lineTo(r+Math.sin(m)*d,n-Math.cos(m)*p),m+=wg,e.lineTo(r+Math.sin(m)*d,n-Math.cos(m)*p),e.closePath();break;case"rectRounded":c=p*.516,l=p-c,s=Math.cos(m+jn)*l,u=Math.cos(m+jn)*(o?o/2-c:l),a=Math.sin(m+jn)*l,f=Math.sin(m+jn)*(o?o/2-c:l),e.arc(r-u,n-a,c,m-ct,m-nt),e.arc(r+f,n-s,c,m-nt,m),e.arc(r+u,n+a,c,m,m+nt),e.arc(r-f,n+s,c,m+nt,m+ct),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*p,d=o?o/2:l,e.rect(r-d,n-l,2*d,2*l);break}m+=jn;case"rectRot":u=Math.cos(m)*(o?o/2:p),s=Math.cos(m)*p,a=Math.sin(m)*p,f=Math.sin(m)*(o?o/2:p),e.moveTo(r-u,n-a),e.lineTo(r+f,n-s),e.lineTo(r+u,n+a),e.lineTo(r-f,n+s),e.closePath();break;case"crossRot":m+=jn;case"cross":u=Math.cos(m)*(o?o/2:p),s=Math.cos(m)*p,a=Math.sin(m)*p,f=Math.sin(m)*(o?o/2:p),e.moveTo(r-u,n-a),e.lineTo(r+u,n+a),e.moveTo(r+f,n-s),e.lineTo(r-f,n+s);break;case"star":u=Math.cos(m)*(o?o/2:p),s=Math.cos(m)*p,a=Math.sin(m)*p,f=Math.sin(m)*(o?o/2:p),e.moveTo(r-u,n-a),e.lineTo(r+u,n+a),e.moveTo(r+f,n-s),e.lineTo(r-f,n+s),m+=jn,u=Math.cos(m)*(o?o/2:p),s=Math.cos(m)*p,a=Math.sin(m)*p,f=Math.sin(m)*(o?o/2:p),e.moveTo(r-u,n-a),e.lineTo(r+u,n+a),e.moveTo(r+f,n-s),e.lineTo(r-f,n+s);break;case"line":s=o?o/2:Math.cos(m)*p,a=Math.sin(m)*p,e.moveTo(r-s,n-a),e.lineTo(r+s,n+a);break;case"dash":e.moveTo(r,n),e.lineTo(r+Math.cos(m)*(o?o/2:p),n+Math.sin(m)*p);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function jg(e,t,r){return r=r||.5,!t||e&&e.x>t.left-r&&e.x<t.right+r&&e.y>t.top-r&&e.y<t.bottom+r}function kd(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function _d(e){e.restore()}function vC(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),kt(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function xC(e,t,r,n,o){if(o.strikethrough||o.underline){const i=e.measureText(n),s=t-i.actualBoundingBoxLeft,a=t+i.actualBoundingBoxRight,l=r-i.actualBoundingBoxAscent,c=r+i.actualBoundingBoxDescent,d=o.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=o.decorationWidth||2,e.moveTo(s,d),e.lineTo(a,d),e.stroke()}}function wC(e,t){const r=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=r}function Sa(e,t,r,n,o,i={}){const s=ht(t)?t:[t],a=i.strokeWidth>0&&i.strokeColor!=="";let l,c;for(e.save(),e.font=o.string,vC(e,i),l=0;l<s.length;++l)c=s[l],i.backdrop&&wC(e,i.backdrop),a&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),kt(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(c,r,n,i.maxWidth)),e.fillText(c,r,n,i.maxWidth),xC(e,r,n,c,i),n+=Number(o.lineHeight);e.restore()}function Cd(e,t){const{x:r,y:n,w:o,h:i,radius:s}=t;e.arc(r+s.topLeft,n+s.topLeft,s.topLeft,1.5*ct,ct,!0),e.lineTo(r,n+i-s.bottomLeft),e.arc(r+s.bottomLeft,n+i-s.bottomLeft,s.bottomLeft,ct,nt,!0),e.lineTo(r+o-s.bottomRight,n+i),e.arc(r+o-s.bottomRight,n+i-s.bottomRight,s.bottomRight,nt,0,!0),e.lineTo(r+o,n+s.topRight),e.arc(r+o-s.topRight,n+s.topRight,s.topRight,0,-nt,!0),e.lineTo(r+s.topLeft,n)}const kC=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,_C=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function CC(e,t){const r=(""+e).match(kC);if(!r||r[1]==="normal")return t*1.2;switch(e=+r[2],r[3]){case"px":return e;case"%":e/=100;break}return t*e}const SC=e=>+e||0;function Sd(e,t){const r={},n=xe(t),o=n?Object.keys(t):t,i=xe(e)?n?s=>Ne(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of o)r[s]=SC(i(s));return r}function EC(e){return Sd(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ti(e){return Sd(e,["topLeft","topRight","bottomLeft","bottomRight"])}function hr(e){const t=EC(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function It(e,t){e=e||{},t=t||Xe.font;let r=Ne(e.size,t.size);typeof r=="string"&&(r=parseInt(r,10));let n=Ne(e.style,t.style);n&&!(""+n).match(_C)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const o={family:Ne(e.family,t.family),lineHeight:CC(Ne(e.lineHeight,t.lineHeight),r),size:r,style:n,weight:Ne(e.weight,t.weight),string:""};return o.string=yC(o),o}function Ea(e,t,r,n){let o,i,s;for(o=0,i=e.length;o<i;++o)if(s=e[o],s!==void 0&&s!==void 0)return s}function OC(e,t,r){const{min:n,max:o}=e,i=mg(t,(o-n)/2),s=(a,l)=>r&&a===0?0:a+l;return{min:s(n,-Math.abs(i)),max:s(o,i)}}function No(e,t){return Object.assign(Object.create(e),t)}function Ed(e,t=[""],r,n,o=()=>e[0]){const i=r||e;typeof n>"u"&&(n=Vg("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:n,_getTarget:o,override:a=>Ed([a,...e],t,i,n)};return new Proxy(s,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return Wg(a,l,()=>LC(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Yg(a).includes(l)},ownKeys(a){return Yg(a)},set(a,l,c){const d=a._storage||(a._storage=o());return a[l]=d[l]=c,delete a._keys,!0}})}function Mo(e,t,r,n){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:r,_stack:new Set,_descriptors:Bg(e,n),setContext:i=>Mo(e,i,r,n),override:i=>Mo(e.override(i),t,r,n)};return new Proxy(o,{deleteProperty(i,s){return delete i[s],delete e[s],!0},get(i,s,a){return Wg(i,s,()=>MC(i,s,a))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(i,s,a){return e[s]=a,delete i[s],!0}})}function Bg(e,t={scriptable:!0,indexable:!0}){const{_scriptable:r=t.scriptable,_indexable:n=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:r,indexable:n,isScriptable:pn(r)?r:()=>r,isIndexable:pn(n)?n:()=>n}}const NC=(e,t)=>e?e+bd(t):t,Od=(e,t)=>xe(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Wg(e,t,r){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const n=r();return e[t]=n,n}function MC(e,t,r){const{_proxy:n,_context:o,_subProxy:i,_descriptors:s}=e;let a=n[t];return pn(a)&&s.isScriptable(t)&&(a=TC(t,a,e,r)),ht(a)&&a.length&&(a=DC(t,a,e,s.isIndexable)),Od(t,a)&&(a=Mo(a,o,i&&i[t],s)),a}function TC(e,t,r,n){const{_proxy:o,_context:i,_subProxy:s,_stack:a}=r;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(i,s||n);return a.delete(e),Od(e,l)&&(l=Nd(o._scopes,o,e,l)),l}function DC(e,t,r,n){const{_proxy:o,_context:i,_subProxy:s,_descriptors:a}=r;if(typeof i.index<"u"&&n(e))return t[i.index%t.length];if(xe(t[0])){const l=t,c=o._scopes.filter(d=>d!==l);t=[];for(const d of l){const u=Nd(c,o,e,d);t.push(Mo(u,i,s&&s[e],a))}}return t}function Hg(e,t,r){return pn(e)?e(t,r):e}const PC=(e,t)=>e===!0?t:typeof e=="string"?Ei(t,e):void 0;function IC(e,t,r,n,o){for(const i of t){const s=PC(r,i);if(s){e.add(s);const a=Hg(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 Nd(e,t,r,n){const o=t._rootScopes,i=Hg(t._fallback,r,n),s=[...e,...o],a=new Set;a.add(n);let l=$g(a,s,r,i||r,n);return l===null||typeof i<"u"&&i!==r&&(l=$g(a,s,i,l,n),l===null)?!1:Ed(Array.from(a),[""],o,i,()=>AC(t,r,n))}function $g(e,t,r,n,o){for(;r;)r=IC(e,t,r,n,o);return r}function AC(e,t,r){const n=e._getTarget();t in n||(n[t]={});const o=n[t];return ht(o)&&xe(r)?r:o||{}}function LC(e,t,r,n){let o;for(const i of t)if(o=Vg(NC(i,e),r),typeof o<"u")return Od(e,o)?Nd(r,n,e,o):o}function Vg(e,t){for(const r of t){if(!r)continue;const n=r[e];if(typeof n<"u")return n}}function Yg(e){let t=e._keys;return t||(t=e._keys=zC(e._scopes)),t}function zC(e){const t=new Set;for(const r of e)for(const n of Object.keys(r).filter(o=>!o.startsWith("_")))t.add(n);return Array.from(t)}function Md(){return typeof window<"u"&&typeof document<"u"}function Td(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Oa(e,t,r){let n;return typeof e=="string"?(n=parseInt(e,10),e.indexOf("%")!==-1&&(n=n/100*t.parentNode[r])):n=e,n}const Na=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function FC(e,t){return Na(e).getPropertyValue(t)}const jC=["top","right","bottom","left"];function Vn(e,t,r){const n={};r=r?"-"+r:"";for(let o=0;o<4;o++){const i=jC[o];n[i]=parseFloat(e[t+"-"+i+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const BC=(e,t,r)=>(e>0||t>0)&&(!r||!r.shadowRoot);function WC(e,t){const r=e.touches,n=r&&r.length?r[0]:e,{offsetX:o,offsetY:i}=n;let s=!1,a,l;if(BC(o,i,e.target))a=o,l=i;else{const c=t.getBoundingClientRect();a=n.clientX-c.left,l=n.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function Yn(e,t){if("native"in e)return e;const{canvas:r,currentDevicePixelRatio:n}=t,o=Na(r),i=o.boxSizing==="border-box",s=Vn(o,"padding"),a=Vn(o,"border","width"),{x:l,y:c,box:d}=WC(e,r),u=s.left+(d&&a.left),f=s.top+(d&&a.top);let{width:h,height:g}=t;return i&&(h-=s.width+a.width,g-=s.height+a.height),{x:Math.round((l-u)/h*r.width/n),y:Math.round((c-f)/g*r.height/n)}}function HC(e,t,r){let n,o;if(t===void 0||r===void 0){const i=e&&Td(e);if(!i)t=e.clientWidth,r=e.clientHeight;else{const s=i.getBoundingClientRect(),a=Na(i),l=Vn(a,"border","width"),c=Vn(a,"padding");t=s.width-c.width-l.width,r=s.height-c.height-l.height,n=Oa(a.maxWidth,i,"clientWidth"),o=Oa(a.maxHeight,i,"clientHeight")}}return{width:t,height:r,maxWidth:n||wa,maxHeight:o||wa}}const Ma=e=>Math.round(e*10)/10;function $C(e,t,r,n){const o=Na(e),i=Vn(o,"margin"),s=Oa(o.maxWidth,e,"clientWidth")||wa,a=Oa(o.maxHeight,e,"clientHeight")||wa,l=HC(e,t,r);let{width:c,height:d}=l;if(o.boxSizing==="content-box"){const f=Vn(o,"border","width"),h=Vn(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=Ma(Math.min(c,s,l.maxWidth)),d=Ma(Math.min(d,a,l.maxHeight)),c&&!d&&(d=Ma(c/2)),(t!==void 0||r!==void 0)&&n&&l.height&&d>l.height&&(d=l.height,c=Ma(Math.floor(d*n))),{width:c,height:d}}function Ug(e,t,r){const n=t||1,o=Math.floor(e.height*n),i=Math.floor(e.width*n);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const s=e.canvas;return s.style&&(r||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==n||s.height!==o||s.width!==i?(e.currentDevicePixelRatio=n,s.height=o,s.width=i,e.ctx.setTransform(n,0,0,n,0,0),!0):!1}const VC=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Md()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Rg(e,t){const r=FC(e,t),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}const YC=function(e,t){return{x(r){return e+e+t-r},setWidth(r){t=r},textAlign(r){return r==="center"?r:r==="right"?"left":"right"},xPlus(r,n){return r-n},leftForLtr(r,n){return r-n}}},UC=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function To(e,t,r){return e?YC(t,r):UC()}function qg(e,t){let r,n;(t==="ltr"||t==="rtl")&&(r=e.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",t,"important"),e.prevTextDirection=n)}function Xg(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[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 H0{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=$a.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 H0;const cl="transparent",W0={boolean(t,e,r){return r>.5?e:t},color(t,e,r){const n=Ua(t||cl),o=n.valid&&Ua(e||cl);return o&&o.valid?o.mix(n,r).hexString():e},number(t,e,r){return t+(e-t)*r}};class V0{constructor(e,r,n,o){const i=r[n];o=oo([e.to,o,i,e.from]);const s=oo([e.from,i,o]);this._active=!0,this._fn=e.fn||W0[e.type||typeof s],this._easing=en[e.easing]||en.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=oo([e.to,r,o,e.from]),this._from=oo([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 dl{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=Y0(e,n);if(!o)return[];const i=this._createAnimations(o,n);return n.$shared&&R0(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 V0(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 R0(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 Y0(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 ul(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 U0(t,e,r){if(r===!1)return!1;const n=ul(t,r),o=ul(e,r);return{top:o.end,right:n.end,bottom:o.start,left:n.start}}function q0(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 fl(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],At(c)&&(i||e===0||Fa(e)===Fa(c))&&(e+=c)}return!d&&!n.all?0:e}function K0(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 $i(t,e){const r=t&&t.options.stacked;return r||r===void 0&&e.stack!==void 0}function G0(t,e,r){return`${t.id}.${e.id}.${r.stack||r.type}`}function X0(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 Z0(t,e,r){const n=t[e]||(t[e]={});return n[r]||(n[r]={})}function gl(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 pl(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=G0(i,s,n),u=e.length;let f;for(let h=0;h<u;++h){const p=e[h],{[l]:b,[c]:m}=p,v=p._stacks||(p._stacks={});f=v[c]=Z0(o,d,b),f[a]=m,f._top=gl(f,s,!0,n.type),f._bottom=gl(f,s,!1,n.type);const y=f._visualValues||(f._visualValues={});y[a]=m}}function Hi(t,e){const r=t.scales;return Object.keys(r).filter(n=>r[n].axis===e).shift()}function J0(t,e){return wr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function Q0(t,e,r){return wr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:r,index:e,mode:"default",type:"data"})}function nn(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 Wi=t=>t==="reset"||t==="none",bl=(t,e)=>e?t:Object.assign({},t),ep=(t,e,r)=>t&&!e.hidden&&e._stacked&&{keys:fl(r,!0),values:null};class on{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=$i(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&&nn(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,Hi(e,"x")),s=r.yAxisID=ue(n.yAxisID,Hi(e,"y")),a=r.rAxisID=ue(n.rAxisID,Hi(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&&ja(this._data,this),e._stacked&&nn(e)}_dataCheck(){const e=this.getDataset(),r=e.data||(e.data=[]),n=this._data;if(ne(r)){const o=this._cachedMeta;this._data=K0(r,o)}else if(n!==r){if(n){ja(n,this);const o=this._cachedMeta;nn(o),o._parsed=[]}r&&Object.isExtensible(r)&&e0(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=$i(r.vScale,r),r.stack!==n.stack&&(o=!0,nn(r),r.stack=n.stack),this._resyncElements(e),(o||i!==r._stacked)&&(pl(this,r._parsed),r._stacked=$i(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&&pl(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(Jr(h,a),f),y:s.parse(Jr(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:fl(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=ep(r,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=X0(a);let f,h;function p(){h=o[f];const b=h[a.axis];return!At(h[e.axis])||d>b||u<b}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],At(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=q0(ue(this.options.clip,U0(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=J0(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&&Jn(n);if(a)return bl(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),b=c.resolveNamedOptions(f,h,p,u);return b.$shared&&(b.$shared=l,i[s]=Object.freeze(bl(b,l))),b}_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 dl(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||Wi(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){Wi(o)?Object.assign(e,n):this._resolveAnimations(r,o).update(e,n)}updateSharedOptions(e,r,n){e&&!Wi(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&&nn(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(on,"defaults",{}),ee(on,"datasetElementType",null),ee(on,"dataElementType",null);function tp(t,e,r){let n=1,o=1,i=0,s=0;if(e<_e){const a=t,l=a+e,c=Math.cos(a),d=Math.sin(a),u=Math.cos(l),f=Math.sin(l),h=(C,x,w)=>to(C,a,l,!0)?1:Math.max(x,x*r,w,w*r),p=(C,x,w)=>to(C,a,l,!0)?-1:Math.min(x,x*r,w,w*r),b=h(0,c,u),m=h(Te,d,f),v=p(Ae,c,u),y=p(Ae+Te,d,f);n=(b-v)/2,o=(m-y)/2,i=-(b+v)/2,s=-(m+y)/2}return{ratioX:n,ratioY:o,offsetX:i,offsetY:s}}class sn extends on{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=>+Jr(n[c],l)}let s,a;for(s=e,a=e+r;s<a;++s)o._parsed[s]=i(s)}}_getRotation(){return er(this.options.rotation-90)}_getCircumference(){return er(this.options.circumference)}_getRotationExtents(){let e=_e,r=-_e;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($g(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:p,offsetY:b}=tp(u,d,l),m=(n.width-s)/f,v=(n.height-s)/h,y=Math.max(Math.min(m,v)/2,0),C=Pa(this.options.radius,y),x=Math.max(C*l,0),w=(C-x)/this._getVisibleDatasetWeightTotal();this.offsetX=p*C,this.offsetY=b*C,o.total=this.calculateTotal(),this.outerRadius=C-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/_e)}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:b,includeOptions:m}=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 C=this._circumference(y,i),x=e[y],w={x:d+this.offsetX,y:u+this.offsetY,startAngle:v,endAngle:v+C,circumference:C,outerRadius:p,innerRadius:h};m&&(w.options=b||this.resolveDataElementOptions(y,x.active?"active":o)),v+=C,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)?_e*(Math.abs(e)/r):0}getLabelAndValue(e){const r=this._cachedMeta,n=this.chart,o=n.data.labels||[],i=c0(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(sn,"id","doughnut"),ee(sn,"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(sn,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),ee(sn,"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 sr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Vi{constructor(e){ee(this,"options");this.options=e||{}}static override(e){Object.assign(Vi.prototype,e)}init(){}formats(){return sr()}parse(){return sr()}format(){return sr()}add(){return sr()}diff(){return sr()}startOf(){return sr()}endOf(){return sr()}}var rp={_date:Vi};function np(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?Jg:Oi;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(b=>!He(b[u.axis]));d.lo-=Math.max(0,h);const p=f.slice(d.hi).findIndex(b=>!He(b[u.axis]));d.hi+=Math.max(0,p)}return d}}return{lo:0,hi:i.length-1}}function lo(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}=np(i[a],e,s,o);for(let h=u;h<=f;++h){const p=d[h];p.skip||n(p,c,h)}}}function op(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 Ri(t,e,r,n,o){const i=[];return!o&&!t.isPointInArea(e)||lo(t,r,e,function(a,l,c){!o&&!Ja(a,t.chartArea,0)||a.inRange(e.x,e.y,n)&&i.push({element:a,datasetIndex:l,index:c})},!0),i}function ip(t,e,r,n){let o=[];function i(s,a,l){const{startAngle:c,endAngle:d}=s.getProps(["startAngle","endAngle"],n),{angle:u}=za(s,{x:e.x,y:e.y});to(u,c,d)&&o.push({element:s,datasetIndex:a,index:l})}return lo(t,r,e,i),o}function sp(t,e,r,n,o,i){let s=[];const a=op(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 m=a(e,p);m<l?(s=[{element:d,datasetIndex:u,index:f}],l=m):m===l&&s.push({element:d,datasetIndex:u,index:f})}return lo(t,r,e,c),s}function Yi(t,e,r,n,o,i){return!i&&!t.isPointInArea(e)?[]:r==="r"&&!n?ip(t,e,r,o):sp(t,e,r,n,o,i)}function ml(t,e,r,n,o){const i=[],s=r==="x"?"inXRange":"inYRange";let a=!1;return lo(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 ap={modes:{index(t,e,r,n){const o=ir(e,t),i=r.axis||"x",s=r.includeInvisible||!1,a=r.intersect?Ri(t,o,i,n,s):Yi(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=ir(e,t),i=r.axis||"xy",s=r.includeInvisible||!1;let a=r.intersect?Ri(t,o,i,n,s):Yi(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=ir(e,t),i=r.axis||"xy",s=r.includeInvisible||!1;return Ri(t,o,i,n,s)},nearest(t,e,r,n){const o=ir(e,t),i=r.axis||"xy",s=r.includeInvisible||!1;return Yi(t,o,i,r.intersect,n,s)},x(t,e,r,n){const o=ir(e,t);return ml(t,o,"x",r.intersect,n)},y(t,e,r,n){const o=ir(e,t);return ml(t,o,"y",r.intersect,n)}}};const yl=["left","top","right","bottom"];function an(t,e){return t.filter(r=>r.pos===e)}function vl(t,e){return t.filter(r=>yl.indexOf(r.pos)===-1&&r.box.axis===e)}function ln(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 lp(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 cp(t){const e={};for(const r of t){const{stack:n,pos:o,stackWeight:i}=r;if(!n||!yl.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 dp(t,e){const r=cp(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 up(t){const e=lp(t),r=ln(e.filter(c=>c.box.fullSize),!0),n=ln(an(e,"left"),!0),o=ln(an(e,"right")),i=ln(an(e,"top"),!0),s=ln(an(e,"bottom")),a=vl(e,"x"),l=vl(e,"y");return{fullSize:r,leftAndTop:n.concat(i),rightAndBottom:o.concat(l).concat(s).concat(a),chartArea:an(e,"chartArea"),vertical:n.concat(o).concat(l),horizontal:i.concat(s).concat(a)}}function xl(t,e,r,n){return Math.max(t[r],e[r])+Math.max(t[n],e[n])}function wl(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 fp(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&&wl(s,i.getPadding());const a=Math.max(0,e.outerWidth-xl(s,t,"left","right")),l=Math.max(0,e.outerHeight-xl(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 hp(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 gp(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 cn(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,gp(a.horizontal,e));const{same:u,other:f}=fp(e,r,a,n);c|=u&&o.length,d=d||f,l.fullSize||o.push(a)}return c&&cn(o,e,r,n)||d}function co(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 kl(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;Jn(c.start)&&(s=c.start),l.fullSize?co(l,o.left,s,r.outerWidth-o.right-o.left,f):co(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;Jn(c.start)&&(i=c.start),l.fullSize?co(l,i,o.top,f,r.outerHeight-o.bottom-o.top):co(l,i,e.top+c.placed,f,u),c.start=i,c.placed+=u,i=l.right}}e.x=i,e.y=s}var Vt={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=ft(t.options.layout.padding),i=Math.max(e-o.width,0),s=Math.max(r-o.height,0),a=up(t.boxes),l=a.vertical,c=a.horizontal;fe(t.boxes,b=>{typeof b.beforeLayout=="function"&&b.beforeLayout()});const d=l.reduce((b,m)=>m.box.options&&m.box.options.display===!1?b:b+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);wl(f,ft(n));const h=Object.assign({maxPadding:f,w:i,h:s,x:o.left,y:o.top},o),p=dp(l.concat(c),u);cn(a.fullSize,h,u,p),cn(l,h,u,p),cn(c,h,u,p)&&cn(l,h,u,p),hp(h),kl(a.leftAndTop,h,u,p),h.x+=h.w,h.y+=h.h,kl(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,b=>{const m=b.box;Object.assign(m,t.chartArea),m.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class _l{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 pp extends _l{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const uo="$chartjs",bp={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Cl=t=>t===null||t==="";function mp(t,e){const r=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t[uo]={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",Cl(o)){const i=sl(t,"width");i!==void 0&&(t.width=i)}if(Cl(n))if(t.style.height==="")t.height=t.width/(e||2);else{const i=sl(t,"height");i!==void 0&&(t.height=i)}return t}const Sl=B0?{passive:!0}:!1;function yp(t,e,r){t&&t.addEventListener(e,r,Sl)}function vp(t,e,r){t&&t.canvas&&t.canvas.removeEventListener(e,r,Sl)}function xp(t,e){const r=bp[t.type]||t.type,{x:n,y:o}=ir(t,e);return{type:r,chart:e,native:t,x:n!==void 0?n:null,y:o!==void 0?o:null}}function fo(t,e){for(const r of t)if(r===e||r.contains(e))return!0}function wp(t,e,r){const n=t.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||fo(a.addedNodes,n),s=s&&!fo(a.removedNodes,n);s&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}function kp(t,e,r){const n=t.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||fo(a.removedNodes,n),s=s&&!fo(a.addedNodes,n);s&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}const dn=new Map;let El=0;function Ol(){const t=window.devicePixelRatio;t!==El&&(El=t,dn.forEach((e,r)=>{r.currentDevicePixelRatio!==t&&e()}))}function _p(t,e){dn.size||window.addEventListener("resize",Ol),dn.set(t,e)}function Cp(t){dn.delete(t),dn.size||window.removeEventListener("resize",Ol)}function Sp(t,e,r){const n=t.canvas,o=n&&ji(n);if(!o)return;const i=Ha((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),_p(t,i),s}function Ui(t,e,r){r&&r.disconnect(),e==="resize"&&Cp(t)}function Ep(t,e,r){const n=t.canvas,o=Ha(i=>{t.ctx!==null&&r(xp(i,t))},t);return yp(n,e,o),o}class Op extends _l{acquireContext(e,r){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(mp(e,r),n):null}releaseContext(e){const r=e.canvas;if(!r[uo])return!1;const n=r[uo].initial;["height","width"].forEach(i=>{const s=n[i];He(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[uo],!0}addEventListener(e,r,n){this.removeEventListener(e,r);const o=e.$proxies||(e.$proxies={}),s={attach:wp,detach:kp,resize:Sp}[r]||Ep;o[r]=s(e,r,n)}removeEventListener(e,r){const n=e.$proxies||(e.$proxies={}),o=n[r];if(!o)return;({attach:Ui,detach:Ui,resize:Ui}[r]||vp)(e,r,o),n[r]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,r,n,o){return z0(e,r,n,o)}isAttached(e){const r=e&&ji(e);return!!(r&&r.isConnected)}}function Tp(t){return!Bi()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?pp:Op}let un=(mi=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 eo(this.x)&&eo(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(mi,"defaults",{}),ee(mi,"defaultRoutes"),mi);function Np(t,e){const r=t.options.ticks,n=Mp(t),o=Math.min(r.maxTicksLimit||n,n),i=r.major.enabled?Ap(e):[],s=i.length,a=i[0],l=i[s-1],c=[];if(s>o)return Dp(e,c,i,s/o),c;const d=Pp(i,e,o);if(s>0){let u,f;const h=s>1?Math.round((l-a)/(s-1)):null;for(ho(e,c,d,He(h)?0:a-h,a),u=0,f=s-1;u<f;u++)ho(e,c,d,i[u],i[u+1]);return ho(e,c,d,l,He(h)?e.length:l+h),c}return ho(e,c,d),c}function Mp(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 Pp(t,e,r){const n=Ip(t),o=e.length/r;if(!n)return Math.max(o,1);const i=qg(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 Ap(t){const e=[];let r,n;for(r=0,n=t.length;r<n;r++)t[r].major&&e.push(r);return e}function Dp(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 ho(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 Ip(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 Lp=t=>t==="left"?"right":t==="right"?"left":t,Tl=(t,e,r)=>e==="top"||e==="left"?t[e]+r:t[e]-r,Nl=(t,e)=>Math.min(e||t,t);function Ml(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 Fp(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 zp(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 fn(t){return t.drawTicks?t.tickLength:0}function Pl(t,e){if(!t.display)return 0;const r=Ue(t.font,e),n=ft(t.padding);return(Fe(t.text)?t.text.length:1)*r.lineHeight+n.height}function Bp(t,e){return wr(t,{scale:e,type:"scale"})}function jp(t,e,r){return wr(t,{tick:r,index:e,type:"tick"})}function $p(t,e,r){let n=Wa(t);return(r&&e!=="right"||!r&&e==="right")&&(n=Lp(n)),n}function Hp(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 b=s-o,m=a-i;if(t.isHorizontal()){if(h=Qe(n,i,a),ne(r)){const v=Object.keys(r)[0],y=r[v];p=d[v].getPixelForValue(y)+b-e}else r==="center"?p=(c.bottom+c.top)/2+b-e:p=Tl(t,r,e);f=a-i}else{if(ne(r)){const v=Object.keys(r)[0],y=r[v];h=d[v].getPixelForValue(y)-m+e}else r==="center"?h=(c.left+c.right)/2-m+e:h=Tl(t,r,e);p=Qe(n,s,o),u=r==="left"?-Te:Te}return{titleX:h,titleY:p,maxWidth:f,rotation:u}}class go extends un{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=yt(e,Number.POSITIVE_INFINITY),r=yt(r,Number.NEGATIVE_INFINITY),n=yt(n,Number.POSITIVE_INFINITY),o=yt(o,Number.NEGATIVE_INFINITY),{min:yt(e,n),max:yt(r,o),minDefined:At(e),maxDefined:At(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:yt(r,yt(n,r)),max:yt(n,yt(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(){me(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=k0(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?Ml(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=Np(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(){me(this.options.afterUpdate,[this])}beforeSetDimensions(){me(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(){me(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),me(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){me(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=me(r.callback,[i.value,n,e],this)}afterTickToLabelConversion(){me(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){me(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,r=e.ticks,n=Nl(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=st(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-fn(e.grid)-r.padding-Pl(e.title,this.chart.options.font),c=Math.sqrt(u*u+f*f),s=Gg(Math.min(Math.asin(st((d.highest.height+6)/a,-1,1)),Math.asin(st(l/c,-1,1))-Math.asin(st(f/c,-1,1)))),s=Math.max(o,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){me(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){me(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=Pl(o,r.options.font);if(a?(e.width=this.maxWidth,e.height=fn(i)+l):(e.height=this.maxHeight,e.width=fn(i)+l),n.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:f}=this._getLabelSizes(),h=n.padding*2,p=er(this.labelRotation),b=Math.cos(p),m=Math.sin(p);if(a){const v=n.mirror?0:m*u.width+b*f.height;e.height=Math.min(this.maxHeight,e.height+v+h)}else{const v=n.mirror?0:b*u.width+m*f.height;e.width=Math.min(this.maxWidth,e.width+v+h)}this._calculatePadding(c,d,m,b)}}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(){me(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++)He(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=Ml(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/Nl(r,n));let c=0,d=0,u,f,h,p,b,m,v,y,C,x,w;for(u=0;u<r;u+=l){if(p=e[u].label,b=this._resolveTickFontOptions(u),o.font=m=b.string,v=i[m]=i[m]||{data:{},gc:[]},y=b.lineHeight,C=x=0,!He(p)&&!Fe(p))C=Ka(o,v.data,v.gc,C,p),x=y;else if(Fe(p))for(f=0,h=p.length;f<h;++f)w=p[f],!He(w)&&!Fe(w)&&(C=Ka(o,v.data,v.gc,C,w),x+=y);s.push(C),a.push(x),c=Math.max(C,c),d=Math.max(x,d)}zp(i,r);const _=s.indexOf(c),O=a.indexOf(d),N=M=>({width:s[M]||0,height:a[M]||0});return{first:N(0),last:N(r-1),widest:N(_),highest:N(O),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 Zg(this._alignToPixels?nr(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=jp(this.getContext(),e,n))}return this.$context||(this.$context=Bp(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,r=er(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=fn(i),h=[],p=a.setContext(this.getContext()),b=p.display?p.width:0,m=b/2,v=function(I){return nr(n,I,b)};let y,C,x,w,_,O,N,M,E,F,P,D;if(s==="top")y=v(this.bottom),O=this.bottom-f,M=y-m,F=v(e.top)+m,D=e.bottom;else if(s==="bottom")y=v(this.top),F=e.top,D=v(e.bottom)-m,O=y+m,M=this.top+f;else if(s==="left")y=v(this.right),_=this.right-f,N=y-m,E=v(e.left)+m,P=e.right;else if(s==="right")y=v(this.left),E=e.left,P=v(e.right)-m,_=y+m,N=this.left+f;else if(r==="x"){if(s==="center")y=v((e.top+e.bottom)/2+.5);else if(ne(s)){const I=Object.keys(s)[0],z=s[I];y=v(this.chart.scales[I].getPixelForValue(z))}F=e.top,D=e.bottom,O=y+m,M=O+f}else if(r==="y"){if(s==="center")y=v((e.left+e.right)/2);else if(ne(s)){const I=Object.keys(s)[0],z=s[I];y=v(this.chart.scales[I].getPixelForValue(z))}_=y-m,N=_-f,E=e.left,P=e.right}const S=ue(o.ticks.maxTicksLimit,u),T=Math.max(1,Math.ceil(u/S));for(C=0;C<u;C+=T){const I=this.getContext(C),z=i.setContext(I),B=a.setContext(I),$=z.lineWidth,j=z.color,W=B.dash||[],V=B.dashOffset,Y=z.tickWidth,U=z.tickColor,q=z.tickBorderDash||[],G=z.tickBorderDashOffset;x=Fp(this,C,l),x!==void 0&&(w=nr(n,x,$),c?_=N=E=P=w:O=M=F=D=w,h.push({tx1:_,ty1:O,tx2:N,ty2:M,x1:E,y1:F,x2:P,y2:D,width:$,color:j,borderDash:W,borderDashOffset:V,tickWidth:Y,tickColor:U,tickBorderDash:q,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=fn(n.grid),h=f+d,p=u?-d:h,b=-er(this.labelRotation),m=[];let v,y,C,x,w,_,O,N,M,E,F,P,D="middle";if(o==="top")_=this.bottom-p,O=this._getXAxisLabelAlignment();else if(o==="bottom")_=this.top+p,O=this._getXAxisLabelAlignment();else if(o==="left"){const T=this._getYAxisLabelAlignment(f);O=T.textAlign,w=T.x}else if(o==="right"){const T=this._getYAxisLabelAlignment(f);O=T.textAlign,w=T.x}else if(r==="x"){if(o==="center")_=(e.top+e.bottom)/2+h;else if(ne(o)){const T=Object.keys(o)[0],I=o[T];_=this.chart.scales[T].getPixelForValue(I)+h}O=this._getXAxisLabelAlignment()}else if(r==="y"){if(o==="center")w=(e.left+e.right)/2-h;else if(ne(o)){const T=Object.keys(o)[0],I=o[T];w=this.chart.scales[T].getPixelForValue(I)}O=this._getYAxisLabelAlignment(f).textAlign}r==="y"&&(l==="start"?D="top":l==="end"&&(D="bottom"));const S=this._getLabelSizes();for(v=0,y=a.length;v<y;++v){C=a[v],x=C.label;const T=i.setContext(this.getContext(v));N=this.getPixelForTick(v)+i.labelOffset,M=this._resolveTickFontOptions(v),E=M.lineHeight,F=Fe(x)?x.length:1;const I=F/2,z=T.color,B=T.textStrokeColor,$=T.textStrokeWidth;let j=O;s?(w=N,O==="inner"&&(v===y-1?j=this.options.reverse?"left":"right":v===0?j=this.options.reverse?"right":"left":j="center"),o==="top"?c==="near"||b!==0?P=-F*E+E/2:c==="center"?P=-S.highest.height/2-I*E+E:P=-S.highest.height+E/2:c==="near"||b!==0?P=E/2:c==="center"?P=S.highest.height/2-I*E:P=S.highest.height-F*E,u&&(P*=-1),b!==0&&!T.showLabelBackdrop&&(w+=E/2*Math.sin(b))):(_=N,P=(1-F)*E/2);let W;if(T.showLabelBackdrop){const V=ft(T.backdropPadding),Y=S.heights[v],U=S.widths[v];let q=P-V.top,G=0-V.left;switch(D){case"middle":q-=Y/2;break;case"bottom":q-=Y;break}switch(O){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:q,width:U+V.width,height:Y+V.height,color:T.backdropColor}}m.push({label:x,font:M,textOffset:P,options:{rotation:b,color:z,strokeColor:B,strokeWidth:$,textAlign:j,textBaseline:D,translation:[w,_],backdrop:W}})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:r}=this.options;if(-er(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=nr(e,this.left,s)-s/2,d=nr(e,this.right,a)+a/2,u=f=l):(u=nr(e,this.top,s)-s/2,f=nr(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&&Pi(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;no(n,c,0,d,l,a)}o&&Ai(n)}drawTitle(){const{ctx:e,options:{position:r,title:n,reverse:o}}=this;if(!n.display)return;const i=Ue(n.font),s=ft(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}=Hp(this,l,r,a);no(e,n.text,0,0,i,{color:n.color,maxWidth:u,rotation:f,textAlign:$p(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!==go.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 Ue(r.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class po{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;Rp(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,Wp(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 rr[n])}}function Wp(t,e,r){const n=Xr(Object.create(null),[r?we.get(r):{},we.get(e),t.defaults]);we.set(e,n),t.defaultRoutes&&Vp(e,t.defaultRoutes),t.descriptors&&we.describe(e,t.descriptors)}function Vp(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 Rp(t){return"id"in t&&"defaults"in t}class Yp{constructor(){this.controllers=new po(on,"datasets",!0),this.elements=new po(un,"elements"),this.plugins=new po(Object,"plugins"),this.scales=new po(go,"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=Si(e);me(n["before"+o],[],n),r[e](n),me(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 vt=new Yp;class Up{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(me(a,l,s)===!1&&o.cancelable)return!1}return!0}invalidate(){He(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=qp(n);return o===!1&&!r?[]:Gp(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 qp(t){const e={},r=[],n=Object.keys(vt.plugins.items);for(let i=0;i<n.length;i++)r.push(vt.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 Kp(t,e){return!e&&t===!1?null:t===!0?{}:t}function Gp(t,{plugins:e,localIds:r},n,o){const i=[],s=t.getContext();for(const a of e){const l=a.id,c=Kp(n[l],o);c!==null&&i.push({plugin:a,options:Xp(t.config,{plugin:a,local:r[l]},c,s)})}return i}function Xp(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 qi(t,e){const r=we.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||r.indexAxis||"x"}function Zp(t,e){let r=t;return t==="_index_"?r=e:t==="_value_"&&(r=e==="x"?"y":"x"),r}function Jp(t,e){return t===e?"_index_":"_value_"}function Al(t){if(t==="x"||t==="y"||t==="r")return t}function Qp(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function Ki(t,...e){if(Al(t))return t;for(const r of e){const n=r.axis||Qp(r.position)||t.length>1&&Al(t[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Dl(t,e,r){if(r[e+"AxisID"]===t)return{axis:e}}function eb(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 Dl(t,"x",r[0])||Dl(t,"y",r[0])}return{}}function tb(t,e){const r=rr[t.type]||{scales:{}},n=e.scales||{},o=qi(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=Ki(s,a,eb(s,t),we.scales[a.type]),c=Jp(l,o),d=r.scales||{};i[s]=Zr(Object.create(null),[{axis:l},a,d[l],d[c]])}),t.data.datasets.forEach(s=>{const a=s.type||t.type,l=s.indexAxis||qi(a,e),d=(rr[a]||{}).scales||{};Object.keys(d).forEach(u=>{const f=Zp(u,l),h=s[f+"AxisID"]||f;i[h]=i[h]||Object.create(null),Zr(i[h],[{axis:f},n[h],d[u]])})}),Object.keys(i).forEach(s=>{const a=i[s];Zr(a,[we.scales[a.type],we.scale])}),i}function Il(t){const e=t.options||(t.options={});e.plugins=ue(e.plugins,{}),e.scales=tb(t,e)}function Ll(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function rb(t){return t=t||{},t.data=Ll(t.data),Il(t),t}const Fl=new Map,zl=new Set;function bo(t,e){let r=Fl.get(t);return r||(r=e(),Fl.set(t,r),zl.add(r)),r}const hn=(t,e,r)=>{const n=Jr(e,r);n!==void 0&&t.add(n)};class nb{constructor(e){this._config=rb(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=Ll(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(),Il(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return bo(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,r){return bo(`${e}.transition.${r}`,()=>[[`datasets.${e}.transitions.${r}`,`transitions.${r}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,r){return bo(`${e}-${r}`,()=>[[`datasets.${e}.elements.${r}`,`datasets.${e}`,`elements.${r}`,""]])}pluginScopeKeys(e){const r=e.id,n=this.type;return bo(`${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=>hn(l,e,u))),d.forEach(u=>hn(l,o,u)),d.forEach(u=>hn(l,rr[i]||{},u)),d.forEach(u=>hn(l,we,u)),d.forEach(u=>hn(l,Ni,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),zl.has(r)&&s.set(r,c),c}chartOptionScopes(){const{options:e,type:r}=this;return[e,rr[r]||{},we.datasets[r]||{},{type:r},we,Ni]}resolveNamedOptions(e,r,n,o=[""]){const i={$shared:!0},{resolver:s,subPrefixes:a}=Bl(this._resolverCache,e,o);let l=s;if(ib(s,r)){i.$shared=!1,n=Wt(n)?n():n;const c=this.createResolver(e,n,a);l=kr(s,n,c)}for(const c of r)i[c]=l[c];return i}createResolver(e,r,n=[""],o){const{resolver:i}=Bl(this._resolverCache,e,n);return ne(r)?kr(i,r,void 0,o):i}}function Bl(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:Li(e,r),subPrefixes:r.filter(a=>!a.toLowerCase().includes("hover"))},n.set(o,i)),i}const ob=t=>ne(t)&&Object.getOwnPropertyNames(t).some(e=>Wt(t[e]));function ib(t,e){const{isScriptable:r,isIndexable:n}=Qa(t);for(const o of e){const i=r(o),s=n(o),a=(s||i)&&t[o];if(i&&(Wt(a)||ob(a))||s&&Fe(a))return!0}return!1}var sb="4.4.8";const ab=["top","bottom","left","right","chartArea"];function jl(t,e){return t==="top"||t==="bottom"||ab.indexOf(t)===-1&&e==="x"}function $l(t,e){return function(r,n){return r[t]===n[t]?r[e]-n[e]:r[t]-n[t]}}function Hl(t){const e=t.chart,r=e.options.animation;e.notifyPlugins("afterRender"),me(r&&r.onComplete,[t],e)}function lb(t){const e=t.chart,r=e.options.animation;me(r&&r.onProgress,[t],e)}function Wl(t){return Bi()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const mo={},Vl=t=>{const e=Wl(t);return Object.values(mo).filter(r=>r.canvas===e).pop()};function cb(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 db(t,e,r,n){return!r||t.type==="mouseout"?null:n?e:t}function yo(t,e,r){return t.options.clip?t[r]:e[r]}function ub(t,e){const{xScale:r,yScale:n}=t;return r&&n?{left:yo(r,e,"left"),right:yo(r,e,"right"),top:yo(n,e,"top"),bottom:yo(n,e,"bottom")}:e}let vo=(Zt=class{static register(...e){vt.add(...e),Rl()}static unregister(...e){vt.remove(...e),Rl()}constructor(e,r){const n=this.config=new nb(r),o=Wl(e),i=Vl(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||Tp(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=jg(),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 Up,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=r0(u=>this.update(u),s.resizeDelay||0),this._dataChanges=[],mo[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Dt.listen(this,"complete",Hl),Dt.listen(this,"progress",lb),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:r},width:n,height:o,_aspectRatio:i}=this;return He(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 vt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():il(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ga(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}),me(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=Ki(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=Ki(l,a),d=ue(a.type,s.dtype);(a.position===void 0||jl(a.position,c)!==jl(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=vt.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=>{Vt.configure(this,s,s.options),Vt.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($l("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||qi(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=vt.getController(a),{datasetElementType:c,dataElementType:d}=we.datasets[a];Object.assign(l,{dataElementType:vt.getElement(d),datasetElementType:c&&vt.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($l("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=>{Vt.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,r=new Set(Object.keys(this._listeners)),n=new Set(e.events);(!Ia(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;cb(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(!Ia(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;Vt.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,Wt(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(),Hl({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=ub(e,this.chartArea),s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(o&&Pi(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&&Ai(r),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return Ja(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,r,n,o){const i=ap.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=wr(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);Jn(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(),Ga(e,r),this.platform.releaseContext(r),this.canvas=null,this.ctx=null),delete mo[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}});!Xn(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=Yg(e),c=db(e,this._lastEvent,n,l);n&&(this._lastEvent=null,me(i.onHover,[e,a,this],this),l&&me(i.onClick,[e,a,this],this));const d=!Xn(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(Zt,"defaults",we),ee(Zt,"instances",mo),ee(Zt,"overrides",rr),ee(Zt,"registry",vt),ee(Zt,"version",sb),ee(Zt,"getChart",Vl),Zt);function Rl(){return fe(vo.instances,t=>t._plugins.invalidate())}function fb(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 hb(t){return Ii(t,["outerStart","outerEnd","innerStart","innerEnd"])}function gb(t,e,r,n){const o=hb(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 st(l,0,Math.min(i,c))};return{outerStart:a(o.outerStart),outerEnd:a(o.outerEnd),innerStart:st(o.innerStart,0,s),innerEnd:st(o.innerEnd,0,s)}}function Cr(t,e,r,n){return{x:r+t*Math.cos(e),y:n+t*Math.sin(e)}}function xo(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 T=d>0?d-n:0,I=u>0?u-n:0,z=(T+I)/2,B=z!==0?p*z/(z+n):p;h=(p-B)/2}const b=Math.max(.001,p*u-r/Ae)/u,m=(p-b)/2,v=l+m+h,y=o-m-h,{outerStart:C,outerEnd:x,innerStart:w,innerEnd:_}=gb(e,f,u,y-v),O=u-C,N=u-x,M=v+C/O,E=y-x/N,F=f+w,P=f+_,D=v+w/F,S=y-_/P;if(t.beginPath(),i){const T=(M+E)/2;if(t.arc(s,a,u,M,T),t.arc(s,a,u,T,E),x>0){const $=Cr(N,E,s,a);t.arc($.x,$.y,x,E,y+Te)}const I=Cr(P,y,s,a);if(t.lineTo(I.x,I.y),_>0){const $=Cr(P,S,s,a);t.arc($.x,$.y,_,y+Te,S+Math.PI)}const z=(y-_/f+(v+w/f))/2;if(t.arc(s,a,f,y-_/f,z,!0),t.arc(s,a,f,z,v+w/f,!0),w>0){const $=Cr(F,D,s,a);t.arc($.x,$.y,w,D+Math.PI,v-Te)}const B=Cr(O,v,s,a);if(t.lineTo(B.x,B.y),C>0){const $=Cr(O,M,s,a);t.arc($.x,$.y,C,v-Te,M)}}else{t.moveTo(s,a);const T=Math.cos(M)*u+s,I=Math.sin(M)*u+a;t.lineTo(T,I);const z=Math.cos(E)*u+s,B=Math.sin(E)*u+a;t.lineTo(z,B)}t.closePath()}function pb(t,e,r,n,o){const{fullCircles:i,startAngle:s,circumference:a}=e;let l=e.endAngle;if(i){xo(t,e,r,n,l,o);for(let c=0;c<i;++c)t.fill();isNaN(a)||(l=s+(a%_e||_e))}return xo(t,e,r,n,l,o),t.fill(),l}function bb(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){xo(t,e,r,n,p,o);for(let b=0;b<i;++b)t.stroke();isNaN(a)||(p=s+(a%_e||_e))}h&&fb(t,e,p),i||(xo(t,e,r,n,p,o),t.stroke())}class gn extends un{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}=za(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),b=to(s,l,c)&&l!==c,m=p>=_e||b,v=Qr(a,d+h,u+h);return m&&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>_e?Math.floor(o/_e):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,pb(r,this,d,s,a),bb(r,this,d,s,a),r.restore()}}ee(gn,"id","arc"),ee(gn,"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(gn,"defaultRoutes",{backgroundColor:"backgroundColor"}),ee(gn,"descriptors",{_scriptable:!0,_indexable:r=>r!=="borderDash"});const Yl=(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)}},mb=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Ul extends un{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=me(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=Ue(n.font),i=o.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Yl(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,b)=>{const m=n+r/2+i.measureText(p.text).width;(b===0||c[c.length-1]+m+2*a>s)&&(u+=d,c[c.length-(b>0?0:1)]=0,h+=d,f++),l[b]={left:0,top:h,row:f,width:m,height:o},c[c.length-1]+=m+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,b=0;return this.legendItems.forEach((m,v)=>{const{itemWidth:y,itemHeight:C}=yb(n,r,i,m,o);v>0&&h+C+2*a>d&&(u+=f+a,c.push({width:f,height:h}),p+=f+a,b++,f=h=0),l[v]={left:p,top:h,col:b,width:y,height:C},f=Math.max(f,y),h+=C+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=_r(i,this.left,this.width);if(this.isHorizontal()){let a=0,l=Qe(n,this.left+o,this.right-this.lineWidths[a]);for(const c of r)a!==c.row&&(a=c.row,l=Qe(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=Qe(n,this.top+e+o,this.bottom-this.columnSizes[a].height);for(const c of r)c.col!==a&&(a=c.col,l=Qe(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;Pi(e,this),this._draw(),Ai(e)}}_draw(){const{options:e,columnSizes:r,lineWidths:n,ctx:o}=this,{align:i,labels:s}=e,a=we.color,l=_r(e.rtl,this.left,this.width),c=Ue(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:b,itemHeight:m}=Yl(s,u),v=function(_,O,N){if(isNaN(p)||p<=0||isNaN(b)||b<0)return;o.save();const M=ue(N.lineWidth,1);if(o.fillStyle=ue(N.fillStyle,a),o.lineCap=ue(N.lineCap,"butt"),o.lineDashOffset=ue(N.lineDashOffset,0),o.lineJoin=ue(N.lineJoin,"miter"),o.lineWidth=M,o.strokeStyle=ue(N.strokeStyle,a),o.setLineDash(ue(N.lineDash,[])),s.usePointStyle){const E={radius:b*Math.SQRT2/2,pointStyle:N.pointStyle,rotation:N.rotation,borderWidth:M},F=l.xPlus(_,p/2),P=O+f;Za(o,E,F,P,s.pointStyleWidth&&p)}else{const E=O+Math.max((u-b)/2,0),F=l.leftForLtr(_,p),P=rn(N.borderRadius);o.beginPath(),Object.values(P).some(D=>D!==0)?Di(o,{x:F,y:E,w:p,h:b,radius:P}):o.rect(F,E,p,b),o.fill(),M!==0&&o.stroke()}o.restore()},y=function(_,O,N){no(o,N.text,_,O+m/2,c,{strikethrough:N.hidden,textAlign:l.textAlign(N.textAlign)})},C=this.isHorizontal(),x=this._computeTitleHeight();C?h={x:Qe(i,this.left+d,this.right-n[0]),y:this.top+d+x,line:0}:h={x:this.left+d,y:Qe(i,this.top+x+d,this.bottom-r[0].height),line:0},al(this.ctx,e.textDirection);const w=m+d;this.legendItems.forEach((_,O)=>{o.strokeStyle=_.fontColor,o.fillStyle=_.fontColor;const N=o.measureText(_.text).width,M=l.textAlign(_.textAlign||(_.textAlign=s.textAlign)),E=p+f+N;let F=h.x,P=h.y;l.setWidth(this.width),C?O>0&&F+E+d>this.right&&(P=h.y+=w,h.line++,F=h.x=Qe(i,this.left+d,this.right-n[h.line])):O>0&&P+w>this.bottom&&(F=h.x=F+r[h.line].width+d,h.line++,P=h.y=Qe(i,this.top+x+d,this.bottom-r[h.line].height));const D=l.x(F);if(v(D,P,_),F=n0(M,F+p+f,C?F+E:this.right,e.rtl),y(l.x(F),P,_),C)h.x+=E+d;else if(typeof _.text!="string"){const S=c.lineHeight;h.y+=ql(_,S)+d}else h.y+=w}),ll(this.ctx,e.textDirection)}drawTitle(){const e=this.options,r=e.title,n=Ue(r.font),o=ft(r.padding);if(!r.display)return;const i=_r(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=Qe(e.align,u,this.right-f);else{const p=this.columnSizes.reduce((b,m)=>Math.max(b,m.height),0);d=c+Qe(e.align,this.top,this.bottom-p-e.labels.padding-this._computeTitleHeight())}const h=Qe(a,u,u+f);s.textAlign=i.textAlign(Wa(a)),s.textBaseline="middle",s.strokeStyle=r.color,s.fillStyle=r.color,s.font=n.string,no(s,r.text,h,d,n)}_computeTitleHeight(){const e=this.options.title,r=Ue(e.font),n=ft(e.padding);return e.display?r.lineHeight+n.height:0}_getLegendItemAt(e,r){let n,o,i;if(Qr(e,this.left,this.right)&&Qr(r,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(o=i[n],Qr(e,o.left,o.left+o.width)&&Qr(r,o.top,o.top+o.height))return this.legendItems[n]}return null}handleEvent(e){const r=this.options;if(!wb(e.type,r))return;const n=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const o=this._hoveredItem,i=mb(o,n);o&&!i&&me(r.onLeave,[e,o,this],this),this._hoveredItem=n,n&&!i&&me(r.onHover,[e,n,this],this)}else n&&me(r.onClick,[e,n,this],this)}}function yb(t,e,r,n,o){const i=vb(n,t,e,r),s=xb(o,n,e.lineHeight);return{itemWidth:i,itemHeight:s}}function vb(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 xb(t,e,r){let n=t;return typeof e.text!="string"&&(n=ql(e,r)),n}function ql(t,e){const r=t.text?t.text.length:0;return e*r}function wb(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var kb={id:"legend",_element:Ul,start(t,e,r){const n=t.legend=new Ul({ctx:t.ctx,options:r,chart:t});Vt.configure(t,n,r),Vt.addBox(t,n)},stop(t){Vt.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,r){const n=t.legend;Vt.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=ft(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 pn={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=Xg(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 xt(t,e){return e&&(Fe(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function It(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
|
|
17
|
-
`)>-1?
|
|
18
|
-
`):t}function _b(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 Kl(t,e){const r=t.chart.ctx,{body:n,footer:o,title:i}=t,{boxWidth:s,boxHeight:a}=e,l=Ue(e.bodyFont),c=Ue(e.titleFont),d=Ue(e.footerFont),u=i.length,f=o.length,h=n.length,p=ft(e.padding);let b=p.height,m=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&&(b+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),v){const x=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;b+=h*x+(v-h)*l.lineHeight+(v-1)*e.bodySpacing}f&&(b+=e.footerMarginTop+f*d.lineHeight+(f-1)*e.footerSpacing);let y=0;const C=function(x){m=Math.max(m,r.measureText(x).width+y)};return r.save(),r.font=c.string,fe(t.title,C),r.font=l.string,fe(t.beforeBody.concat(t.afterBody),C),y=e.displayColors?s+2+e.boxPadding:0,fe(n,x=>{fe(x.before,C),fe(x.lines,C),fe(x.after,C)}),y=0,r.font=d.string,fe(t.footer,C),r.restore(),m+=p.width,{width:m,height:b}}function Cb(t,e){const{y:r,height:n}=e;return r<n/2?"top":r>t.height-n/2?"bottom":"center"}function Sb(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 Eb(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"),Sb(c,t,e,r)&&(c="center"),c}function Gl(t,e,r){const n=r.yAlign||e.yAlign||Cb(t,r);return{xAlign:r.xAlign||e.xAlign||Eb(t,e,r,n),yAlign:n}}function Ob(t,e){let{x:r,width:n}=t;return e==="right"?r-=n:e==="center"&&(r-=n/2),r}function Tb(t,e,r){let{y:n,height:o}=t;return e==="top"?n+=r:e==="bottom"?n-=o+r:n-=o/2,n}function Xl(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}=rn(s);let p=Ob(e,a);const b=Tb(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:st(p,0,n.width-e.width),y:st(b,0,n.height-e.height)}}function wo(t,e,r){const n=ft(r.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-n.right:t.x+n.left}function Zl(t){return xt([],It(t))}function Nb(t,e,r){return wr(t,{tooltip:e,tooltipItems:r,type:"tooltip"})}function Jl(t,e){const r=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return r?t.override(r):t}const Ql={beforeTitle:Pt,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:Pt,beforeBody:Pt,beforeLabel:Pt,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 He(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:Pt,afterBody:Pt,beforeFooter:Pt,footer:Pt,afterFooter:Pt};function qe(t,e,r,n){const o=t[e].call(r,n);return typeof o>"u"?Ql[e].call(r,n):o}let ec=(ha=class extends un{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 dl(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=Nb(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=xt(a,It(o)),a=xt(a,It(i)),a=xt(a,It(s)),a}getBeforeBody(e,r){return Zl(qe(r.callbacks,"beforeBody",this,e))}getBody(e,r){const{callbacks:n}=r,o=[];return fe(e,i=>{const s={before:[],lines:[],after:[]},a=Jl(n,i);xt(s.before,It(qe(a,"beforeLabel",this,i))),xt(s.lines,qe(a,"label",this,i)),xt(s.after,It(qe(a,"afterLabel",this,i))),o.push(s)}),o}getAfterBody(e,r){return Zl(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=xt(a,It(o)),a=xt(a,It(i)),a=xt(a,It(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(_b(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=Jl(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=pn[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=Kl(this,n),c=Object.assign({},a,l),d=Gl(this.chart,n,c),u=Xl(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}=rn(a),{x:f,y:h}=e,{width:p,height:b}=r;let m,v,y,C,x,w;return i==="center"?(x=h+b/2,o==="left"?(m=f,v=m-s,C=x+s,w=x-s):(m=f+p,v=m+s,C=x-s,w=x+s),y=m):(o==="left"?v=f+Math.max(l,d)+s:o==="right"?v=f+p-Math.max(c,u)-s:v=this.caretX,i==="top"?(C=h,x=C-s,m=v-s,y=v+s):(C=h+b,x=C+s,m=v+s,y=v-s),w=C),{x1:m,x2:v,x3:y,y1:C,y2:x,y3:w}}drawTitle(e,r,n){const o=this.title,i=o.length;let s,a,l;if(i){const c=_r(n.rtl,this.x,this.width);for(e.x=wo(this,n.titleAlign,n),r.textAlign=c.textAlign(n.titleAlign),r.textBaseline="middle",s=Ue(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=Ue(i.bodyFont),u=wo(this,"left",i),f=o.x(u),h=l<d.lineHeight?(d.lineHeight-l)/2:0,p=r.y+h;if(i.usePointStyle){const b={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},m=o.leftForLtr(f,c)+c/2,v=p+l/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,Xa(e,b,m,v),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,Xa(e,b,m,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 b=o.leftForLtr(f,c),m=o.leftForLtr(o.xPlus(f,1),c-2),v=rn(s.borderRadius);Object.values(v).some(y=>y!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Di(e,{x:b,y:p,w:c,h:l,radius:v}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Di(e,{x:m,y:p+1,w:c-2,h:l-2,radius:v}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(b,p,c,l),e.strokeRect(b,p,c,l),e.fillStyle=s.backgroundColor,e.fillRect(m,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=Ue(n.bodyFont);let f=u.lineHeight,h=0;const p=_r(n.rtl,this.x,this.width),b=function(N){r.fillText(N,p.x(e.x+h),e.y+f/2),e.y+=f+i},m=p.textAlign(s);let v,y,C,x,w,_,O;for(r.textAlign=s,r.textBaseline="middle",r.font=u.string,e.x=wo(this,m,n),r.fillStyle=n.bodyColor,fe(this.beforeBody,b),h=a&&m!=="right"?s==="center"?c/2+d:c+2+d:0,x=0,_=o.length;x<_;++x){for(v=o[x],y=this.labelTextColors[x],r.fillStyle=y,fe(v.before,b),C=v.lines,a&&C.length&&(this._drawColorBox(r,e,x,p,n),f=Math.max(u.lineHeight,l)),w=0,O=C.length;w<O;++w)b(C[w]),f=u.lineHeight;fe(v.after,b)}h=0,f=u.lineHeight,fe(this.afterBody,b),e.y-=i}drawFooter(e,r,n){const o=this.footer,i=o.length;let s,a;if(i){const l=_r(n.rtl,this.x,this.width);for(e.x=wo(this,n.footerAlign,n),e.y+=n.footerMarginTop,r.textAlign=l.textAlign(n.footerAlign),r.textBaseline="middle",s=Ue(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}=rn(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=pn[e.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=Kl(this,e),l=Object.assign({},s,this._size),c=Gl(r,e,l),d=Xl(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=ft(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),al(e,r.textDirection),i.y+=s.top,this.drawTitle(i,e,r),this.drawBody(i,e,r),this.drawFooter(i,e,r),ll(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=!Xn(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||!Xn(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=pn[i.position].call(this,e,r);return s!==!1&&(n!==s.x||o!==s.y)}},ee(ha,"positioners",pn),ha);var Mb={id:"tooltip",_element:ec,positioners:pn,afterInit(t,e,r){r&&(t.tooltip=new ec({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:Ql},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 ko={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}},Ke=Object.keys(ko);function tc(t,e){return t-e}function rc(t,e){if(He(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)),At(s)||(s=typeof n=="string"?r.parse(s,n):r.parse(s)),s===null?null:(o&&(s=o==="week"&&(eo(i)||i===!0)?r.startOf(s,"isoWeek",i):r.startOf(s,o)),+s)}function nc(t,e,r,n){const o=Ke.length;for(let i=Ke.indexOf(t);i<o-1;++i){const s=ko[Ke[i]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((r-e)/(a*s.size))<=n)return Ke[i]}return Ke[o-1]}function Pb(t,e,r,n,o){for(let i=Ke.length-1;i>=Ke.indexOf(r);i--){const s=Ke[i];if(ko[s].common&&t._adapter.diff(o,n,s)>=e-1)return s}return Ke[r?Ke.indexOf(r):0]}function Ab(t){for(let e=Ke.indexOf(t)+1,r=Ke.length;e<r;++e)if(ko[Ke[e]].common)return Ke[e]}function oc(t,e,r){if(!r)t[e]=!0;else if(r.length){const{lo:n,hi:o}=Ei(r,e),i=r[n]>=e?r[n]:r[o];t[i]=!0}}function Db(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:Db(t,n,o,r)}class _o extends go{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 rp._date(e.adapters.date);o.init(r),Zr(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:rc(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=At(o)&&!isNaN(o)?o:+r.startOf(Date.now(),n),i=At(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=Qg(o,i,s);return this._unit=r.unit||(n.autoSkip?nc(r.minUnit,this.min,this.max,this._getLabelCapacity(i)):Pb(this,a.length,r.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:Ab(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=st(r,0,s),n=st(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||nc(i.minUnit,r,n,this._getLabelCapacity(r)),a=ue(o.ticks.stepSize,1),l=s==="week"?i.isoWeekday:!1,c=eo(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++)oc(d,f,p);return(f===n||o.bounds==="ticks"||h===1)&&oc(d,f,p),Object.keys(d).sort(tc).map(b=>+b)}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 me(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=er(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(rc(this,o[r]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return t0(e.sort(tc))}}ee(_o,"id","time"),ee(_o,"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 Co(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}=Oi(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}=Oi(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 sc extends _o{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=Co(r,this.min),this._tableRange=Co(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(Co(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const r=this._offsets,n=this.getDecimalForPixel(e)/r.factor-r.end;return Co(this._table,n*this._tableRange+this._minPos,!0)}}ee(sc,"id","timeseries"),ee(sc,"defaults",_o.defaults);const ac="label";function lc(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function Ib(t,e){const r=t.options;r&&e&&Object.assign(r,e)}function cc(t,e){t.labels=e}function dc(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ac;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 Lb(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ac;const r={labels:[],datasets:[]};return cc(r,t.labels),dc(r,t.datasets,e),r}function Fb(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),b=()=>{h.current&&(p.current=new vo(h.current,{type:s,data:Lb(a,i),options:l&&{...l},plugins:c}),lc(e,p.current))},m=()=>{lc(e,null),p.current&&(p.current.destroy(),p.current=null)};return k.useEffect(()=>{!o&&p.current&&l&&Ib(p.current,l)},[o,l]),k.useEffect(()=>{!o&&p.current&&cc(p.current.config.data,a.labels)},[o,a.labels]),k.useEffect(()=>{!o&&p.current&&a.datasets&&dc(p.current.config.data,a.datasets,i)},[o,a.datasets]),k.useEffect(()=>{p.current&&(o?(m(),setTimeout(b)):p.current.update(u))},[o,l,a.labels,a.datasets,u]),k.useEffect(()=>{p.current&&(m(),setTimeout(b))},[s]),k.useEffect(()=>(b(),()=>m()),[]),k.createElement("canvas",{ref:h,role:"img",height:r,width:n,...f},d)}const zb=k.forwardRef(Fb);function Bb(t,e){return vo.register(e),k.forwardRef((r,n)=>k.createElement(zb,{...r,ref:n,type:t}))}const jb=Bb("doughnut",sn);vo.register(gn,Mb,kb);const $b=()=>{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(jb,{data:t,options:e,plugins:[r]})})},Gi={overlay:"modal-module__overlay__cc2Es",modal:"modal-module__modal__WAkuU",closeButton:"modal-module__closeButton__1lo1j"};function Hb(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 Wb(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 Sr=k.forwardRef(({isOpen:t,onClose:e,children:r,width:n="auto"},o)=>t?g.jsx("div",{className:Gi.overlay,children:g.jsxs("div",{ref:o,className:Gi.modal,style:{width:n},children:[g.jsx("button",{onClick:e,className:Gi.closeButton,children:g.jsx(Hb,{})}),r]})}):null);/*! *****************************************************************************
|
|
16
|
+
*/class RC{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,r,n,o){const i=r.listeners[o],s=r.duration;i.forEach(a=>a({chart:t,initial:r.initial,numSteps:s,currentStep:Math.min(n-r.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=Eg.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=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(t),a=!0):(i[s]=i[i.length-1],i.pop());a&&(o.draw(),this._notify(o,n,t,"progress")),i.length||(n.running=!1,this._notify(o,n,t,"complete"),n.initial=!1),r+=i.length}),this._lastDate=t,r===0&&(this._running=!1)}_getAnims(t){const r=this._charts;let n=r.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},r.set(t,n)),n}listen(t,r,n){this._getAnims(t).listeners[r].push(n)}add(t,r){!r||!r.length||this._getAnims(t).items.push(...r)}has(t){return this._getAnims(t).items.length>0}start(t){const r=this._charts.get(t);r&&(r.running=!0,r.start=Date.now(),r.duration=r.items.reduce((n,o)=>Math.max(n,o._duration),0),this._refresh())}running(t){if(!this._running)return!1;const r=this._charts.get(t);return!(!r||!r.running||!r.items.length)}stop(t){const r=this._charts.get(t);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(t,r,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Kr=new RC;const Gg="transparent",qC={boolean(e,t,r){return r>.5?t:e},color(e,t,r){const n=Pg(e||Gg),o=n.valid&&Pg(t||Gg);return o&&o.valid?o.mix(n,r).hexString():t},number(e,t,r){return e+(t-e)*r}};class XC{constructor(t,r,n,o){const i=r[n];o=Ea([t.to,o,i,t.from]);const s=Ea([t.from,i,o]);this._active=!0,this._fn=t.fn||qC[t.type||typeof s],this._easing=Ni[t.easing]||Ni.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=r,this._prop=n,this._from=s,this._to=o,this._promises=void 0}active(){return this._active}update(t,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,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Ea([t.to,r,o,t.from]),this._from=Ea([t.from,o,r])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const r=t-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 t=this._promises||(this._promises=[]);return new Promise((r,n)=>{t.push({res:r,rej:n})})}_notify(t){const r=t?"res":"rej",n=this._promises||[];for(let o=0;o<n.length;o++)n[o][r]()}}class Kg{constructor(t,r){this._chart=t,this._properties=new Map,this.configure(r)}configure(t){if(!xe(t))return;const r=Object.keys(Xe.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach(o=>{const i=t[o];if(!xe(i))return;const s={};for(const a of r)s[a]=i[a];(ht(i.properties)&&i.properties||[o]).forEach(a=>{(a===o||!n.has(a))&&n.set(a,s)})})}_animateOptions(t,r){const n=r.options,o=KC(t,n);if(!o)return[];const i=this._createAnimations(o,n);return n.$shared&&GC(t.options.$animations,n).then(()=>{t.options=n},()=>{}),i}_createAnimations(t,r){const n=this._properties,o=[],i=t.$animations||(t.$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(t,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){t[c]=d;continue}i[c]=u=new XC(f,t,c,d),o.push(u)}return o}update(t,r){if(this._properties.size===0){Object.assign(t,r);return}const n=this._createAnimations(t,r);if(n.length)return Kr.add(this._chart,n),!0}}function GC(e,t){const r=[],n=Object.keys(t);for(let o=0;o<n.length;o++){const i=e[n[o]];i&&i.active()&&r.push(i.wait())}return Promise.all(r)}function KC(e,t){if(!t)return;let r=e.options;if(!r){e.options=t;return}return r.$shared&&(e.options=r=Object.assign({},r,{$shared:!1,$animations:{}})),r}function Zg(e,t){const r=e&&e.options||{},n=r.reverse,o=r.min===void 0?t:0,i=r.max===void 0?t:0;return{start:n?i:o,end:n?o:i}}function ZC(e,t,r){if(r===!1)return!1;const n=Zg(e,r),o=Zg(t,r);return{top:o.end,right:n.end,bottom:o.start,left:n.start}}function QC(e){let t,r,n,o;return xe(e)?(t=e.top,r=e.right,n=e.bottom,o=e.left):t=r=n=o=e,{top:t,right:r,bottom:n,left:o,disabled:e===!1}}function Qg(e,t){const r=[],n=e._getSortedDatasetMetas(t);let o,i;for(o=0,i=n.length;o<i;++o)r.push(n[o].index);return r}function Jg(e,t,r,n={}){const o=e.keys,i=n.mode==="single";let s,a,l,c;if(t===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=e.values[l],Gr(c)&&(i||t===0||kg(t)===kg(c))&&(t+=c)}return!d&&!n.all?0:t}function JC(e,t){const{iScale:r,vScale:n}=t,o=r.axis==="x"?"x":"y",i=n.axis==="x"?"x":"y",s=Object.keys(e),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]:e[d]};return a}function Dd(e,t){const r=e&&e.options.stacked;return r||r===void 0&&t.stack!==void 0}function eS(e,t,r){return`${e.id}.${t.id}.${r.stack||r.type}`}function tS(e){const{min:t,max:r,minDefined:n,maxDefined:o}=e.getUserBounds();return{min:n?t:Number.NEGATIVE_INFINITY,max:o?r:Number.POSITIVE_INFINITY}}function rS(e,t,r){const n=e[t]||(e[t]={});return n[r]||(n[r]={})}function ep(e,t,r,n){for(const o of t.getMatchingVisibleMetas(n).reverse()){const i=e[o.index];if(r&&i>0||!r&&i<0)return o.index}return null}function tp(e,t){const{chart:r,_cachedMeta:n}=e,o=r._stacks||(r._stacks={}),{iScale:i,vScale:s,index:a}=n,l=i.axis,c=s.axis,d=eS(i,s,n),u=t.length;let f;for(let h=0;h<u;++h){const g=t[h],{[l]:p,[c]:m}=g,x=g._stacks||(g._stacks={});f=x[c]=rS(o,d,p),f[a]=m,f._top=ep(f,s,!0,n.type),f._bottom=ep(f,s,!1,n.type);const y=f._visualValues||(f._visualValues={});y[a]=m}}function Pd(e,t){const r=e.scales;return Object.keys(r).filter(n=>r[n].axis===t).shift()}function nS(e,t){return No(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function oS(e,t,r){return No(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:r,index:t,mode:"default",type:"data"})}function Di(e,t){const r=e.controller.index,n=e.vScale&&e.vScale.axis;if(n){t=t||e._parsed;for(const o of t){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 Id=e=>e==="reset"||e==="none",rp=(e,t)=>t?e:Object.assign({},e),iS=(e,t,r)=>e&&!t.hidden&&t._stacked&&{keys:Qg(r,!0),values:null};class Pi{constructor(t,r){this.chart=t,this._ctx=t.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 t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Dd(t.vScale,t),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(t){this.index!==t&&Di(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,r=this._cachedMeta,n=this.getDataset(),o=(u,f,h,g)=>u==="x"?f:u==="r"?g:h,i=r.xAxisID=Ne(n.xAxisID,Pd(t,"x")),s=r.yAxisID=Ne(n.yAxisID,Pd(t,"y")),a=r.rAxisID=Ne(n.rAxisID,Pd(t,"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(t){return this.chart.scales[t]}_getOtherScale(t){const r=this._cachedMeta;return t===r.iScale?r.vScale:r.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Sg(this._data,this),t._stacked&&Di(t)}_dataCheck(){const t=this.getDataset(),r=t.data||(t.data=[]),n=this._data;if(xe(r)){const o=this._cachedMeta;this._data=JC(r,o)}else if(n!==r){if(n){Sg(n,this);const o=this._cachedMeta;Di(o),o._parsed=[]}r&&Object.isExtensible(r)&&iC(r,this),this._syncList=[],this._data=r}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const r=this._cachedMeta,n=this.getDataset();let o=!1;this._dataCheck();const i=r._stacked;r._stacked=Dd(r.vScale,r),r.stack!==n.stack&&(o=!0,Di(r),r.stack=n.stack),this._resyncElements(t),(o||i!==r._stacked)&&(tp(this,r._parsed),r._stacked=Dd(r.vScale,r))}configure(){const t=this.chart.config,r=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),r,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,r){const{_cachedMeta:n,_data:o}=this,{iScale:i,_stacked:s}=n,a=i.axis;let l=t===0&&r===o.length?!0:n._sorted,c=t>0&&n._parsed[t-1],d,u,f;if(this._parsing===!1)n._parsed=o,n._sorted=!0,f=o;else{ht(o[t])?f=this.parseArrayData(n,o,t,r):xe(o[t])?f=this.parseObjectData(n,o,t,r):f=this.parsePrimitiveData(n,o,t,r);const h=()=>u[a]===null||c&&u[a]<c[a];for(d=0;d<r;++d)n._parsed[d+t]=u=f[d],l&&(h()&&(l=!1),c=u);n._sorted=l}s&&tp(this,f)}parsePrimitiveData(t,r,n,o){const{iScale:i,vScale:s}=t,a=i.axis,l=s.axis,c=i.getLabels(),d=i===s,u=new Array(o);let f,h,g;for(f=0,h=o;f<h;++f)g=f+n,u[f]={[a]:d||i.parse(c[g],g),[l]:s.parse(r[g],g)};return u}parseArrayData(t,r,n,o){const{xScale:i,yScale:s}=t,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(t,r,n,o){const{xScale:i,yScale:s}=t,{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(Ei(h,a),f),y:s.parse(Ei(h,l),f)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,r,n){const o=this.chart,i=this._cachedMeta,s=r[t.axis],a={keys:Qg(o,!0),values:r._stacks[t.axis]._visualValues};return Jg(a,s,i.index,{mode:n})}updateRangeFromParsed(t,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=Jg(o,i,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,r){const n=this._cachedMeta,o=n._parsed,i=n._sorted&&t===n.iScale,s=o.length,a=this._getOtherScale(t),l=iS(r,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=tS(a);let f,h;function g(){h=o[f];const p=h[a.axis];return!Gr(h[t.axis])||d>p||u<p}for(f=0;f<s&&!(!g()&&(this.updateRangeFromParsed(c,t,h,l),i));++f);if(i){for(f=s-1;f>=0;--f)if(!g()){this.updateRangeFromParsed(c,t,h,l);break}}return c}getAllParsedValues(t){const r=this._cachedMeta._parsed,n=[];let o,i,s;for(o=0,i=r.length;o<i;++o)s=r[o][t.axis],Gr(s)&&n.push(s);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const r=this._cachedMeta,n=r.iScale,o=r.vScale,i=this.getParsed(t);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:o?""+o.getLabelForValue(i[o.axis]):""}}_update(t){const r=this._cachedMeta;this.update(t||"default"),r._clip=QC(Ne(this.options.clip,ZC(r.xScale,r.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=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(t,i,a,l),d=a;d<a+l;++d){const u=o[d];u.hidden||(u.active&&c?s.push(u):u.draw(t,i))}for(d=0;d<s.length;++d)s[d].draw(t,i)}getStyle(t,r){const n=r?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,r,n){const o=this.getDataset();let i;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];i=s.$context||(s.$context=oS(this.getContext(),t,s)),i.parsed=this.getParsed(t),i.raw=o.data[t],i.index=i.dataIndex=t}else i=this.$context||(this.$context=nS(this.chart.getContext(),this.index)),i.dataset=o,i.index=i.datasetIndex=this.index;return i.active=!!r,i.mode=n,i}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,r){return this._resolveElementOptions(this.dataElementType.id,r,t)}_resolveElementOptions(t,r="default",n){const o=r==="active",i=this._cachedDataOpts,s=t+"-"+r,a=i[s],l=this.enableOptionSharing&&xa(n);if(a)return rp(a,l);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,t),u=o?[`${t}Hover`,"hover",t,""]:[t,""],f=c.getOptionScopes(this.getDataset(),d),h=Object.keys(Xe.elements[t]),g=()=>this.getContext(n,o,r),p=c.resolveNamedOptions(f,h,g,u);return p.$shared&&(p.$shared=l,i[s]=Object.freeze(rp(p,l))),p}_resolveAnimations(t,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(t,n,r))}const c=new Kg(o,l&&l.animations);return l&&l._cacheable&&(i[s]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,r){return!r||Id(t)||this.chart._animationsDisabled}_getSharedOptions(t,r){const n=this.resolveDataElementOptions(t,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(t,r,n,o){Id(o)?Object.assign(t,n):this._resolveAnimations(r,o).update(t,n)}updateSharedOptions(t,r,n){t&&!Id(r)&&this._resolveAnimations(void 0,r).update(t,n)}_setStyle(t,r,n,o){t.active=o;const i=this.getStyle(r,o);this._resolveAnimations(r,n,o).update(t,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(t,r,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,r,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){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,t):i<o&&this._removeElements(i,o-i)}_insertElements(t,r,n=!0){const o=this._cachedMeta,i=o.data,s=t+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=t;a<s;++a)i[a]=new this.dataElementType;this._parsing&&l(o._parsed),this.parse(t,r),n&&this.updateElements(i,t,r,"reset")}updateElements(t,r,n,o){}_removeElements(t,r){const n=this._cachedMeta;if(this._parsing){const o=n._parsed.splice(t,r);n._stacked&&Di(n,o)}n.data.splice(t,r)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[r,n,o]=t;this[r](n,o)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,r){r&&this._sync(["_removeElements",t,r]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ge(Pi,"defaults",{}),ge(Pi,"datasetElementType",null),ge(Pi,"dataElementType",null);function sS(e,t,r){let n=1,o=1,i=0,s=0;if(t<Ze){const a=e,l=a+t,c=Math.cos(a),d=Math.sin(a),u=Math.cos(l),f=Math.sin(l),h=(_,v,w)=>_a(_,a,l,!0)?1:Math.max(v,v*r,w,w*r),g=(_,v,w)=>_a(_,a,l,!0)?-1:Math.min(v,v*r,w,w*r),p=h(0,c,u),m=h(nt,d,f),x=g(ct,c,u),y=g(ct+nt,d,f);n=(p-x)/2,o=(m-y)/2,i=-(p+x)/2,s=-(m+y)/2}return{ratioX:n,ratioY:o,offsetX:i,offsetY:s}}class Ii extends Pi{constructor(t,r){super(t,r),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,r){const n=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=n;else{let i=l=>+n[l];if(xe(n[t])){const{key:l="value"}=this._parsing;i=c=>+Ei(n[c],l)}let s,a;for(s=t,a=t+r;s<a;++s)o._parsed[s]=i(s)}}_getRotation(){return Bn(this.options.rotation-90)}_getCircumference(){return Bn(this.options.circumference)}_getRotationExtents(){let t=Ze,r=-Ze;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();t=Math.min(t,i),r=Math.max(r,i+s)}return{rotation:t,circumference:r-t}}update(t){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(U5(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:g,offsetY:p}=sS(u,d,l),m=(n.width-s)/f,x=(n.height-s)/h,y=Math.max(Math.min(m,x)/2,0),_=mg(this.options.radius,y),v=Math.max(_*l,0),w=(_-v)/this._getVisibleDatasetWeightTotal();this.offsetX=g*_,this.offsetY=p*_,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,t)}_circumference(t,r){const n=this.options,o=this._cachedMeta,i=this._getCircumference();return r&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||o._parsed[t]===null||o.data[t].hidden?0:this.calculateCircumference(o._parsed[t]*i/Ze)}updateElements(t,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,g=f?0:this.outerRadius,{sharedOptions:p,includeOptions:m}=this._getSharedOptions(r,o);let x=this._getRotation(),y;for(y=0;y<r;++y)x+=this._circumference(y,i);for(y=r;y<r+n;++y){const _=this._circumference(y,i),v=t[y],w={x:d+this.offsetX,y:u+this.offsetY,startAngle:x,endAngle:x+_,circumference:_,outerRadius:g,innerRadius:h};m&&(w.options=p||this.resolveDataElementOptions(y,v.active?"active":o)),x+=_,this.updateElement(v,y,w,o)}}calculateTotal(){const t=this._cachedMeta,r=t.data;let n=0,o;for(o=0;o<r.length;o++){const i=t._parsed[o];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(o)&&!r[o].hidden&&(n+=Math.abs(i))}return n}calculateCircumference(t){const r=this._cachedMeta.total;return r>0&&!isNaN(t)?Ze*(Math.abs(t)/r):0}getLabelAndValue(t){const r=this._cachedMeta,n=this.chart,o=n.data.labels||[],i=gC(r._parsed[t],n.options.locale);return{label:o[t]||"",value:i}}getMaxBorderWidth(t){let r=0;const n=this.chart;let o,i,s,a,l;if(!t){for(o=0,i=n.data.datasets.length;o<i;++o)if(n.isDatasetVisible(o)){s=n.getDatasetMeta(o),t=s.data,a=s.controller;break}}if(!t)return 0;for(o=0,i=t.length;o<i;++o)l=a.resolveDataElementOptions(o),l.borderAlign!=="inner"&&(r=Math.max(r,l.borderWidth||0,l.hoverBorderWidth||0));return r}getMaxOffset(t){let r=0;for(let n=0,o=t.length;n<o;++n){const i=this.resolveDataElementOptions(n);r=Math.max(r,i.offset||0,i.hoverOffset||0)}return r}_getRingWeightOffset(t){let r=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(r+=this._getRingWeight(n));return r}_getRingWeight(t){return Math.max(Ne(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ge(Ii,"id","doughnut"),ge(Ii,"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"}),ge(Ii,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),ge(Ii,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const r=t.data;if(r.labels.length&&r.datasets.length){const{labels:{pointStyle:n,color:o}}=t.legend.options;return r.labels.map((i,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:o,lineWidth:l.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,r,n){n.chart.toggleDataVisibility(r.index),n.chart.update()}}}});function Un(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Ad{constructor(t){ge(this,"options");this.options=t||{}}static override(t){Object.assign(Ad.prototype,t)}init(){}formats(){return Un()}parse(){return Un()}format(){return Un()}add(){return Un()}diff(){return Un()}startOf(){return Un()}endOf(){return Un()}}var aS={_date:Ad};function lS(e,t,r,n){const{controller:o,data:i,_sorted:s}=e,a=o._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(a&&t===a.axis&&t!=="r"&&s&&i.length){const c=a._reversePixels?nC:yd;if(n){if(o._sharedOptions){const d=i[0],u=typeof d.getRange=="function"&&d.getRange(t);if(u){const f=c(i,t,r-u),h=c(i,t,r+u);return{lo:f.lo,hi:h.hi}}}}else{const d=c(i,t,r);if(l){const{vScale:u}=o._cachedMeta,{_parsed:f}=e,h=f.slice(0,d.lo+1).reverse().findIndex(p=>!kt(p[u.axis]));d.lo-=Math.max(0,h);const g=f.slice(d.hi).findIndex(p=>!kt(p[u.axis]));d.hi+=Math.max(0,g)}return d}}return{lo:0,hi:i.length-1}}function Ta(e,t,r,n,o){const i=e.getSortedVisibleDatasetMetas(),s=r[t];for(let a=0,l=i.length;a<l;++a){const{index:c,data:d}=i[a],{lo:u,hi:f}=lS(i[a],t,s,o);for(let h=u;h<=f;++h){const g=d[h];g.skip||n(g,c,h)}}}function cS(e){const t=e.indexOf("x")!==-1,r=e.indexOf("y")!==-1;return function(n,o){const i=t?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 Ld(e,t,r,n,o){const i=[];return!o&&!e.isPointInArea(t)||Ta(e,r,t,function(a,l,c){!o&&!jg(a,e.chartArea,0)||a.inRange(t.x,t.y,n)&&i.push({element:a,datasetIndex:l,index:c})},!0),i}function dS(e,t,r,n){let o=[];function i(s,a,l){const{startAngle:c,endAngle:d}=s.getProps(["startAngle","endAngle"],n),{angle:u}=_g(s,{x:t.x,y:t.y});_a(u,c,d)&&o.push({element:s,datasetIndex:a,index:l})}return Ta(e,r,t,i),o}function uS(e,t,r,n,o,i){let s=[];const a=cS(r);let l=Number.POSITIVE_INFINITY;function c(d,u,f){const h=d.inRange(t.x,t.y,o);if(n&&!h)return;const g=d.getCenterPoint(o);if(!(!!i||e.isPointInArea(g))&&!h)return;const m=a(t,g);m<l?(s=[{element:d,datasetIndex:u,index:f}],l=m):m===l&&s.push({element:d,datasetIndex:u,index:f})}return Ta(e,r,t,c),s}function zd(e,t,r,n,o,i){return!i&&!e.isPointInArea(t)?[]:r==="r"&&!n?dS(e,t,r,o):uS(e,t,r,n,o,i)}function np(e,t,r,n,o){const i=[],s=r==="x"?"inXRange":"inYRange";let a=!1;return Ta(e,r,t,(l,c,d)=>{l[s]&&l[s](t[r],o)&&(i.push({element:l,datasetIndex:c,index:d}),a=a||l.inRange(t.x,t.y,o))}),n&&!a?[]:i}var fS={modes:{index(e,t,r,n){const o=Yn(t,e),i=r.axis||"x",s=r.includeInvisible||!1,a=r.intersect?Ld(e,o,i,n,s):zd(e,o,i,!1,n,s),l=[];return a.length?(e.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(e,t,r,n){const o=Yn(t,e),i=r.axis||"xy",s=r.includeInvisible||!1;let a=r.intersect?Ld(e,o,i,n,s):zd(e,o,i,!1,n,s);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let d=0;d<c.length;++d)a.push({element:c[d],datasetIndex:l,index:d})}return a},point(e,t,r,n){const o=Yn(t,e),i=r.axis||"xy",s=r.includeInvisible||!1;return Ld(e,o,i,n,s)},nearest(e,t,r,n){const o=Yn(t,e),i=r.axis||"xy",s=r.includeInvisible||!1;return zd(e,o,i,r.intersect,n,s)},x(e,t,r,n){const o=Yn(t,e);return np(e,o,"x",r.intersect,n)},y(e,t,r,n){const o=Yn(t,e);return np(e,o,"y",r.intersect,n)}}};const op=["left","top","right","bottom"];function Ai(e,t){return e.filter(r=>r.pos===t)}function ip(e,t){return e.filter(r=>op.indexOf(r.pos)===-1&&r.box.axis===t)}function Li(e,t){return e.sort((r,n)=>{const o=t?n:r,i=t?r:n;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function hS(e){const t=[];let r,n,o,i,s,a;for(r=0,n=(e||[]).length;r<n;++r)o=e[r],{position:i,options:{stack:s,stackWeight:a=1}}=o,t.push({index:r,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:s&&i+s,stackWeight:a});return t}function gS(e){const t={};for(const r of e){const{stack:n,pos:o,stackWeight:i}=r;if(!n||!op.includes(o))continue;const s=t[n]||(t[n]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return t}function pS(e,t){const r=gS(e),{vBoxMaxWidth:n,hBoxMaxHeight:o}=t;let i,s,a;for(i=0,s=e.length;i<s;++i){a=e[i];const{fullSize:l}=a.box,c=r[a.stack],d=c&&a.stackWeight/c.weight;a.horizontal?(a.width=d?d*n:l&&t.availableWidth,a.height=o):(a.width=n,a.height=d?d*o:l&&t.availableHeight)}return r}function bS(e){const t=hS(e),r=Li(t.filter(c=>c.box.fullSize),!0),n=Li(Ai(t,"left"),!0),o=Li(Ai(t,"right")),i=Li(Ai(t,"top"),!0),s=Li(Ai(t,"bottom")),a=ip(t,"x"),l=ip(t,"y");return{fullSize:r,leftAndTop:n.concat(i),rightAndBottom:o.concat(l).concat(s).concat(a),chartArea:Ai(t,"chartArea"),vertical:n.concat(o).concat(l),horizontal:i.concat(s).concat(a)}}function sp(e,t,r,n){return Math.max(e[r],t[r])+Math.max(e[n],t[n])}function ap(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function mS(e,t,r,n){const{pos:o,box:i}=r,s=e.maxPadding;if(!xe(o)){r.size&&(e[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,e[o]+=r.size}i.getPadding&&ap(s,i.getPadding());const a=Math.max(0,t.outerWidth-sp(s,e,"left","right")),l=Math.max(0,t.outerHeight-sp(s,e,"top","bottom")),c=a!==e.w,d=l!==e.h;return e.w=a,e.h=l,r.horizontal?{same:c,other:d}:{same:d,other:c}}function yS(e){const t=e.maxPadding;function r(n){const o=Math.max(t[n]-e[n],0);return e[n]+=o,o}e.y+=r("top"),e.x+=r("left"),r("right"),r("bottom")}function vS(e,t){const r=t.maxPadding;function n(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(s=>{i[s]=Math.max(t[s],r[s])}),i}return n(e?["left","right"]:["top","bottom"])}function zi(e,t,r,n){const o=[];let i,s,a,l,c,d;for(i=0,s=e.length,c=0;i<s;++i){a=e[i],l=a.box,l.update(a.width||t.w,a.height||t.h,vS(a.horizontal,t));const{same:u,other:f}=mS(t,r,a,n);c|=u&&o.length,d=d||f,l.fullSize||o.push(a)}return c&&zi(o,t,r,n)||d}function Da(e,t,r,n,o){e.top=r,e.left=t,e.right=t+n,e.bottom=r+o,e.width=n,e.height=o}function lp(e,t,r,n){const o=r.padding;let{x:i,y:s}=t;for(const a of e){const l=a.box,c=n[a.stack]||{placed:0,weight:1},d=a.stackWeight/c.weight||1;if(a.horizontal){const u=t.w*d,f=c.size||l.height;xa(c.start)&&(s=c.start),l.fullSize?Da(l,o.left,s,r.outerWidth-o.right-o.left,f):Da(l,t.left+c.placed,s,u,f),c.start=s,c.placed+=u,s=l.bottom}else{const u=t.h*d,f=c.size||l.width;xa(c.start)&&(i=c.start),l.fullSize?Da(l,i,o.top,f,r.outerHeight-o.bottom-o.top):Da(l,i,t.top+c.placed,f,u),c.start=i,c.placed+=u,i=l.right}}t.x=i,t.y=s}var bn={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(r){t.draw(r)}}]},e.boxes.push(t)},removeBox(e,t){const r=e.boxes?e.boxes.indexOf(t):-1;r!==-1&&e.boxes.splice(r,1)},configure(e,t,r){t.fullSize=r.fullSize,t.position=r.position,t.weight=r.weight},update(e,t,r,n){if(!e)return;const o=hr(e.options.layout.padding),i=Math.max(t-o.width,0),s=Math.max(r-o.height,0),a=bS(e.boxes),l=a.vertical,c=a.horizontal;Me(e.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const d=l.reduce((p,m)=>m.box.options&&m.box.options.display===!1?p:p+1,0)||1,u=Object.freeze({outerWidth:t,outerHeight:r,padding:o,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/d,hBoxMaxHeight:s/2}),f=Object.assign({},o);ap(f,hr(n));const h=Object.assign({maxPadding:f,w:i,h:s,x:o.left,y:o.top},o),g=pS(l.concat(c),u);zi(a.fullSize,h,u,g),zi(l,h,u,g),zi(c,h,u,g)&&zi(l,h,u,g),yS(h),lp(a.leftAndTop,h,u,g),h.x+=h.w,h.y+=h.h,lp(a.rightAndBottom,h,u,g),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Me(a.chartArea,p=>{const m=p.box;Object.assign(m,e.chartArea),m.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class cp{acquireContext(t,r){}releaseContext(t){return!1}addEventListener(t,r,n){}removeEventListener(t,r,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,r,n,o){return r=Math.max(0,r||t.width),n=n||t.height,{width:r,height:Math.max(0,o?Math.floor(r/o):n)}}isAttached(t){return!0}updateConfig(t){}}class xS extends cp{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Pa="$chartjs",wS={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},dp=e=>e===null||e==="";function kS(e,t){const r=e.style,n=e.getAttribute("height"),o=e.getAttribute("width");if(e[Pa]={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",dp(o)){const i=Rg(e,"width");i!==void 0&&(e.width=i)}if(dp(n))if(e.style.height==="")e.height=e.width/(t||2);else{const i=Rg(e,"height");i!==void 0&&(e.height=i)}return e}const up=VC?{passive:!0}:!1;function _S(e,t,r){e&&e.addEventListener(t,r,up)}function CS(e,t,r){e&&e.canvas&&e.canvas.removeEventListener(t,r,up)}function SS(e,t){const r=wS[e.type]||e.type,{x:n,y:o}=Yn(e,t);return{type:r,chart:t,native:e,x:n!==void 0?n:null,y:o!==void 0?o:null}}function Ia(e,t){for(const r of e)if(r===t||r.contains(t))return!0}function ES(e,t,r){const n=e.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||Ia(a.addedNodes,n),s=s&&!Ia(a.removedNodes,n);s&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}function OS(e,t,r){const n=e.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||Ia(a.removedNodes,n),s=s&&!Ia(a.addedNodes,n);s&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}const Fi=new Map;let fp=0;function hp(){const e=window.devicePixelRatio;e!==fp&&(fp=e,Fi.forEach((t,r)=>{r.currentDevicePixelRatio!==e&&t()}))}function NS(e,t){Fi.size||window.addEventListener("resize",hp),Fi.set(e,t)}function MS(e){Fi.delete(e),Fi.size||window.removeEventListener("resize",hp)}function TS(e,t,r){const n=e.canvas,o=n&&Td(n);if(!o)return;const i=Og((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),NS(e,i),s}function Fd(e,t,r){r&&r.disconnect(),t==="resize"&&MS(e)}function DS(e,t,r){const n=e.canvas,o=Og(i=>{e.ctx!==null&&r(SS(i,e))},e);return _S(n,t,o),o}class PS extends cp{acquireContext(t,r){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(kS(t,r),n):null}releaseContext(t){const r=t.canvas;if(!r[Pa])return!1;const n=r[Pa].initial;["height","width"].forEach(i=>{const s=n[i];kt(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[Pa],!0}addEventListener(t,r,n){this.removeEventListener(t,r);const o=t.$proxies||(t.$proxies={}),s={attach:ES,detach:OS,resize:TS}[r]||DS;o[r]=s(t,r,n)}removeEventListener(t,r){const n=t.$proxies||(t.$proxies={}),o=n[r];if(!o)return;({attach:Fd,detach:Fd,resize:Fd}[r]||CS)(t,r,o),n[r]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,r,n,o){return $C(t,r,n,o)}isAttached(t){const r=t&&Td(t);return!!(r&&r.isConnected)}}function IS(e){return!Md()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?xS:PS}let ji=(ld=class{constructor(){ge(this,"x");ge(this,"y");ge(this,"active",!1);ge(this,"options");ge(this,"$animations")}tooltipPosition(t){const{x:r,y:n}=this.getProps(["x","y"],t);return{x:r,y:n}}hasValue(){return ka(this.x)&&ka(this.y)}getProps(t,r){const n=this.$animations;if(!r||!n)return this;const o={};return t.forEach(i=>{o[i]=n[i]&&n[i].active()?n[i]._to:this[i]}),o}},ge(ld,"defaults",{}),ge(ld,"defaultRoutes"),ld);function AS(e,t){const r=e.options.ticks,n=LS(e),o=Math.min(r.maxTicksLimit||n,n),i=r.major.enabled?FS(t):[],s=i.length,a=i[0],l=i[s-1],c=[];if(s>o)return jS(t,c,i,s/o),c;const d=zS(i,t,o);if(s>0){let u,f;const h=s>1?Math.round((l-a)/(s-1)):null;for(Aa(t,c,d,kt(h)?0:a-h,a),u=0,f=s-1;u<f;u++)Aa(t,c,d,i[u],i[u+1]);return Aa(t,c,d,l,kt(h)?t.length:l+h),c}return Aa(t,c,d),c}function LS(e){const t=e.options.offset,r=e._tickSize(),n=e._length/r+(t?0:1),o=e._maxLength/r;return Math.floor(Math.min(n,o))}function zS(e,t,r){const n=BS(e),o=t.length/r;if(!n)return Math.max(o,1);const i=Q5(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 FS(e){const t=[];let r,n;for(r=0,n=e.length;r<n;r++)e[r].major&&t.push(r);return t}function jS(e,t,r,n){let o=0,i=r[0],s;for(n=Math.ceil(n),s=0;s<e.length;s++)s===i&&(t.push(e[s]),o++,i=r[o*n])}function Aa(e,t,r,n,o){const i=Ne(n,0),s=Math.min(Ne(o,e.length),e.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&&(t.push(e[c]),a++,d=Math.round(i+a*r))}function BS(e){const t=e.length;let r,n;if(t<2)return!1;for(n=e[0],r=1;r<t;++r)if(e[r]-e[r-1]!==n)return!1;return n}const WS=e=>e==="left"?"right":e==="right"?"left":e,gp=(e,t,r)=>t==="top"||t==="left"?e[t]+r:e[t]-r,pp=(e,t)=>Math.min(t||e,e);function bp(e,t){const r=[],n=e.length/t,o=e.length;let i=0;for(;i<o;i+=n)r.push(e[Math.floor(i)]);return r}function HS(e,t,r){const n=e.ticks.length,o=Math.min(t,n-1),i=e._startPixel,s=e._endPixel,a=1e-6;let l=e.getPixelForTick(o),c;if(!(r&&(n===1?c=Math.max(l-i,s-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(o-1))/2,l+=o<t?c:-c,l<i-a||l>s+a)))return l}function $S(e,t){Me(e,r=>{const n=r.gc,o=n.length/2;let i;if(o>t){for(i=0;i<o;++i)delete r.data[n[i]];n.splice(0,o)}})}function Bi(e){return e.drawTicks?e.tickLength:0}function mp(e,t){if(!e.display)return 0;const r=It(e.font,t),n=hr(e.padding);return(ht(e.text)?e.text.length:1)*r.lineHeight+n.height}function VS(e,t){return No(e,{scale:t,type:"scale"})}function YS(e,t,r){return No(e,{tick:r,index:t,type:"tick"})}function US(e,t,r){let n=Ng(e);return(r&&t!=="right"||!r&&t==="right")&&(n=WS(n)),n}function RS(e,t,r,n){const{top:o,left:i,bottom:s,right:a,chart:l}=e,{chartArea:c,scales:d}=l;let u=0,f,h,g;const p=s-o,m=a-i;if(e.isHorizontal()){if(h=qt(n,i,a),xe(r)){const x=Object.keys(r)[0],y=r[x];g=d[x].getPixelForValue(y)+p-t}else r==="center"?g=(c.bottom+c.top)/2+p-t:g=gp(e,r,t);f=a-i}else{if(xe(r)){const x=Object.keys(r)[0],y=r[x];h=d[x].getPixelForValue(y)-m+t}else r==="center"?h=(c.left+c.right)/2-m+t:h=gp(e,r,t);g=qt(n,s,o),u=r==="left"?-nt:nt}return{titleX:h,titleY:g,maxWidth:f,rotation:u}}class La extends ji{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.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(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,r){return t}getUserBounds(){let{_userMin:t,_userMax:r,_suggestedMin:n,_suggestedMax:o}=this;return t=_r(t,Number.POSITIVE_INFINITY),r=_r(r,Number.NEGATIVE_INFINITY),n=_r(n,Number.POSITIVE_INFINITY),o=_r(o,Number.NEGATIVE_INFINITY),{min:_r(t,n),max:_r(r,o),minDefined:Gr(t),maxDefined:Gr(r)}}getMinMax(t){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,t),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:_r(r,_r(n,r)),max:_r(n,_r(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 t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){je(this.options.beforeUpdate,[this])}update(t,r,n){const{beginAtZero:o,grace:i,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,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=OC(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?bp(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=AS(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,r,n;this.isHorizontal()?(r=this.left,n=this.right):(r=this.top,n=this.bottom,t=!t),this._startPixel=r,this._endPixel=n,this._reversePixels=t,this._length=n-r,this._alignToPixels=this.options.alignToPixels}afterUpdate(){je(this.options.afterUpdate,[this])}beforeSetDimensions(){je(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(){je(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),je(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){je(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const r=this.options.ticks;let n,o,i;for(n=0,o=t.length;n<o;n++)i=t[n],i.label=je(r.callback,[i.value,n,t],this)}afterTickToLabelConversion(){je(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){je(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,r=t.ticks,n=pp(this.ticks.length,t.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=rr(this.chart.width-u,0,this.maxWidth);a=t.offset?this.maxWidth/n:h/(n-1),u+6>a&&(a=h/(n-(t.offset?.5:1)),l=this.maxHeight-Bi(t.grid)-r.padding-mp(t.title,this.chart.options.font),c=Math.sqrt(u*u+f*f),s=eC(Math.min(Math.asin(rr((d.highest.height+6)/a,-1,1)),Math.asin(rr(l/c,-1,1))-Math.asin(rr(f/c,-1,1)))),s=Math.max(o,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){je(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){je(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:r,options:{ticks:n,title:o,grid:i}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=mp(o,r.options.font);if(a?(t.width=this.maxWidth,t.height=Bi(i)+l):(t.height=this.maxHeight,t.width=Bi(i)+l),n.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:f}=this._getLabelSizes(),h=n.padding*2,g=Bn(this.labelRotation),p=Math.cos(g),m=Math.sin(g);if(a){const x=n.mirror?0:m*u.width+p*f.height;t.height=Math.min(this.maxHeight,t.height+x+h)}else{const x=n.mirror?0:p*u.width+m*f.height;t.width=Math.min(this.maxWidth,t.width+x+h)}this._calculatePadding(c,d,m,p)}}this._handleMargins(),a?(this.width=this._length=r.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=r.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,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*t.width,h=n*r.height):(f=n*t.height,h=o*r.width):i==="start"?h=r.width:i==="end"?f=t.width:i!=="inner"&&(f=t.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=t.height/2;i==="start"?(d=0,u=t.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(){je(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:r}=this.options;return r==="top"||r==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let r,n;for(r=0,n=t.length;r<n;r++)kt(t[r].label)&&(t.splice(r,1),n--,r--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const r=this.options.ticks.sampleSize;let n=this.ticks;r<n.length&&(n=bp(n,r)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,r,n){const{ctx:o,_longestTextCache:i}=this,s=[],a=[],l=Math.floor(r/pp(r,n));let c=0,d=0,u,f,h,g,p,m,x,y,_,v,w;for(u=0;u<r;u+=l){if(g=t[u].label,p=this._resolveTickFontOptions(u),o.font=m=p.string,x=i[m]=i[m]||{data:{},gc:[]},y=p.lineHeight,_=v=0,!kt(g)&&!ht(g))_=Ag(o,x.data,x.gc,_,g),v=y;else if(ht(g))for(f=0,h=g.length;f<h;++f)w=g[f],!kt(w)&&!ht(w)&&(_=Ag(o,x.data,x.gc,_,w),v+=y);s.push(_),a.push(v),c=Math.max(_,c),d=Math.max(v,d)}$S(i,r);const C=s.indexOf(c),M=a.indexOf(d),N=O=>({width:s[O]||0,height:a[O]||0});return{first:N(0),last:N(r-1),widest:N(C),highest:N(M),widths:s,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,r){return NaN}getValueForPixel(t){}getPixelForTick(t){const r=this.ticks;return t<0||t>r.length-1?null:this.getPixelForValue(r[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const r=this._startPixel+t*this._length;return rC(this._alignToPixels?$n(this.chart,r,0):r)}getDecimalForPixel(t){const r=(t-this._startPixel)/this._length;return this._reversePixels?1-r:r}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:r}=this;return t<0&&r<0?r:t>0&&r>0?t:0}getContext(t){const r=this.ticks||[];if(t>=0&&t<r.length){const n=r[t];return n.$context||(n.$context=YS(this.getContext(),t,n))}return this.$context||(this.$context=VS(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,r=Bn(this.labelRotation),n=Math.abs(Math.cos(r)),o=Math.abs(Math.sin(r)),i=this._getLabelSizes(),s=t.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 t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){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=Bi(i),h=[],g=a.setContext(this.getContext()),p=g.display?g.width:0,m=p/2,x=function(A){return $n(n,A,p)};let y,_,v,w,C,M,N,O,E,z,T,P;if(s==="top")y=x(this.bottom),M=this.bottom-f,O=y-m,z=x(t.top)+m,P=t.bottom;else if(s==="bottom")y=x(this.top),z=t.top,P=x(t.bottom)-m,M=y+m,O=this.top+f;else if(s==="left")y=x(this.right),C=this.right-f,N=y-m,E=x(t.left)+m,T=t.right;else if(s==="right")y=x(this.left),E=t.left,T=x(t.right)-m,C=y+m,N=this.left+f;else if(r==="x"){if(s==="center")y=x((t.top+t.bottom)/2+.5);else if(xe(s)){const A=Object.keys(s)[0],F=s[A];y=x(this.chart.scales[A].getPixelForValue(F))}z=t.top,P=t.bottom,M=y+m,O=M+f}else if(r==="y"){if(s==="center")y=x((t.left+t.right)/2);else if(xe(s)){const A=Object.keys(s)[0],F=s[A];y=x(this.chart.scales[A].getPixelForValue(F))}C=y-m,N=C-f,E=t.left,T=t.right}const D=Ne(o.ticks.maxTicksLimit,u),S=Math.max(1,Math.ceil(u/D));for(_=0;_<u;_+=S){const A=this.getContext(_),F=i.setContext(A),L=a.setContext(A),j=F.lineWidth,B=F.color,W=L.dash||[],H=L.dashOffset,U=F.tickWidth,R=F.tickColor,q=F.tickBorderDash||[],X=F.tickBorderDashOffset;v=HS(this,_,l),v!==void 0&&(w=$n(n,v,j),c?C=N=E=T=w:M=O=z=P=w,h.push({tx1:C,ty1:M,tx2:N,ty2:O,x1:E,y1:z,x2:T,y2:P,width:j,color:B,borderDash:W,borderDashOffset:H,tickWidth:U,tickColor:R,tickBorderDash:q,tickBorderDashOffset:X}))}return this._ticksLength=u,this._borderValue=y,h}_computeLabelItems(t){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=Bi(n.grid),h=f+d,g=u?-d:h,p=-Bn(this.labelRotation),m=[];let x,y,_,v,w,C,M,N,O,E,z,T,P="middle";if(o==="top")C=this.bottom-g,M=this._getXAxisLabelAlignment();else if(o==="bottom")C=this.top+g,M=this._getXAxisLabelAlignment();else if(o==="left"){const S=this._getYAxisLabelAlignment(f);M=S.textAlign,w=S.x}else if(o==="right"){const S=this._getYAxisLabelAlignment(f);M=S.textAlign,w=S.x}else if(r==="x"){if(o==="center")C=(t.top+t.bottom)/2+h;else if(xe(o)){const S=Object.keys(o)[0],A=o[S];C=this.chart.scales[S].getPixelForValue(A)+h}M=this._getXAxisLabelAlignment()}else if(r==="y"){if(o==="center")w=(t.left+t.right)/2-h;else if(xe(o)){const S=Object.keys(o)[0],A=o[S];w=this.chart.scales[S].getPixelForValue(A)}M=this._getYAxisLabelAlignment(f).textAlign}r==="y"&&(l==="start"?P="top":l==="end"&&(P="bottom"));const D=this._getLabelSizes();for(x=0,y=a.length;x<y;++x){_=a[x],v=_.label;const S=i.setContext(this.getContext(x));N=this.getPixelForTick(x)+i.labelOffset,O=this._resolveTickFontOptions(x),E=O.lineHeight,z=ht(v)?v.length:1;const A=z/2,F=S.color,L=S.textStrokeColor,j=S.textStrokeWidth;let B=M;s?(w=N,M==="inner"&&(x===y-1?B=this.options.reverse?"left":"right":x===0?B=this.options.reverse?"right":"left":B="center"),o==="top"?c==="near"||p!==0?T=-z*E+E/2:c==="center"?T=-D.highest.height/2-A*E+E:T=-D.highest.height+E/2:c==="near"||p!==0?T=E/2:c==="center"?T=D.highest.height/2-A*E:T=D.highest.height-z*E,u&&(T*=-1),p!==0&&!S.showLabelBackdrop&&(w+=E/2*Math.sin(p))):(C=N,T=(1-z)*E/2);let W;if(S.showLabelBackdrop){const H=hr(S.backdropPadding),U=D.heights[x],R=D.widths[x];let q=T-H.top,X=0-H.left;switch(P){case"middle":q-=U/2;break;case"bottom":q-=U;break}switch(M){case"center":X-=R/2;break;case"right":X-=R;break;case"inner":x===y-1?X-=R:x>0&&(X-=R/2);break}W={left:X,top:q,width:R+H.width,height:U+H.height,color:S.backdropColor}}m.push({label:v,font:O,textOffset:T,options:{rotation:p,color:F,strokeColor:L,strokeWidth:j,textAlign:B,textBaseline:P,translation:[w,C],backdrop:W}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:r}=this.options;if(-Bn(this.labelRotation))return t==="top"?"left":"right";let o="center";return r.align==="start"?o="left":r.align==="end"?o="right":r.align==="inner"&&(o="inner"),o}_getYAxisLabelAlignment(t){const{position:r,ticks:{crossAlign:n,mirror:o,padding:i}}=this.options,s=this._getLabelSizes(),a=t+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 t=this.chart,r=this.options.position;if(r==="left"||r==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(r==="top"||r==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:r},left:n,top:o,width:i,height:s}=this;r&&(t.save(),t.fillStyle=r,t.fillRect(n,o,i,s),t.restore())}getLineWidthForValue(t){const r=this.options.grid;if(!this._isVisible()||!r.display)return 0;const o=this.ticks.findIndex(i=>i.value===t);return o>=0?r.setContext(this.getContext(o)).lineWidth:0}drawGrid(t){const r=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));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:t,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=$n(t,this.left,s)-s/2,d=$n(t,this.right,a)+a/2,u=f=l):(u=$n(t,this.top,s)-s/2,f=$n(t,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(t){if(!this.options.ticks.display)return;const n=this.ctx,o=this._computeLabelArea();o&&kd(n,o);const i=this.getLabelItems(t);for(const s of i){const a=s.options,l=s.font,c=s.label,d=s.textOffset;Sa(n,c,0,d,l,a)}o&&_d(n)}drawTitle(){const{ctx:t,options:{position:r,title:n,reverse:o}}=this;if(!n.display)return;const i=It(n.font),s=hr(n.padding),a=n.align;let l=i.lineHeight/2;r==="bottom"||r==="center"||xe(r)?(l+=s.bottom,ht(n.text)&&(l+=i.lineHeight*(n.text.length-1))):l+=s.top;const{titleX:c,titleY:d,maxWidth:u,rotation:f}=RS(this,l,r,a);Sa(t,n.text,0,0,i,{color:n.color,maxWidth:u,rotation:f,textAlign:US(a,r,o),textBaseline:"middle",translation:[c,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,r=t.ticks&&t.ticks.z||0,n=Ne(t.grid&&t.grid.z,-1),o=Ne(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==La.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(t){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&&(!t||a.type===t)&&o.push(a)}return o}_resolveTickFontOptions(t){const r=this.options.ticks.setContext(this.getContext(t));return It(r.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class za{constructor(t,r,n){this.type=t,this.scope=r,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const r=Object.getPrototypeOf(t);let n;GS(r)&&(n=this.register(r));const o=this.items,i=t.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in o||(o[i]=t,qS(t,s,n),this.override&&Xe.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const r=this.items,n=t.id,o=this.scope;n in r&&delete r[n],o&&n in Xe[o]&&(delete Xe[o][n],this.override&&delete Hn[n])}}function qS(e,t,r){const n=Ci(Object.create(null),[r?Xe.get(r):{},Xe.get(t),e.defaults]);Xe.set(t,n),e.defaultRoutes&&XS(t,e.defaultRoutes),e.descriptors&&Xe.describe(t,e.descriptors)}function XS(e,t){Object.keys(t).forEach(r=>{const n=r.split("."),o=n.pop(),i=[e].concat(n).join("."),s=t[r].split("."),a=s.pop(),l=s.join(".");Xe.route(i,o,l,a)})}function GS(e){return"id"in e&&"defaults"in e}class KS{constructor(){this.controllers=new za(Pi,"datasets",!0),this.elements=new za(ji,"elements"),this.plugins=new za(Object,"plugins"),this.scales=new za(La,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,r,n){[...r].forEach(o=>{const i=n||this._getRegistryForType(o);n||i.isForType(o)||i===this.plugins&&o.id?this._exec(t,i,o):Me(o,s=>{const a=n||this._getRegistryForType(s);this._exec(t,a,s)})})}_exec(t,r,n){const o=bd(t);je(n["before"+o],[],n),r[t](n),je(n["after"+o],[],n)}_getRegistryForType(t){for(let r=0;r<this._typedRegistries.length;r++){const n=this._typedRegistries[r];if(n.isForType(t))return n}return this.plugins}_get(t,r,n){const o=r.get(t);if(o===void 0)throw new Error('"'+t+'" is not a registered '+n+".");return o}}var Cr=new KS;class ZS{constructor(){this._init=[]}notify(t,r,n,o){r==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const i=o?this._descriptors(t).filter(o):this._descriptors(t),s=this._notify(i,t,r,n);return r==="afterDestroy"&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,r,n,o){o=o||{};for(const i of t){const s=i.plugin,a=s[n],l=[r,o,i.options];if(je(a,l,s)===!1&&o.cancelable)return!1}return!0}invalidate(){kt(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const r=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),r}_createDescriptors(t,r){const n=t&&t.config,o=Ne(n.options&&n.options.plugins,{}),i=QS(n);return o===!1&&!r?[]:eE(t,i,o,r)}_notifyStateChanges(t){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),t,"stop"),this._notify(o(n,r),t,"start")}}function QS(e){const t={},r=[],n=Object.keys(Cr.plugins.items);for(let i=0;i<n.length;i++)r.push(Cr.getPlugin(n[i]));const o=e.plugins||[];for(let i=0;i<o.length;i++){const s=o[i];r.indexOf(s)===-1&&(r.push(s),t[s.id]=!0)}return{plugins:r,localIds:t}}function JS(e,t){return!t&&e===!1?null:e===!0?{}:e}function eE(e,{plugins:t,localIds:r},n,o){const i=[],s=e.getContext();for(const a of t){const l=a.id,c=JS(n[l],o);c!==null&&i.push({plugin:a,options:tE(e.config,{plugin:a,local:r[l]},c,s)})}return i}function tE(e,{plugin:t,local:r},n,o){const i=e.pluginScopeKeys(t),s=e.getOptionScopes(n,i);return r&&t.defaults&&s.push(t.defaults),e.createResolver(s,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function jd(e,t){const r=Xe.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||r.indexAxis||"x"}function rE(e,t){let r=e;return e==="_index_"?r=t:e==="_value_"&&(r=t==="x"?"y":"x"),r}function nE(e,t){return e===t?"_index_":"_value_"}function yp(e){if(e==="x"||e==="y"||e==="r")return e}function oE(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Bd(e,...t){if(yp(e))return e;for(const r of t){const n=r.axis||oE(r.position)||e.length>1&&yp(e[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function vp(e,t,r){if(r[t+"AxisID"]===e)return{axis:t}}function iE(e,t){if(t.data&&t.data.datasets){const r=t.data.datasets.filter(n=>n.xAxisID===e||n.yAxisID===e);if(r.length)return vp(e,"x",r[0])||vp(e,"y",r[0])}return{}}function sE(e,t){const r=Hn[e.type]||{scales:{}},n=t.scales||{},o=jd(e.type,t),i=Object.create(null);return Object.keys(n).forEach(s=>{const a=n[s];if(!xe(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=Bd(s,a,iE(s,e),Xe.scales[a.type]),c=nE(l,o),d=r.scales||{};i[s]=Si(Object.create(null),[{axis:l},a,d[l],d[c]])}),e.data.datasets.forEach(s=>{const a=s.type||e.type,l=s.indexAxis||jd(a,t),d=(Hn[a]||{}).scales||{};Object.keys(d).forEach(u=>{const f=rE(u,l),h=s[f+"AxisID"]||f;i[h]=i[h]||Object.create(null),Si(i[h],[{axis:f},n[h],d[u]])})}),Object.keys(i).forEach(s=>{const a=i[s];Si(a,[Xe.scales[a.type],Xe.scale])}),i}function xp(e){const t=e.options||(e.options={});t.plugins=Ne(t.plugins,{}),t.scales=sE(e,t)}function wp(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function aE(e){return e=e||{},e.data=wp(e.data),xp(e),e}const kp=new Map,_p=new Set;function Fa(e,t){let r=kp.get(e);return r||(r=t(),kp.set(e,r),_p.add(r)),r}const Wi=(e,t,r)=>{const n=Ei(t,r);n!==void 0&&e.add(n)};class lE{constructor(t){this._config=aE(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=wp(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),xp(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Fa(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,r){return Fa(`${t}.transition.${r}`,()=>[[`datasets.${t}.transitions.${r}`,`transitions.${r}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,r){return Fa(`${t}-${r}`,()=>[[`datasets.${t}.elements.${r}`,`datasets.${t}`,`elements.${r}`,""]])}pluginScopeKeys(t){const r=t.id,n=this.type;return Fa(`${n}-plugin-${r}`,()=>[[`plugins.${r}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,r){const n=this._scopeCache;let o=n.get(t);return(!o||r)&&(o=new Map,n.set(t,o)),o}getOptionScopes(t,r,n){const{options:o,type:i}=this,s=this._cachedScopes(t,n),a=s.get(r);if(a)return a;const l=new Set;r.forEach(d=>{t&&(l.add(t),d.forEach(u=>Wi(l,t,u))),d.forEach(u=>Wi(l,o,u)),d.forEach(u=>Wi(l,Hn[i]||{},u)),d.forEach(u=>Wi(l,Xe,u)),d.forEach(u=>Wi(l,xd,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),_p.has(r)&&s.set(r,c),c}chartOptionScopes(){const{options:t,type:r}=this;return[t,Hn[r]||{},Xe.datasets[r]||{},{type:r},Xe,xd]}resolveNamedOptions(t,r,n,o=[""]){const i={$shared:!0},{resolver:s,subPrefixes:a}=Cp(this._resolverCache,t,o);let l=s;if(dE(s,r)){i.$shared=!1,n=pn(n)?n():n;const c=this.createResolver(t,n,a);l=Mo(s,n,c)}for(const c of r)i[c]=l[c];return i}createResolver(t,r,n=[""],o){const{resolver:i}=Cp(this._resolverCache,t,n);return xe(r)?Mo(i,r,void 0,o):i}}function Cp(e,t,r){let n=e.get(t);n||(n=new Map,e.set(t,n));const o=r.join();let i=n.get(o);return i||(i={resolver:Ed(t,r),subPrefixes:r.filter(a=>!a.toLowerCase().includes("hover"))},n.set(o,i)),i}const cE=e=>xe(e)&&Object.getOwnPropertyNames(e).some(t=>pn(e[t]));function dE(e,t){const{isScriptable:r,isIndexable:n}=Bg(e);for(const o of t){const i=r(o),s=n(o),a=(s||i)&&e[o];if(i&&(pn(a)||cE(a))||s&&ht(a))return!0}return!1}var uE="4.4.8";const fE=["top","bottom","left","right","chartArea"];function Sp(e,t){return e==="top"||e==="bottom"||fE.indexOf(e)===-1&&t==="x"}function Ep(e,t){return function(r,n){return r[e]===n[e]?r[t]-n[t]:r[e]-n[e]}}function Op(e){const t=e.chart,r=t.options.animation;t.notifyPlugins("afterRender"),je(r&&r.onComplete,[e],t)}function hE(e){const t=e.chart,r=t.options.animation;je(r&&r.onProgress,[e],t)}function Np(e){return Md()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const ja={},Mp=e=>{const t=Np(e);return Object.values(ja).filter(r=>r.canvas===t).pop()};function gE(e,t,r){const n=Object.keys(e);for(const o of n){const i=+o;if(i>=t){const s=e[o];delete e[o],(r>0||i>t)&&(e[i+r]=s)}}}function pE(e,t,r,n){return!r||e.type==="mouseout"?null:n?t:e}function Ba(e,t,r){return e.options.clip?e[r]:t[r]}function bE(e,t){const{xScale:r,yScale:n}=e;return r&&n?{left:Ba(r,t,"left"),right:Ba(r,t,"right"),top:Ba(n,t,"top"),bottom:Ba(n,t,"bottom")}:t}let Wa=(zn=class{static register(...t){Cr.add(...t),Tp()}static unregister(...t){Cr.remove(...t),Tp()}constructor(t,r){const n=this.config=new lE(r),o=Np(t),i=Mp(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||IS(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=Y5(),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 ZS,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=aC(u=>this.update(u),s.resizeDelay||0),this._dataChanges=[],ja[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Kr.listen(this,"complete",Op),Kr.listen(this,"progress",hE),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:r},width:n,height:o,_aspectRatio:i}=this;return kt(t)?r&&i?i:o?n/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Cr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Ug(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Lg(this.canvas,this.ctx),this}stop(){return Kr.stop(this),this}resize(t,r){Kr.running(this)?this._resizeBeforeDraw={width:t,height:r}:this._resize(t,r)}_resize(t,r){const n=this.options,o=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,t,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,Ug(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),je(n.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const r=this.options.scales||{};Me(r,(n,o)=>{n.id=o})}buildOrUpdateScales(){const t=this.options,r=t.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=Bd(s,a),c=l==="r",d=l==="x";return{options:a,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),Me(i,s=>{const a=s.options,l=a.id,c=Bd(l,a),d=Ne(a.type,s.dtype);(a.position===void 0||Sp(a.position,c)!==Sp(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=Cr.getScale(d);u=new f({id:l,type:d,ctx:this.ctx,chart:this}),n[u.id]=u}u.init(a,t)}),Me(o,(s,a)=>{s||delete n[a]}),Me(n,s=>{bn.configure(this,s,s.options),bn.addBox(this,s)})}_updateMetasets(){const t=this._metasets,r=this.data.datasets.length,n=t.length;if(t.sort((o,i)=>o.index-i.index),n>r){for(let o=r;o<n;++o)this._destroyDatasetMeta(o);t.splice(r,n-r)}this._sortedMetasets=t.slice(0).sort(Ep("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:r}}=this;t.length>r.length&&delete this._stacks,t.forEach((n,o)=>{r.filter(i=>i===n._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const t=[],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||jd(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=Cr.getController(a),{datasetElementType:c,dataElementType:d}=Xe.datasets[a];Object.assign(l,{dataElementType:Cr.getElement(d),datasetElementType:c&&Cr.getElement(c)}),s.controller=new l(this,n),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){Me(this.data.datasets,(t,r)=>{this.getDatasetMeta(r).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){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:t,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||Me(i,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Ep("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Me(this.scales,t=>{bn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,r=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!xg(r,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,r=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:i}of r){const s=n==="_removeElements"?-i:i;gE(t,o,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const r=this.data.datasets.length,n=i=>new Set(t.filter(s=>s[0]===i).map((s,a)=>a+","+s.splice(1).join(","))),o=n(0);for(let i=1;i<r;i++)if(!xg(o,n(i)))return;return Array.from(o).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;bn.update(this,this.width,this.height,t);const r=this.chartArea,n=r.width<=0||r.height<=0;this._layers=[],Me(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(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,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,pn(t)?t({datasetIndex:r}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,r){const n=this.getDatasetMeta(t),o={meta:n,index:t,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&&(Kr.has(this)?this.attached&&!Kr.running(this)&&Kr.start(this):(this.draw(),Op({chart:this})))}draw(){let t;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(t=0;t<r.length&&r[t].z<=0;++t)r[t].draw(this.chartArea);for(this._drawDatasets();t<r.length;++t)r[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const r=this._sortedMetasets,n=[];let o,i;for(o=0,i=r.length;o<i;++o){const s=r[o];(!t||s.visible)&&n.push(s)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let r=t.length-1;r>=0;--r)this._drawDataset(t[r]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const r=this.ctx,n=t._clip,o=!n.disabled,i=bE(t,this.chartArea),s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(o&&kd(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}),t.controller.draw(),o&&_d(r),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return jg(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,r,n,o){const i=fS.modes[r];return typeof i=="function"?i(this,t,n,o):[]}getDatasetMeta(t){const r=this.data.datasets[t],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:t,_dataset:r,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=No(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const r=this.data.datasets[t];if(!r)return!1;const n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!r.hidden}setDatasetVisibility(t,r){const n=this.getDatasetMeta(t);n.hidden=!r}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,r,n){const o=n?"show":"hide",i=this.getDatasetMeta(t),s=i.controller._resolveAnimations(void 0,o);xa(r)?(i.data[r].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),s.update(i,{visible:n}),this.update(a=>a.datasetIndex===t?o:void 0))}hide(t,r){this._updateVisibility(t,r,!1)}show(t,r){this._updateVisibility(t,r,!0)}_destroyDatasetMeta(t){const r=this._metasets[t];r&&r.controller&&r.controller._destroy(),delete this._metasets[t]}_stop(){let t,r;for(this.stop(),Kr.remove(this),t=0,r=this.data.datasets.length;t<r;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:r}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Lg(t,r),this.platform.releaseContext(r),this.canvas=null,this.ctx=null),delete ja[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,r=this.platform,n=(i,s)=>{r.addEventListener(this,i,s),t[i]=s},o=(i,s,a)=>{i.offsetX=s,i.offsetY=a,this._eventHandler(i)};Me(this.options.events,i=>n(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,r=this.platform,n=(l,c)=>{r.addEventListener(this,l,c),t[l]=c},o=(l,c)=>{t[l]&&(r.removeEventListener(this,l,c),delete t[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(){Me(this._listeners,(t,r)=>{this.platform.removeEventListener(this,r,t)}),this._listeners={},Me(this._responsiveListeners,(t,r)=>{this.platform.removeEventListener(this,r,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,r,n){const o=n?"set":"remove";let i,s,a,l;for(r==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){s=t[a];const c=s&&this.getDatasetMeta(s.datasetIndex).controller;c&&c[o+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const r=this._active||[],n=t.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}});!ya(n,r)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,r))}notifyPlugins(t,r,n){return this._plugins.notify(this,t,r,n)}isPluginEnabled(t){return this._plugins._cache.filter(r=>r.plugin.id===t).length===1}_updateHoverStyles(t,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,t),a=n?t:i(t,r);s.length&&this.updateHoverStyle(s,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(t,r){const n={event:t,replay:r,cancelable:!0,inChartArea:this.isPointInArea(t)},o=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,o)===!1)return;const i=this._handleEvent(t,r,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(i||n.changed)&&this.render(),this}_handleEvent(t,r,n){const{_active:o=[],options:i}=this,s=r,a=this._getActiveElements(t,o,n,s),l=K5(t),c=pE(t,this._lastEvent,n,l);n&&(this._lastEvent=null,je(i.onHover,[t,a,this],this),l&&je(i.onClick,[t,a,this],this));const d=!ya(a,o);return(d||r)&&(this._active=a,this._updateHoverStyles(a,o,r)),this._lastEvent=c,d}_getActiveElements(t,r,n,o){if(t.type==="mouseout")return[];if(!n)return r;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,o)}},ge(zn,"defaults",Xe),ge(zn,"instances",ja),ge(zn,"overrides",Hn),ge(zn,"registry",Cr),ge(zn,"version",uE),ge(zn,"getChart",Mp),zn);function Tp(){return Me(Wa.instances,e=>e._plugins.invalidate())}function mE(e,t,r){const{startAngle:n,pixelMargin:o,x:i,y:s,outerRadius:a,innerRadius:l}=t;let c=o/a;e.beginPath(),e.arc(i,s,a,n-c,r+c),l>o?(c=o/l,e.arc(i,s,l,r+c,n-c,!0)):e.arc(i,s,o,r+nt,n-nt),e.closePath(),e.clip()}function yE(e){return Sd(e,["outerStart","outerEnd","innerStart","innerEnd"])}function vE(e,t,r,n){const o=yE(e.options.borderRadius),i=(r-t)/2,s=Math.min(i,n*t/2),a=l=>{const c=(r-Math.min(i,l))*n/2;return rr(l,0,Math.min(i,c))};return{outerStart:a(o.outerStart),outerEnd:a(o.outerEnd),innerStart:rr(o.innerStart,0,s),innerEnd:rr(o.innerEnd,0,s)}}function Do(e,t,r,n){return{x:r+e*Math.cos(t),y:n+e*Math.sin(t)}}function Ha(e,t,r,n,o,i){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:d}=t,u=Math.max(t.outerRadius+n+r-c,0),f=d>0?d+n+r+c:0;let h=0;const g=o-l;if(n){const S=d>0?d-n:0,A=u>0?u-n:0,F=(S+A)/2,L=F!==0?g*F/(F+n):g;h=(g-L)/2}const p=Math.max(.001,g*u-r/ct)/u,m=(g-p)/2,x=l+m+h,y=o-m-h,{outerStart:_,outerEnd:v,innerStart:w,innerEnd:C}=vE(t,f,u,y-x),M=u-_,N=u-v,O=x+_/M,E=y-v/N,z=f+w,T=f+C,P=x+w/z,D=y-C/T;if(e.beginPath(),i){const S=(O+E)/2;if(e.arc(s,a,u,O,S),e.arc(s,a,u,S,E),v>0){const j=Do(N,E,s,a);e.arc(j.x,j.y,v,E,y+nt)}const A=Do(T,y,s,a);if(e.lineTo(A.x,A.y),C>0){const j=Do(T,D,s,a);e.arc(j.x,j.y,C,y+nt,D+Math.PI)}const F=(y-C/f+(x+w/f))/2;if(e.arc(s,a,f,y-C/f,F,!0),e.arc(s,a,f,F,x+w/f,!0),w>0){const j=Do(z,P,s,a);e.arc(j.x,j.y,w,P+Math.PI,x-nt)}const L=Do(M,x,s,a);if(e.lineTo(L.x,L.y),_>0){const j=Do(M,O,s,a);e.arc(j.x,j.y,_,x-nt,O)}}else{e.moveTo(s,a);const S=Math.cos(O)*u+s,A=Math.sin(O)*u+a;e.lineTo(S,A);const F=Math.cos(E)*u+s,L=Math.sin(E)*u+a;e.lineTo(F,L)}e.closePath()}function xE(e,t,r,n,o){const{fullCircles:i,startAngle:s,circumference:a}=t;let l=t.endAngle;if(i){Ha(e,t,r,n,l,o);for(let c=0;c<i;++c)e.fill();isNaN(a)||(l=s+(a%Ze||Ze))}return Ha(e,t,r,n,l,o),e.fill(),l}function wE(e,t,r,n,o){const{fullCircles:i,startAngle:s,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:d,borderDash:u,borderDashOffset:f}=l,h=l.borderAlign==="inner";if(!c)return;e.setLineDash(u||[]),e.lineDashOffset=f,h?(e.lineWidth=c*2,e.lineJoin=d||"round"):(e.lineWidth=c,e.lineJoin=d||"bevel");let g=t.endAngle;if(i){Ha(e,t,r,n,g,o);for(let p=0;p<i;++p)e.stroke();isNaN(a)||(g=s+(a%Ze||Ze))}h&&mE(e,t,g),i||(Ha(e,t,r,n,g,o),e.stroke())}class Hi extends ji{constructor(r){super();ge(this,"circumference");ge(this,"endAngle");ge(this,"fullCircles");ge(this,"innerRadius");ge(this,"outerRadius");ge(this,"pixelMargin");ge(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}=_g(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,g=Ne(f,c-l),p=_a(s,l,c)&&l!==c,m=g>=Ze||p,x=Oi(a,d+h,u+h);return m&&x}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>Ze?Math.floor(o/Ze):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(ct,o||0)),d=i*c;r.fillStyle=n.backgroundColor,r.strokeStyle=n.borderColor,xE(r,this,d,s,a),wE(r,this,d,s,a),r.restore()}}ge(Hi,"id","arc"),ge(Hi,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ge(Hi,"defaultRoutes",{backgroundColor:"backgroundColor"}),ge(Hi,"descriptors",{_scriptable:!0,_indexable:r=>r!=="borderDash"});const Dp=(e,t)=>{let{boxHeight:r=t,boxWidth:n=t}=e;return e.usePointStyle&&(r=Math.min(r,t),n=e.pointStyleWidth||Math.min(n,t)),{boxWidth:n,boxHeight:r,itemHeight:Math.max(t,r)}},kE=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Pp extends ji{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,r,n){this.maxWidth=t,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 t=this.options.labels||{};let r=je(t.generateLabels,[this.chart],this)||[];t.filter&&(r=r.filter(n=>t.filter(n,this.chart.data))),t.sort&&(r=r.sort((n,o)=>t.sort(n,o,this.chart.data))),this.options.reverse&&r.reverse(),this.legendItems=r}fit(){const{options:t,ctx:r}=this;if(!t.display){this.width=this.height=0;return}const n=t.labels,o=It(n.font),i=o.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Dp(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,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,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=t;i.textAlign="left",i.textBaseline="middle";let f=-1,h=-d;return this.legendItems.forEach((g,p)=>{const m=n+r/2+i.measureText(g.text).width;(p===0||c[c.length-1]+m+2*a>s)&&(u+=d,c[c.length-(p>0?0:1)]=0,h+=d,f++),l[p]={left:0,top:h,row:f,width:m,height:o},c[c.length-1]+=m+a}),u}_fitCols(t,r,n,o){const{ctx:i,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=s-t;let u=a,f=0,h=0,g=0,p=0;return this.legendItems.forEach((m,x)=>{const{itemWidth:y,itemHeight:_}=_E(n,r,i,m,o);x>0&&h+_+2*a>d&&(u+=f+a,c.push({width:f,height:h}),g+=f+a,p++,f=h=0),l[x]={left:g,top:h,col:p,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 t=this._computeTitleHeight(),{legendHitBoxes:r,options:{align:n,labels:{padding:o},rtl:i}}=this,s=To(i,this.left,this.width);if(this.isHorizontal()){let a=0,l=qt(n,this.left+o,this.right-this.lineWidths[a]);for(const c of r)a!==c.row&&(a=c.row,l=qt(n,this.left+o,this.right-this.lineWidths[a])),c.top+=this.top+t+o,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+o}else{let a=0,l=qt(n,this.top+t+o,this.bottom-this.columnSizes[a].height);for(const c of r)c.col!==a&&(a=c.col,l=qt(n,this.top+t+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 t=this.ctx;kd(t,this),this._draw(),_d(t)}}_draw(){const{options:t,columnSizes:r,lineWidths:n,ctx:o}=this,{align:i,labels:s}=t,a=Xe.color,l=To(t.rtl,this.left,this.width),c=It(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:g,boxHeight:p,itemHeight:m}=Dp(s,u),x=function(C,M,N){if(isNaN(g)||g<=0||isNaN(p)||p<0)return;o.save();const O=Ne(N.lineWidth,1);if(o.fillStyle=Ne(N.fillStyle,a),o.lineCap=Ne(N.lineCap,"butt"),o.lineDashOffset=Ne(N.lineDashOffset,0),o.lineJoin=Ne(N.lineJoin,"miter"),o.lineWidth=O,o.strokeStyle=Ne(N.strokeStyle,a),o.setLineDash(Ne(N.lineDash,[])),s.usePointStyle){const E={radius:p*Math.SQRT2/2,pointStyle:N.pointStyle,rotation:N.rotation,borderWidth:O},z=l.xPlus(C,g/2),T=M+f;Fg(o,E,z,T,s.pointStyleWidth&&g)}else{const E=M+Math.max((u-p)/2,0),z=l.leftForLtr(C,g),T=Ti(N.borderRadius);o.beginPath(),Object.values(T).some(P=>P!==0)?Cd(o,{x:z,y:E,w:g,h:p,radius:T}):o.rect(z,E,g,p),o.fill(),O!==0&&o.stroke()}o.restore()},y=function(C,M,N){Sa(o,N.text,C,M+m/2,c,{strikethrough:N.hidden,textAlign:l.textAlign(N.textAlign)})},_=this.isHorizontal(),v=this._computeTitleHeight();_?h={x:qt(i,this.left+d,this.right-n[0]),y:this.top+d+v,line:0}:h={x:this.left+d,y:qt(i,this.top+v+d,this.bottom-r[0].height),line:0},qg(this.ctx,t.textDirection);const w=m+d;this.legendItems.forEach((C,M)=>{o.strokeStyle=C.fontColor,o.fillStyle=C.fontColor;const N=o.measureText(C.text).width,O=l.textAlign(C.textAlign||(C.textAlign=s.textAlign)),E=g+f+N;let z=h.x,T=h.y;l.setWidth(this.width),_?M>0&&z+E+d>this.right&&(T=h.y+=w,h.line++,z=h.x=qt(i,this.left+d,this.right-n[h.line])):M>0&&T+w>this.bottom&&(z=h.x=z+r[h.line].width+d,h.line++,T=h.y=qt(i,this.top+v+d,this.bottom-r[h.line].height));const P=l.x(z);if(x(P,T,C),z=lC(O,z+g+f,_?z+E:this.right,t.rtl),y(l.x(z),T,C),_)h.x+=E+d;else if(typeof C.text!="string"){const D=c.lineHeight;h.y+=Ip(C,D)+d}else h.y+=w}),Xg(this.ctx,t.textDirection)}drawTitle(){const t=this.options,r=t.title,n=It(r.font),o=hr(r.padding);if(!r.display)return;const i=To(t.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=qt(t.align,u,this.right-f);else{const g=this.columnSizes.reduce((p,m)=>Math.max(p,m.height),0);d=c+qt(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const h=qt(a,u,u+f);s.textAlign=i.textAlign(Ng(a)),s.textBaseline="middle",s.strokeStyle=r.color,s.fillStyle=r.color,s.font=n.string,Sa(s,r.text,h,d,n)}_computeTitleHeight(){const t=this.options.title,r=It(t.font),n=hr(t.padding);return t.display?r.lineHeight+n.height:0}_getLegendItemAt(t,r){let n,o,i;if(Oi(t,this.left,this.right)&&Oi(r,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(o=i[n],Oi(t,o.left,o.left+o.width)&&Oi(r,o.top,o.top+o.height))return this.legendItems[n]}return null}handleEvent(t){const r=this.options;if(!EE(t.type,r))return;const n=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const o=this._hoveredItem,i=kE(o,n);o&&!i&&je(r.onLeave,[t,o,this],this),this._hoveredItem=n,n&&!i&&je(r.onHover,[t,n,this],this)}else n&&je(r.onClick,[t,n,this],this)}}function _E(e,t,r,n,o){const i=CE(n,e,t,r),s=SE(o,n,t.lineHeight);return{itemWidth:i,itemHeight:s}}function CE(e,t,r,n){let o=e.text;return o&&typeof o!="string"&&(o=o.reduce((i,s)=>i.length>s.length?i:s)),t+r.size/2+n.measureText(o).width}function SE(e,t,r){let n=e;return typeof t.text!="string"&&(n=Ip(t,r)),n}function Ip(e,t){const r=e.text?e.text.length:0;return t*r}function EE(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var OE={id:"legend",_element:Pp,start(e,t,r){const n=e.legend=new Pp({ctx:e.ctx,options:r,chart:e});bn.configure(e,n,r),bn.addBox(e,n)},stop(e){bn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,r){const n=e.legend;bn.configure(e,n,r),n.options=r},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,r){const n=t.datasetIndex,o=r.chart;o.isDatasetVisible(n)?(o.hide(n),t.hidden=!0):(o.show(n),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:r,pointStyle:n,textAlign:o,color:i,useBorderRadius:s,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(r?0:void 0),d=hr(c.borderWidth);return{text:t[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:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};const $i={average(e){if(!e.length)return!1;let t,r,n=new Set,o=0,i=0;for(t=0,r=e.length;t<r;++t){const a=e[t].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(e,t){if(!e.length)return!1;let r=t.x,n=t.y,o=Number.POSITIVE_INFINITY,i,s,a;for(i=0,s=e.length;i<s;++i){const l=e[i].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),d=tC(t,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 Sr(e,t){return t&&(ht(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Zr(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
17
|
+
`)>-1?e.split(`
|
|
18
|
+
`):e}function NE(e,t){const{element:r,datasetIndex:n,index:o}=t,i=e.getDatasetMeta(n).controller,{label:s,value:a}=i.getLabelAndValue(o);return{chart:e,label:s,parsed:i.getParsed(o),raw:e.data.datasets[n].data[o],formattedValue:a,dataset:i.getDataset(),dataIndex:o,datasetIndex:n,element:r}}function Ap(e,t){const r=e.chart.ctx,{body:n,footer:o,title:i}=e,{boxWidth:s,boxHeight:a}=t,l=It(t.bodyFont),c=It(t.titleFont),d=It(t.footerFont),u=i.length,f=o.length,h=n.length,g=hr(t.padding);let p=g.height,m=0,x=n.reduce((v,w)=>v+w.before.length+w.lines.length+w.after.length,0);if(x+=e.beforeBody.length+e.afterBody.length,u&&(p+=u*c.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),x){const v=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;p+=h*v+(x-h)*l.lineHeight+(x-1)*t.bodySpacing}f&&(p+=t.footerMarginTop+f*d.lineHeight+(f-1)*t.footerSpacing);let y=0;const _=function(v){m=Math.max(m,r.measureText(v).width+y)};return r.save(),r.font=c.string,Me(e.title,_),r.font=l.string,Me(e.beforeBody.concat(e.afterBody),_),y=t.displayColors?s+2+t.boxPadding:0,Me(n,v=>{Me(v.before,_),Me(v.lines,_),Me(v.after,_)}),y=0,r.font=d.string,Me(e.footer,_),r.restore(),m+=g.width,{width:m,height:p}}function ME(e,t){const{y:r,height:n}=t;return r<n/2?"top":r>e.height-n/2?"bottom":"center"}function TE(e,t,r,n){const{x:o,width:i}=n,s=r.caretSize+r.caretPadding;if(e==="left"&&o+i+s>t.width||e==="right"&&o-i-s<0)return!0}function DE(e,t,r,n){const{x:o,width:i}=r,{width:s,chartArea:{left:a,right:l}}=e;let c="center";return n==="center"?c=o<=(a+l)/2?"left":"right":o<=i/2?c="left":o>=s-i/2&&(c="right"),TE(c,e,t,r)&&(c="center"),c}function Lp(e,t,r){const n=r.yAlign||t.yAlign||ME(e,r);return{xAlign:r.xAlign||t.xAlign||DE(e,t,r,n),yAlign:n}}function PE(e,t){let{x:r,width:n}=e;return t==="right"?r-=n:t==="center"&&(r-=n/2),r}function IE(e,t,r){let{y:n,height:o}=e;return t==="top"?n+=r:t==="bottom"?n-=o+r:n-=o/2,n}function zp(e,t,r,n){const{caretSize:o,caretPadding:i,cornerRadius:s}=e,{xAlign:a,yAlign:l}=r,c=o+i,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:h}=Ti(s);let g=PE(t,a);const p=IE(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(d,f)+o:a==="right"&&(g+=Math.max(u,h)+o),{x:rr(g,0,n.width-t.width),y:rr(p,0,n.height-t.height)}}function $a(e,t,r){const n=hr(r.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-n.right:e.x+n.left}function Fp(e){return Sr([],Zr(e))}function AE(e,t,r){return No(e,{tooltip:t,tooltipItems:r,type:"tooltip"})}function jp(e,t){const r=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return r?e.override(r):e}const Bp={beforeTitle:Xr,title(e){if(e.length>0){const t=e[0],r=t.chart.data.labels,n=r?r.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex<n)return r[t.dataIndex]}return""},afterTitle:Xr,beforeBody:Xr,beforeLabel:Xr,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const r=e.formattedValue;return kt(r)||(t+=r),t},labelColor(e){const r=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.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(e){const r=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:r.pointStyle,rotation:r.rotation}},afterLabel:Xr,afterBody:Xr,beforeFooter:Xr,footer:Xr,afterFooter:Xr};function At(e,t,r,n){const o=e[t].call(r,n);return typeof o>"u"?Bp[t].call(r,n):o}let Wp=(Qh=class extends ji{constructor(t){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=t.chart,this.options=t.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(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const r=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&r.options.animation&&n.animations,i=new Kg(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=AE(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,r){const{callbacks:n}=r,o=At(n,"beforeTitle",this,t),i=At(n,"title",this,t),s=At(n,"afterTitle",this,t);let a=[];return a=Sr(a,Zr(o)),a=Sr(a,Zr(i)),a=Sr(a,Zr(s)),a}getBeforeBody(t,r){return Fp(At(r.callbacks,"beforeBody",this,t))}getBody(t,r){const{callbacks:n}=r,o=[];return Me(t,i=>{const s={before:[],lines:[],after:[]},a=jp(n,i);Sr(s.before,Zr(At(a,"beforeLabel",this,i))),Sr(s.lines,At(a,"label",this,i)),Sr(s.after,Zr(At(a,"afterLabel",this,i))),o.push(s)}),o}getAfterBody(t,r){return Fp(At(r.callbacks,"afterBody",this,t))}getFooter(t,r){const{callbacks:n}=r,o=At(n,"beforeFooter",this,t),i=At(n,"footer",this,t),s=At(n,"afterFooter",this,t);let a=[];return a=Sr(a,Zr(o)),a=Sr(a,Zr(i)),a=Sr(a,Zr(s)),a}_createItems(t){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(NE(this.chart,r[l]));return t.filter&&(a=a.filter((d,u,f)=>t.filter(d,u,f,n))),t.itemSort&&(a=a.sort((d,u)=>t.itemSort(d,u,n))),Me(a,d=>{const u=jp(t.callbacks,d);o.push(At(u,"labelColor",this,d)),i.push(At(u,"labelPointStyle",this,d)),s.push(At(u,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=a,a}update(t,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=$i[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=Ap(this,n),c=Object.assign({},a,l),d=Lp(this.chart,n,c),u=zp(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),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:r})}drawCaret(t,r,n,o){const i=this.getCaretPosition(t,n,o);r.lineTo(i.x1,i.y1),r.lineTo(i.x2,i.y2),r.lineTo(i.x3,i.y3)}getCaretPosition(t,r,n){const{xAlign:o,yAlign:i}=this,{caretSize:s,cornerRadius:a}=n,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:u}=Ti(a),{x:f,y:h}=t,{width:g,height:p}=r;let m,x,y,_,v,w;return i==="center"?(v=h+p/2,o==="left"?(m=f,x=m-s,_=v+s,w=v-s):(m=f+g,x=m+s,_=v-s,w=v+s),y=m):(o==="left"?x=f+Math.max(l,d)+s:o==="right"?x=f+g-Math.max(c,u)-s:x=this.caretX,i==="top"?(_=h,v=_-s,m=x-s,y=x+s):(_=h+p,v=_+s,m=x+s,y=x-s),w=_),{x1:m,x2:x,x3:y,y1:_,y2:v,y3:w}}drawTitle(t,r,n){const o=this.title,i=o.length;let s,a,l;if(i){const c=To(n.rtl,this.x,this.width);for(t.x=$a(this,n.titleAlign,n),r.textAlign=c.textAlign(n.titleAlign),r.textBaseline="middle",s=It(n.titleFont),a=n.titleSpacing,r.fillStyle=n.titleColor,r.font=s.string,l=0;l<i;++l)r.fillText(o[l],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+a,l+1===i&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,r,n,o,i){const s=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:l,boxWidth:c}=i,d=It(i.bodyFont),u=$a(this,"left",i),f=o.x(u),h=l<d.lineHeight?(d.lineHeight-l)/2:0,g=r.y+h;if(i.usePointStyle){const p={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},m=o.leftForLtr(f,c)+c/2,x=g+l/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,zg(t,p,m,x),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,zg(t,p,m,x)}else{t.lineWidth=xe(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const p=o.leftForLtr(f,c),m=o.leftForLtr(o.xPlus(f,1),c-2),x=Ti(s.borderRadius);Object.values(x).some(y=>y!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Cd(t,{x:p,y:g,w:c,h:l,radius:x}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),Cd(t,{x:m,y:g+1,w:c-2,h:l-2,radius:x}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(p,g,c,l),t.strokeRect(p,g,c,l),t.fillStyle=s.backgroundColor,t.fillRect(m,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,r,n){const{body:o}=this,{bodySpacing:i,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:d}=n,u=It(n.bodyFont);let f=u.lineHeight,h=0;const g=To(n.rtl,this.x,this.width),p=function(N){r.fillText(N,g.x(t.x+h),t.y+f/2),t.y+=f+i},m=g.textAlign(s);let x,y,_,v,w,C,M;for(r.textAlign=s,r.textBaseline="middle",r.font=u.string,t.x=$a(this,m,n),r.fillStyle=n.bodyColor,Me(this.beforeBody,p),h=a&&m!=="right"?s==="center"?c/2+d:c+2+d:0,v=0,C=o.length;v<C;++v){for(x=o[v],y=this.labelTextColors[v],r.fillStyle=y,Me(x.before,p),_=x.lines,a&&_.length&&(this._drawColorBox(r,t,v,g,n),f=Math.max(u.lineHeight,l)),w=0,M=_.length;w<M;++w)p(_[w]),f=u.lineHeight;Me(x.after,p)}h=0,f=u.lineHeight,Me(this.afterBody,p),t.y-=i}drawFooter(t,r,n){const o=this.footer,i=o.length;let s,a;if(i){const l=To(n.rtl,this.x,this.width);for(t.x=$a(this,n.footerAlign,n),t.y+=n.footerMarginTop,r.textAlign=l.textAlign(n.footerAlign),r.textBaseline="middle",s=It(n.footerFont),r.fillStyle=n.footerColor,r.font=s.string,a=0;a<i;++a)r.fillText(o[a],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+n.footerSpacing}}drawBackground(t,r,n,o){const{xAlign:i,yAlign:s}=this,{x:a,y:l}=t,{width:c,height:d}=n,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:g}=Ti(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(t,r,n,o),r.lineTo(a+c-f,l),r.quadraticCurveTo(a+c,l,a+c,l+f),s==="center"&&i==="right"&&this.drawCaret(t,r,n,o),r.lineTo(a+c,l+d-g),r.quadraticCurveTo(a+c,l+d,a+c-g,l+d),s==="bottom"&&this.drawCaret(t,r,n,o),r.lineTo(a+h,l+d),r.quadraticCurveTo(a,l+d,a,l+d-h),s==="center"&&i==="left"&&this.drawCaret(t,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(t){const r=this.chart,n=this.$animations,o=n&&n.x,i=n&&n.y;if(o||i){const s=$i[t.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=Ap(this,t),l=Object.assign({},s,this._size),c=Lp(r,t,l),d=zp(t,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(t){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=hr(r.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;r.enabled&&a&&(t.save(),t.globalAlpha=n,this.drawBackground(i,t,o,r),qg(t,r.textDirection),i.y+=s.top,this.drawTitle(i,t,r),this.drawBody(i,t,r),this.drawFooter(i,t,r),Xg(t,r.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,r){const n=this._active,o=t.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=!ya(n,o),s=this._positionChanged(o,r);(i||s)&&(this._active=o,this._eventPosition=r,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,r,n=!0){if(r&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],s=this._getActiveElements(t,i,r,n),a=this._positionChanged(s,t),l=r||!ya(s,i)||a;return l&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,r))),l}_getActiveElements(t,r,n,o){const i=this.options;if(t.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(t,i.mode,i,n);return i.reverse&&s.reverse(),s}_positionChanged(t,r){const{caretX:n,caretY:o,options:i}=this,s=$i[i.position].call(this,t,r);return s!==!1&&(n!==s.x||o!==s.y)}},ge(Qh,"positioners",$i),Qh);var LE={id:"tooltip",_element:Wp,positioners:$i,afterInit(e,t,r){r&&(e.tooltip=new Wp({chart:e,options:r}))},beforeUpdate(e,t,r){e.tooltip&&e.tooltip.initialize(r)},reset(e,t,r){e.tooltip&&e.tooltip.initialize(r)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const r={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...r,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",r)}},afterEvent(e,t){if(e.tooltip){const r=t.replay;e.tooltip.handleEvent(t.event,r,t.inChartArea)&&(t.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:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.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:Bp},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Va={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}},Lt=Object.keys(Va);function Hp(e,t){return e-t}function $p(e,t){if(kt(t))return null;const r=e._adapter,{parser:n,round:o,isoWeekday:i}=e._parseOpts;let s=t;return typeof n=="function"&&(s=n(s)),Gr(s)||(s=typeof n=="string"?r.parse(s,n):r.parse(s)),s===null?null:(o&&(s=o==="week"&&(ka(i)||i===!0)?r.startOf(s,"isoWeek",i):r.startOf(s,o)),+s)}function Vp(e,t,r,n){const o=Lt.length;for(let i=Lt.indexOf(e);i<o-1;++i){const s=Va[Lt[i]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((r-t)/(a*s.size))<=n)return Lt[i]}return Lt[o-1]}function zE(e,t,r,n,o){for(let i=Lt.length-1;i>=Lt.indexOf(r);i--){const s=Lt[i];if(Va[s].common&&e._adapter.diff(o,n,s)>=t-1)return s}return Lt[r?Lt.indexOf(r):0]}function FE(e){for(let t=Lt.indexOf(e)+1,r=Lt.length;t<r;++t)if(Va[Lt[t]].common)return Lt[t]}function Yp(e,t,r){if(!r)e[t]=!0;else if(r.length){const{lo:n,hi:o}=md(r,t),i=r[n]>=t?r[n]:r[o];e[i]=!0}}function jE(e,t,r,n){const o=e._adapter,i=+o.startOf(t[0].value,n),s=t[t.length-1].value;let a,l;for(a=i;a<=s;a=+o.add(a,1,n))l=r[a],l>=0&&(t[l].major=!0);return t}function Up(e,t,r){const n=[],o={},i=t.length;let s,a;for(s=0;s<i;++s)a=t[s],o[a]=s,n.push({value:a,major:!1});return i===0||!r?n:jE(e,n,o,r)}class Ya extends La{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,r={}){const n=t.time||(t.time={}),o=this._adapter=new aS._date(t.adapters.date);o.init(r),Si(n.displayFormats,o.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=r.normalized}parse(t,r){return t===void 0?null:$p(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,r=this._adapter,n=t.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()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),o=Gr(o)&&!isNaN(o)?o:+r.startOf(Date.now(),n),i=Gr(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 t=this.getLabelTimestamps();let r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(r=t[0],n=t[t.length-1]),{min:r,max:n}}buildTicks(){const t=this.options,r=t.time,n=t.ticks,o=n.source==="labels"?this.getLabelTimestamps():this._generate();t.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=oC(o,i,s);return this._unit=r.unit||(n.autoSkip?Vp(r.minUnit,this.min,this.max,this._getLabelCapacity(i)):zE(this,a.length,r.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:FE(this._unit),this.initOffsets(o),t.reverse&&a.reverse(),Up(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let r=0,n=0,o,i;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?r=1-o:r=(this.getDecimalForValue(t[1])-o)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?n=i:n=(i-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;r=rr(r,0,s),n=rr(n,0,s),this._offsets={start:r,end:n,factor:1/(r+1+n)}}_generate(){const t=this._adapter,r=this.min,n=this.max,o=this.options,i=o.time,s=i.unit||Vp(i.minUnit,r,n,this._getLabelCapacity(r)),a=Ne(o.ticks.stepSize,1),l=s==="week"?i.isoWeekday:!1,c=ka(l)||l===!0,d={};let u=r,f,h;if(c&&(u=+t.startOf(u,"isoWeek",l)),u=+t.startOf(u,c?"day":s),t.diff(n,r,s)>1e5*a)throw new Error(r+" and "+n+" are too far apart with stepSize of "+a+" "+s);const g=o.ticks.source==="data"&&this.getDataTimestamps();for(f=u,h=0;f<n;f=+t.add(f,a,s),h++)Yp(d,f,g);return(f===n||o.bounds==="ticks"||h===1)&&Yp(d,f,g),Object.keys(d).sort(Hp).map(p=>+p)}getLabelForValue(t){const r=this._adapter,n=this.options.time;return n.tooltipFormat?r.format(t,n.tooltipFormat):r.format(t,n.displayFormats.datetime)}format(t,r){const o=this.options.time.displayFormats,i=this._unit,s=r||o[i];return this._adapter.format(t,s)}_tickFormatFunction(t,r,n,o){const i=this.options,s=i.ticks.callback;if(s)return je(s,[t,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(t,o||(h?u:d))}generateTickLabels(t){let r,n,o;for(r=0,n=t.length;r<n;++r)o=t[r],o.label=this._tickFormatFunction(o.value,r,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const r=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((r.start+n)*r.factor)}getValueForPixel(t){const r=this._offsets,n=this.getDecimalForPixel(t)/r.factor-r.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const r=this.options.ticks,n=this.ctx.measureText(t).width,o=Bn(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(t){const r=this.options.time,n=r.displayFormats,o=n[r.unit]||n.millisecond,i=this._tickFormatFunction(t,0,Up(this,[t],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 t=this._cache.data||[],r,n;if(t.length)return t;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)t=t.concat(o[r].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let r,n;if(t.length)return t;const o=this.getLabels();for(r=0,n=o.length;r<n;++r)t.push($p(this,o[r]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return sC(t.sort(Hp))}}ge(Ya,"id","time"),ge(Ya,"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 Ua(e,t,r){let n=0,o=e.length-1,i,s,a,l;r?(t>=e[n].pos&&t<=e[o].pos&&({lo:n,hi:o}=yd(e,"pos",t)),{pos:i,time:a}=e[n],{pos:s,time:l}=e[o]):(t>=e[n].time&&t<=e[o].time&&({lo:n,hi:o}=yd(e,"time",t)),{time:i,pos:a}=e[n],{time:s,pos:l}=e[o]);const c=s-i;return c?a+(l-a)*(t-i)/c:a}class Rp extends Ya{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),r=this._table=this.buildLookupTable(t);this._minPos=Ua(r,this.min),this._tableRange=Ua(r,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:r,max:n}=this,o=[],i=[];let s,a,l,c,d;for(s=0,a=t.length;s<a;++s)c=t[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 t=this.min,r=this.max;let n=super.getDataTimestamps();return(!n.includes(t)||!n.length)&&n.splice(0,0,t),(!n.includes(r)||n.length===1)&&n.push(r),n.sort((o,i)=>o-i)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const r=this.getDataTimestamps(),n=this.getLabelTimestamps();return r.length&&n.length?t=this.normalize(r.concat(n)):t=r.length?r:n,t=this._cache.all=t,t}getDecimalForValue(t){return(Ua(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const r=this._offsets,n=this.getDecimalForPixel(t)/r.factor-r.end;return Ua(this._table,n*this._tableRange+this._minPos,!0)}}ge(Rp,"id","timeseries"),ge(Rp,"defaults",Ya.defaults);const qp="label";function Xp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function BE(e,t){const r=e.options;r&&t&&Object.assign(r,t)}function Gp(e,t){e.labels=t}function Kp(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qp;const n=[];e.datasets=t.map(o=>{const i=e.datasets.find(s=>s[r]===o[r]);return!i||!o.data||n.includes(i)?{...o}:(n.push(i),Object.assign(i,o),i)})}function WE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qp;const r={labels:[],datasets:[]};return Gp(r,e.labels),Kp(r,e.datasets,t),r}function HE(e,t){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}=e,h=k.useRef(null),g=k.useRef(null),p=()=>{h.current&&(g.current=new Wa(h.current,{type:s,data:WE(a,i),options:l&&{...l},plugins:c}),Xp(t,g.current))},m=()=>{Xp(t,null),g.current&&(g.current.destroy(),g.current=null)};return k.useEffect(()=>{!o&&g.current&&l&&BE(g.current,l)},[o,l]),k.useEffect(()=>{!o&&g.current&&Gp(g.current.config.data,a.labels)},[o,a.labels]),k.useEffect(()=>{!o&&g.current&&a.datasets&&Kp(g.current.config.data,a.datasets,i)},[o,a.datasets]),k.useEffect(()=>{g.current&&(o?(m(),setTimeout(p)):g.current.update(u))},[o,l,a.labels,a.datasets,u]),k.useEffect(()=>{g.current&&(m(),setTimeout(p))},[s]),k.useEffect(()=>(p(),()=>m()),[]),k.createElement("canvas",{ref:h,role:"img",height:r,width:n,...f},d)}const $E=k.forwardRef(HE);function VE(e,t){return Wa.register(t),k.forwardRef((r,n)=>k.createElement($E,{...r,ref:n,type:e}))}const YE=VE("doughnut",Ii);Wa.register(Hi,LE,OE);const UE=()=>{const e={labels:["Planeado","Ejecutado"],datasets:[{label:"Presupuesto",data:[14.7,11.6],backgroundColor:["#EBE1FF","#9873e8"],borderColor:["#EBE1F9","#9873e1"],borderWidth:1,circumference:180,rotation:-90}]},t={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:`${e.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=e.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 b.jsx("div",{className:"size-full min-h-[200px]",children:b.jsx(YE,{data:e,options:t,plugins:[r]})})},Wd={overlay:"modal-module__overlay__cc2Es",modal:"modal-module__modal__WAkuU",closeButton:"modal-module__closeButton__1lo1j"};function RE(e){return Ve({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:[]}]})(e)}function qE(e){return Ve({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:[]}]})(e)}const XE=k.forwardRef(({isOpen:e,onClose:t,children:r,width:n="auto"},o)=>e?b.jsx("div",{className:Wd.overlay,children:b.jsxs("div",{ref:o,className:Wd.modal,style:{width:n},children:[b.jsx("button",{onClick:t,className:Wd.closeButton,children:b.jsx(RE,{})}),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
|
|
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=Yb(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}(),Ve="-ms-",Eo="-moz-",se="-webkit-",Zi="comm",Ji="rule",Qi="decl",Kb="@import",uc="@keyframes",Gb=Math.abs,Oo=String.fromCharCode,Xb=Object.assign;function Zb(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 fc(t){return t.trim()}function Jb(t,e){return(t=e.exec(t))?t[0]:t}function ce(t,e,r){return t.replace(e,r)}function es(t,e){return t.indexOf(e)}function ze(t,e){return t.charCodeAt(e)|0}function bn(t,e,r){return t.slice(e,r)}function wt(t){return t.length}function ts(t){return t.length}function To(t,e){return e.push(t),t}function Qb(t,e){return t.map(e).join("")}var No=1,Er=1,hc=0,Ge=0,Ce=0,Or="";function Mo(t,e,r,n,o,i,s){return{value:t,root:e,parent:r,type:n,props:o,children:i,line:No,column:Er,length:s,return:""}}function mn(t,e){return Xb(Mo("",null,null,"",null,null,0),t,{length:-t.length},e)}function em(){return Ce}function tm(){return Ce=Ge>0?ze(Or,--Ge):0,Er--,Ce===10&&(Er=1,No--),Ce}function tt(){return Ce=Ge<hc?ze(Or,Ge++):0,Er++,Ce===10&&(Er=1,No++),Ce}function kt(){return ze(Or,Ge)}function Po(){return Ge}function yn(t,e){return bn(Or,t,e)}function vn(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 gc(t){return No=Er=1,hc=wt(Or=t),Ge=0,[]}function pc(t){return Or="",t}function Ao(t){return fc(yn(Ge-1,rs(t===91?t+2:t===40?t+1:t)))}function rm(t){for(;(Ce=kt())&&Ce<33;)tt();return vn(t)>2||vn(Ce)>3?"":" "}function nm(t,e){for(;--e&&tt()&&!(Ce<48||Ce>102||Ce>57&&Ce<65||Ce>70&&Ce<97););return yn(t,Po()+(e<6&&kt()==32&&tt()==32))}function rs(t){for(;tt();)switch(Ce){case t:return Ge;case 34:case 39:t!==34&&t!==39&&rs(Ce);break;case 40:t===41&&rs(t);break;case 92:tt();break}return Ge}function om(t,e){for(;tt()&&t+Ce!==57;)if(t+Ce===84&&kt()===47)break;return"/*"+yn(e,Ge-1)+"*"+Oo(t===47?t:tt())}function im(t){for(;!vn(kt());)tt();return yn(t,Ge)}function bc(t){return pc(Do("",null,null,null,[""],t=gc(t),0,[0],t))}function Do(t,e,r,n,o,i,s,a,l){for(var c=0,d=0,u=s,f=0,h=0,p=0,b=1,m=1,v=1,y=0,C="",x=o,w=i,_=n,O=C;m;)switch(p=y,y=tt()){case 40:if(p!=108&&ze(O,u-1)==58){es(O+=ce(Ao(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=Ao(y);break;case 9:case 10:case 13:case 32:O+=rm(p);break;case 92:O+=nm(Po()-1,7);continue;case 47:switch(kt()){case 42:case 47:To(sm(om(tt(),Po()),e,r),l);break;default:O+="/"}break;case 123*b:a[c++]=wt(O)*v;case 125*b:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+d:h>0&&wt(O)-u&&To(h>32?yc(O+";",n,r,u-1):yc(ce(O," ","")+";",n,r,u-2),l);break;case 59:O+=";";default:if(To(_=mc(O,e,r,c,d,o,a,C,x=[],w=[],u),i),y===123)if(d===0)Do(O,e,_,_,x,i,u,a,w);else switch(f===99&&ze(O,3)===110?100:f){case 100:case 109:case 115:Do(t,_,_,n&&To(mc(t,_,_,0,0,o,a,C,o,x=[],u),w),o,w,u,a,n?x:w);break;default:Do(O,_,_,_,[""],w,0,a,w)}}c=d=h=0,b=v=1,C=O="",u=s;break;case 58:u=1+wt(O),h=p;default:if(b<1){if(y==123)--b;else if(y==125&&b++==0&&tm()==125)continue}switch(O+=Oo(y),y*b){case 38:v=d>0?1:(O+="\f",-1);break;case 44:a[c++]=(wt(O)-1)*v,v=1;break;case 64:kt()===45&&(O+=Ao(tt())),f=kt(),d=u=wt(C=O+=im(Po())),y++;break;case 45:p===45&&wt(O)==2&&(b=0)}}return i}function mc(t,e,r,n,o,i,s,a,l,c,d){for(var u=o-1,f=o===0?i:[""],h=ts(f),p=0,b=0,m=0;p<n;++p)for(var v=0,y=bn(t,u+1,u=Gb(b=s[p])),C=t;v<h;++v)(C=fc(b>0?f[v]+" "+y:ce(y,/&\f/g,f[v])))&&(l[m++]=C);return Mo(t,e,r,o===0?Ji:a,l,c,d)}function sm(t,e,r){return Mo(t,e,r,Zi,Oo(em()),bn(t,2,-2),0)}function yc(t,e,r,n){return Mo(t,e,r,Qi,bn(t,0,n),bn(t,n+1,-1),n)}function lr(t,e){for(var r="",n=ts(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function vc(t,e,r,n){switch(t.type){case Kb:case Qi:return t.return=t.return||t.value;case Zi:return"";case uc:return t.return=t.value+"{"+lr(t.children,n)+"}";case Ji:t.value=t.props.join(",")}return wt(r=lr(t.children,n))?t.return=t.value+"{"+r+"}":""}function xc(t){var e=ts(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 am(t){return function(e){e.root||(e=e.return)&&t(e)}}var lm=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}},cm=function(e,r,n){for(var o=0,i=0;o=i,i=kt(),o===38&&i===12&&(r[n]=1),!vn(i);)tt();return yn(e,Ge)},dm=function(e,r){var n=-1,o=44;do switch(vn(o)){case 0:o===38&&kt()===12&&(r[n]=1),e[n]+=cm(Ge-1,r,n);break;case 2:e[n]+=Ao(o);break;case 4:if(o===44){e[++n]=kt()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Oo(o)}while(o=tt());return e},um=function(e,r){return pc(dm(gc(e),r))},wc=new WeakMap,fm=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&&!wc.get(n))&&!o){wc.set(e,!0);for(var i=[],s=um(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]}}},hm=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}},gm="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",pm=function(e){return e.type==="comm"&&e.children.indexOf(gm)>-1},bm=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(pm(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".')})}}}},kc=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},mm=function(e,r){for(var n=e-1;n>=0;n--)if(!kc(r[n]))return!0;return!1},_c=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},ym=function(e,r,n){kc(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."),_c(e)):mm(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),_c(e)))};function Cc(t,e){switch(Zb(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+Eo+t+Ve+t+t;case 6828:case 4268:return se+t+Ve+t+t;case 6165:return se+t+Ve+"flex-"+t+t;case 5187:return se+t+ce(t,/(\w+).+(:[^]+)/,se+"box-$1$2"+Ve+"flex-$1$2")+t;case 5443:return se+t+Ve+"flex-item-"+ce(t,/flex-|-self/,"")+t;case 4675:return se+t+Ve+"flex-line-pack"+ce(t,/align-content|flex-|-self/,"")+t;case 5548:return se+t+Ve+ce(t,"shrink","negative")+t;case 5292:return se+t+Ve+ce(t,"basis","preferred-size")+t;case 6060:return se+"box-"+ce(t,"-grow","")+se+t+Ve+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"+Ve+"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(wt(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"+Eo+(ze(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~es(t,"stretch")?Cc(ce(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(ze(t,e+1)!==115)break;case 6444:switch(ze(t,wt(t)-3-(~es(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"+Ve+"$2box$3")+t}break;case 5936:switch(ze(t,e+11)){case 114:return se+t+Ve+ce(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return se+t+Ve+ce(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return se+t+Ve+ce(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return se+t+Ve+t+t}return t}var vm=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case Qi:e.return=Cc(e.value,e.length);break;case uc:return lr([mn(e,{value:ce(e.value,"@","@"+se)})],o);case Ji:if(e.length)return Qb(e.props,function(i){switch(Jb(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return lr([mn(e,{props:[ce(i,/:(read-\w+)/,":"+Eo+"$1")]})],o);case"::placeholder":return lr([mn(e,{props:[ce(i,/:(plac\w+)/,":"+se+"input-$1")]}),mn(e,{props:[ce(i,/:(plac\w+)/,":"+Eo+"$1")]}),mn(e,{props:[ce(i,/:(plac\w+)/,Ve+"input-$1")]})],o)}return""})}},Io=typeof document<"u",xm=Io?void 0:lm(function(){return So(function(){var t={};return function(e){return t[e]}})}),wm=[vm],Sc=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(
|
|
31
|
+
***************************************************************************** */var Xt=function(){return Xt=Object.assign||function(t){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)&&(t[i]=r[i])}return t},Xt.apply(this,arguments)};function Rn(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function _t(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Hd(){return Hd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hd.apply(this,arguments)}function Ra(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var GE=/^((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)-.*))$/,KE=Ra(function(e){return GE.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function ZE(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function QE(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var JE=function(){function e(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 t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(QE(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=ZE(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++},t.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)},e}(),Ct="-ms-",qa="-moz-",ke="-webkit-",$d="comm",Vd="rule",Yd="decl",eO="@import",Zp="@keyframes",tO=Math.abs,Xa=String.fromCharCode,rO=Object.assign;function nO(e,t){return gt(e,0)^45?(((t<<2^gt(e,0))<<2^gt(e,1))<<2^gt(e,2))<<2^gt(e,3):0}function Qp(e){return e.trim()}function oO(e,t){return(e=t.exec(e))?e[0]:e}function Ee(e,t,r){return e.replace(t,r)}function Ud(e,t){return e.indexOf(t)}function gt(e,t){return e.charCodeAt(t)|0}function Vi(e,t,r){return e.slice(t,r)}function Er(e){return e.length}function Rd(e){return e.length}function Ga(e,t){return t.push(e),e}function iO(e,t){return e.map(t).join("")}var Ka=1,Po=1,Jp=0,zt=0,Qe=0,Io="";function Za(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Ka,column:Po,length:s,return:""}}function Yi(e,t){return rO(Za("",null,null,"",null,null,0),e,{length:-e.length},t)}function sO(){return Qe}function aO(){return Qe=zt>0?gt(Io,--zt):0,Po--,Qe===10&&(Po=1,Ka--),Qe}function Gt(){return Qe=zt<Jp?gt(Io,zt++):0,Po++,Qe===10&&(Po=1,Ka++),Qe}function Or(){return gt(Io,zt)}function Qa(){return zt}function Ui(e,t){return Vi(Io,e,t)}function Ri(e){switch(e){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 e0(e){return Ka=Po=1,Jp=Er(Io=e),zt=0,[]}function t0(e){return Io="",e}function Ja(e){return Qp(Ui(zt-1,qd(e===91?e+2:e===40?e+1:e)))}function lO(e){for(;(Qe=Or())&&Qe<33;)Gt();return Ri(e)>2||Ri(Qe)>3?"":" "}function cO(e,t){for(;--t&&Gt()&&!(Qe<48||Qe>102||Qe>57&&Qe<65||Qe>70&&Qe<97););return Ui(e,Qa()+(t<6&&Or()==32&&Gt()==32))}function qd(e){for(;Gt();)switch(Qe){case e:return zt;case 34:case 39:e!==34&&e!==39&&qd(Qe);break;case 40:e===41&&qd(e);break;case 92:Gt();break}return zt}function dO(e,t){for(;Gt()&&e+Qe!==57;)if(e+Qe===84&&Or()===47)break;return"/*"+Ui(t,zt-1)+"*"+Xa(e===47?e:Gt())}function uO(e){for(;!Ri(Or());)Gt();return Ui(e,zt)}function r0(e){return t0(el("",null,null,null,[""],e=e0(e),0,[0],e))}function el(e,t,r,n,o,i,s,a,l){for(var c=0,d=0,u=s,f=0,h=0,g=0,p=1,m=1,x=1,y=0,_="",v=o,w=i,C=n,M=_;m;)switch(g=y,y=Gt()){case 40:if(g!=108&>(M,u-1)==58){Ud(M+=Ee(Ja(y),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:M+=Ja(y);break;case 9:case 10:case 13:case 32:M+=lO(g);break;case 92:M+=cO(Qa()-1,7);continue;case 47:switch(Or()){case 42:case 47:Ga(fO(dO(Gt(),Qa()),t,r),l);break;default:M+="/"}break;case 123*p:a[c++]=Er(M)*x;case 125*p:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+d:h>0&&Er(M)-u&&Ga(h>32?o0(M+";",n,r,u-1):o0(Ee(M," ","")+";",n,r,u-2),l);break;case 59:M+=";";default:if(Ga(C=n0(M,t,r,c,d,o,a,_,v=[],w=[],u),i),y===123)if(d===0)el(M,t,C,C,v,i,u,a,w);else switch(f===99&>(M,3)===110?100:f){case 100:case 109:case 115:el(e,C,C,n&&Ga(n0(e,C,C,0,0,o,a,_,o,v=[],u),w),o,w,u,a,n?v:w);break;default:el(M,C,C,C,[""],w,0,a,w)}}c=d=h=0,p=x=1,_=M="",u=s;break;case 58:u=1+Er(M),h=g;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&aO()==125)continue}switch(M+=Xa(y),y*p){case 38:x=d>0?1:(M+="\f",-1);break;case 44:a[c++]=(Er(M)-1)*x,x=1;break;case 64:Or()===45&&(M+=Ja(Gt())),f=Or(),d=u=Er(_=M+=uO(Qa())),y++;break;case 45:g===45&&Er(M)==2&&(p=0)}}return i}function n0(e,t,r,n,o,i,s,a,l,c,d){for(var u=o-1,f=o===0?i:[""],h=Rd(f),g=0,p=0,m=0;g<n;++g)for(var x=0,y=Vi(e,u+1,u=tO(p=s[g])),_=e;x<h;++x)(_=Qp(p>0?f[x]+" "+y:Ee(y,/&\f/g,f[x])))&&(l[m++]=_);return Za(e,t,r,o===0?Vd:a,l,c,d)}function fO(e,t,r){return Za(e,t,r,$d,Xa(sO()),Vi(e,2,-2),0)}function o0(e,t,r,n){return Za(e,t,r,Yd,Vi(e,0,n),Vi(e,n+1,-1),n)}function qn(e,t){for(var r="",n=Rd(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function i0(e,t,r,n){switch(e.type){case eO:case Yd:return e.return=e.return||e.value;case $d:return"";case Zp:return e.return=e.value+"{"+qn(e.children,n)+"}";case Vd:e.value=e.props.join(",")}return Er(r=qn(e.children,n))?e.return=e.value+"{"+r+"}":""}function s0(e){var t=Rd(e);return function(r,n,o,i){for(var s="",a=0;a<t;a++)s+=e[a](r,n,o,i)||"";return s}}function hO(e){return function(t){t.root||(t=t.return)&&e(t)}}var gO=function(t){var r=new WeakMap;return function(n){if(r.has(n))return r.get(n);var o=t(n);return r.set(n,o),o}},pO=function(t,r,n){for(var o=0,i=0;o=i,i=Or(),o===38&&i===12&&(r[n]=1),!Ri(i);)Gt();return Ui(t,zt)},bO=function(t,r){var n=-1,o=44;do switch(Ri(o)){case 0:o===38&&Or()===12&&(r[n]=1),t[n]+=pO(zt-1,r,n);break;case 2:t[n]+=Ja(o);break;case 4:if(o===44){t[++n]=Or()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Xa(o)}while(o=Gt());return t},mO=function(t,r){return t0(bO(e0(t),r))},a0=new WeakMap,yO=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!a0.get(n))&&!o){a0.set(t,!0);for(var i=[],s=mO(r,i),a=n.props,l=0,c=0;l<s.length;l++)for(var d=0;d<a.length;d++,c++)t.props[c]=i[l]?s[l].replace(/&\f/g,a[d]):a[d]+" "+s[l]}}},vO=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},xO="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",wO=function(t){return t.type==="comm"&&t.children.indexOf(xO)>-1},kO=function(t){return function(r,n,o){if(!(r.type!=="rule"||t.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(wO(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".')})}}}},l0=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},_O=function(t,r){for(var n=t-1;n>=0;n--)if(!l0(r[n]))return!0;return!1},c0=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},CO=function(t,r,n){l0(t)&&(t.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."),c0(t)):_O(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),c0(t)))};function d0(e,t){switch(nO(e,t)){case 5103:return ke+"print-"+e+e;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 ke+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ke+e+qa+e+Ct+e+e;case 6828:case 4268:return ke+e+Ct+e+e;case 6165:return ke+e+Ct+"flex-"+e+e;case 5187:return ke+e+Ee(e,/(\w+).+(:[^]+)/,ke+"box-$1$2"+Ct+"flex-$1$2")+e;case 5443:return ke+e+Ct+"flex-item-"+Ee(e,/flex-|-self/,"")+e;case 4675:return ke+e+Ct+"flex-line-pack"+Ee(e,/align-content|flex-|-self/,"")+e;case 5548:return ke+e+Ct+Ee(e,"shrink","negative")+e;case 5292:return ke+e+Ct+Ee(e,"basis","preferred-size")+e;case 6060:return ke+"box-"+Ee(e,"-grow","")+ke+e+Ct+Ee(e,"grow","positive")+e;case 4554:return ke+Ee(e,/([^-])(transform)/g,"$1"+ke+"$2")+e;case 6187:return Ee(Ee(Ee(e,/(zoom-|grab)/,ke+"$1"),/(image-set)/,ke+"$1"),e,"")+e;case 5495:case 3959:return Ee(e,/(image-set\([^]*)/,ke+"$1$`$1");case 4968:return Ee(Ee(e,/(.+:)(flex-)?(.*)/,ke+"box-pack:$3"+Ct+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ke+e+e;case 4095:case 3583:case 4068:case 2532:return Ee(e,/(.+)-inline(.+)/,ke+"$1$2")+e;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(Er(e)-1-t>6)switch(gt(e,t+1)){case 109:if(gt(e,t+4)!==45)break;case 102:return Ee(e,/(.+:)(.+)-([^]+)/,"$1"+ke+"$2-$3$1"+qa+(gt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ud(e,"stretch")?d0(Ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(gt(e,t+1)!==115)break;case 6444:switch(gt(e,Er(e)-3-(~Ud(e,"!important")&&10))){case 107:return Ee(e,":",":"+ke)+e;case 101:return Ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ke+(gt(e,14)===45?"inline-":"")+"box$3$1"+ke+"$2$3$1"+Ct+"$2box$3")+e}break;case 5936:switch(gt(e,t+11)){case 114:return ke+e+Ct+Ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ke+e+Ct+Ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ke+e+Ct+Ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ke+e+Ct+e+e}return e}var SO=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Yd:t.return=d0(t.value,t.length);break;case Zp:return qn([Yi(t,{value:Ee(t.value,"@","@"+ke)})],o);case Vd:if(t.length)return iO(t.props,function(i){switch(oO(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qn([Yi(t,{props:[Ee(i,/:(read-\w+)/,":"+qa+"$1")]})],o);case"::placeholder":return qn([Yi(t,{props:[Ee(i,/:(plac\w+)/,":"+ke+"input-$1")]}),Yi(t,{props:[Ee(i,/:(plac\w+)/,":"+qa+"$1")]}),Yi(t,{props:[Ee(i,/:(plac\w+)/,Ct+"input-$1")]})],o)}return""})}},tl=typeof document<"u",EO=tl?void 0:gO(function(){return Ra(function(){var e={};return function(t){return e[t]}})}),OO=[SO],u0=function(t){var r=t.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(tl&&r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var w=v.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||OO;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=[];tl&&(s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var w=v.getAttribute("data-emotion").split(" "),C=1;C<w.length;C++)i[w[C]]=!0;a.push(v)}));var l,c=[yO,vO];if(process.env.NODE_ENV!=="production"&&c.push(kO({get compat(){return _.compat}}),CO),tl){var d,u=[i0,process.env.NODE_ENV!=="production"?function(v){v.root||(v.return?d.insert(v.return):v.value&&v.type!==$d&&d.insert(v.value+"{}"))}:hO(function(v){d.insert(v)})],f=s0(c.concat(o,u)),h=function(w){return qn(r0(w),f)};l=function(w,C,M,N){d=M,process.env.NODE_ENV!=="production"&&C.map!==void 0&&(d={insert:function(E){M.insert(E+C.map)}}),h(w?w+"{"+C.styles+"}":C.styles),N&&(_.inserted[C.name]=!0)}}else{var g=[i0],p=s0(c.concat(o,g)),m=function(w){return qn(r0(w),p)},x=EO(o)(r),y=function(w,C){var M=C.name;return x[M]===void 0&&(x[M]=m(w?w+"{"+C.styles+"}":C.styles)),x[M]};l=function(w,C,M,N){var O=C.name,E=y(w,C);if(_.compat===void 0)return N&&(_.inserted[O]=!0),process.env.NODE_ENV==="development"&&C.map!==void 0?E+C.map:E;if(N)_.inserted[O]=E;else return E}}var _={key:r,sheet:new JE({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return _.sheet.hydrate(a),_},Xd=typeof document<"u";function NO(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):n+=o+" "}),n}var f0=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Xd===!1&&t.compat!==void 0)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},MO=function(t,r,n){f0(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i="",s=r;do{var a=t.insert(r===s?"."+o:"",s,t.sheet,!0);!Xd&&a!==void 0&&(i+=a),s=s.next}while(s!==void 0);if(!Xd&&i.length!==0)return i}};function TO(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var DO={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},h0=`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`,
|
|
36
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,PO="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",IO=/[A-Z]|^ms/g,g0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Gd=function(t){return t.charCodeAt(1)===45},p0=function(t){return t!=null&&typeof t!="boolean"},Kd=Ra(function(e){return Gd(e)?e:e.replace(IO,"-$&").toLowerCase()}),rl=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(g0,function(n,o,i){return gr={name:o,styles:i,next:gr},o})}return DO[t]!==1&&!Gd(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var AO=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,LO=["normal","none","initial","inherit","unset"],zO=rl,FO=/^-ms-/,jO=/-(.)/g,b0={};rl=function(t,r){if(t==="content"&&(typeof r!="string"||LO.indexOf(r)===-1&&!AO.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=zO(t,r);return n!==""&&!Gd(t)&&t.indexOf("-")!==-1&&b0[t]===void 0&&(b0[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(FO,"ms-").replace(jO,function(o,i){return i.toUpperCase()})+"?")),n}}var m0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function qi(e,t,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(m0);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return gr={name:r.name,styles:r.styles,next:gr},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)gr={name:n.name,styles:n.styles,next:gr},n=n.next;var o=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(o+=r.map),o}return BO(e,t,r)}case"function":{if(e!==void 0){var i=gr,s=r(e);return gr=i,qi(e,t,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(g0,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
|
|
41
|
+
`+("css`"+l+"`"))}break}return r}function BO(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=qi(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")p0(s)&&(n+=Kd(i)+":"+rl(i,s)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(m0);if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var a=0;a<s.length;a++)p0(s[a])&&(n+=Kd(i)+":"+rl(i,s[a])+";");else{var l=qi(e,t,s);switch(i){case"animation":case"animationName":{n+=Kd(i)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(PO),n+=i+"{"+l+"}"}}}}return n}var y0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,v0;process.env.NODE_ENV!=="production"&&(v0=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var gr,x0=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";gr=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=qi(n,r,s)):(process.env.NODE_ENV!=="production"&&s[0]===void 0&&console.error(h0),i+=s[0]);for(var a=1;a<t.length;a++)i+=qi(n,r,t[a]),o&&(process.env.NODE_ENV!=="production"&&s[a]===void 0&&console.error(h0),i+=s[a]);var l;process.env.NODE_ENV!=="production"&&(i=i.replace(v0,function(f){return l=f,""})),y0.lastIndex=0;for(var c="",d;(d=y0.exec(i))!==null;)c+="-"+d[1];var u=TO(i)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:i,map:l,next:gr,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:gr}},WO=typeof document<"u",w0=function(t){return t()},HO=I.useInsertionEffect?I.useInsertionEffect:!1,k0=WO&&HO||w0,_0=typeof document<"u",$O={}.hasOwnProperty,Xi=k.createContext(typeof HTMLElement<"u"?u0({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Xi.displayName="EmotionCacheContext"),Xi.Provider;var Zd=function(t){return k.forwardRef(function(r,n){var o=k.useContext(Xi);return t(r,o,n)})};_0||(Zd=function(t){return function(r){var n=k.useContext(Xi);return n===null?(n=u0({key:"css"}),k.createElement(Xi.Provider,{value:n},t(r,n))):t(r,n)}});var Qd=k.createContext({});process.env.NODE_ENV!=="production"&&(Qd.displayName="EmotionThemeContext");var C0="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",S0="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",VO=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;f0(r,n,o);var i=k0(function(){return MO(r,n,o)});if(!_0&&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},YO=Zd(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[C0],i=[n],s="";typeof e.className=="string"?s=NO(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var a=x0(i,void 0,k.useContext(Qd));if(process.env.NODE_ENV!=="production"&&a.name.indexOf("-")===-1){var l=e[S0];l&&(a=x0([a,"label:"+l+";"]))}s+=t.key+"-"+a.name;var c={};for(var d in e)$O.call(e,d)&&d!=="css"&&d!==C0&&(process.env.NODE_ENV==="production"||d!==S0)&&(c[d]=e[d]);return c.ref=r,c.className=s,k.createElement(k.Fragment,null,k.createElement(VO,{cache:t,serialized:a,isStringTag:typeof o=="string"}),k.createElement(o,c))});process.env.NODE_ENV!=="production"&&(YO.displayName="EmotionCssPropInternal");var Jd=typeof document<"u";function UO(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):n+=o+" "}),n}var E0=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Jd===!1&&t.compat!==void 0)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},RO=function(t,r,n){E0(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i="",s=r;do{var a=t.insert(r===s?"."+o:"",s,t.sheet,!0);!Jd&&a!==void 0&&(i+=a),s=s.next}while(s!==void 0);if(!Jd&&i.length!==0)return i}};function qO(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var XO={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},O0=`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`,
|
|
44
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,GO="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",KO=/[A-Z]|^ms/g,N0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,eu=function(t){return t.charCodeAt(1)===45},M0=function(t){return t!=null&&typeof t!="boolean"},tu=Ra(function(e){return eu(e)?e:e.replace(KO,"-$&").toLowerCase()}),nl=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(N0,function(n,o,i){return pr={name:o,styles:i,next:pr},o})}return XO[t]!==1&&!eu(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var ZO=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,QO=["normal","none","initial","inherit","unset"],JO=nl,eN=/^-ms-/,tN=/-(.)/g,T0={};nl=function(t,r){if(t==="content"&&(typeof r!="string"||QO.indexOf(r)===-1&&!ZO.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=JO(t,r);return n!==""&&!eu(t)&&t.indexOf("-")!==-1&&T0[t]===void 0&&(T0[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(eN,"ms-").replace(tN,function(o,i){return i.toUpperCase()})+"?")),n}}var D0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Gi(e,t,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(D0);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return pr={name:r.name,styles:r.styles,next:pr},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)pr={name:n.name,styles:n.styles,next:pr},n=n.next;var o=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(o+=r.map),o}return rN(e,t,r)}case"function":{if(e!==void 0){var i=pr,s=r(e);return pr=i,Gi(e,t,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(N0,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(
|
|
49
|
+
`+("css`"+l+"`"))}break}if(t==null)return r;var c=t[r];return c!==void 0?c:r}function rN(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Gi(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":M0(s)&&(n+=tu(i)+":"+nl(i,s)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(D0);if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)M0(s[a])&&(n+=tu(i)+":"+nl(i,s[a])+";");else{var l=Gi(e,t,s);switch(i){case"animation":case"animationName":{n+=tu(i)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(GO),n+=i+"{"+l+"}"}}}}return n}var P0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,I0;process.env.NODE_ENV!=="production"&&(I0=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var pr,nN=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";pr=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=Gi(n,r,s)):(process.env.NODE_ENV!=="production"&&s[0]===void 0&&console.error(O0),i+=s[0]);for(var a=1;a<t.length;a++)i+=Gi(n,r,t[a]),o&&(process.env.NODE_ENV!=="production"&&s[a]===void 0&&console.error(O0),i+=s[a]);var l;process.env.NODE_ENV!=="production"&&(i=i.replace(I0,function(f){return l=f,""})),P0.lastIndex=0;for(var c="",d;(d=P0.exec(i))!==null;)c+="-"+d[1];var u=qO(i)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:i,map:l,next:pr,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:pr}},oN=KE,iN=function(t){return t!=="theme"},A0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?oN:iN},L0=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},z0=`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`,
|
|
53
|
-
You may have forgotten to import it.`);var n=
|
|
52
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,sN=typeof document<"u",aN=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;E0(r,n,o);var i=k0(function(){return RO(r,n,o)});if(!sN&&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},lN=function e(t,r){if(process.env.NODE_ENV!=="production"&&t===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=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var a=L0(t,r,n),l=a||A0(o),c=!l("as");return function(){var d=arguments,u=n&&t.__emotion_styles!==void 0?t.__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(z0),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(z0),u.push(d[h],d[0][h])}var g=Zd(function(p,m,x){var y=c&&p.as||o,_="",v=[],w=p;if(p.theme==null){w={};for(var C in p)w[C]=p[C];w.theme=k.useContext(Qd)}typeof p.className=="string"?_=UO(m.registered,v,p.className):p.className!=null&&(_=p.className+" ");var M=nN(u.concat(v),m.registered,w);_+=m.key+"-"+M.name,s!==void 0&&(_+=" "+s);var N=c&&a===void 0?A0(y):l,O={};for(var E in p)c&&E==="as"||N(E)&&(O[E]=p[E]);return O.className=_,O.ref=x,k.createElement(k.Fragment,null,k.createElement(aN,{cache:m,serialized:M,isStringTag:typeof y=="string"}),k.createElement(y,O))});return g.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=u,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return s===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+s}}),g.withComponent=function(p,m){return e(p,Hd({},r,m,{shouldForwardProp:L0(g,m,!0)})).apply(void 0,u)},g}},cN=["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"],dt=lN.bind();cN.forEach(function(e){dt[e]=dt(e)});var F0={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(
|
|
57
|
+
*/(function(e){(function(){var t={}.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)t.call(i,l)&&i[l]&&n.push(l)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(F0);var ot=F0.exports,dN=k.createContext(void 0),uN=function(){var e=k.useContext(dN);return e},fN=function(e){var t=k.useState(!!e&&typeof window<"u"&&window.matchMedia(e).matches),r=t[0],n=t[1];return k.useEffect(function(){if(e){var o=window.matchMedia(e),i=function(){o.matches!==r&&n(o.matches)};return i(),o.addEventListener("change",i),function(){return o.removeEventListener("change",i)}}},[r,e]),r},qe={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"},_e={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"},hN=dt.div(j0||(j0=_t([`
|
|
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
|
-
`]))),
|
|
73
|
+
`]))),j0,gN={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",always:"always",all:"all"},pN=dt.aside(B0||(B0=_t([`
|
|
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(
|
|
181
|
+
`])),function(e){var t=e.transitionDuration;return"width, left, right, ".concat(t,"ms")},function(e){var t=e.width;return t},function(e){var t=e.width;return t},qe.collapsed,function(e){var t=e.collapsedWidth;return t},function(e){var t=e.collapsedWidth;return t},qe.rtl,qe.broken,function(e){var t=e.rtl,r=e.width;return t?"":"left: -".concat(r,";")},qe.collapsed,function(e){var t=e.rtl,r=e.collapsedWidth;return t?"":"left: -".concat(r,"; ")},qe.toggled,function(e){var t=e.rtl;return t?"":"left: 0;"},qe.rtl,function(e){var t=e.width;return t},qe.collapsed,function(e){var t=e.collapsedWidth;return t},qe.toggled,function(e){var t=e.rootStyles;return t}),bN=dt.div(W0||(W0=_t([`
|
|
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(
|
|
197
|
+
`])),function(e){var t=e.backgroundColor;return t?"background-color:".concat(t,";"):""}),mN=dt.img(H0||(H0=_t([`
|
|
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
|
-
`])),
|
|
219
|
+
`])),qe.image),ol=k.createContext({collapsed:!1,toggled:!1,rtl:!1,transitionDuration:300}),yN=k.forwardRef(function(e,t){var r,n=e.collapsed,o=e.toggled,i=e.onBackdropClick,s=e.onBreakPoint,a=e.width,l=a===void 0?"250px":a,c=e.collapsedWidth,d=c===void 0?"80px":c,u=e.defaultCollapsed,f=e.className,h=e.children,g=e.breakPoint,p=e.customBreakPoint,m=e.backgroundColor,x=m===void 0?"rgb(249, 249, 249, 0.7)":m,y=e.transitionDuration,_=y===void 0?300:y,v=e.image,w=e.rtl,C=e.rootStyles,M=Rn(e,["collapsed","toggled","onBackdropClick","onBreakPoint","width","collapsedWidth","defaultCollapsed","className","children","breakPoint","customBreakPoint","backgroundColor","transitionDuration","image","rtl","rootStyles"]),N=function(){if(p)return"(max-width: ".concat(p,")");if(g)return["xs","sm","md","lg","xl","xxl"].includes(g)?"(max-width: ".concat(gN[g],")"):g==="always"||g==="all"?(g==="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(g,")")},O=k.useRef();O.current=function(L){s==null||s(L)};var E=fN(N()),z=k.useState(!1),T=z[0],P=z[1],D=uN(),S=n??(!T&&u?!0:D==null?void 0:D.collapsed),A=o??(D==null?void 0:D.toggled),F=function(){i==null||i(),D==null||D.updateSidebarState({toggled:!1})};return k.useEffect(function(){var L;(L=O.current)===null||L===void 0||L.call(O,E)},[E]),k.useEffect(function(){D==null||D.updateSidebarState({broken:E,rtl:w,transitionDuration:_})},[E,D==null?void 0:D.updateSidebarState,w,_]),k.useEffect(function(){T||(D==null||D.updateSidebarState({collapsed:u}),P(!0))},[u,T,D==null?void 0:D.updateSidebarState]),k.createElement(ol.Provider,{value:{collapsed:S,toggled:A,rtl:w,transitionDuration:_}},k.createElement(pN,Xt({ref:t,"data-testid":"".concat(qe.root,"-test-id"),rtl:w,rootStyles:C,width:l,collapsedWidth:d,transitionDuration:_,className:ot(qe.root,(r={},r[qe.collapsed]=S,r[qe.toggled]=A,r[qe.broken]=E,r[qe.rtl]=w,r),f)},M),k.createElement(bN,{"data-testid":"".concat(qe.container,"-test-id"),className:qe.container,backgroundColor:x},h),v&&k.createElement(mN,{"data-testid":"".concat(qe.image,"-test-id"),src:v,alt:"sidebar background",className:qe.image}),E&&A&&k.createElement(hN,{"data-testid":"".concat(qe.backdrop,"-test-id"),role:"button",tabIndex:0,"aria-label":"backdrop",onClick:F,onKeyPress:F,className:qe.backdrop})))}),B0,W0,H0,$0=dt.ul(V0||(V0=_t([`
|
|
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
|
-
`]))),
|
|
227
|
+
`]))),V0,vN=dt.nav(U0||(U0=_t([`
|
|
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
|
-
`])),
|
|
235
|
+
`])),_e.root,function(e){var t=e.rootStyles;return t}),Y0=k.createContext(void 0),il=k.createContext(0),xN=function(e,t){var r=e.children,n=e.className,o=e.transitionDuration,i=o===void 0?300:o,s=e.closeOnClick,a=s===void 0?!1:s,l=e.rootStyles,c=e.menuItemStyles,d=e.renderExpandIcon,u=Rn(e,["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(Y0.Provider,{value:f},k.createElement(il.Provider,{value:0},k.createElement(vN,Xt({ref:t,className:ot(_e.root,n),rootStyles:l},u),k.createElement($0,null,r))))},wN=k.forwardRef(xN),U0,ru=function(){var e=k.useContext(Y0);if(e===void 0)throw new Error("Menu Component is required!");return e},kN=dt.div(R0||(R0=_t([`
|
|
236
236
|
height: 0px;
|
|
237
237
|
overflow: hidden;
|
|
238
238
|
z-index: 999;
|
|
@@ -262,10 +262,10 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
262
262
|
`,`;
|
|
263
263
|
|
|
264
264
|
`,`;
|
|
265
|
-
`])),function(
|
|
265
|
+
`])),function(e){var t=e.transitionDuration;return t},function(e){var t=e.firstLevel,r=e.collapsed;return t&&r&&`
|
|
266
266
|
background-color: white;
|
|
267
267
|
box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d;
|
|
268
|
-
`},function(
|
|
268
|
+
`},function(e){var t=e.defaultOpen;return t&&"height: auto;display: block;"},function(e){var t=e.collapsed,r=e.firstLevel,n=e.openWhenCollapsed;return t&&r?`
|
|
269
269
|
position: fixed;
|
|
270
270
|
padding-left: 0px;
|
|
271
271
|
width: 200px;
|
|
@@ -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(
|
|
280
|
+
`},function(e){var t=e.rootStyles;return t}),_N=function(e,t){var r=e.children,n=e.open,o=e.openWhenCollapsed,i=e.firstLevel,s=e.collapsed,a=e.defaultOpen,l=Rn(e,["children","open","openWhenCollapsed","firstLevel","collapsed","defaultOpen"]),c=ru().transitionDuration,d=k.useState(a)[0];return k.createElement(kN,Xt({"data-testid":"".concat(_e.subMenuContent,"-test-id"),ref:t,firstLevel:i,collapsed:s,open:n,openWhenCollapsed:o,transitionDuration:c,defaultOpen:d},l),k.createElement($0,null,r))},CN=k.forwardRef(_N),R0,q0=dt.span(X0||(X0=_t([`
|
|
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(
|
|
294
|
+
`])),function(e){var t=e.rootStyles;return t}),X0,G0=dt.span(K0||(K0=_t([`
|
|
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(
|
|
324
|
+
`])),function(e){var t=e.rtl;return t?"margin-left: 10px;":"margin-right: 10px;"},function(e){var t=e.rootStyles;return t}),K0,Z0=dt.span(Q0||(Q0=_t([`
|
|
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(
|
|
336
|
+
`])),function(e){var t=e.rtl;return t?"margin-left: 5px;":"margin-right: 5px;"},function(e){var t=e.firstLevel,r=e.collapsed;return t&&r?"0":"1"},function(e){var t=e.transitionDuration;return t},function(e){var t=e.rootStyles;return t}),Q0,J0=dt.span(eb||(eb=_t([`
|
|
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(
|
|
350
|
+
`])),function(e){var t=e.firstLevel,r=e.collapsed;return t&&r?"0":"1"},function(e){var t=e.transitionDuration;return t},function(e){var t=e.rootStyles;return t}),eb,SN=dt.span(tb||(tb=_t([`
|
|
351
351
|
`,`
|
|
352
352
|
|
|
353
353
|
`,`;
|
|
@@ -355,13 +355,13 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
355
355
|
`,`
|
|
356
356
|
|
|
357
357
|
`,`;
|
|
358
|
-
`])),function(
|
|
358
|
+
`])),function(e){var t=e.collapsed,r=e.level,n=e.rtl;return t&&r===0&&`
|
|
359
359
|
position: absolute;
|
|
360
360
|
`.concat(n?"left: 10px;":"right: 10px;",`
|
|
361
361
|
top: 50%;
|
|
362
362
|
transform: translateY(-50%);
|
|
363
363
|
|
|
364
|
-
`)},function(
|
|
364
|
+
`)},function(e){var t=e.rootStyles;return t}),EN=dt.span(rb||(rb=_t([`
|
|
365
365
|
display: inline-block;
|
|
366
366
|
transition: transform 0.3s;
|
|
367
367
|
`,`
|
|
@@ -377,12 +377,12 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
377
377
|
width: 5px;
|
|
378
378
|
height: 5px;
|
|
379
379
|
transform: rotate(`,`);
|
|
380
|
-
`])),function(
|
|
380
|
+
`])),function(e){var t=e.rtl;return t?`
|
|
381
381
|
border-left: 2px solid currentcolor;
|
|
382
382
|
border-top: 2px solid currentcolor;
|
|
383
383
|
`:` border-right: 2px solid currentcolor;
|
|
384
384
|
border-bottom: 2px solid currentcolor;
|
|
385
|
-
`},function(
|
|
385
|
+
`},function(e){var t=e.open,r=e.rtl;return t?r?"-135deg":"45deg":"-45deg"}),ON=dt.span(nb||(nb=_t([`
|
|
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
|
-
`]))),
|
|
397
|
+
`]))),tb,rb,nb,Ft="top",nr="bottom",or="right",jt="left",sl="auto",Ki=[Ft,nr,or,jt],Ao="start",Zi="end",NN="clippingParents",ob="viewport",Qi="popper",MN="reference",ib=Ki.reduce(function(e,t){return e.concat([t+"-"+Ao,t+"-"+Zi])},[]),sb=[].concat(Ki,[sl]).reduce(function(e,t){return e.concat([t,t+"-"+Ao,t+"-"+Zi])},[]),TN="beforeRead",DN="read",PN="afterRead",IN="beforeMain",AN="main",LN="afterMain",zN="beforeWrite",FN="write",jN="afterWrite",nu=[TN,DN,PN,IN,AN,LN,zN,FN,jN];function Nr(e){return e?(e.nodeName||"").toLowerCase():null}function ir(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xn(e){var t=ir(e).Element;return e instanceof t||e instanceof Element}function Kt(e){var t=ir(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ou(e){if(typeof ShadowRoot>"u")return!1;var t=ir(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function BN(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!Kt(i)||!Nr(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 WN(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),a=s.reduce(function(l,c){return l[c]="",l},{});!Kt(o)||!Nr(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var HN={name:"applyStyles",enabled:!0,phase:"write",fn:BN,effect:WN,requires:["computeStyles"]};function br(e){return e.split("-")[0]}var Gn=Math.max,al=Math.min,Lo=Math.round;function iu(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ab(){return!/^((?!chrome|android).)*safari/i.test(iu())}function zo(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Kt(e)&&(o=e.offsetWidth>0&&Lo(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Lo(n.height)/e.offsetHeight||1);var s=Xn(e)?ir(e):window,a=s.visualViewport,l=!ab()&&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 su(e){var t=zo(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function lb(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ou(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function mr(e){return ir(e).getComputedStyle(e)}function $N(e){return["table","td","th"].indexOf(Nr(e))>=0}function mn(e){return((Xn(e)?e.ownerDocument:e.document)||window.document).documentElement}function ll(e){return Nr(e)==="html"?e:e.assignedSlot||e.parentNode||(ou(e)?e.host:null)||mn(e)}function cb(e){return!Kt(e)||mr(e).position==="fixed"?null:e.offsetParent}function VN(e){var t=/firefox/i.test(iu()),r=/Trident/i.test(iu());if(r&&Kt(e)){var n=mr(e);if(n.position==="fixed")return null}var o=ll(e);for(ou(o)&&(o=o.host);Kt(o)&&["html","body"].indexOf(Nr(o))<0;){var i=mr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ji(e){for(var t=ir(e),r=cb(e);r&&$N(r)&&mr(r).position==="static";)r=cb(r);return r&&(Nr(r)==="html"||Nr(r)==="body"&&mr(r).position==="static")?t:r||VN(e)||t}function au(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function es(e,t,r){return Gn(e,al(t,r))}function YN(e,t,r){var n=es(e,t,r);return n>r?r:n}function db(){return{top:0,right:0,bottom:0,left:0}}function ub(e){return Object.assign({},db(),e)}function fb(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var UN=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ub(typeof t!="number"?t:fb(t,Ki))};function RN(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=br(r.placement),l=au(a),c=[jt,or].indexOf(a)>=0,d=c?"height":"width";if(!(!i||!s)){var u=UN(o.padding,r),f=su(i),h=l==="y"?Ft:jt,g=l==="y"?nr:or,p=r.rects.reference[d]+r.rects.reference[l]-s[l]-r.rects.popper[d],m=s[l]-r.rects.reference[l],x=Ji(i),y=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,_=p/2-m/2,v=u[h],w=y-f[d]-u[g],C=y/2-f[d]/2+_,M=es(v,C,w),N=l;r.modifiersData[n]=(t={},t[N]=M,t.centerOffset=M-C,t)}}function qN(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(Kt(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(" "))),!lb(t.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}t.elements.arrow=o}}var XN={name:"arrow",enabled:!0,phase:"main",fn:RN,effect:qN,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fo(e){return e.split("-")[1]}var GN={top:"auto",right:"auto",bottom:"auto",left:"auto"};function KN(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:Lo(t*o)/o||0,y:Lo(r*o)/o||0}}function hb(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,f=s.x,h=f===void 0?0:f,g=s.y,p=g===void 0?0:g,m=typeof d=="function"?d({x:h,y:p}):{x:h,y:p};h=m.x,p=m.y;var x=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),_=jt,v=Ft,w=window;if(c){var C=Ji(r),M="clientHeight",N="clientWidth";if(C===ir(r)&&(C=mn(r),mr(C).position!=="static"&&a==="absolute"&&(M="scrollHeight",N="scrollWidth")),C=C,o===Ft||(o===jt||o===or)&&i===Zi){v=nr;var O=u&&C===w&&w.visualViewport?w.visualViewport.height:C[M];p-=O-n.height,p*=l?1:-1}if(o===jt||(o===Ft||o===nr)&&i===Zi){_=or;var E=u&&C===w&&w.visualViewport?w.visualViewport.width:C[N];h-=E-n.width,h*=l?1:-1}}var z=Object.assign({position:a},c&&GN),T=d===!0?KN({x:h,y:p}):{x:h,y:p};if(h=T.x,p=T.y,l){var P;return Object.assign({},z,(P={},P[v]=y?"0":"",P[_]=x?"0":"",P.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",P))}return Object.assign({},z,(t={},t[v]=y?p+"px":"",t[_]=x?h+"px":"",t.transform="",t))}function ZN(e){var t=e.state,r=e.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=mr(t.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:pt(e.placement),variation:Pr(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,Od(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,Od(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 Uy={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Yy,data:{}},Wo={passive:!0};function qy(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=ct(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",r.update,Wo)}),a&&l.addEventListener("resize",r.update,Wo),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",r.update,Wo)}),a&&l.removeEventListener("resize",r.update,Wo)}}var Ky={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qy,data:{}},Gy={left:"right",right:"left",bottom:"top",top:"bottom"};function Vo(t){return t.replace(/left|right|bottom|top/g,function(e){return Gy[e]})}var Xy={start:"end",end:"start"};function Td(t){return t.replace(/start|end/g,function(e){return Xy[e]})}function ms(t){var e=ct(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function ys(t){return Mr(Rt(t)).left+ms(t).scrollLeft}function Zy(t,e){var r=ct(t),n=Rt(t),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=wd();(c||!c&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+ys(t),y:l}}function Jy(t){var e,r=Rt(t),n=ms(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=dr(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=dr(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+ys(t),l=-n.scrollTop;return bt(o||r).direction==="rtl"&&(a+=dr(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function vs(t){var e=bt(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Nd(t){return["html","body","#document"].indexOf(_t(t))>=0?t.ownerDocument.body:rt(t)&&vs(t)?t:Nd(Ho(t))}function Tn(t,e){var r;e===void 0&&(e=[]);var n=Nd(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),i=ct(n),s=o?[i].concat(i.visualViewport||[],vs(n)?n:[]):n,a=e.concat(s);return o?a:a.concat(Tn(Ho(s)))}function xs(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Qy(t,e){var r=Mr(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 Md(t,e,r){return e===yd?xs(Zy(t,r)):cr(e)?Qy(e,r):xs(Jy(Rt(t)))}function ev(t){var e=Tn(Ho(t)),r=["absolute","fixed"].indexOf(bt(t).position)>=0,n=r&&rt(t)?En(t):t;return cr(n)?e.filter(function(o){return cr(o)&&kd(o,n)&&_t(o)!=="body"}):[]}function tv(t,e,r,n){var o=e==="clippingParents"?ev(t):[].concat(e),i=[].concat(o,[r]),s=i[0],a=i.reduce(function(l,c){var d=Md(t,c,n);return l.top=dr(d.top,l.top),l.right=$o(d.right,l.right),l.bottom=$o(d.bottom,l.bottom),l.left=dr(d.left,l.left),l},Md(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 Pd(t){var e=t.reference,r=t.element,n=t.placement,o=n?pt(n):null,i=n?Pr(n):null,s=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,l;switch(o){case Xe:l={x:s,y:e.y-r.height};break;case at:l={x:s,y:e.y+e.height};break;case lt:l={x:e.x+e.width,y:a};break;case Ze:l={x:e.x-r.width,y:a};break;default:l={x:e.x,y:e.y}}var c=o?bs(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case Tr:l[c]=l[c]-(e[d]/2-r[d]/2);break;case Cn:l[c]=l[c]+(e[d]/2-r[d]/2);break}}return l}function Nn(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?ky:a,c=r.rootBoundary,d=c===void 0?yd:c,u=r.elementContext,f=u===void 0?Sn:u,h=r.altBoundary,p=h===void 0?!1:h,b=r.padding,m=b===void 0?0:b,v=Sd(typeof m!="number"?m:Ed(m,_n)),y=f===Sn?_y:Sn,C=t.rects.popper,x=t.elements[p?y:f],w=tv(cr(x)?x:x.contextElement||Rt(t.elements.popper),l,d,s),_=Mr(t.elements.reference),O=Pd({reference:_,element:C,placement:o}),N=xs(Object.assign({},C,O)),M=f===Sn?N:_,E={top:w.top-M.top+v.top,bottom:M.bottom-w.bottom+v.bottom,left:w.left-M.left+v.left,right:M.right-w.right+v.right},F=t.modifiersData.offset;if(f===Sn&&F){var P=F[o];Object.keys(E).forEach(function(D){var S=[lt,at].indexOf(D)>=0?1:-1,T=[Xe,at].indexOf(D)>=0?"y":"x";E[D]+=P[T]*S})}return E}function rv(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?xd:l,d=Pr(n),u=d?a?vd:vd.filter(function(p){return Pr(p)===d}):_n,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,b){return p[b]=Nn(t,{placement:b,boundary:o,rootBoundary:i,padding:s})[pt(b)],p},{});return Object.keys(h).sort(function(p,b){return h[p]-h[b]})}function nv(t){if(pt(t)===jo)return[];var e=Vo(t);return[Td(t),e,Td(e)]}function ov(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,b=r.allowedAutoPlacements,m=e.options.placement,v=pt(m),y=v===m,C=l||(y||!p?[Vo(m)]:nv(m)),x=[m].concat(C).reduce(function(U,q){return U.concat(pt(q)===jo?rv(e,{placement:q,boundary:d,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:b}):q)},[]),w=e.rects.reference,_=e.rects.popper,O=new Map,N=!0,M=x[0],E=0;E<x.length;E++){var F=x[E],P=pt(F),D=Pr(F)===Tr,S=[Xe,at].indexOf(P)>=0,T=S?"width":"height",I=Nn(e,{placement:F,boundary:d,rootBoundary:u,altBoundary:f,padding:c}),z=S?D?lt:Ze:D?at:Xe;w[T]>_[T]&&(z=Vo(z));var B=Vo(z),$=[];if(i&&$.push(I[P]<=0),a&&$.push(I[z]<=0,I[B]<=0),$.every(function(U){return U})){M=F,N=!1;break}O.set(F,$)}if(N)for(var j=p?3:1,W=function(q){var G=x.find(function(de){var X=O.get(de);if(X)return X.slice(0,q).every(function(oe){return oe})});if(G)return M=G,"break"},V=j;V>0;V--){var Y=W(V);if(Y==="break")break}e.placement!==M&&(e.modifiersData[n]._skip=!0,e.placement=M,e.reset=!0)}}var iv={name:"flip",enabled:!0,phase:"main",fn:ov,requiresIfExists:["offset"],data:{_skip:!1}};function Ad(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 Dd(t){return[Xe,lt,at,Ze].some(function(e){return t[e]>=0})}function sv(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=Nn(e,{elementContext:"reference"}),a=Nn(e,{altBoundary:!0}),l=Ad(s,n),c=Ad(a,o,i),d=Dd(l),u=Dd(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 av={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sv};function lv(t,e,r){var n=pt(t),o=[Ze,Xe].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,[Ze,lt].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function cv(t){var e=t.state,r=t.options,n=t.name,o=r.offset,i=o===void 0?[0,0]:o,s=xd.reduce(function(d,u){return d[u]=lv(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 dv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:cv};function uv(t){var e=t.state,r=t.name;e.modifiersData[r]=Pd({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}var fv={name:"popperOffsets",enabled:!0,phase:"read",fn:uv,data:{}};function hv(t){return t==="x"?"y":"x"}function gv(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,b=p===void 0?0:p,m=Nn(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=pt(e.placement),y=Pr(e.placement),C=!y,x=bs(v),w=hv(x),_=e.modifiersData.popperOffsets,O=e.rects.reference,N=e.rects.popper,M=typeof b=="function"?b(Object.assign({},e.rects,{placement:e.placement})):b,E=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),F=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(_){if(i){var D,S=x==="y"?Xe:Ze,T=x==="y"?at:lt,I=x==="y"?"height":"width",z=_[x],B=z+m[S],$=z-m[T],j=h?-N[I]/2:0,W=y===Tr?O[I]:N[I],V=y===Tr?-N[I]:-O[I],Y=e.elements.arrow,U=h&&Y?ps(Y):{width:0,height:0},q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Cd(),G=q[S],de=q[T],X=On(0,O[I],U[I]),oe=C?O[I]/2-j-X-G-E.mainAxis:W-X-G-E.mainAxis,Ie=C?-O[I]/2+j+X+de+E.mainAxis:V+X+de+E.mainAxis,$e=e.elements.arrow&&En(e.elements.arrow),J=$e?x==="y"?$e.clientTop||0:$e.clientLeft||0:0,Ee=(D=F==null?void 0:F[x])!=null?D:0,le=z+oe-Ee-J,re=z+Ie-Ee,he=On(h?$o(B,le):B,z,h?dr($,re):$);_[x]=he,P[x]=he-z}if(a){var Q,R=x==="x"?Xe:Ze,Oe=x==="x"?at:lt,ie=_[w],ke=w==="y"?"height":"width",Le=ie+m[R],Pe=ie-m[Oe],ut=[Xe,Ze].indexOf(v)!==-1,mt=(Q=F==null?void 0:F[w])!=null?Q:0,nt=ut?Le:ie-O[ke]-N[ke]-mt+E.altAxis,Jt=ut?ie+O[ke]+N[ke]-mt-E.altAxis:Pe,ot=h&&ut?By(nt,ie,Jt):On(h?nt:Le,ie,h?Jt:Pe);_[w]=ot,P[w]=ot-ie}e.modifiersData[n]=P}}var pv={name:"preventOverflow",enabled:!0,phase:"main",fn:gv,requiresIfExists:["offset"]};function bv(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function mv(t){return t===ct(t)||!rt(t)?ms(t):bv(t)}function yv(t){var e=t.getBoundingClientRect(),r=Nr(e.width)/t.offsetWidth||1,n=Nr(e.height)/t.offsetHeight||1;return r!==1||n!==1}function vv(t,e,r){r===void 0&&(r=!1);var n=rt(e),o=rt(e)&&yv(e),i=Rt(e),s=Mr(t,o,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((_t(e)!=="body"||vs(i))&&(a=mv(e)),rt(e)?(l=Mr(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=ys(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function xv(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 wv(t){var e=xv(t);return fs.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function kv(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function Yt(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 ur='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',_v='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Id=["name","enabled","phase","fn","effect","requires","options"];function Cv(t){t.forEach(function(e){[].concat(Object.keys(e),Id).filter(function(r,n,o){return o.indexOf(r)===n}).forEach(function(r){switch(r){case"name":typeof e.name!="string"&&console.error(Yt(ur,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(Yt(ur,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":fs.indexOf(e.phase)<0&&console.error(Yt(ur,e.name,'"phase"',"either "+fs.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(Yt(ur,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(Yt(ur,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(Yt(ur,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(Yt(ur,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 '+Id.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(Yt(_v,String(e.name),n,n))})})})}function Sv(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 Ev(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 Ld="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Ov="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Fd={placement:"bottom",modifiers:[],strategy:"absolute"};function zd(){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 Tv(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,o=e.defaultOptions,i=o===void 0?Fd:o;return function(a,l,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Fd,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;b(),d.options=Object.assign({},i,d.options,y),d.scrollParents={reference:cr(a)?Tn(a):a.contextElement?Tn(a.contextElement):[],popper:Tn(l)};var C=wv(Ev([].concat(n,d.options.modifiers)));if(d.orderedModifiers=C.filter(function(F){return F.enabled}),process.env.NODE_ENV!=="production"){var x=Sv([].concat(C,d.options.modifiers),function(F){var P=F.name;return P});if(Cv(x),pt(d.options.placement)===jo){var w=d.orderedModifiers.find(function(F){var P=F.name;return P==="flip"});w||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var _=bt(l),O=_.marginTop,N=_.marginRight,M=_.marginBottom,E=_.marginLeft;[O,N,M,E].some(function(F){return parseFloat(F)})&&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,C=v.popper;if(!zd(y,C)){process.env.NODE_ENV!=="production"&&console.error(Ld);return}d.rects={reference:vv(y,En(C),d.options.strategy==="fixed"),popper:ps(C)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(F){return d.modifiersData[F.name]=Object.assign({},F.data)});for(var x=0,w=0;w<d.orderedModifiers.length;w++){if(process.env.NODE_ENV!=="production"&&(x+=1,x>100)){console.error(Ov);break}if(d.reset===!0){d.reset=!1,w=-1;continue}var _=d.orderedModifiers[w],O=_.fn,N=_.options,M=N===void 0?{}:N,E=_.name;typeof O=="function"&&(d=O({state:d,options:M,name:E,instance:h})||d)}}},update:kv(function(){return new Promise(function(m){h.forceUpdate(),m(d)})}),destroy:function(){b(),f=!0}};if(!zd(a,l))return process.env.NODE_ENV!=="production"&&console.error(Ld),h;h.setOptions(c).then(function(m){!f&&c.onFirstUpdate&&c.onFirstUpdate(m)});function p(){d.orderedModifiers.forEach(function(m){var v=m.name,y=m.options,C=y===void 0?{}:y,x=m.effect;if(typeof x=="function"){var w=x({state:d,name:v,instance:h,options:C}),_=function(){};u.push(w||_)}})}function b(){u.forEach(function(m){return m()}),u=[]}return h}}var Nv=[Ky,fv,Uy,Ly,dv,iv,pv,Wy,av],Mv=Tv({defaultModifiers:Nv}),Pv=function(t){var e=t.level,r=t.buttonRef,n=t.contentRef,o=k.useContext(zo),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=Mv(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}},Bd=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:br(t.placement),variation:Fo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,hb(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,hb(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var QN={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ZN,data:{}},cl={passive:!0};function JN(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,s=n.resize,a=s===void 0?!0:s,l=ir(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",r.update,cl)}),a&&l.addEventListener("resize",r.update,cl),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",r.update,cl)}),a&&l.removeEventListener("resize",r.update,cl)}}var e4={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:JN,data:{}},t4={left:"right",right:"left",bottom:"top",top:"bottom"};function dl(e){return e.replace(/left|right|bottom|top/g,function(t){return t4[t]})}var r4={start:"end",end:"start"};function gb(e){return e.replace(/start|end/g,function(t){return r4[t]})}function lu(e){var t=ir(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function cu(e){return zo(mn(e)).left+lu(e).scrollLeft}function n4(e,t){var r=ir(e),n=mn(e),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=ab();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+cu(e),y:l}}function o4(e){var t,r=mn(e),n=lu(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Gn(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Gn(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+cu(e),l=-n.scrollTop;return mr(o||r).direction==="rtl"&&(a+=Gn(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function du(e){var t=mr(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function pb(e){return["html","body","#document"].indexOf(Nr(e))>=0?e.ownerDocument.body:Kt(e)&&du(e)?e:pb(ll(e))}function ts(e,t){var r;t===void 0&&(t=[]);var n=pb(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=ir(n),s=o?[i].concat(i.visualViewport||[],du(n)?n:[]):n,a=t.concat(s);return o?a:a.concat(ts(ll(s)))}function uu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function i4(e,t){var r=zo(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function bb(e,t,r){return t===ob?uu(n4(e,r)):Xn(t)?i4(t,r):uu(o4(mn(e)))}function s4(e){var t=ts(ll(e)),r=["absolute","fixed"].indexOf(mr(e).position)>=0,n=r&&Kt(e)?Ji(e):e;return Xn(n)?t.filter(function(o){return Xn(o)&&lb(o,n)&&Nr(o)!=="body"}):[]}function a4(e,t,r,n){var o=t==="clippingParents"?s4(e):[].concat(t),i=[].concat(o,[r]),s=i[0],a=i.reduce(function(l,c){var d=bb(e,c,n);return l.top=Gn(d.top,l.top),l.right=al(d.right,l.right),l.bottom=al(d.bottom,l.bottom),l.left=Gn(d.left,l.left),l},bb(e,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 mb(e){var t=e.reference,r=e.element,n=e.placement,o=n?br(n):null,i=n?Fo(n):null,s=t.x+t.width/2-r.width/2,a=t.y+t.height/2-r.height/2,l;switch(o){case Ft:l={x:s,y:t.y-r.height};break;case nr:l={x:s,y:t.y+t.height};break;case or:l={x:t.x+t.width,y:a};break;case jt:l={x:t.x-r.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?au(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case Ao:l[c]=l[c]-(t[d]/2-r[d]/2);break;case Zi:l[c]=l[c]+(t[d]/2-r[d]/2);break}}return l}function rs(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,s=i===void 0?e.strategy:i,a=r.boundary,l=a===void 0?NN:a,c=r.rootBoundary,d=c===void 0?ob:c,u=r.elementContext,f=u===void 0?Qi:u,h=r.altBoundary,g=h===void 0?!1:h,p=r.padding,m=p===void 0?0:p,x=ub(typeof m!="number"?m:fb(m,Ki)),y=f===Qi?MN:Qi,_=e.rects.popper,v=e.elements[g?y:f],w=a4(Xn(v)?v:v.contextElement||mn(e.elements.popper),l,d,s),C=zo(e.elements.reference),M=mb({reference:C,element:_,placement:o}),N=uu(Object.assign({},_,M)),O=f===Qi?N:C,E={top:w.top-O.top+x.top,bottom:O.bottom-w.bottom+x.bottom,left:w.left-O.left+x.left,right:O.right-w.right+x.right},z=e.modifiersData.offset;if(f===Qi&&z){var T=z[o];Object.keys(E).forEach(function(P){var D=[or,nr].indexOf(P)>=0?1:-1,S=[Ft,nr].indexOf(P)>=0?"y":"x";E[P]+=T[S]*D})}return E}function l4(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?sb:l,d=Fo(n),u=d?a?ib:ib.filter(function(g){return Fo(g)===d}):Ki,f=u.filter(function(g){return c.indexOf(g)>=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(g,p){return g[p]=rs(e,{placement:p,boundary:o,rootBoundary:i,padding:s})[br(p)],g},{});return Object.keys(h).sort(function(g,p){return h[g]-h[p]})}function c4(e){if(br(e)===sl)return[];var t=dl(e);return[gb(e),t,gb(t)]}function d4(e){var t=e.state,r=e.options,n=e.name;if(!t.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,g=h===void 0?!0:h,p=r.allowedAutoPlacements,m=t.options.placement,x=br(m),y=x===m,_=l||(y||!g?[dl(m)]:c4(m)),v=[m].concat(_).reduce(function(R,q){return R.concat(br(q)===sl?l4(t,{placement:q,boundary:d,rootBoundary:u,padding:c,flipVariations:g,allowedAutoPlacements:p}):q)},[]),w=t.rects.reference,C=t.rects.popper,M=new Map,N=!0,O=v[0],E=0;E<v.length;E++){var z=v[E],T=br(z),P=Fo(z)===Ao,D=[Ft,nr].indexOf(T)>=0,S=D?"width":"height",A=rs(t,{placement:z,boundary:d,rootBoundary:u,altBoundary:f,padding:c}),F=D?P?or:jt:P?nr:Ft;w[S]>C[S]&&(F=dl(F));var L=dl(F),j=[];if(i&&j.push(A[T]<=0),a&&j.push(A[F]<=0,A[L]<=0),j.every(function(R){return R})){O=z,N=!1;break}M.set(z,j)}if(N)for(var B=g?3:1,W=function(q){var X=v.find(function(Q){var J=M.get(Q);if(J)return J.slice(0,q).every(function(ie){return ie})});if(X)return O=X,"break"},H=B;H>0;H--){var U=W(H);if(U==="break")break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}}var u4={name:"flip",enabled:!0,phase:"main",fn:d4,requiresIfExists:["offset"],data:{_skip:!1}};function yb(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function vb(e){return[Ft,or,nr,jt].some(function(t){return e[t]>=0})}function f4(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=rs(t,{elementContext:"reference"}),a=rs(t,{altBoundary:!0}),l=yb(s,n),c=yb(a,o,i),d=vb(l),u=vb(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}var h4={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:f4};function g4(e,t,r){var n=br(e),o=[jt,Ft].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[jt,or].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function p4(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,s=sb.reduce(function(d,u){return d[u]=g4(u,t.rects,i),d},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}var b4={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:p4};function m4(e){var t=e.state,r=e.name;t.modifiersData[r]=mb({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var y4={name:"popperOffsets",enabled:!0,phase:"read",fn:m4,data:{}};function v4(e){return e==="x"?"y":"x"}function x4(e){var t=e.state,r=e.options,n=e.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,g=r.tetherOffset,p=g===void 0?0:g,m=rs(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),x=br(t.placement),y=Fo(t.placement),_=!y,v=au(x),w=v4(v),C=t.modifiersData.popperOffsets,M=t.rects.reference,N=t.rects.popper,O=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,E=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(C){if(i){var P,D=v==="y"?Ft:jt,S=v==="y"?nr:or,A=v==="y"?"height":"width",F=C[v],L=F+m[D],j=F-m[S],B=h?-N[A]/2:0,W=y===Ao?M[A]:N[A],H=y===Ao?-N[A]:-M[A],U=t.elements.arrow,R=h&&U?su(U):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:db(),X=q[D],Q=q[S],J=es(0,M[A],R[A]),ie=_?M[A]/2-B-J-X-E.mainAxis:W-J-X-E.mainAxis,ye=_?-M[A]/2+B+J+Q+E.mainAxis:H+J+Q+E.mainAxis,ve=t.elements.arrow&&Ji(t.elements.arrow),ee=ve?v==="y"?ve.clientTop||0:ve.clientLeft||0:0,ae=(P=z==null?void 0:z[v])!=null?P:0,re=F+ie-ae-ee,oe=F+ye-ae,ne=es(h?al(L,re):L,F,h?Gn(j,oe):j);C[v]=ne,T[v]=ne-F}if(a){var Z,Y=v==="x"?Ft:jt,fe=v==="x"?nr:or,te=C[w],ce=w==="y"?"height":"width",be=te+m[Y],he=te-m[fe],$e=[Ft,jt].indexOf(x)!==-1,Re=(Z=z==null?void 0:z[w])!=null?Z:0,Ae=$e?be:te-M[ce]-N[ce]-Re+E.altAxis,wt=$e?te+M[ce]+N[ce]-Re-E.altAxis:he,Le=h&&$e?YN(Ae,te,wt):es(h?Ae:be,te,h?wt:he);C[w]=Le,T[w]=Le-te}t.modifiersData[n]=T}}var w4={name:"preventOverflow",enabled:!0,phase:"main",fn:x4,requiresIfExists:["offset"]};function k4(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _4(e){return e===ir(e)||!Kt(e)?lu(e):k4(e)}function C4(e){var t=e.getBoundingClientRect(),r=Lo(t.width)/e.offsetWidth||1,n=Lo(t.height)/e.offsetHeight||1;return r!==1||n!==1}function S4(e,t,r){r===void 0&&(r=!1);var n=Kt(t),o=Kt(t)&&C4(t),i=mn(t),s=zo(e,o,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Nr(t)!=="body"||du(i))&&(a=_4(t)),Kt(t)?(l=zo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=cu(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function E4(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.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=t.get(a);l&&o(l)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function O4(e){var t=E4(e);return nu.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function N4(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function yn(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return[].concat(r).reduce(function(o,i){return o.replace(/%s/,i)},e)}var Kn='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',M4='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',xb=["name","enabled","phase","fn","effect","requires","options"];function T4(e){e.forEach(function(t){[].concat(Object.keys(t),xb).filter(function(r,n,o){return o.indexOf(r)===n}).forEach(function(r){switch(r){case"name":typeof t.name!="string"&&console.error(yn(Kn,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(yn(Kn,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":nu.indexOf(t.phase)<0&&console.error(yn(Kn,t.name,'"phase"',"either "+nu.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(yn(Kn,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(yn(Kn,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(yn(Kn,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(yn(Kn,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+xb.map(function(n){return'"'+n+'"'}).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach(function(n){e.find(function(o){return o.name===n})==null&&console.error(yn(M4,String(t.name),n,n))})})})}function D4(e,t){var r=new Set;return e.filter(function(n){var o=t(n);if(!r.has(o))return r.add(o),!0})}function P4(e){var t=e.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(t).map(function(r){return t[r]})}var wb="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",I4="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",kb={placement:"bottom",modifiers:[],strategy:"absolute"};function _b(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function A4(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?kb:o;return function(a,l,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},kb,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},u=[],f=!1,h={state:d,setOptions:function(x){var y=typeof x=="function"?x(d.options):x;p(),d.options=Object.assign({},i,d.options,y),d.scrollParents={reference:Xn(a)?ts(a):a.contextElement?ts(a.contextElement):[],popper:ts(l)};var _=O4(P4([].concat(n,d.options.modifiers)));if(d.orderedModifiers=_.filter(function(z){return z.enabled}),process.env.NODE_ENV!=="production"){var v=D4([].concat(_,d.options.modifiers),function(z){var T=z.name;return T});if(T4(v),br(d.options.placement)===sl){var w=d.orderedModifiers.find(function(z){var T=z.name;return T==="flip"});w||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var C=mr(l),M=C.marginTop,N=C.marginRight,O=C.marginBottom,E=C.marginLeft;[M,N,O,E].some(function(z){return parseFloat(z)})&&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 g(),h.update()},forceUpdate:function(){if(!f){var x=d.elements,y=x.reference,_=x.popper;if(!_b(y,_)){process.env.NODE_ENV!=="production"&&console.error(wb);return}d.rects={reference:S4(y,Ji(_),d.options.strategy==="fixed"),popper:su(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(z){return d.modifiersData[z.name]=Object.assign({},z.data)});for(var v=0,w=0;w<d.orderedModifiers.length;w++){if(process.env.NODE_ENV!=="production"&&(v+=1,v>100)){console.error(I4);break}if(d.reset===!0){d.reset=!1,w=-1;continue}var C=d.orderedModifiers[w],M=C.fn,N=C.options,O=N===void 0?{}:N,E=C.name;typeof M=="function"&&(d=M({state:d,options:O,name:E,instance:h})||d)}}},update:N4(function(){return new Promise(function(m){h.forceUpdate(),m(d)})}),destroy:function(){p(),f=!0}};if(!_b(a,l))return process.env.NODE_ENV!=="production"&&console.error(wb),h;h.setOptions(c).then(function(m){!f&&c.onFirstUpdate&&c.onFirstUpdate(m)});function g(){d.orderedModifiers.forEach(function(m){var x=m.name,y=m.options,_=y===void 0?{}:y,v=m.effect;if(typeof v=="function"){var w=v({state:d,name:x,instance:h,options:_}),C=function(){};u.push(w||C)}})}function p(){u.forEach(function(m){return m()}),u=[]}return h}}var L4=[e4,y4,QN,HN,b4,u4,w4,XN,h4],z4=A4({defaultModifiers:L4}),F4=function(e){var t=e.level,r=e.buttonRef,n=e.contentRef,o=k.useContext(ol),i=o.collapsed,s=o.toggled,a=o.transitionDuration,l=k.useRef();return k.useEffect(function(){return t===0&&i&&n.current&&r.current&&(l.current=z4(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()}},[t,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}},Cb=function(e){var t=e.rtl,r=e.level,n=e.collapsed,o=e.disabled,i=e.active;return`
|
|
402
402
|
display: flex;
|
|
403
403
|
align-items: center;
|
|
404
404
|
height: 50px;
|
|
@@ -407,7 +407,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
407
407
|
box-sizing: border-box;
|
|
408
408
|
cursor: pointer;
|
|
409
409
|
|
|
410
|
-
`.concat(
|
|
410
|
+
`.concat(t?`padding-left: 20px;
|
|
411
411
|
padding-right: `.concat(r===0?20:(n?r:r+1)*20,`px;
|
|
412
412
|
`):`padding-right: 20px;
|
|
413
413
|
padding-left: `.concat(r===0?20:(n?r:r+1)*20,`px;
|
|
@@ -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
|
-
`)},
|
|
428
|
+
`)},j4=function(e,t){var r=e.className,n=e.component,o=e.children,i=Rn(e,["className","component","children"]);if(n){if(typeof n=="string")return k.createElement(n,Xt(Xt({className:ot(r)},i),{ref:t}),o);var s=n.props,a=s.className,l=Rn(s,["className"]);return k.cloneElement(n,Xt(Xt(Xt({className:ot(r,a)},i),l),{ref:t}),o)}else return k.createElement("a",Xt({ref:t,className:ot(r)},i),o)},Sb=k.forwardRef(j4),B4=dt.li(Eb||(Eb=_t([`
|
|
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(
|
|
454
|
+
`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},_e.button,function(e){var t=e.level,r=e.disabled,n=e.active,o=e.collapsed,i=e.rtl;return Cb({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),W4=function(e,t){var r,n=e.children,o=e.className,i=e.label,s=e.icon,a=e.title,l=e.prefix,c=e.suffix,d=e.open,u=e.defaultOpen,f=e.active,h=f===void 0?!1:f,g=e.disabled,p=g===void 0?!1:g,m=e.rootStyles,x=e.component,y=e.onOpenChange,_=e.onClick,v=e.onKeyUp,w=Rn(e,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),C=k.useContext(il),M=k.useContext(ol),N=M.collapsed,O=M.rtl,E=M.transitionDuration,z=ru(),T=z.renderExpandIcon,P=z.closeOnClick,D=z.menuItemStyles,S=z.transitionDuration,A=k.useState(!!u),F=A[0],L=A[1],j=k.useState(!1),B=j[0],W=j[1],H=k.useState(!1),U=H[0],R=H[1],q=k.useRef(null),X=k.useRef(null),Q=k.useRef(),J=F4({level:C,buttonRef:q,contentRef:X}).popperInstance,ie=k.useCallback(function(){var ne,Z=X.current;if(Z){var Y=(ne=Z==null?void 0:Z.querySelector(".".concat(_e.subMenuContent," > ul")))===null||ne===void 0?void 0:ne.clientHeight;Z.style.overflow="hidden",Z.style.height="".concat(Y,"px"),Q.current=setTimeout(function(){Z.style.overflow="auto",Z.style.height="auto"},S)}},[S]),ye=function(){var ne,Z=X.current;if(Z){var Y=(ne=Z==null?void 0:Z.querySelector(".".concat(_e.subMenuContent," > ul")))===null||ne===void 0?void 0:ne.clientHeight;Z.style.overflow="hidden",Z.style.height="".concat(Y,"px"),Z.offsetHeight,Z.style.height="0px"}},ve=function(){C===0&&N||(typeof d>"u"?(clearTimeout(Number(Q.current)),F?ye():ie(),y==null||y(!F),L(!F)):y==null||y(!d))};k.useEffect(function(){!(C===0&&N)&&typeof d<"u"&&U&&(clearTimeout(Number(Q.current)),d?ie():ye())},[N,ie,i,C,y,d]);var ee=function(ne){_==null||_(ne),ve()},ae=function(ne){v==null||v(ne),ne.key==="Enter"&&ve()},re=function(ne){if(D){var Z={level:C,disabled:p,active:h,isSubmenu:!0,open:d??F},Y=D.root,fe=D.button,te=D.label,ce=D.icon,be=D.prefix,he=D.suffix,$e=D.subMenuContent,Re=D.SubMenuExpandIcon;switch(ne){case"root":return typeof Y=="function"?Y(Z):Y;case"button":return typeof fe=="function"?fe(Z):fe;case"label":return typeof te=="function"?te(Z):te;case"icon":return typeof ce=="function"?ce(Z):ce;case"prefix":return typeof be=="function"?be(Z):be;case"suffix":return typeof he=="function"?he(Z):he;case"SubMenuExpandIcon":return typeof Re=="function"?Re(Z):Re;case"subMenuContent":return typeof $e=="function"?$e(Z):$e;default:return}}};k.useEffect(function(){setTimeout(function(){return J==null?void 0:J.update()},E),N&&C===0&&W(!1)},[N,C,O,E,J]),k.useEffect(function(){var ne=function(te){var ce,be,he;!B&&(!((ce=q.current)===null||ce===void 0)&&ce.contains(te))?W(!0):(P&&!(!((be=te.closest(".".concat(_e.menuItemRoot)))===null||be===void 0)&&be.classList.contains(_e.subMenuRoot))||!(!((he=X.current)===null||he===void 0)&&he.contains(te))&&B)&&W(!1)},Z=function(te){ne(te.target)},Y=function(te){te.key==="Enter"?ne(te.target):te.key==="Escape"&&W(!1)},fe=function(){document.removeEventListener("click",Z),document.removeEventListener("keyup",Y)};return fe(),N&&C===0&&(document.addEventListener("click",Z,!1),document.addEventListener("keyup",Y,!1)),function(){fe()}},[N,C,P,B]),k.useEffect(function(){R(!0)},[]);var oe=(r={},r[_e.active]=h,r[_e.disabled]=p,r[_e.open]=d??F,r);return k.createElement(B4,{ref:t,className:ot(_e.menuItemRoot,_e.subMenuRoot,oe,o),menuItemStyles:re("root"),level:C,collapsed:N,rtl:O,disabled:p,active:h,buttonStyles:re("button"),rootStyles:m},k.createElement(Sb,Xt({"data-testid":"".concat(_e.button,"-test-id"),ref:q,title:a,className:ot(_e.button,oe),onClick:ee,onKeyUp:ae,component:x,tabIndex:0},w),s&&k.createElement(G0,{rtl:O,className:ot(_e.icon,oe),rootStyles:re("icon")},s),l&&k.createElement(Z0,{collapsed:N,transitionDuration:E,firstLevel:C===0,className:ot(_e.prefix,oe),rtl:O,rootStyles:re("prefix")},l),k.createElement(q0,{className:ot(_e.label,oe),rootStyles:re("label")},i),c&&k.createElement(J0,{collapsed:N,transitionDuration:E,firstLevel:C===0,className:ot(_e.suffix,oe),rootStyles:re("suffix")},c),k.createElement(SN,{rtl:O,className:ot(_e.SubMenuExpandIcon,oe),collapsed:N,level:C,rootStyles:re("SubMenuExpandIcon")},T?T({level:C,disabled:p,active:h,open:d??F}):N&&C===0?k.createElement(ON,null):k.createElement(EN,{rtl:O,open:d??F}))),k.createElement(CN,{ref:X,openWhenCollapsed:B,open:d??F,firstLevel:C===0,collapsed:N,defaultOpen:d&&!U||u,className:ot(_e.subMenuContent,oe),rootStyles:re("subMenuContent")},k.createElement(il.Provider,{value:C+1},n)))};k.forwardRef(W4);var Eb,H4=dt.li(Ob||(Ob=_t([`
|
|
455
455
|
width: 100%;
|
|
456
456
|
position: relative;
|
|
457
457
|
|
|
@@ -477,14 +477,500 @@ 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 Bd({level:e,disabled:r,active:n,collapsed:o,rtl:i})},function(t){var e=t.buttonStyles;return e}),Fv=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=ar(t,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),b=k.useContext(Bo),m=k.useContext(zo),v=m.collapsed,y=m.rtl,C=m.transitionDuration,x=us().menuItemStyles,w=function(O){if(x){var N={level:b,disabled:u,active:c,isSubmenu:!1},M=x.root,E=x.button,F=x.label,P=x.icon,D=x.prefix,S=x.suffix;switch(O){case"root":return typeof M=="function"?M(N):M;case"button":return typeof E=="function"?E(N):E;case"label":return typeof F=="function"?F(N):F;case"icon":return typeof P=="function"?P(N):P;case"prefix":return typeof D=="function"?D(N):D;case"suffix":return typeof S=="function"?S(N):S;default:return}}},_=(r={},r[ae.active]=c,r[ae.disabled]=u,r);return k.createElement(Lv,{ref:e,className:Ne(ae.menuItemRoot,_,i),menuItemStyles:w("root"),level:b,collapsed:v,rtl:y,disabled:u,active:c,buttonStyles:w("button"),rootStyles:h},k.createElement(jd,et({className:Ne(ae.button,_),"data-testid":"".concat(ae.button,"-test-id"),component:f,tabIndex:0},p),o&&k.createElement(cd,{rtl:y,className:Ne(ae.icon,_),rootStyles:w("icon")},o),s&&k.createElement(ud,{collapsed:v,transitionDuration:C,firstLevel:b===0,className:Ne(ae.prefix,_),rtl:y,rootStyles:w("prefix")},s),k.createElement(ad,{className:Ne(ae.label,_),rootStyles:w("label")},n),a&&k.createElement(hd,{collapsed:v,transitionDuration:C,firstLevel:b===0,className:Ne(ae.suffix,_),rootStyles:w("suffix")},a)))},Ar=k.forwardRef(Fv),Hd;const zv={cardFormat:"card-module__cardFormat__LNrgl"},Ro=k.forwardRef((t,e)=>{const{image:r,icon:n,title:o,description:i}=t;return g.jsxs("div",{className:`${zv.cardFormat} border px-3.5 py-7`,ref:e,children:[(r==null?void 0:r.type)==="image"?g.jsx(jt,{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})]})});Ro.displayName="CardFormat";function Bv(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 jv(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 $v(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 Hv(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)}const Wv=()=>{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(fy,{collapsed:t,rootStyles:{[`.${xe.container}`]:{backgroundColor:"#483FFF",color:"#483FFF",height:"100vh",display:"flex",flexDirection:"column"}},children:[g.jsx("div",{children:g.jsx(jt,{classIm:"mx-auto",src:"https://ftp.mathilde-ads.com/151-5f18f5b0ce0f79b3c7e3ffbd4828ec14.png",alt:"Logo Mathilde ads",width:74,height:74})}),g.jsxs(py,{children:[g.jsxs(Ar,{icon:g.jsx(fg,{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.jsxs(Ar,{icon:g.jsx(Bv,{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(Ar,{icon:g.jsx(hg,{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(Ar,{icon:g.jsx($v,{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(Ar,{icon:g.jsx(jv,{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.jsxs(Ar,{icon:g.jsx(Hv,{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(Wb,{})})})})]}),g.jsx(Sr,{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(Ro,{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(Ro,{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(Sr,{isOpen:r==="audiencias",onClose:()=>n(null),children:g.jsx("h2",{children:"Audiencias"})}),g.jsx(Sr,{isOpen:r==="reportes",onClose:()=>n(null),children:g.jsx("h2",{children:"Reportes"})}),g.jsx(Sr,{isOpen:r==="facturacion",onClose:()=>n(null),children:g.jsx("h2",{children:"Facturación"})}),g.jsx(Sr,{isOpen:r==="configuracion",onClose:()=>n(null),children:g.jsx("h2",{children:"Configuración"})})]})})};function Vv(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 Rv(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 Yv(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 Wd(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 Vd(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 Rd(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 Uv(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 qv(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 Kv(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 Yd(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 Gv(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 Ud(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 Xv(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 Zv(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 ws="-";function Jv(t){const e=ex(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;function o(s){const a=s.split(ws);return a[0]===""&&a.length!==1&&a.shift(),qd(a,e)||Qv(s)}function i(s,a){const l=r[s]||[];return a&&n[s]?[...l,...n[s]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function qd(t,e){var s;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?qd(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const i=t.join(ws);return(s=e.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId}const Kd=/^\[(.+)\]$/;function Qv(t){if(Kd.test(t)){const e=Kd.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}}function ex(t){const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return rx(Object.entries(t.classGroups),r).forEach(([i,s])=>{ks(s,n,i,e)}),n}function ks(t,e,r,n){t.forEach(o=>{if(typeof o=="string"){const i=o===""?e:Gd(e,o);i.classGroupId=r;return}if(typeof o=="function"){if(tx(o)){ks(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{ks(s,Gd(e,i),r,n)})})}function Gd(t,e){let r=t;return e.split(ws).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function tx(t){return t.isThemeGetter}function rx(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 nx(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 Xd="!";function ox(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 b=0;b<s.length;b++){let m=s[b];if(l===0){if(m===n&&(r||s.slice(b,b+o)===e)){a.push(s.slice(c,b)),c=b+o;continue}if(m==="/"){d=b;continue}}m==="["?l++:m==="]"&&l--}const u=a.length===0?s:s.substring(c),f=u.startsWith(Xd),h=f?u.substring(1):u,p=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}}}function ix(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 sx(t){return{cache:nx(t.cacheSize),splitModifiers:ox(t),...Jv(t)}}const ax=/\s+/;function lx(t,e){const{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:o}=e,i=new Set;return t.trim().split(ax).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=ix(a).join(":");return{isTailwindClass:!0,modifierId:l?h+Xd: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 cx(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Zd(e))&&(n&&(n+=" "),n+=r);return n}function Zd(t){if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Zd(t[n]))&&(r&&(r+=" "),r+=e);return r}function dx(t,...e){let r,n,o,i=s;function s(l){const c=e.reduce((d,u)=>u(d),t());return r=sx(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=lx(l,r);return o(l,d),d}return function(){return i(cx.apply(null,arguments))}}function ye(t){const e=r=>r[t]||[];return e.isThemeGetter=!0,e}const Jd=/^\[(?:([a-z-]+):)?(.+)\]$/i,ux=/^\d+\/\d+$/,fx=new Set(["px","full","screen"]),hx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gx=/\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$/,px=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,bx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Lt(t){return fr(t)||fx.has(t)||ux.test(t)}function Ut(t){return Dr(t,"length",Sx)}function fr(t){return!!t&&!Number.isNaN(Number(t))}function Yo(t){return Dr(t,"number",fr)}function Mn(t){return!!t&&Number.isInteger(Number(t))}function yx(t){return t.endsWith("%")&&fr(t.slice(0,-1))}function Z(t){return Jd.test(t)}function qt(t){return hx.test(t)}const vx=new Set(["length","size","percentage"]);function xx(t){return Dr(t,vx,Qd)}function wx(t){return Dr(t,"position",Qd)}const kx=new Set(["image","url"]);function _x(t){return Dr(t,kx,Ox)}function Cx(t){return Dr(t,"",Ex)}function Pn(){return!0}function Dr(t,e,r){const n=Jd.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1}function Sx(t){return gx.test(t)&&!px.test(t)}function Qd(){return!1}function Ex(t){return bx.test(t)}function Ox(t){return mx.test(t)}function Tx(){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"),b=ye("inset"),m=ye("margin"),v=ye("opacity"),y=ye("padding"),C=ye("saturate"),x=ye("scale"),w=ye("sepia"),_=ye("skew"),O=ye("space"),N=ye("translate"),M=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",Z,e],P=()=>[Z,e],D=()=>["",Lt,Ut],S=()=>["auto",fr,Z],T=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],I=()=>["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"],$=()=>["","0",Z],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[fr,Yo],V=()=>[fr,Z];return{cacheSize:500,separator:":",theme:{colors:[Pn],spacing:[Lt,Ut],blur:["none","",qt,Z],brightness:W(),borderColor:[t],borderRadius:["none","","full",qt,Z],borderSpacing:P(),borderWidth:D(),contrast:W(),grayscale:$(),hueRotate:V(),invert:$(),gap:P(),gradientColorStops:[t],gradientColorStopPositions:[yx,Ut],inset:F(),margin:F(),opacity:W(),padding:P(),saturate:W(),scale:W(),sepia:$(),skew:V(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[qt]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"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:[...T(),Z]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Mn,Z]}],basis:[{basis:F()}],"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:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",Mn,Z]}],"grid-cols":[{"grid-cols":[Pn]}],"col-start-end":[{col:["auto",{span:["full",Mn,Z]},Z]}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":[Pn]}],"row-start-end":[{row:["auto",{span:[Mn,Z]},Z]}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"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:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[O]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[O]}],"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,Ut]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Yo]}],"font-family":[{font:[Pn]}],"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",fr,Yo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Lt,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:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Lt,Ut]}],"underline-offset":[{"underline-offset":["auto",Lt,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:P()}],"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:[...T(),wx]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_x]}],"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:[...I(),"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:I()}],"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:["",...I()]}],"outline-offset":[{"outline-offset":[Lt,Z]}],"outline-w":[{outline:[Lt,Ut]}],"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":[Lt,Ut]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",qt,Cx]}],"shadow-color":[{shadow:[Pn]}],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:[C]}],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":[C]}],"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:[Mn,Z]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Lt,Ut,Yo]}],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 L=dx(Tx);function hr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function An(t){if(!hr(t))return t;const e={};for(const r in t)e[r]=An(t[r]);return e}function H(t,e){if(hr(e)&&Object.keys(e).length===0)return An({...t,...e});const r={...t,...e};if(hr(e)&&hr(t))for(const n in e)hr(e[n])&&n in t&&hr(t[n])?r[n]=H(t[n],e[n]):r[n]=hr(e[n])?An(e[n]):e[n];return r}function N2(t){return t}const Nx={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"}}},Mx={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"},Px={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"}},Ax={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"}}},Dx={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},Ix={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"}},Lx={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"}},Fx={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"}},zx={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"}}},Bx={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"}},jx={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"}}},$x={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"}},Hx={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"}}}}},Wx={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"},Vx={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"}}}},Rx={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"}},Yx={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"}},Ux={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"}}},qx={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"}},Kx={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"}}},Gx={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"}},Xx={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"}}},Zx={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"}},Jx={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"}},Qx={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"}}},ew={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"}},tw={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"}},rw={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"}},nw={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"}}}},ow={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"}}},iw={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"}},sw={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"}}}},aw={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"}},lw={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"}},cw={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"}},dw={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"},uw={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:""}},fw={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:""}}}},hw={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:""}}},gw={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"}},pw={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"}}},bw={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"},mw={theme:An({accordion:Nx,alert:Mx,avatar:Px,badge:Ax,blockquote:Dx,breadcrumb:Ix,button:Lx,buttonGroup:Fx,card:zx,carousel:Bx,checkbox:jx,datepicker:Hx,darkThemeToggle:$x,dropdown:Wx,fileInput:Vx,floatingLabel:Rx,footer:Yx,helperText:Ux,kbd:qx,label:Kx,listGroup:Xx,list:Gx,modal:Zx,navbar:Jx,pagination:Qx,popover:ew,progress:tw,radio:rw,rangeSlider:nw,rating:ow,ratingAdvanced:iw,select:sw,textInput:fw,textarea:uw,toggleSwitch:pw,sidebar:aw,spinner:lw,table:cw,tabs:dw,timeline:hw,toast:gw,tooltip:bw})};function K(){return An(mw.theme)}const eu=k.createContext(void 0);function tu(){const t=k.useContext(eu);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const ru=({children:t,className:e,theme:r={},...n})=>{const{isOpen:o}=tu(),i=H(K().accordion.content,r);return g.jsx("div",{className:L(i.base,e),"data-testid":"flowbite-accordion-content",hidden:!o,...n,children:t})},nu=({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(eu.Provider,{value:i,children:t})},ou=({as:t="h2",children:e,className:r,theme:n={},...o})=>{const{arrowIcon:i,flush:s,isOpen:a,setOpen:l}=tu(),c=()=>typeof l<"u"&&l(),d=H(K().accordion.title,n);return g.jsxs("button",{className:L(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:L(d.arrow.base,d.arrow.open[a?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},iu=({alwaysOpen:t=!1,arrowIcon:e=Wd,children:r,flush:n=!1,collapseAll:o=!1,className:i,theme:s={},...a})=>{const[l,c]=k.useState(o?-1:0),d=k.useMemo(()=>k.Children.map(r,(f,h)=>k.cloneElement(f,{alwaysOpen:t,arrowIcon:e,flush:n,isOpen:l===h,setOpen:()=>c(l===h?-1:h)})),[t,e,r,n,l]),u=H(K().accordion.root,s);return g.jsx("div",{className:L(u.base,u.flush[n?"on":"off"],i),"data-testid":"flowbite-accordion",...a,children:d})};iu.displayName="Accordion",nu.displayName="Accordion.Panel",ou.displayName="Accordion.Title",ru.displayName="Accordion.Content",Object.assign(iu,{Panel:nu,Title:ou,Content:ru});const su=({children:t,className:e,theme:r={},...n})=>{const o=H(K().avatar.group,r);return g.jsx("div",{"data-testid":"avatar-group-element",className:L(o.base,e),...n,children:t})};su.displayName="Avatar.Group";const au=({className:t,href:e,theme:r={},total:n,...o})=>{const i=H(K().avatar.groupCounter,r);return g.jsxs("a",{href:e,className:L(i.base,t),...o,children:["+",n]})};au.displayName="Avatar.GroupCounter";const lu=({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(K().avatar,f),b=L(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]),m={className:L(b,p.root.img.on),"data-testid":"flowbite-avatar-img"};return g.jsxs("div",{className:L(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,...m}):i({alt:t,...m}):s?g.jsx("div",{className:L(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:L(p.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:s})}):g.jsx("div",{className:L(b,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:L(p.root.status.base,p.root.status[d],p.root.statusPosition[u])})]}),r&&g.jsx("div",{children:r})]})};lu.displayName="Avatar",Object.assign(lu,{Group:su,Counter:au});const cu=({children:t,color:e="info",href:r,icon:n,size:o="xs",className:i,theme:s={},...a})=>{const l=H(K().badge,s),c=()=>g.jsxs("span",{className:L(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,{})};cu.displayName="Badge";const du=({className:t,color:e="info",light:r,size:n="md",theme:o={},...i})=>{const s=H(K().spinner,o);return g.jsx("span",{role:"status",...i,children:g.jsxs("svg",{fill:"none",viewBox:"0 0 100 101",className:L(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"})]})})};du.displayName="Spinner";const _s=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)});_s.displayName="ButtonBaseComponent";const uu=(t,e,r)=>k.Children.map(t,(n,o)=>k.isValidElement(n)?n.props.children?k.cloneElement(n,{...n.props,children:uu(n.props.children,e,r),positionInGroup:fu(o,k.Children.count(t))}):k.cloneElement(n,{outline:e,pill:r,positionInGroup:fu(o,k.Children.count(t))}):n),fu=(t,e)=>t===0?"start":t===e-1?"end":"middle",hu=({children:t,className:e,outline:r,pill:n,theme:o={},...i})=>{const s=k.useMemo(()=>uu(t,r,n),[t,r,n]),a=H(K().buttonGroup,o);return g.jsx("div",{className:L(a.base,e),role:"group",...i,children:s})};hu.displayName="Button.Group";const gu=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:b={},...m},v)=>{const{buttonGroup:y,button:C}=K(),x=H(C,b),w=m;return g.jsx(_s,{ref:v,disabled:n,className:L(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:L(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:L(x.spinnerSlot,x.spinnerLeftPosition[p]),children:a||g.jsx(du,{size:p})}),typeof t<"u"?t:g.jsx("span",{"data-testid":"flowbite-button-label",className:L(x.label),children:i?s:d})]})})})});gu.displayName="Button";const pu=Object.assign(gu,{Group:hu}),bu=({children:t,...e})=>{const r=n=>{const i=n.target.closest('[role="banner"]');i==null||i.remove()};return g.jsx(pu,{onClick:r,...e,children:t})};bu.displayName="Banner.CollapseButton";const mu=({children:t,...e})=>g.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});mu.displayName="Banner",Object.assign(mu,{CollapseButton:bu});const yu=k.forwardRef(({children:t,className:e,href:r,icon:n,theme:o={},...i},s)=>{const a=typeof r<"u",l=a?"a":"span",c=H(K().breadcrumb.item,o);return g.jsxs("li",{className:L(c.base,e),...i,children:[g.jsx(Ud,{"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]})]})});yu.displayName="Breadcrumb.Item";const vu=({children:t,className:e,theme:r={},...n})=>{const o=H(K().breadcrumb.root,r);return g.jsx("nav",{"aria-label":"Breadcrumb",className:L(o.base,e),...n,children:g.jsx("ol",{className:o.list,children:t})})};vu.displayName="Breadcrumb",Object.assign(vu,{Item:yu});function xu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var wu={exports:{}};/*!
|
|
480
|
+
`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},_e.button,function(e){var t=e.level,r=e.disabled,n=e.active,o=e.collapsed,i=e.rtl;return Cb({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),$4=function(e,t){var r,n=e.children,o=e.icon,i=e.className,s=e.prefix,a=e.suffix,l=e.active,c=l===void 0?!1:l,d=e.disabled,u=d===void 0?!1:d,f=e.component,h=e.rootStyles,g=Rn(e,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),p=k.useContext(il),m=k.useContext(ol),x=m.collapsed,y=m.rtl,_=m.transitionDuration,v=ru().menuItemStyles,w=function(M){if(v){var N={level:p,disabled:u,active:c,isSubmenu:!1},O=v.root,E=v.button,z=v.label,T=v.icon,P=v.prefix,D=v.suffix;switch(M){case"root":return typeof O=="function"?O(N):O;case"button":return typeof E=="function"?E(N):E;case"label":return typeof z=="function"?z(N):z;case"icon":return typeof T=="function"?T(N):T;case"prefix":return typeof P=="function"?P(N):P;case"suffix":return typeof D=="function"?D(N):D;default:return}}},C=(r={},r[_e.active]=c,r[_e.disabled]=u,r);return k.createElement(H4,{ref:t,className:ot(_e.menuItemRoot,C,i),menuItemStyles:w("root"),level:p,collapsed:x,rtl:y,disabled:u,active:c,buttonStyles:w("button"),rootStyles:h},k.createElement(Sb,Xt({className:ot(_e.button,C),"data-testid":"".concat(_e.button,"-test-id"),component:f,tabIndex:0},g),o&&k.createElement(G0,{rtl:y,className:ot(_e.icon,C),rootStyles:w("icon")},o),s&&k.createElement(Z0,{collapsed:x,transitionDuration:_,firstLevel:p===0,className:ot(_e.prefix,C),rtl:y,rootStyles:w("prefix")},s),k.createElement(q0,{className:ot(_e.label,C),rootStyles:w("label")},n),a&&k.createElement(J0,{collapsed:x,transitionDuration:_,firstLevel:p===0,className:ot(_e.suffix,C),rootStyles:w("suffix")},a)))},V4=k.forwardRef($4),Ob,Y4=Object.defineProperty,U4=(e,t,r)=>t in e?Y4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pe=(e,t,r)=>U4(e,typeof t!="symbol"?t+"":t,r);const Nb=({src:e,alt:t,width:r,height:n,classIm:o})=>b.jsx("img",{className:o,src:e,alt:t,width:r,height:n}),R4=k.forwardRef(({placeholder:e,label:t,error:r,type:n,classInclude:o,maxLength:i,onChange:s,...a},l)=>b.jsxs("div",{className:"mb-5",children:[t&&b.jsx("label",{className:" mb-1 block font-semibold",children:t}),b.jsx("input",{ref:l,type:n,placeholder:e,className:`w-full border p-2 ${o||""}`,maxLength:i,onChange:s,...a}),r&&b.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));R4.displayName="InputForm";var Mb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Tb=k.createContext&&k.createContext(Mb),q4=["attr","size","title"];function X4(e,t){if(e==null)return{};var r=G4(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function G4(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ul.apply(this,arguments)}function Db(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function fl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Db(Object(r),!0).forEach(function(n){K4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Db(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K4(e,t,r){return t=Z4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z4(e){var t=Q4(e,"string");return typeof t=="symbol"?t:String(t)}function Q4(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pb(e){return e&&e.map((t,r)=>k.createElement(t.tag,fl({key:r},t.attr),Pb(t.child)))}function Tt(e){return t=>k.createElement(J4,ul({attr:fl({},e.attr)},t),Pb(e.child))}function J4(e){var t=r=>{var{attr:n,size:o,title:i}=e,s=X4(e,q4),a=o||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),k.createElement("svg",ul({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:l,style:fl(fl({color:e.color||r.color},r.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&k.createElement("title",null,i),e.children)};return Tb!==void 0?k.createElement(Tb.Consumer,null,r=>t(r)):t(Mb)}function eM(e){return Tt({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:[]}]})(e)}const tM=k.forwardRef(({options:e,label:t,error:r,value:n,onChange:o,...i},s)=>b.jsxs("div",{className:"mb-5",children:[t&&b.jsx("label",{className:"mb-1 block font-semibold",children:t}),b.jsxs("select",{ref:s,className:"w-full rounded border p-2",value:n,onChange:o,...i,children:[b.jsx("option",{disabled:!0,value:"",children:"Seleccione una opción"}),e==null?void 0:e.map(a=>b.jsx("option",{value:a.value,children:a.label},a.value))]}),r&&b.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));tM.displayName="SelectForm";/*!
|
|
481
|
+
* @kurkle/color v0.3.4
|
|
482
|
+
* https://github.com/kurkle/color#readme
|
|
483
|
+
* (c) 2024 Jukka Kurkela
|
|
484
|
+
* Released under the MIT License
|
|
485
|
+
*/function ns(e){return e+.5|0}const vn=(e,t,r)=>Math.max(Math.min(e,r),t);function os(e){return vn(ns(e*2.55),0,255)}function xn(e){return vn(ns(e*255),0,255)}function Qr(e){return vn(ns(e/2.55)/100,0,1)}function Ib(e){return vn(ns(e*100),0,100)}const sr={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},fu=[..."0123456789ABCDEF"],rM=e=>fu[e&15],nM=e=>fu[(e&240)>>4]+fu[e&15],hl=e=>(e&240)>>4===(e&15),oM=e=>hl(e.r)&&hl(e.g)&&hl(e.b)&&hl(e.a);function iM(e){var t=e.length,r;return e[0]==="#"&&(t===4||t===5?r={r:255&sr[e[1]]*17,g:255&sr[e[2]]*17,b:255&sr[e[3]]*17,a:t===5?sr[e[4]]*17:255}:(t===7||t===9)&&(r={r:sr[e[1]]<<4|sr[e[2]],g:sr[e[3]]<<4|sr[e[4]],b:sr[e[5]]<<4|sr[e[6]],a:t===9?sr[e[7]]<<4|sr[e[8]]:255})),r}const sM=(e,t)=>e<255?t(e):"";function aM(e){var t=oM(e)?rM:nM;return e?"#"+t(e.r)+t(e.g)+t(e.b)+sM(e.a,t):void 0}const lM=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ab(e,t,r){const n=t*Math.min(r,1-r),o=(i,s=(i+e/30)%12)=>r-n*Math.max(Math.min(s-3,9-s,1),-1);return[o(0),o(8),o(4)]}function cM(e,t,r){const n=(o,i=(o+e/60)%6)=>r-r*t*Math.max(Math.min(i,4-i,1),0);return[n(5),n(3),n(1)]}function dM(e,t,r){const n=Ab(e,1,.5);let o;for(t+r>1&&(o=1/(t+r),t*=o,r*=o),o=0;o<3;o++)n[o]*=1-t-r,n[o]+=t;return n}function uM(e,t,r,n,o){return e===o?(t-r)/n+(t<r?6:0):t===o?(r-e)/n+2:(e-t)/n+4}function hu(e){const t=e.r/255,r=e.g/255,n=e.b/255,o=Math.max(t,r,n),i=Math.min(t,r,n),s=(o+i)/2;let a,l,c;return o!==i&&(c=o-i,l=s>.5?c/(2-o-i):c/(o+i),a=uM(t,r,n,c,o),a=a*60+.5),[a|0,l||0,s]}function gu(e,t,r,n){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,r,n)).map(xn)}function pu(e,t,r){return gu(Ab,e,t,r)}function fM(e,t,r){return gu(dM,e,t,r)}function hM(e,t,r){return gu(cM,e,t,r)}function Lb(e){return(e%360+360)%360}function gM(e){const t=lM.exec(e);let r=255,n;if(!t)return;t[5]!==n&&(r=t[6]?os(+t[5]):xn(+t[5]));const o=Lb(+t[2]),i=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?n=fM(o,i,s):t[1]==="hsv"?n=hM(o,i,s):n=pu(o,i,s),{r:n[0],g:n[1],b:n[2],a:r}}function pM(e,t){var r=hu(e);r[0]=Lb(r[0]+t),r=pu(r),e.r=r[0],e.g=r[1],e.b=r[2]}function bM(e){if(!e)return;const t=hu(e),r=t[0],n=Ib(t[1]),o=Ib(t[2]);return e.a<255?`hsla(${r}, ${n}%, ${o}%, ${Qr(e.a)})`:`hsl(${r}, ${n}%, ${o}%)`}const zb={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"},Fb={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 mM(){const e={},t=Object.keys(Fb),r=Object.keys(zb);let n,o,i,s,a;for(n=0;n<t.length;n++){for(s=a=t[n],o=0;o<r.length;o++)i=r[o],a=a.replace(i,zb[i]);i=parseInt(Fb[s],16),e[a]=[i>>16&255,i>>8&255,i&255]}return e}let gl;function yM(e){gl||(gl=mM(),gl.transparent=[0,0,0,0]);const t=gl[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const vM=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function xM(e){const t=vM.exec(e);let r=255,n,o,i;if(t){if(t[7]!==n){const s=+t[7];r=t[8]?os(s):vn(s*255,0,255)}return n=+t[1],o=+t[3],i=+t[5],n=255&(t[2]?os(n):vn(n,0,255)),o=255&(t[4]?os(o):vn(o,0,255)),i=255&(t[6]?os(i):vn(i,0,255)),{r:n,g:o,b:i,a:r}}}function wM(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Qr(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const bu=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,jo=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function kM(e,t,r){const n=jo(Qr(e.r)),o=jo(Qr(e.g)),i=jo(Qr(e.b));return{r:xn(bu(n+r*(jo(Qr(t.r))-n))),g:xn(bu(o+r*(jo(Qr(t.g))-o))),b:xn(bu(i+r*(jo(Qr(t.b))-i))),a:e.a+r*(t.a-e.a)}}function pl(e,t,r){if(e){let n=hu(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*r,t===0?360:1)),n=pu(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function jb(e,t){return e&&Object.assign(t||{},e)}function Bb(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=xn(e[3]))):(t=jb(e,{r:0,g:0,b:0,a:1}),t.a=xn(t.a)),t}function _M(e){return e.charAt(0)==="r"?xM(e):gM(e)}class is{constructor(t){if(t instanceof is)return t;const r=typeof t;let n;r==="object"?n=Bb(t):r==="string"&&(n=iM(t)||yM(t)||_M(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=jb(this._rgb);return t&&(t.a=Qr(t.a)),t}set rgb(t){this._rgb=Bb(t)}rgbString(){return this._valid?wM(this._rgb):void 0}hexString(){return this._valid?aM(this._rgb):void 0}hslString(){return this._valid?bM(this._rgb):void 0}mix(t,r){if(t){const n=this.rgb,o=t.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(t,r){return t&&(this._rgb=kM(this._rgb,t._rgb,r)),this}clone(){return new is(this.rgb)}alpha(t){return this._rgb.a=xn(t),this}clearer(t){const r=this._rgb;return r.a*=1-t,this}greyscale(){const t=this._rgb,r=ns(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=r,this}opaquer(t){const r=this._rgb;return r.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return pl(this._rgb,2,t),this}darken(t){return pl(this._rgb,2,-t),this}saturate(t){return pl(this._rgb,1,t),this}desaturate(t){return pl(this._rgb,1,-t),this}rotate(t){return pM(this._rgb,t),this}}/*!
|
|
486
|
+
* Chart.js v4.4.8
|
|
487
|
+
* https://www.chartjs.org
|
|
488
|
+
* (c) 2025 Chart.js Contributors
|
|
489
|
+
* Released under the MIT License
|
|
490
|
+
*/function Jr(){}const CM=(()=>{let e=0;return()=>e++})();function St(e){return e==null}function pt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function we(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function en(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Mr(e,t){return en(e)?e:t}function Te(e,t){return typeof e>"u"?t:e}const SM=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,Wb=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Be(e,t,r){if(e&&typeof e.call=="function")return e.apply(r,t)}function De(e,t,r,n){let o,i,s;if(pt(e))for(i=e.length,o=0;o<i;o++)t.call(r,e[o],o);else if(we(e))for(s=Object.keys(e),i=s.length,o=0;o<i;o++)t.call(r,e[s[o]],s[o])}function bl(e,t){let r,n,o,i;if(!e||!t||e.length!==t.length)return!1;for(r=0,n=e.length;r<n;++r)if(o=e[r],i=t[r],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function ml(e){if(pt(e))return e.map(ml);if(we(e)){const t=Object.create(null),r=Object.keys(e),n=r.length;let o=0;for(;o<n;++o)t[r[o]]=ml(e[r[o]]);return t}return e}function Hb(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function EM(e,t,r,n){if(!Hb(e))return;const o=t[e],i=r[e];we(o)&&we(i)?ss(o,i,n):t[e]=ml(i)}function ss(e,t,r){const n=pt(t)?t:[t],o=n.length;if(!we(e))return e;r=r||{};const i=r.merger||EM;let s;for(let a=0;a<o;++a){if(s=n[a],!we(s))continue;const l=Object.keys(s);for(let c=0,d=l.length;c<d;++c)i(l[c],e,s,r)}return e}function as(e,t){return ss(e,t,{merger:OM})}function OM(e,t,r){if(!Hb(e))return;const n=t[e],o=r[e];we(n)&&we(o)?as(n,o):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=ml(o))}const $b={"":e=>e,x:e=>e.x,y:e=>e.y};function NM(e){const t=e.split("."),r=[];let n="";for(const o of t)n+=o,n.endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}function MM(e){const t=NM(e);return r=>{for(const n of t){if(n==="")break;r=r&&r[n]}return r}}function ls(e,t){return($b[t]||($b[t]=MM(t)))(e)}function mu(e){return e.charAt(0).toUpperCase()+e.slice(1)}const yl=e=>typeof e<"u",wn=e=>typeof e=="function",Vb=(e,t)=>{if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0};function TM(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const ut=Math.PI,Je=2*ut,vl=Number.POSITIVE_INFINITY,DM=ut/180,it=ut/2,Zn=ut/4,Yb=ut*2/3,Ub=Math.sign;function PM(e){const t=[],r=Math.sqrt(e);let n;for(n=1;n<r;n++)e%n===0&&(t.push(n),t.push(e/n));return r===(r|0)&&t.push(r),t.sort((o,i)=>o-i).pop(),t}function IM(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function xl(e){return!IM(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function Qn(e){return e*(ut/180)}function AM(e){return e*(180/ut)}function Rb(e,t){const r=t.x-e.x,n=t.y-e.y,o=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i<-.5*ut&&(i+=Je),{angle:i,distance:o}}function LM(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Jn(e){return(e%Je+Je)%Je}function wl(e,t,r,n){const o=Jn(e),i=Jn(t),s=Jn(r),a=Jn(i-o),l=Jn(s-o),c=Jn(o-i),d=Jn(o-s);return o===i||o===s||n&&i===s||a>l&&c<d}function ar(e,t,r){return Math.max(t,Math.min(r,e))}function zM(e){return ar(e,-32768,32767)}function cs(e,t,r,n=1e-6){return e>=Math.min(t,r)-n&&e<=Math.max(t,r)+n}function yu(e,t,r){r=r||(s=>e[s]<t);let n=e.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 vu=(e,t,r,n)=>yu(e,r,n?o=>{const i=e[o][t];return i<r||i===r&&e[o+1][t]===r}:o=>e[o][t]<r),FM=(e,t,r)=>yu(e,r,n=>e[n][t]>=r);function jM(e,t,r){let n=0,o=e.length;for(;n<o&&e[n]<t;)n++;for(;o>n&&e[o-1]>r;)o--;return n>0||o<e.length?e.slice(n,o):e}const qb=["push","pop","shift","splice","unshift"];function BM(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),qb.forEach(r=>{const n="_onData"+mu(r),o=e[r];Object.defineProperty(e,r,{configurable:!0,enumerable:!1,value(...i){const s=o.apply(this,i);return e._chartjs.listeners.forEach(a=>{typeof a[n]=="function"&&a[n](...i)}),s}})})}function Xb(e,t){const r=e._chartjs;if(!r)return;const n=r.listeners,o=n.indexOf(t);o!==-1&&n.splice(o,1),!(n.length>0)&&(qb.forEach(i=>{delete e[i]}),delete e._chartjs)}function WM(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Gb=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function Kb(e,t){let r=[],n=!1;return function(...o){r=o,n||(n=!0,Gb.call(window,()=>{n=!1,e.apply(t,r)}))}}function HM(e,t){let r;return function(...n){return t?(clearTimeout(r),r=setTimeout(e,t,n)):e.apply(this,n),t}}const Zb=e=>e==="start"?"left":e==="end"?"right":"center",Zt=(e,t,r)=>e==="start"?t:e==="end"?r:(t+r)/2,$M=(e,t,r,n)=>e===(n?"left":"right")?r:e==="center"?(t+r)/2:t,kl=e=>e===0||e===1,Qb=(e,t,r)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Je/r)),Jb=(e,t,r)=>Math.pow(2,-10*e)*Math.sin((e-t)*Je/r)+1,ds={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*it)+1,easeOutSine:e=>Math.sin(e*it),easeInOutSine:e=>-.5*(Math.cos(ut*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>kl(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>kl(e)?e:Qb(e,.075,.3),easeOutElastic:e=>kl(e)?e:Jb(e,.075,.3),easeInOutElastic(e){return kl(e)?e:e<.5?.5*Qb(e*2,.1125,.45):.5+.5*Jb(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-ds.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?ds.easeInBounce(e*2)*.5:ds.easeOutBounce(e*2-1)*.5+.5};function em(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function tm(e){return em(e)?e:new is(e)}function xu(e){return em(e)?e:new is(e).saturate(.5).darken(.1).hexString()}const VM=["x","y","borderWidth","radius","tension"],YM=["color","borderColor","backgroundColor"];function UM(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:YM},numbers:{type:"number",properties:VM}}),e.describe("animations",{_fallback:"animation"}),e.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:t=>t|0}}}})}function RM(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const rm=new Map;function qM(e,t){t=t||{};const r=e+JSON.stringify(t);let n=rm.get(r);return n||(n=new Intl.NumberFormat(e,t),rm.set(r,n)),n}function XM(e,t,r){return qM(t,r).format(e)}var GM={formatters:{values(e){return pt(e)?e:""+e}}};function KM(e){e.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:(t,r)=>r.lineWidth,tickColor:(t,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:GM.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const eo=Object.create(null),wu=Object.create(null);function us(e,t){if(!t)return e;const r=t.split(".");for(let n=0,o=r.length;n<o;++n){const i=r[n];e=e[i]||(e[i]=Object.create(null))}return e}function ku(e,t,r){return typeof t=="string"?ss(us(e,t),r):ss(us(e,""),t)}class ZM{constructor(t,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)=>xu(o.backgroundColor),this.hoverBorderColor=(n,o)=>xu(o.borderColor),this.hoverColor=(n,o)=>xu(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(t),this.apply(r)}set(t,r){return ku(this,t,r)}get(t){return us(this,t)}describe(t,r){return ku(wu,t,r)}override(t,r){return ku(eo,t,r)}route(t,r,n,o){const i=us(this,t),s=us(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 we(l)?Object.assign({},c,l):Te(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(r=>r(this))}}var Ge=new ZM({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[UM,RM,KM]);function QM(e){return!e||St(e.size)||St(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function nm(e,t,r,n,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,r.push(o)),i>n&&(n=i),n}function to(e,t,r){const n=e.currentDevicePixelRatio,o=r!==0?Math.max(r/2,.5):0;return Math.round((t-o)*n)/n+o}function om(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function im(e,t,r,n){sm(e,t,r,n,null)}function sm(e,t,r,n,o){let i,s,a,l,c,d,u,f;const h=t.pointStyle,g=t.rotation,p=t.radius;let m=(g||0)*DM;if(h&&typeof h=="object"&&(i=h.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){e.save(),e.translate(r,n),e.rotate(m),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(p)||p<=0)){switch(e.beginPath(),h){default:o?e.ellipse(r,n,o/2,p,0,0,Je):e.arc(r,n,p,0,Je),e.closePath();break;case"triangle":d=o?o/2:p,e.moveTo(r+Math.sin(m)*d,n-Math.cos(m)*p),m+=Yb,e.lineTo(r+Math.sin(m)*d,n-Math.cos(m)*p),m+=Yb,e.lineTo(r+Math.sin(m)*d,n-Math.cos(m)*p),e.closePath();break;case"rectRounded":c=p*.516,l=p-c,s=Math.cos(m+Zn)*l,u=Math.cos(m+Zn)*(o?o/2-c:l),a=Math.sin(m+Zn)*l,f=Math.sin(m+Zn)*(o?o/2-c:l),e.arc(r-u,n-a,c,m-ut,m-it),e.arc(r+f,n-s,c,m-it,m),e.arc(r+u,n+a,c,m,m+it),e.arc(r-f,n+s,c,m+it,m+ut),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*p,d=o?o/2:l,e.rect(r-d,n-l,2*d,2*l);break}m+=Zn;case"rectRot":u=Math.cos(m)*(o?o/2:p),s=Math.cos(m)*p,a=Math.sin(m)*p,f=Math.sin(m)*(o?o/2:p),e.moveTo(r-u,n-a),e.lineTo(r+f,n-s),e.lineTo(r+u,n+a),e.lineTo(r-f,n+s),e.closePath();break;case"crossRot":m+=Zn;case"cross":u=Math.cos(m)*(o?o/2:p),s=Math.cos(m)*p,a=Math.sin(m)*p,f=Math.sin(m)*(o?o/2:p),e.moveTo(r-u,n-a),e.lineTo(r+u,n+a),e.moveTo(r+f,n-s),e.lineTo(r-f,n+s);break;case"star":u=Math.cos(m)*(o?o/2:p),s=Math.cos(m)*p,a=Math.sin(m)*p,f=Math.sin(m)*(o?o/2:p),e.moveTo(r-u,n-a),e.lineTo(r+u,n+a),e.moveTo(r+f,n-s),e.lineTo(r-f,n+s),m+=Zn,u=Math.cos(m)*(o?o/2:p),s=Math.cos(m)*p,a=Math.sin(m)*p,f=Math.sin(m)*(o?o/2:p),e.moveTo(r-u,n-a),e.lineTo(r+u,n+a),e.moveTo(r+f,n-s),e.lineTo(r-f,n+s);break;case"line":s=o?o/2:Math.cos(m)*p,a=Math.sin(m)*p,e.moveTo(r-s,n-a),e.lineTo(r+s,n+a);break;case"dash":e.moveTo(r,n),e.lineTo(r+Math.cos(m)*(o?o/2:p),n+Math.sin(m)*p);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function am(e,t,r){return r=r||.5,!t||e&&e.x>t.left-r&&e.x<t.right+r&&e.y>t.top-r&&e.y<t.bottom+r}function _u(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Cu(e){e.restore()}function JM(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),St(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function eT(e,t,r,n,o){if(o.strikethrough||o.underline){const i=e.measureText(n),s=t-i.actualBoundingBoxLeft,a=t+i.actualBoundingBoxRight,l=r-i.actualBoundingBoxAscent,c=r+i.actualBoundingBoxDescent,d=o.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=o.decorationWidth||2,e.moveTo(s,d),e.lineTo(a,d),e.stroke()}}function tT(e,t){const r=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=r}function _l(e,t,r,n,o,i={}){const s=pt(t)?t:[t],a=i.strokeWidth>0&&i.strokeColor!=="";let l,c;for(e.save(),e.font=o.string,JM(e,i),l=0;l<s.length;++l)c=s[l],i.backdrop&&tT(e,i.backdrop),a&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),St(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(c,r,n,i.maxWidth)),e.fillText(c,r,n,i.maxWidth),eT(e,r,n,c,i),n+=Number(o.lineHeight);e.restore()}function Su(e,t){const{x:r,y:n,w:o,h:i,radius:s}=t;e.arc(r+s.topLeft,n+s.topLeft,s.topLeft,1.5*ut,ut,!0),e.lineTo(r,n+i-s.bottomLeft),e.arc(r+s.bottomLeft,n+i-s.bottomLeft,s.bottomLeft,ut,it,!0),e.lineTo(r+o-s.bottomRight,n+i),e.arc(r+o-s.bottomRight,n+i-s.bottomRight,s.bottomRight,it,0,!0),e.lineTo(r+o,n+s.topRight),e.arc(r+o-s.topRight,n+s.topRight,s.topRight,0,-it,!0),e.lineTo(r+s.topLeft,n)}const rT=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,nT=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function oT(e,t){const r=(""+e).match(rT);if(!r||r[1]==="normal")return t*1.2;switch(e=+r[2],r[3]){case"px":return e;case"%":e/=100;break}return t*e}const iT=e=>+e||0;function Eu(e,t){const r={},n=we(t),o=n?Object.keys(t):t,i=we(e)?n?s=>Te(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of o)r[s]=iT(i(s));return r}function sT(e){return Eu(e,{top:"y",right:"x",bottom:"y",left:"x"})}function fs(e){return Eu(e,["topLeft","topRight","bottomLeft","bottomRight"])}function yr(e){const t=sT(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Bt(e,t){e=e||{},t=t||Ge.font;let r=Te(e.size,t.size);typeof r=="string"&&(r=parseInt(r,10));let n=Te(e.style,t.style);n&&!(""+n).match(nT)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const o={family:Te(e.family,t.family),lineHeight:oT(Te(e.lineHeight,t.lineHeight),r),size:r,style:n,weight:Te(e.weight,t.weight),string:""};return o.string=QM(o),o}function Cl(e,t,r,n){let o,i,s;for(o=0,i=e.length;o<i;++o)if(s=e[o],s!==void 0&&s!==void 0)return s}function aT(e,t,r){const{min:n,max:o}=e,i=Wb(t,(o-n)/2),s=(a,l)=>r&&a===0?0:a+l;return{min:s(n,-Math.abs(i)),max:s(o,i)}}function Bo(e,t){return Object.assign(Object.create(e),t)}function Ou(e,t=[""],r,n,o=()=>e[0]){const i=r||e;typeof n>"u"&&(n=fm("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:n,_getTarget:o,override:a=>Ou([a,...e],t,i,n)};return new Proxy(s,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return cm(a,l,()=>pT(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return hm(a).includes(l)},ownKeys(a){return hm(a)},set(a,l,c){const d=a._storage||(a._storage=o());return a[l]=d[l]=c,delete a._keys,!0}})}function Wo(e,t,r,n){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:r,_stack:new Set,_descriptors:lm(e,n),setContext:i=>Wo(e,i,r,n),override:i=>Wo(e.override(i),t,r,n)};return new Proxy(o,{deleteProperty(i,s){return delete i[s],delete e[s],!0},get(i,s,a){return cm(i,s,()=>cT(i,s,a))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(i,s,a){return e[s]=a,delete i[s],!0}})}function lm(e,t={scriptable:!0,indexable:!0}){const{_scriptable:r=t.scriptable,_indexable:n=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:r,indexable:n,isScriptable:wn(r)?r:()=>r,isIndexable:wn(n)?n:()=>n}}const lT=(e,t)=>e?e+mu(t):t,Nu=(e,t)=>we(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function cm(e,t,r){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const n=r();return e[t]=n,n}function cT(e,t,r){const{_proxy:n,_context:o,_subProxy:i,_descriptors:s}=e;let a=n[t];return wn(a)&&s.isScriptable(t)&&(a=dT(t,a,e,r)),pt(a)&&a.length&&(a=uT(t,a,e,s.isIndexable)),Nu(t,a)&&(a=Wo(a,o,i&&i[t],s)),a}function dT(e,t,r,n){const{_proxy:o,_context:i,_subProxy:s,_stack:a}=r;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(i,s||n);return a.delete(e),Nu(e,l)&&(l=Mu(o._scopes,o,e,l)),l}function uT(e,t,r,n){const{_proxy:o,_context:i,_subProxy:s,_descriptors:a}=r;if(typeof i.index<"u"&&n(e))return t[i.index%t.length];if(we(t[0])){const l=t,c=o._scopes.filter(d=>d!==l);t=[];for(const d of l){const u=Mu(c,o,e,d);t.push(Wo(u,i,s&&s[e],a))}}return t}function dm(e,t,r){return wn(e)?e(t,r):e}const fT=(e,t)=>e===!0?t:typeof e=="string"?ls(t,e):void 0;function hT(e,t,r,n,o){for(const i of t){const s=fT(r,i);if(s){e.add(s);const a=dm(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 Mu(e,t,r,n){const o=t._rootScopes,i=dm(t._fallback,r,n),s=[...e,...o],a=new Set;a.add(n);let l=um(a,s,r,i||r,n);return l===null||typeof i<"u"&&i!==r&&(l=um(a,s,i,l,n),l===null)?!1:Ou(Array.from(a),[""],o,i,()=>gT(t,r,n))}function um(e,t,r,n,o){for(;r;)r=hT(e,t,r,n,o);return r}function gT(e,t,r){const n=e._getTarget();t in n||(n[t]={});const o=n[t];return pt(o)&&we(r)?r:o||{}}function pT(e,t,r,n){let o;for(const i of t)if(o=fm(lT(i,e),r),typeof o<"u")return Nu(e,o)?Mu(r,n,e,o):o}function fm(e,t){for(const r of t){if(!r)continue;const n=r[e];if(typeof n<"u")return n}}function hm(e){let t=e._keys;return t||(t=e._keys=bT(e._scopes)),t}function bT(e){const t=new Set;for(const r of e)for(const n of Object.keys(r).filter(o=>!o.startsWith("_")))t.add(n);return Array.from(t)}function Tu(){return typeof window<"u"&&typeof document<"u"}function Du(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Sl(e,t,r){let n;return typeof e=="string"?(n=parseInt(e,10),e.indexOf("%")!==-1&&(n=n/100*t.parentNode[r])):n=e,n}const El=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function mT(e,t){return El(e).getPropertyValue(t)}const yT=["top","right","bottom","left"];function ro(e,t,r){const n={};r=r?"-"+r:"";for(let o=0;o<4;o++){const i=yT[o];n[i]=parseFloat(e[t+"-"+i+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const vT=(e,t,r)=>(e>0||t>0)&&(!r||!r.shadowRoot);function xT(e,t){const r=e.touches,n=r&&r.length?r[0]:e,{offsetX:o,offsetY:i}=n;let s=!1,a,l;if(vT(o,i,e.target))a=o,l=i;else{const c=t.getBoundingClientRect();a=n.clientX-c.left,l=n.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function no(e,t){if("native"in e)return e;const{canvas:r,currentDevicePixelRatio:n}=t,o=El(r),i=o.boxSizing==="border-box",s=ro(o,"padding"),a=ro(o,"border","width"),{x:l,y:c,box:d}=xT(e,r),u=s.left+(d&&a.left),f=s.top+(d&&a.top);let{width:h,height:g}=t;return i&&(h-=s.width+a.width,g-=s.height+a.height),{x:Math.round((l-u)/h*r.width/n),y:Math.round((c-f)/g*r.height/n)}}function wT(e,t,r){let n,o;if(t===void 0||r===void 0){const i=e&&Du(e);if(!i)t=e.clientWidth,r=e.clientHeight;else{const s=i.getBoundingClientRect(),a=El(i),l=ro(a,"border","width"),c=ro(a,"padding");t=s.width-c.width-l.width,r=s.height-c.height-l.height,n=Sl(a.maxWidth,i,"clientWidth"),o=Sl(a.maxHeight,i,"clientHeight")}}return{width:t,height:r,maxWidth:n||vl,maxHeight:o||vl}}const Ol=e=>Math.round(e*10)/10;function kT(e,t,r,n){const o=El(e),i=ro(o,"margin"),s=Sl(o.maxWidth,e,"clientWidth")||vl,a=Sl(o.maxHeight,e,"clientHeight")||vl,l=wT(e,t,r);let{width:c,height:d}=l;if(o.boxSizing==="content-box"){const u=ro(o,"border","width"),f=ro(o,"padding");c-=f.width+u.width,d-=f.height+u.height}return c=Math.max(0,c-i.width),d=Math.max(0,n?c/n:d-i.height),c=Ol(Math.min(c,s,l.maxWidth)),d=Ol(Math.min(d,a,l.maxHeight)),c&&!d&&(d=Ol(c/2)),(t!==void 0||r!==void 0)&&n&&l.height&&d>l.height&&(d=l.height,c=Ol(Math.floor(d*n))),{width:c,height:d}}function gm(e,t,r){const n=t||1,o=Math.floor(e.height*n),i=Math.floor(e.width*n);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const s=e.canvas;return s.style&&(r||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==n||s.height!==o||s.width!==i?(e.currentDevicePixelRatio=n,s.height=o,s.width=i,e.ctx.setTransform(n,0,0,n,0,0),!0):!1}const _T=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Tu()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function pm(e,t){const r=mT(e,t),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}const CT=function(e,t){return{x(r){return e+e+t-r},setWidth(r){t=r},textAlign(r){return r==="center"?r:r==="right"?"left":"right"},xPlus(r,n){return r-n},leftForLtr(r,n){return r-n}}},ST=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Ho(e,t,r){return e?CT(t,r):ST()}function bm(e,t){let r,n;(t==="ltr"||t==="rtl")&&(r=e.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",t,"important"),e.prevTextDirection=n)}function mm(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}/*!
|
|
491
|
+
* Chart.js v4.4.8
|
|
492
|
+
* https://www.chartjs.org
|
|
493
|
+
* (c) 2025 Chart.js Contributors
|
|
494
|
+
* Released under the MIT License
|
|
495
|
+
*/class ET{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,r,n,o){const i=r.listeners[o],s=r.duration;i.forEach(a=>a({chart:t,initial:r.initial,numSteps:s,currentStep:Math.min(n-r.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=Gb.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=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(t),a=!0):(i[s]=i[i.length-1],i.pop());a&&(o.draw(),this._notify(o,n,t,"progress")),i.length||(n.running=!1,this._notify(o,n,t,"complete"),n.initial=!1),r+=i.length}),this._lastDate=t,r===0&&(this._running=!1)}_getAnims(t){const r=this._charts;let n=r.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},r.set(t,n)),n}listen(t,r,n){this._getAnims(t).listeners[r].push(n)}add(t,r){!r||!r.length||this._getAnims(t).items.push(...r)}has(t){return this._getAnims(t).items.length>0}start(t){const r=this._charts.get(t);r&&(r.running=!0,r.start=Date.now(),r.duration=r.items.reduce((n,o)=>Math.max(n,o._duration),0),this._refresh())}running(t){if(!this._running)return!1;const r=this._charts.get(t);return!(!r||!r.running||!r.items.length)}stop(t){const r=this._charts.get(t);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(t,r,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var tn=new ET;const ym="transparent",OT={boolean(e,t,r){return r>.5?t:e},color(e,t,r){const n=tm(e||ym),o=n.valid&&tm(t||ym);return o&&o.valid?o.mix(n,r).hexString():t},number(e,t,r){return e+(t-e)*r}};class NT{constructor(t,r,n,o){const i=r[n];o=Cl([t.to,o,i,t.from]);const s=Cl([t.from,i,o]);this._active=!0,this._fn=t.fn||OT[t.type||typeof s],this._easing=ds[t.easing]||ds.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=r,this._prop=n,this._from=s,this._to=o,this._promises=void 0}active(){return this._active}update(t,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,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Cl([t.to,r,o,t.from]),this._from=Cl([t.from,o,r])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const r=t-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 t=this._promises||(this._promises=[]);return new Promise((r,n)=>{t.push({res:r,rej:n})})}_notify(t){const r=t?"res":"rej",n=this._promises||[];for(let o=0;o<n.length;o++)n[o][r]()}}class vm{constructor(t,r){this._chart=t,this._properties=new Map,this.configure(r)}configure(t){if(!we(t))return;const r=Object.keys(Ge.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach(o=>{const i=t[o];if(!we(i))return;const s={};for(const a of r)s[a]=i[a];(pt(i.properties)&&i.properties||[o]).forEach(a=>{(a===o||!n.has(a))&&n.set(a,s)})})}_animateOptions(t,r){const n=r.options,o=TT(t,n);if(!o)return[];const i=this._createAnimations(o,n);return n.$shared&&MT(t.options.$animations,n).then(()=>{t.options=n},()=>{}),i}_createAnimations(t,r){const n=this._properties,o=[],i=t.$animations||(t.$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(t,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){t[c]=d;continue}i[c]=u=new NT(f,t,c,d),o.push(u)}return o}update(t,r){if(this._properties.size===0){Object.assign(t,r);return}const n=this._createAnimations(t,r);if(n.length)return tn.add(this._chart,n),!0}}function MT(e,t){const r=[],n=Object.keys(t);for(let o=0;o<n.length;o++){const i=e[n[o]];i&&i.active()&&r.push(i.wait())}return Promise.all(r)}function TT(e,t){if(!t)return;let r=e.options;if(!r){e.options=t;return}return r.$shared&&(e.options=r=Object.assign({},r,{$shared:!1,$animations:{}})),r}function xm(e,t){const r=e&&e.options||{},n=r.reverse,o=r.min===void 0?t:0,i=r.max===void 0?t:0;return{start:n?i:o,end:n?o:i}}function DT(e,t,r){if(r===!1)return!1;const n=xm(e,r),o=xm(t,r);return{top:o.end,right:n.end,bottom:o.start,left:n.start}}function PT(e){let t,r,n,o;return we(e)?(t=e.top,r=e.right,n=e.bottom,o=e.left):t=r=n=o=e,{top:t,right:r,bottom:n,left:o,disabled:e===!1}}function wm(e,t){const r=[],n=e._getSortedDatasetMetas(t);let o,i;for(o=0,i=n.length;o<i;++o)r.push(n[o].index);return r}function km(e,t,r,n={}){const o=e.keys,i=n.mode==="single";let s,a,l,c;if(t===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=e.values[l],en(c)&&(i||t===0||Ub(t)===Ub(c))&&(t+=c)}return!d&&!n.all?0:t}function IT(e,t){const{iScale:r,vScale:n}=t,o=r.axis==="x"?"x":"y",i=n.axis==="x"?"x":"y",s=Object.keys(e),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]:e[d]};return a}function Pu(e,t){const r=e&&e.options.stacked;return r||r===void 0&&t.stack!==void 0}function AT(e,t,r){return`${e.id}.${t.id}.${r.stack||r.type}`}function LT(e){const{min:t,max:r,minDefined:n,maxDefined:o}=e.getUserBounds();return{min:n?t:Number.NEGATIVE_INFINITY,max:o?r:Number.POSITIVE_INFINITY}}function zT(e,t,r){const n=e[t]||(e[t]={});return n[r]||(n[r]={})}function _m(e,t,r,n){for(const o of t.getMatchingVisibleMetas(n).reverse()){const i=e[o.index];if(r&&i>0||!r&&i<0)return o.index}return null}function Cm(e,t){const{chart:r,_cachedMeta:n}=e,o=r._stacks||(r._stacks={}),{iScale:i,vScale:s,index:a}=n,l=i.axis,c=s.axis,d=AT(i,s,n),u=t.length;let f;for(let h=0;h<u;++h){const g=t[h],{[l]:p,[c]:m}=g,x=g._stacks||(g._stacks={});f=x[c]=zT(o,d,p),f[a]=m,f._top=_m(f,s,!0,n.type),f._bottom=_m(f,s,!1,n.type);const y=f._visualValues||(f._visualValues={});y[a]=m}}function Iu(e,t){const r=e.scales;return Object.keys(r).filter(n=>r[n].axis===t).shift()}function FT(e,t){return Bo(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function jT(e,t,r){return Bo(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:r,index:t,mode:"default",type:"data"})}function hs(e,t){const r=e.controller.index,n=e.vScale&&e.vScale.axis;if(n){t=t||e._parsed;for(const o of t){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 Au=e=>e==="reset"||e==="none",Sm=(e,t)=>t?e:Object.assign({},e),BT=(e,t,r)=>e&&!t.hidden&&t._stacked&&{keys:wm(r,!0),values:null};class gs{constructor(t,r){this.chart=t,this._ctx=t.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 t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Pu(t.vScale,t),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(t){this.index!==t&&hs(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,r=this._cachedMeta,n=this.getDataset(),o=(u,f,h,g)=>u==="x"?f:u==="r"?g:h,i=r.xAxisID=Te(n.xAxisID,Iu(t,"x")),s=r.yAxisID=Te(n.yAxisID,Iu(t,"y")),a=r.rAxisID=Te(n.rAxisID,Iu(t,"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(t){return this.chart.scales[t]}_getOtherScale(t){const r=this._cachedMeta;return t===r.iScale?r.vScale:r.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Xb(this._data,this),t._stacked&&hs(t)}_dataCheck(){const t=this.getDataset(),r=t.data||(t.data=[]),n=this._data;if(we(r)){const o=this._cachedMeta;this._data=IT(r,o)}else if(n!==r){if(n){Xb(n,this);const o=this._cachedMeta;hs(o),o._parsed=[]}r&&Object.isExtensible(r)&&BM(r,this),this._syncList=[],this._data=r}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const r=this._cachedMeta,n=this.getDataset();let o=!1;this._dataCheck();const i=r._stacked;r._stacked=Pu(r.vScale,r),r.stack!==n.stack&&(o=!0,hs(r),r.stack=n.stack),this._resyncElements(t),(o||i!==r._stacked)&&(Cm(this,r._parsed),r._stacked=Pu(r.vScale,r))}configure(){const t=this.chart.config,r=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),r,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,r){const{_cachedMeta:n,_data:o}=this,{iScale:i,_stacked:s}=n,a=i.axis;let l=t===0&&r===o.length?!0:n._sorted,c=t>0&&n._parsed[t-1],d,u,f;if(this._parsing===!1)n._parsed=o,n._sorted=!0,f=o;else{pt(o[t])?f=this.parseArrayData(n,o,t,r):we(o[t])?f=this.parseObjectData(n,o,t,r):f=this.parsePrimitiveData(n,o,t,r);const h=()=>u[a]===null||c&&u[a]<c[a];for(d=0;d<r;++d)n._parsed[d+t]=u=f[d],l&&(h()&&(l=!1),c=u);n._sorted=l}s&&Cm(this,f)}parsePrimitiveData(t,r,n,o){const{iScale:i,vScale:s}=t,a=i.axis,l=s.axis,c=i.getLabels(),d=i===s,u=new Array(o);let f,h,g;for(f=0,h=o;f<h;++f)g=f+n,u[f]={[a]:d||i.parse(c[g],g),[l]:s.parse(r[g],g)};return u}parseArrayData(t,r,n,o){const{xScale:i,yScale:s}=t,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(t,r,n,o){const{xScale:i,yScale:s}=t,{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(ls(h,a),f),y:s.parse(ls(h,l),f)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,r,n){const o=this.chart,i=this._cachedMeta,s=r[t.axis],a={keys:wm(o,!0),values:r._stacks[t.axis]._visualValues};return km(a,s,i.index,{mode:n})}updateRangeFromParsed(t,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=km(o,i,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,r){const n=this._cachedMeta,o=n._parsed,i=n._sorted&&t===n.iScale,s=o.length,a=this._getOtherScale(t),l=BT(r,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=LT(a);let f,h;function g(){h=o[f];const p=h[a.axis];return!en(h[t.axis])||d>p||u<p}for(f=0;f<s&&!(!g()&&(this.updateRangeFromParsed(c,t,h,l),i));++f);if(i){for(f=s-1;f>=0;--f)if(!g()){this.updateRangeFromParsed(c,t,h,l);break}}return c}getAllParsedValues(t){const r=this._cachedMeta._parsed,n=[];let o,i,s;for(o=0,i=r.length;o<i;++o)s=r[o][t.axis],en(s)&&n.push(s);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const r=this._cachedMeta,n=r.iScale,o=r.vScale,i=this.getParsed(t);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:o?""+o.getLabelForValue(i[o.axis]):""}}_update(t){const r=this._cachedMeta;this.update(t||"default"),r._clip=PT(Te(this.options.clip,DT(r.xScale,r.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=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(t,i,a,l),d=a;d<a+l;++d){const u=o[d];u.hidden||(u.active&&c?s.push(u):u.draw(t,i))}for(d=0;d<s.length;++d)s[d].draw(t,i)}getStyle(t,r){const n=r?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,r,n){const o=this.getDataset();let i;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];i=s.$context||(s.$context=jT(this.getContext(),t,s)),i.parsed=this.getParsed(t),i.raw=o.data[t],i.index=i.dataIndex=t}else i=this.$context||(this.$context=FT(this.chart.getContext(),this.index)),i.dataset=o,i.index=i.datasetIndex=this.index;return i.active=!!r,i.mode=n,i}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,r){return this._resolveElementOptions(this.dataElementType.id,r,t)}_resolveElementOptions(t,r="default",n){const o=r==="active",i=this._cachedDataOpts,s=t+"-"+r,a=i[s],l=this.enableOptionSharing&&yl(n);if(a)return Sm(a,l);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,t),u=o?[`${t}Hover`,"hover",t,""]:[t,""],f=c.getOptionScopes(this.getDataset(),d),h=Object.keys(Ge.elements[t]),g=()=>this.getContext(n,o,r),p=c.resolveNamedOptions(f,h,g,u);return p.$shared&&(p.$shared=l,i[s]=Object.freeze(Sm(p,l))),p}_resolveAnimations(t,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(t,n,r))}const c=new vm(o,l&&l.animations);return l&&l._cacheable&&(i[s]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,r){return!r||Au(t)||this.chart._animationsDisabled}_getSharedOptions(t,r){const n=this.resolveDataElementOptions(t,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(t,r,n,o){Au(o)?Object.assign(t,n):this._resolveAnimations(r,o).update(t,n)}updateSharedOptions(t,r,n){t&&!Au(r)&&this._resolveAnimations(void 0,r).update(t,n)}_setStyle(t,r,n,o){t.active=o;const i=this.getStyle(r,o);this._resolveAnimations(r,n,o).update(t,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(t,r,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,r,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){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,t):i<o&&this._removeElements(i,o-i)}_insertElements(t,r,n=!0){const o=this._cachedMeta,i=o.data,s=t+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=t;a<s;++a)i[a]=new this.dataElementType;this._parsing&&l(o._parsed),this.parse(t,r),n&&this.updateElements(i,t,r,"reset")}updateElements(t,r,n,o){}_removeElements(t,r){const n=this._cachedMeta;if(this._parsing){const o=n._parsed.splice(t,r);n._stacked&&hs(n,o)}n.data.splice(t,r)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[r,n,o]=t;this[r](n,o)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,r){r&&this._sync(["_removeElements",t,r]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}pe(gs,"defaults",{}),pe(gs,"datasetElementType",null),pe(gs,"dataElementType",null);function WT(e,t,r){let n=1,o=1,i=0,s=0;if(t<Je){const a=e,l=a+t,c=Math.cos(a),d=Math.sin(a),u=Math.cos(l),f=Math.sin(l),h=(_,v,w)=>wl(_,a,l,!0)?1:Math.max(v,v*r,w,w*r),g=(_,v,w)=>wl(_,a,l,!0)?-1:Math.min(v,v*r,w,w*r),p=h(0,c,u),m=h(it,d,f),x=g(ut,c,u),y=g(ut+it,d,f);n=(p-x)/2,o=(m-y)/2,i=-(p+x)/2,s=-(m+y)/2}return{ratioX:n,ratioY:o,offsetX:i,offsetY:s}}class Nl extends gs{constructor(t,r){super(t,r),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,r){const n=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=n;else{let i=l=>+n[l];if(we(n[t])){const{key:l="value"}=this._parsing;i=c=>+ls(n[c],l)}let s,a;for(s=t,a=t+r;s<a;++s)o._parsed[s]=i(s)}}_getRotation(){return Qn(this.options.rotation-90)}_getCircumference(){return Qn(this.options.circumference)}_getRotationExtents(){let t=Je,r=-Je;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();t=Math.min(t,i),r=Math.max(r,i+s)}return{rotation:t,circumference:r-t}}update(t){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(SM(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:g,offsetY:p}=WT(u,d,l),m=(n.width-s)/f,x=(n.height-s)/h,y=Math.max(Math.min(m,x)/2,0),_=Wb(this.options.radius,y),v=Math.max(_*l,0),w=(_-v)/this._getVisibleDatasetWeightTotal();this.offsetX=g*_,this.offsetY=p*_,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,t)}_circumference(t,r){const n=this.options,o=this._cachedMeta,i=this._getCircumference();return r&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||o._parsed[t]===null||o.data[t].hidden?0:this.calculateCircumference(o._parsed[t]*i/Je)}updateElements(t,r,n,o){const i=o==="reset",s=this.chart,a=s.chartArea,l=s.options.animation,c=(a.left+a.right)/2,d=(a.top+a.bottom)/2,u=i&&l.animateScale,f=u?0:this.innerRadius,h=u?0:this.outerRadius,{sharedOptions:g,includeOptions:p}=this._getSharedOptions(r,o);let m=this._getRotation(),x;for(x=0;x<r;++x)m+=this._circumference(x,i);for(x=r;x<r+n;++x){const y=this._circumference(x,i),_=t[x],v={x:c+this.offsetX,y:d+this.offsetY,startAngle:m,endAngle:m+y,circumference:y,outerRadius:h,innerRadius:f};p&&(v.options=g||this.resolveDataElementOptions(x,_.active?"active":o)),m+=y,this.updateElement(_,x,v,o)}}calculateTotal(){const t=this._cachedMeta,r=t.data;let n=0,o;for(o=0;o<r.length;o++){const i=t._parsed[o];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(o)&&!r[o].hidden&&(n+=Math.abs(i))}return n}calculateCircumference(t){const r=this._cachedMeta.total;return r>0&&!isNaN(t)?Je*(Math.abs(t)/r):0}getLabelAndValue(t){const r=this._cachedMeta,n=this.chart,o=n.data.labels||[],i=XM(r._parsed[t],n.options.locale);return{label:o[t]||"",value:i}}getMaxBorderWidth(t){let r=0;const n=this.chart;let o,i,s,a,l;if(!t){for(o=0,i=n.data.datasets.length;o<i;++o)if(n.isDatasetVisible(o)){s=n.getDatasetMeta(o),t=s.data,a=s.controller;break}}if(!t)return 0;for(o=0,i=t.length;o<i;++o)l=a.resolveDataElementOptions(o),l.borderAlign!=="inner"&&(r=Math.max(r,l.borderWidth||0,l.hoverBorderWidth||0));return r}getMaxOffset(t){let r=0;for(let n=0,o=t.length;n<o;++n){const i=this.resolveDataElementOptions(n);r=Math.max(r,i.offset||0,i.hoverOffset||0)}return r}_getRingWeightOffset(t){let r=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(r+=this._getRingWeight(n));return r}_getRingWeight(t){return Math.max(Te(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}pe(Nl,"id","doughnut"),pe(Nl,"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"}),pe(Nl,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),pe(Nl,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:r,color:n}}=e.legend.options;return t.labels.map((o,i)=>{const s=e.getDatasetMeta(0).controller.getStyle(i);return{text:o,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:n,lineWidth:s.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,r){r.chart.toggleDataVisibility(t.index),r.chart.update()}}}});function oo(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Lu{constructor(t){pe(this,"options"),this.options=t||{}}static override(t){Object.assign(Lu.prototype,t)}init(){}formats(){return oo()}parse(){return oo()}format(){return oo()}add(){return oo()}diff(){return oo()}startOf(){return oo()}endOf(){return oo()}}var HT={_date:Lu};function $T(e,t,r,n){const{controller:o,data:i,_sorted:s}=e,a=o._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(a&&t===a.axis&&t!=="r"&&s&&i.length){const c=a._reversePixels?FM:vu;if(n){if(o._sharedOptions){const d=i[0],u=typeof d.getRange=="function"&&d.getRange(t);if(u){const f=c(i,t,r-u),h=c(i,t,r+u);return{lo:f.lo,hi:h.hi}}}}else{const d=c(i,t,r);if(l){const{vScale:u}=o._cachedMeta,{_parsed:f}=e,h=f.slice(0,d.lo+1).reverse().findIndex(p=>!St(p[u.axis]));d.lo-=Math.max(0,h);const g=f.slice(d.hi).findIndex(p=>!St(p[u.axis]));d.hi+=Math.max(0,g)}return d}}return{lo:0,hi:i.length-1}}function Ml(e,t,r,n,o){const i=e.getSortedVisibleDatasetMetas(),s=r[t];for(let a=0,l=i.length;a<l;++a){const{index:c,data:d}=i[a],{lo:u,hi:f}=$T(i[a],t,s,o);for(let h=u;h<=f;++h){const g=d[h];g.skip||n(g,c,h)}}}function VT(e){const t=e.indexOf("x")!==-1,r=e.indexOf("y")!==-1;return function(n,o){const i=t?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 zu(e,t,r,n,o){const i=[];return!o&&!e.isPointInArea(t)||Ml(e,r,t,function(s,a,l){!o&&!am(s,e.chartArea,0)||s.inRange(t.x,t.y,n)&&i.push({element:s,datasetIndex:a,index:l})},!0),i}function YT(e,t,r,n){let o=[];function i(s,a,l){const{startAngle:c,endAngle:d}=s.getProps(["startAngle","endAngle"],n),{angle:u}=Rb(s,{x:t.x,y:t.y});wl(u,c,d)&&o.push({element:s,datasetIndex:a,index:l})}return Ml(e,r,t,i),o}function UT(e,t,r,n,o,i){let s=[];const a=VT(r);let l=Number.POSITIVE_INFINITY;function c(d,u,f){const h=d.inRange(t.x,t.y,o);if(n&&!h)return;const g=d.getCenterPoint(o);if(!(i||e.isPointInArea(g))&&!h)return;const p=a(t,g);p<l?(s=[{element:d,datasetIndex:u,index:f}],l=p):p===l&&s.push({element:d,datasetIndex:u,index:f})}return Ml(e,r,t,c),s}function Fu(e,t,r,n,o,i){return!i&&!e.isPointInArea(t)?[]:r==="r"&&!n?YT(e,t,r,o):UT(e,t,r,n,o,i)}function Em(e,t,r,n,o){const i=[],s=r==="x"?"inXRange":"inYRange";let a=!1;return Ml(e,r,t,(l,c,d)=>{l[s]&&l[s](t[r],o)&&(i.push({element:l,datasetIndex:c,index:d}),a=a||l.inRange(t.x,t.y,o))}),n&&!a?[]:i}var RT={modes:{index(e,t,r,n){const o=no(t,e),i=r.axis||"x",s=r.includeInvisible||!1,a=r.intersect?zu(e,o,i,n,s):Fu(e,o,i,!1,n,s),l=[];return a.length?(e.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(e,t,r,n){const o=no(t,e),i=r.axis||"xy",s=r.includeInvisible||!1;let a=r.intersect?zu(e,o,i,n,s):Fu(e,o,i,!1,n,s);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let d=0;d<c.length;++d)a.push({element:c[d],datasetIndex:l,index:d})}return a},point(e,t,r,n){const o=no(t,e),i=r.axis||"xy",s=r.includeInvisible||!1;return zu(e,o,i,n,s)},nearest(e,t,r,n){const o=no(t,e),i=r.axis||"xy",s=r.includeInvisible||!1;return Fu(e,o,i,r.intersect,n,s)},x(e,t,r,n){const o=no(t,e);return Em(e,o,"x",r.intersect,n)},y(e,t,r,n){const o=no(t,e);return Em(e,o,"y",r.intersect,n)}}};const Om=["left","top","right","bottom"];function ps(e,t){return e.filter(r=>r.pos===t)}function Nm(e,t){return e.filter(r=>Om.indexOf(r.pos)===-1&&r.box.axis===t)}function bs(e,t){return e.sort((r,n)=>{const o=t?n:r,i=t?r:n;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function qT(e){const t=[];let r,n,o,i,s,a;for(r=0,n=(e||[]).length;r<n;++r)o=e[r],{position:i,options:{stack:s,stackWeight:a=1}}=o,t.push({index:r,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:s&&i+s,stackWeight:a});return t}function XT(e){const t={};for(const r of e){const{stack:n,pos:o,stackWeight:i}=r;if(!n||!Om.includes(o))continue;const s=t[n]||(t[n]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return t}function GT(e,t){const r=XT(e),{vBoxMaxWidth:n,hBoxMaxHeight:o}=t;let i,s,a;for(i=0,s=e.length;i<s;++i){a=e[i];const{fullSize:l}=a.box,c=r[a.stack],d=c&&a.stackWeight/c.weight;a.horizontal?(a.width=d?d*n:l&&t.availableWidth,a.height=o):(a.width=n,a.height=d?d*o:l&&t.availableHeight)}return r}function KT(e){const t=qT(e),r=bs(t.filter(c=>c.box.fullSize),!0),n=bs(ps(t,"left"),!0),o=bs(ps(t,"right")),i=bs(ps(t,"top"),!0),s=bs(ps(t,"bottom")),a=Nm(t,"x"),l=Nm(t,"y");return{fullSize:r,leftAndTop:n.concat(i),rightAndBottom:o.concat(l).concat(s).concat(a),chartArea:ps(t,"chartArea"),vertical:n.concat(o).concat(l),horizontal:i.concat(s).concat(a)}}function Mm(e,t,r,n){return Math.max(e[r],t[r])+Math.max(e[n],t[n])}function Tm(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function ZT(e,t,r,n){const{pos:o,box:i}=r,s=e.maxPadding;if(!we(o)){r.size&&(e[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,e[o]+=r.size}i.getPadding&&Tm(s,i.getPadding());const a=Math.max(0,t.outerWidth-Mm(s,e,"left","right")),l=Math.max(0,t.outerHeight-Mm(s,e,"top","bottom")),c=a!==e.w,d=l!==e.h;return e.w=a,e.h=l,r.horizontal?{same:c,other:d}:{same:d,other:c}}function QT(e){const t=e.maxPadding;function r(n){const o=Math.max(t[n]-e[n],0);return e[n]+=o,o}e.y+=r("top"),e.x+=r("left"),r("right"),r("bottom")}function JT(e,t){const r=t.maxPadding;function n(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(s=>{i[s]=Math.max(t[s],r[s])}),i}return n(e?["left","right"]:["top","bottom"])}function ms(e,t,r,n){const o=[];let i,s,a,l,c,d;for(i=0,s=e.length,c=0;i<s;++i){a=e[i],l=a.box,l.update(a.width||t.w,a.height||t.h,JT(a.horizontal,t));const{same:u,other:f}=ZT(t,r,a,n);c|=u&&o.length,d=d||f,l.fullSize||o.push(a)}return c&&ms(o,t,r,n)||d}function Tl(e,t,r,n,o){e.top=r,e.left=t,e.right=t+n,e.bottom=r+o,e.width=n,e.height=o}function Dm(e,t,r,n){const o=r.padding;let{x:i,y:s}=t;for(const a of e){const l=a.box,c=n[a.stack]||{placed:0,weight:1},d=a.stackWeight/c.weight||1;if(a.horizontal){const u=t.w*d,f=c.size||l.height;yl(c.start)&&(s=c.start),l.fullSize?Tl(l,o.left,s,r.outerWidth-o.right-o.left,f):Tl(l,t.left+c.placed,s,u,f),c.start=s,c.placed+=u,s=l.bottom}else{const u=t.h*d,f=c.size||l.width;yl(c.start)&&(i=c.start),l.fullSize?Tl(l,i,o.top,f,r.outerHeight-o.bottom-o.top):Tl(l,i,t.top+c.placed,f,u),c.start=i,c.placed+=u,i=l.right}}t.x=i,t.y=s}var kn={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(r){t.draw(r)}}]},e.boxes.push(t)},removeBox(e,t){const r=e.boxes?e.boxes.indexOf(t):-1;r!==-1&&e.boxes.splice(r,1)},configure(e,t,r){t.fullSize=r.fullSize,t.position=r.position,t.weight=r.weight},update(e,t,r,n){if(!e)return;const o=yr(e.options.layout.padding),i=Math.max(t-o.width,0),s=Math.max(r-o.height,0),a=KT(e.boxes),l=a.vertical,c=a.horizontal;De(e.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const d=l.reduce((p,m)=>m.box.options&&m.box.options.display===!1?p:p+1,0)||1,u=Object.freeze({outerWidth:t,outerHeight:r,padding:o,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/d,hBoxMaxHeight:s/2}),f=Object.assign({},o);Tm(f,yr(n));const h=Object.assign({maxPadding:f,w:i,h:s,x:o.left,y:o.top},o),g=GT(l.concat(c),u);ms(a.fullSize,h,u,g),ms(l,h,u,g),ms(c,h,u,g)&&ms(l,h,u,g),QT(h),Dm(a.leftAndTop,h,u,g),h.x+=h.w,h.y+=h.h,Dm(a.rightAndBottom,h,u,g),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},De(a.chartArea,p=>{const m=p.box;Object.assign(m,e.chartArea),m.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class Pm{acquireContext(t,r){}releaseContext(t){return!1}addEventListener(t,r,n){}removeEventListener(t,r,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,r,n,o){return r=Math.max(0,r||t.width),n=n||t.height,{width:r,height:Math.max(0,o?Math.floor(r/o):n)}}isAttached(t){return!0}updateConfig(t){}}class eD extends Pm{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Dl="$chartjs",tD={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Im=e=>e===null||e==="";function rD(e,t){const r=e.style,n=e.getAttribute("height"),o=e.getAttribute("width");if(e[Dl]={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",Im(o)){const i=pm(e,"width");i!==void 0&&(e.width=i)}if(Im(n))if(e.style.height==="")e.height=e.width/(t||2);else{const i=pm(e,"height");i!==void 0&&(e.height=i)}return e}const Am=_T?{passive:!0}:!1;function nD(e,t,r){e&&e.addEventListener(t,r,Am)}function oD(e,t,r){e&&e.canvas&&e.canvas.removeEventListener(t,r,Am)}function iD(e,t){const r=tD[e.type]||e.type,{x:n,y:o}=no(e,t);return{type:r,chart:t,native:e,x:n!==void 0?n:null,y:o!==void 0?o:null}}function Pl(e,t){for(const r of e)if(r===t||r.contains(t))return!0}function sD(e,t,r){const n=e.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||Pl(a.addedNodes,n),s=s&&!Pl(a.removedNodes,n);s&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}function aD(e,t,r){const n=e.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||Pl(a.removedNodes,n),s=s&&!Pl(a.addedNodes,n);s&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}const ys=new Map;let Lm=0;function zm(){const e=window.devicePixelRatio;e!==Lm&&(Lm=e,ys.forEach((t,r)=>{r.currentDevicePixelRatio!==e&&t()}))}function lD(e,t){ys.size||window.addEventListener("resize",zm),ys.set(e,t)}function cD(e){ys.delete(e),ys.size||window.removeEventListener("resize",zm)}function dD(e,t,r){const n=e.canvas,o=n&&Du(n);if(!o)return;const i=Kb((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),lD(e,i),s}function ju(e,t,r){r&&r.disconnect(),t==="resize"&&cD(e)}function uD(e,t,r){const n=e.canvas,o=Kb(i=>{e.ctx!==null&&r(iD(i,e))},e);return nD(n,t,o),o}class fD extends Pm{acquireContext(t,r){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(rD(t,r),n):null}releaseContext(t){const r=t.canvas;if(!r[Dl])return!1;const n=r[Dl].initial;["height","width"].forEach(i=>{const s=n[i];St(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[Dl],!0}addEventListener(t,r,n){this.removeEventListener(t,r);const o=t.$proxies||(t.$proxies={}),i={attach:sD,detach:aD,resize:dD}[r]||uD;o[r]=i(t,r,n)}removeEventListener(t,r){const n=t.$proxies||(t.$proxies={}),o=n[r];o&&(({attach:ju,detach:ju,resize:ju}[r]||oD)(t,r,o),n[r]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,r,n,o){return kT(t,r,n,o)}isAttached(t){const r=t&&Du(t);return!!(r&&r.isConnected)}}function hD(e){return!Tu()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?eD:fD}var Il;let vs=(Il=class{constructor(){pe(this,"x"),pe(this,"y"),pe(this,"active",!1),pe(this,"options"),pe(this,"$animations")}tooltipPosition(e){const{x:t,y:r}=this.getProps(["x","y"],e);return{x:t,y:r}}hasValue(){return xl(this.x)&&xl(this.y)}getProps(e,t){const r=this.$animations;if(!t||!r)return this;const n={};return e.forEach(o=>{n[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),n}},pe(Il,"defaults",{}),pe(Il,"defaultRoutes"),Il);function gD(e,t){const r=e.options.ticks,n=pD(e),o=Math.min(r.maxTicksLimit||n,n),i=r.major.enabled?mD(t):[],s=i.length,a=i[0],l=i[s-1],c=[];if(s>o)return yD(t,c,i,s/o),c;const d=bD(i,t,o);if(s>0){let u,f;const h=s>1?Math.round((l-a)/(s-1)):null;for(Al(t,c,d,St(h)?0:a-h,a),u=0,f=s-1;u<f;u++)Al(t,c,d,i[u],i[u+1]);return Al(t,c,d,l,St(h)?t.length:l+h),c}return Al(t,c,d),c}function pD(e){const t=e.options.offset,r=e._tickSize(),n=e._length/r+(t?0:1),o=e._maxLength/r;return Math.floor(Math.min(n,o))}function bD(e,t,r){const n=vD(e),o=t.length/r;if(!n)return Math.max(o,1);const i=PM(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 mD(e){const t=[];let r,n;for(r=0,n=e.length;r<n;r++)e[r].major&&t.push(r);return t}function yD(e,t,r,n){let o=0,i=r[0],s;for(n=Math.ceil(n),s=0;s<e.length;s++)s===i&&(t.push(e[s]),o++,i=r[o*n])}function Al(e,t,r,n,o){const i=Te(n,0),s=Math.min(Te(o,e.length),e.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&&(t.push(e[c]),a++,d=Math.round(i+a*r))}function vD(e){const t=e.length;let r,n;if(t<2)return!1;for(n=e[0],r=1;r<t;++r)if(e[r]-e[r-1]!==n)return!1;return n}const xD=e=>e==="left"?"right":e==="right"?"left":e,Fm=(e,t,r)=>t==="top"||t==="left"?e[t]+r:e[t]-r,jm=(e,t)=>Math.min(t||e,e);function Bm(e,t){const r=[],n=e.length/t,o=e.length;let i=0;for(;i<o;i+=n)r.push(e[Math.floor(i)]);return r}function wD(e,t,r){const n=e.ticks.length,o=Math.min(t,n-1),i=e._startPixel,s=e._endPixel,a=1e-6;let l=e.getPixelForTick(o),c;if(!(r&&(n===1?c=Math.max(l-i,s-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(o-1))/2,l+=o<t?c:-c,l<i-a||l>s+a)))return l}function kD(e,t){De(e,r=>{const n=r.gc,o=n.length/2;let i;if(o>t){for(i=0;i<o;++i)delete r.data[n[i]];n.splice(0,o)}})}function xs(e){return e.drawTicks?e.tickLength:0}function Wm(e,t){if(!e.display)return 0;const r=Bt(e.font,t),n=yr(e.padding);return(pt(e.text)?e.text.length:1)*r.lineHeight+n.height}function _D(e,t){return Bo(e,{scale:t,type:"scale"})}function CD(e,t,r){return Bo(e,{tick:r,index:t,type:"tick"})}function SD(e,t,r){let n=Zb(e);return(r&&t!=="right"||!r&&t==="right")&&(n=xD(n)),n}function ED(e,t,r,n){const{top:o,left:i,bottom:s,right:a,chart:l}=e,{chartArea:c,scales:d}=l;let u=0,f,h,g;const p=s-o,m=a-i;if(e.isHorizontal()){if(h=Zt(n,i,a),we(r)){const x=Object.keys(r)[0],y=r[x];g=d[x].getPixelForValue(y)+p-t}else r==="center"?g=(c.bottom+c.top)/2+p-t:g=Fm(e,r,t);f=a-i}else{if(we(r)){const x=Object.keys(r)[0],y=r[x];h=d[x].getPixelForValue(y)-m+t}else r==="center"?h=(c.left+c.right)/2-m+t:h=Fm(e,r,t);g=Zt(n,s,o),u=r==="left"?-it:it}return{titleX:h,titleY:g,maxWidth:f,rotation:u}}class Ll extends vs{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.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(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,r){return t}getUserBounds(){let{_userMin:t,_userMax:r,_suggestedMin:n,_suggestedMax:o}=this;return t=Mr(t,Number.POSITIVE_INFINITY),r=Mr(r,Number.NEGATIVE_INFINITY),n=Mr(n,Number.POSITIVE_INFINITY),o=Mr(o,Number.NEGATIVE_INFINITY),{min:Mr(t,n),max:Mr(r,o),minDefined:en(t),maxDefined:en(r)}}getMinMax(t){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,t),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:Mr(r,Mr(n,r)),max:Mr(n,Mr(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 t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Be(this.options.beforeUpdate,[this])}update(t,r,n){const{beginAtZero:o,grace:i,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,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=aT(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?Bm(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=gD(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,r,n;this.isHorizontal()?(r=this.left,n=this.right):(r=this.top,n=this.bottom,t=!t),this._startPixel=r,this._endPixel=n,this._reversePixels=t,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(t){this.chart.notifyPlugins(t,this.getContext()),Be(this.options[t],[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(t){const r=this.options.ticks;let n,o,i;for(n=0,o=t.length;n<o;n++)i=t[n],i.label=Be(r.callback,[i.value,n,t],this)}afterTickToLabelConversion(){Be(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Be(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,r=t.ticks,n=jm(this.ticks.length,t.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=ar(this.chart.width-u,0,this.maxWidth);a=t.offset?this.maxWidth/n:h/(n-1),u+6>a&&(a=h/(n-(t.offset?.5:1)),l=this.maxHeight-xs(t.grid)-r.padding-Wm(t.title,this.chart.options.font),c=Math.sqrt(u*u+f*f),s=AM(Math.min(Math.asin(ar((d.highest.height+6)/a,-1,1)),Math.asin(ar(l/c,-1,1))-Math.asin(ar(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 t={width:0,height:0},{chart:r,options:{ticks:n,title:o,grid:i}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=Wm(o,r.options.font);if(a?(t.width=this.maxWidth,t.height=xs(i)+l):(t.height=this.maxHeight,t.width=xs(i)+l),n.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:f}=this._getLabelSizes(),h=n.padding*2,g=Qn(this.labelRotation),p=Math.cos(g),m=Math.sin(g);if(a){const x=n.mirror?0:m*u.width+p*f.height;t.height=Math.min(this.maxHeight,t.height+x+h)}else{const x=n.mirror?0:p*u.width+m*f.height;t.width=Math.min(this.maxWidth,t.width+x+h)}this._calculatePadding(c,d,m,p)}}this._handleMargins(),a?(this.width=this._length=r.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=r.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,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*t.width,h=n*r.height):(f=n*t.height,h=o*r.width):i==="start"?h=r.width:i==="end"?f=t.width:i!=="inner"&&(f=t.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=t.height/2;i==="start"?(d=0,u=t.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:t,position:r}=this.options;return r==="top"||r==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let r,n;for(r=0,n=t.length;r<n;r++)St(t[r].label)&&(t.splice(r,1),n--,r--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const r=this.options.ticks.sampleSize;let n=this.ticks;r<n.length&&(n=Bm(n,r)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,r,n){const{ctx:o,_longestTextCache:i}=this,s=[],a=[],l=Math.floor(r/jm(r,n));let c=0,d=0,u,f,h,g,p,m,x,y,_,v,w;for(u=0;u<r;u+=l){if(g=t[u].label,p=this._resolveTickFontOptions(u),o.font=m=p.string,x=i[m]=i[m]||{data:{},gc:[]},y=p.lineHeight,_=v=0,!St(g)&&!pt(g))_=nm(o,x.data,x.gc,_,g),v=y;else if(pt(g))for(f=0,h=g.length;f<h;++f)w=g[f],!St(w)&&!pt(w)&&(_=nm(o,x.data,x.gc,_,w),v+=y);s.push(_),a.push(v),c=Math.max(_,c),d=Math.max(v,d)}kD(i,r);const C=s.indexOf(c),M=a.indexOf(d),N=O=>({width:s[O]||0,height:a[O]||0});return{first:N(0),last:N(r-1),widest:N(C),highest:N(M),widths:s,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,r){return NaN}getValueForPixel(t){}getPixelForTick(t){const r=this.ticks;return t<0||t>r.length-1?null:this.getPixelForValue(r[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const r=this._startPixel+t*this._length;return zM(this._alignToPixels?to(this.chart,r,0):r)}getDecimalForPixel(t){const r=(t-this._startPixel)/this._length;return this._reversePixels?1-r:r}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:r}=this;return t<0&&r<0?r:t>0&&r>0?t:0}getContext(t){const r=this.ticks||[];if(t>=0&&t<r.length){const n=r[t];return n.$context||(n.$context=CD(this.getContext(),t,n))}return this.$context||(this.$context=_D(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,r=Qn(this.labelRotation),n=Math.abs(Math.cos(r)),o=Math.abs(Math.sin(r)),i=this._getLabelSizes(),s=t.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 t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const r=this.axis,n=this.chart,o=this.options,{grid:i,position:s,border:a}=o,l=i.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),u=xs(i),f=[],h=a.setContext(this.getContext()),g=h.display?h.width:0,p=g/2,m=function(S){return to(n,S,g)};let x,y,_,v,w,C,M,N,O,E,z,T;if(s==="top")x=m(this.bottom),C=this.bottom-u,N=x-p,E=m(t.top)+p,T=t.bottom;else if(s==="bottom")x=m(this.top),E=t.top,T=m(t.bottom)-p,C=x+p,N=this.top+u;else if(s==="left")x=m(this.right),w=this.right-u,M=x-p,O=m(t.left)+p,z=t.right;else if(s==="right")x=m(this.left),O=t.left,z=m(t.right)-p,w=x+p,M=this.left+u;else if(r==="x"){if(s==="center")x=m((t.top+t.bottom)/2+.5);else if(we(s)){const S=Object.keys(s)[0],A=s[S];x=m(this.chart.scales[S].getPixelForValue(A))}E=t.top,T=t.bottom,C=x+p,N=C+u}else if(r==="y"){if(s==="center")x=m((t.left+t.right)/2);else if(we(s)){const S=Object.keys(s)[0],A=s[S];x=m(this.chart.scales[S].getPixelForValue(A))}w=x-p,M=w-u,O=t.left,z=t.right}const P=Te(o.ticks.maxTicksLimit,d),D=Math.max(1,Math.ceil(d/P));for(y=0;y<d;y+=D){const S=this.getContext(y),A=i.setContext(S),F=a.setContext(S),L=A.lineWidth,j=A.color,B=F.dash||[],W=F.dashOffset,H=A.tickWidth,U=A.tickColor,R=A.tickBorderDash||[],q=A.tickBorderDashOffset;_=wD(this,y,l),_!==void 0&&(v=to(n,_,L),c?w=M=O=z=v:C=N=E=T=v,f.push({tx1:w,ty1:C,tx2:M,ty2:N,x1:O,y1:E,x2:z,y2:T,width:L,color:j,borderDash:B,borderDashOffset:W,tickWidth:H,tickColor:U,tickBorderDash:R,tickBorderDashOffset:q}))}return this._ticksLength=d,this._borderValue=x,f}_computeLabelItems(t){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=xs(n.grid),h=f+d,g=u?-d:h,p=-Qn(this.labelRotation),m=[];let x,y,_,v,w,C,M,N,O,E,z,T,P="middle";if(o==="top")C=this.bottom-g,M=this._getXAxisLabelAlignment();else if(o==="bottom")C=this.top+g,M=this._getXAxisLabelAlignment();else if(o==="left"){const S=this._getYAxisLabelAlignment(f);M=S.textAlign,w=S.x}else if(o==="right"){const S=this._getYAxisLabelAlignment(f);M=S.textAlign,w=S.x}else if(r==="x"){if(o==="center")C=(t.top+t.bottom)/2+h;else if(we(o)){const S=Object.keys(o)[0],A=o[S];C=this.chart.scales[S].getPixelForValue(A)+h}M=this._getXAxisLabelAlignment()}else if(r==="y"){if(o==="center")w=(t.left+t.right)/2-h;else if(we(o)){const S=Object.keys(o)[0],A=o[S];w=this.chart.scales[S].getPixelForValue(A)}M=this._getYAxisLabelAlignment(f).textAlign}r==="y"&&(l==="start"?P="top":l==="end"&&(P="bottom"));const D=this._getLabelSizes();for(x=0,y=a.length;x<y;++x){_=a[x],v=_.label;const S=i.setContext(this.getContext(x));N=this.getPixelForTick(x)+i.labelOffset,O=this._resolveTickFontOptions(x),E=O.lineHeight,z=pt(v)?v.length:1;const A=z/2,F=S.color,L=S.textStrokeColor,j=S.textStrokeWidth;let B=M;s?(w=N,M==="inner"&&(x===y-1?B=this.options.reverse?"left":"right":x===0?B=this.options.reverse?"right":"left":B="center"),o==="top"?c==="near"||p!==0?T=-z*E+E/2:c==="center"?T=-D.highest.height/2-A*E+E:T=-D.highest.height+E/2:c==="near"||p!==0?T=E/2:c==="center"?T=D.highest.height/2-A*E:T=D.highest.height-z*E,u&&(T*=-1),p!==0&&!S.showLabelBackdrop&&(w+=E/2*Math.sin(p))):(C=N,T=(1-z)*E/2);let W;if(S.showLabelBackdrop){const H=yr(S.backdropPadding),U=D.heights[x],R=D.widths[x];let q=T-H.top,X=0-H.left;switch(P){case"middle":q-=U/2;break;case"bottom":q-=U;break}switch(M){case"center":X-=R/2;break;case"right":X-=R;break;case"inner":x===y-1?X-=R:x>0&&(X-=R/2);break}W={left:X,top:q,width:R+H.width,height:U+H.height,color:S.backdropColor}}m.push({label:v,font:O,textOffset:T,options:{rotation:p,color:F,strokeColor:L,strokeWidth:j,textAlign:B,textBaseline:P,translation:[w,C],backdrop:W}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:r}=this.options;if(-Qn(this.labelRotation))return t==="top"?"left":"right";let n="center";return r.align==="start"?n="left":r.align==="end"?n="right":r.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:r,ticks:{crossAlign:n,mirror:o,padding:i}}=this.options,s=this._getLabelSizes(),a=t+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 t=this.chart,r=this.options.position;if(r==="left"||r==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(r==="top"||r==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:r},left:n,top:o,width:i,height:s}=this;r&&(t.save(),t.fillStyle=r,t.fillRect(n,o,i,s),t.restore())}getLineWidthForValue(t){const r=this.options.grid;if(!this._isVisible()||!r.display)return 0;const n=this.ticks.findIndex(o=>o.value===t);return n>=0?r.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const r=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));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:t,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=to(t,this.left,s)-s/2,d=to(t,this.right,a)+a/2,u=f=l):(u=to(t,this.top,s)-s/2,f=to(t,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(t){if(!this.options.ticks.display)return;const r=this.ctx,n=this._computeLabelArea();n&&_u(r,n);const o=this.getLabelItems(t);for(const i of o){const s=i.options,a=i.font,l=i.label,c=i.textOffset;_l(r,l,0,c,a,s)}n&&Cu(r)}drawTitle(){const{ctx:t,options:{position:r,title:n,reverse:o}}=this;if(!n.display)return;const i=Bt(n.font),s=yr(n.padding),a=n.align;let l=i.lineHeight/2;r==="bottom"||r==="center"||we(r)?(l+=s.bottom,pt(n.text)&&(l+=i.lineHeight*(n.text.length-1))):l+=s.top;const{titleX:c,titleY:d,maxWidth:u,rotation:f}=ED(this,l,r,a);_l(t,n.text,0,0,i,{color:n.color,maxWidth:u,rotation:f,textAlign:SD(a,r,o),textBaseline:"middle",translation:[c,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,r=t.ticks&&t.ticks.z||0,n=Te(t.grid&&t.grid.z,-1),o=Te(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ll.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(t){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&&(!t||a.type===t)&&o.push(a)}return o}_resolveTickFontOptions(t){const r=this.options.ticks.setContext(this.getContext(t));return Bt(r.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class zl{constructor(t,r,n){this.type=t,this.scope=r,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const r=Object.getPrototypeOf(t);let n;MD(r)&&(n=this.register(r));const o=this.items,i=t.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in o||(o[i]=t,OD(t,s,n),this.override&&Ge.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const r=this.items,n=t.id,o=this.scope;n in r&&delete r[n],o&&n in Ge[o]&&(delete Ge[o][n],this.override&&delete eo[n])}}function OD(e,t,r){const n=ss(Object.create(null),[r?Ge.get(r):{},Ge.get(t),e.defaults]);Ge.set(t,n),e.defaultRoutes&&ND(t,e.defaultRoutes),e.descriptors&&Ge.describe(t,e.descriptors)}function ND(e,t){Object.keys(t).forEach(r=>{const n=r.split("."),o=n.pop(),i=[e].concat(n).join("."),s=t[r].split("."),a=s.pop(),l=s.join(".");Ge.route(i,o,l,a)})}function MD(e){return"id"in e&&"defaults"in e}class TD{constructor(){this.controllers=new zl(gs,"datasets",!0),this.elements=new zl(vs,"elements"),this.plugins=new zl(Object,"plugins"),this.scales=new zl(Ll,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,r,n){[...r].forEach(o=>{const i=n||this._getRegistryForType(o);n||i.isForType(o)||i===this.plugins&&o.id?this._exec(t,i,o):De(o,s=>{const a=n||this._getRegistryForType(s);this._exec(t,a,s)})})}_exec(t,r,n){const o=mu(t);Be(n["before"+o],[],n),r[t](n),Be(n["after"+o],[],n)}_getRegistryForType(t){for(let r=0;r<this._typedRegistries.length;r++){const n=this._typedRegistries[r];if(n.isForType(t))return n}return this.plugins}_get(t,r,n){const o=r.get(t);if(o===void 0)throw new Error('"'+t+'" is not a registered '+n+".");return o}}var Tr=new TD;class DD{constructor(){this._init=[]}notify(t,r,n,o){r==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const i=o?this._descriptors(t).filter(o):this._descriptors(t),s=this._notify(i,t,r,n);return r==="afterDestroy"&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,r,n,o){o=o||{};for(const i of t){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(){St(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const r=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),r}_createDescriptors(t,r){const n=t&&t.config,o=Te(n.options&&n.options.plugins,{}),i=PD(n);return o===!1&&!r?[]:AD(t,i,o,r)}_notifyStateChanges(t){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),t,"stop"),this._notify(o(n,r),t,"start")}}function PD(e){const t={},r=[],n=Object.keys(Tr.plugins.items);for(let i=0;i<n.length;i++)r.push(Tr.getPlugin(n[i]));const o=e.plugins||[];for(let i=0;i<o.length;i++){const s=o[i];r.indexOf(s)===-1&&(r.push(s),t[s.id]=!0)}return{plugins:r,localIds:t}}function ID(e,t){return!t&&e===!1?null:e===!0?{}:e}function AD(e,{plugins:t,localIds:r},n,o){const i=[],s=e.getContext();for(const a of t){const l=a.id,c=ID(n[l],o);c!==null&&i.push({plugin:a,options:LD(e.config,{plugin:a,local:r[l]},c,s)})}return i}function LD(e,{plugin:t,local:r},n,o){const i=e.pluginScopeKeys(t),s=e.getOptionScopes(n,i);return r&&t.defaults&&s.push(t.defaults),e.createResolver(s,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Bu(e,t){const r=Ge.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||r.indexAxis||"x"}function zD(e,t){let r=e;return e==="_index_"?r=t:e==="_value_"&&(r=t==="x"?"y":"x"),r}function FD(e,t){return e===t?"_index_":"_value_"}function Hm(e){if(e==="x"||e==="y"||e==="r")return e}function jD(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Wu(e,...t){if(Hm(e))return e;for(const r of t){const n=r.axis||jD(r.position)||e.length>1&&Hm(e[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function $m(e,t,r){if(r[t+"AxisID"]===e)return{axis:t}}function BD(e,t){if(t.data&&t.data.datasets){const r=t.data.datasets.filter(n=>n.xAxisID===e||n.yAxisID===e);if(r.length)return $m(e,"x",r[0])||$m(e,"y",r[0])}return{}}function WD(e,t){const r=eo[e.type]||{scales:{}},n=t.scales||{},o=Bu(e.type,t),i=Object.create(null);return Object.keys(n).forEach(s=>{const a=n[s];if(!we(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=Wu(s,a,BD(s,e),Ge.scales[a.type]),c=FD(l,o),d=r.scales||{};i[s]=as(Object.create(null),[{axis:l},a,d[l],d[c]])}),e.data.datasets.forEach(s=>{const a=s.type||e.type,l=s.indexAxis||Bu(a,t),c=(eo[a]||{}).scales||{};Object.keys(c).forEach(d=>{const u=zD(d,l),f=s[u+"AxisID"]||u;i[f]=i[f]||Object.create(null),as(i[f],[{axis:u},n[f],c[d]])})}),Object.keys(i).forEach(s=>{const a=i[s];as(a,[Ge.scales[a.type],Ge.scale])}),i}function Vm(e){const t=e.options||(e.options={});t.plugins=Te(t.plugins,{}),t.scales=WD(e,t)}function Ym(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function HD(e){return e=e||{},e.data=Ym(e.data),Vm(e),e}const Um=new Map,Rm=new Set;function Fl(e,t){let r=Um.get(e);return r||(r=t(),Um.set(e,r),Rm.add(r)),r}const ws=(e,t,r)=>{const n=ls(t,r);n!==void 0&&e.add(n)};class $D{constructor(t){this._config=HD(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Ym(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Vm(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Fl(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,r){return Fl(`${t}.transition.${r}`,()=>[[`datasets.${t}.transitions.${r}`,`transitions.${r}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,r){return Fl(`${t}-${r}`,()=>[[`datasets.${t}.elements.${r}`,`datasets.${t}`,`elements.${r}`,""]])}pluginScopeKeys(t){const r=t.id,n=this.type;return Fl(`${n}-plugin-${r}`,()=>[[`plugins.${r}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,r){const n=this._scopeCache;let o=n.get(t);return(!o||r)&&(o=new Map,n.set(t,o)),o}getOptionScopes(t,r,n){const{options:o,type:i}=this,s=this._cachedScopes(t,n),a=s.get(r);if(a)return a;const l=new Set;r.forEach(d=>{t&&(l.add(t),d.forEach(u=>ws(l,t,u))),d.forEach(u=>ws(l,o,u)),d.forEach(u=>ws(l,eo[i]||{},u)),d.forEach(u=>ws(l,Ge,u)),d.forEach(u=>ws(l,wu,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Rm.has(r)&&s.set(r,c),c}chartOptionScopes(){const{options:t,type:r}=this;return[t,eo[r]||{},Ge.datasets[r]||{},{type:r},Ge,wu]}resolveNamedOptions(t,r,n,o=[""]){const i={$shared:!0},{resolver:s,subPrefixes:a}=qm(this._resolverCache,t,o);let l=s;if(YD(s,r)){i.$shared=!1,n=wn(n)?n():n;const c=this.createResolver(t,n,a);l=Wo(s,n,c)}for(const c of r)i[c]=l[c];return i}createResolver(t,r,n=[""],o){const{resolver:i}=qm(this._resolverCache,t,n);return we(r)?Wo(i,r,void 0,o):i}}function qm(e,t,r){let n=e.get(t);n||(n=new Map,e.set(t,n));const o=r.join();let i=n.get(o);return i||(i={resolver:Ou(t,r),subPrefixes:r.filter(s=>!s.toLowerCase().includes("hover"))},n.set(o,i)),i}const VD=e=>we(e)&&Object.getOwnPropertyNames(e).some(t=>wn(e[t]));function YD(e,t){const{isScriptable:r,isIndexable:n}=lm(e);for(const o of t){const i=r(o),s=n(o),a=(s||i)&&e[o];if(i&&(wn(a)||VD(a))||s&&pt(a))return!0}return!1}var UD="4.4.8";const RD=["top","bottom","left","right","chartArea"];function Xm(e,t){return e==="top"||e==="bottom"||RD.indexOf(e)===-1&&t==="x"}function Gm(e,t){return function(r,n){return r[e]===n[e]?r[t]-n[t]:r[e]-n[e]}}function Km(e){const t=e.chart,r=t.options.animation;t.notifyPlugins("afterRender"),Be(r&&r.onComplete,[e],t)}function qD(e){const t=e.chart,r=t.options.animation;Be(r&&r.onProgress,[e],t)}function Zm(e){return Tu()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const jl={},Qm=e=>{const t=Zm(e);return Object.values(jl).filter(r=>r.canvas===t).pop()};function XD(e,t,r){const n=Object.keys(e);for(const o of n){const i=+o;if(i>=t){const s=e[o];delete e[o],(r>0||i>t)&&(e[i+r]=s)}}}function GD(e,t,r,n){return!r||e.type==="mouseout"?null:n?t:e}function Bl(e,t,r){return e.options.clip?e[r]:t[r]}function KD(e,t){const{xScale:r,yScale:n}=e;return r&&n?{left:Bl(r,t,"left"),right:Bl(r,t,"right"),top:Bl(n,t,"top"),bottom:Bl(n,t,"bottom")}:t}var _n;let Jm=(_n=class{static register(...e){Tr.add(...e),ey()}static unregister(...e){Tr.remove(...e),ey()}constructor(e,t){const r=this.config=new $D(t),n=Zm(e),o=Qm(n);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const i=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||hD(n)),this.platform.updateConfig(r);const s=this.platform.acquireContext(n,i.aspectRatio),a=s&&s.canvas,l=a&&a.height,c=a&&a.width;if(this.id=CM(),this.ctx=s,this.canvas=a,this.width=c,this.height=l,this._options=i,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 DD,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=HM(d=>this.update(d),i.resizeDelay||0),this._dataChanges=[],jl[this.id]=this,!s||!a){console.error("Failed to create chart: can't acquire context from the given item");return}tn.listen(this,"complete",Km),tn.listen(this,"progress",qD),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:r,height:n,_aspectRatio:o}=this;return St(e)?t&&o?o:n?r/n: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 Tr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():gm(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return om(this.canvas,this.ctx),this}stop(){return tn.stop(this),this}resize(e,t){tn.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const r=this.options,n=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(n,e,t,o),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,gm(this,s,!0)&&(this.notifyPlugins("resize",{size:i}),Be(r.onResize,[this,i],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};De(e,(t,r)=>{t.id=r})}buildOrUpdateScales(){const e=this.options,t=e.scales,r=this.scales,n=Object.keys(r).reduce((i,s)=>(i[s]=!1,i),{});let o=[];t&&(o=o.concat(Object.keys(t).map(i=>{const s=t[i],a=Wu(i,s),l=a==="r",c=a==="x";return{options:s,dposition:l?"chartArea":c?"bottom":"left",dtype:l?"radialLinear":c?"category":"linear"}}))),De(o,i=>{const s=i.options,a=s.id,l=Wu(a,s),c=Te(s.type,i.dtype);(s.position===void 0||Xm(s.position,l)!==Xm(i.dposition))&&(s.position=i.dposition),n[a]=!0;let d=null;if(a in r&&r[a].type===c)d=r[a];else{const u=Tr.getScale(c);d=new u({id:a,type:c,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,e)}),De(n,(i,s)=>{i||delete r[s]}),De(r,i=>{kn.configure(this,i,i.options),kn.addBox(this,i)})}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,r=e.length;if(e.sort((n,o)=>n.index-o.index),r>t){for(let n=t;n<r;++n)this._destroyDatasetMeta(n);e.splice(t,r-t)}this._sortedMetasets=e.slice(0).sort(Gm("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach((r,n)=>{t.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let r,n;for(this._removeUnreferencedMetasets(),r=0,n=t.length;r<n;r++){const o=t[r];let i=this.getDatasetMeta(r);const s=o.type||this.config.type;if(i.type&&i.type!==s&&(this._destroyDatasetMeta(r),i=this.getDatasetMeta(r)),i.type=s,i.indexAxis=o.indexAxis||Bu(s,this.options),i.order=o.order||0,i.index=r,i.label=""+o.label,i.visible=this.isDatasetVisible(r),i.controller)i.controller.updateIndex(r),i.controller.linkScales();else{const a=Tr.getController(s),{datasetElementType:l,dataElementType:c}=Ge.datasets[s];Object.assign(a,{dataElementType:Tr.getElement(c),datasetElementType:l&&Tr.getElement(l)}),i.controller=new a(this,r),e.push(i.controller)}}return this._updateMetasets(),e}_resetElements(){De(this.data.datasets,(e,t)=>{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const r=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let l=0,c=this.data.datasets.length;l<c;l++){const{controller:d}=this.getDatasetMeta(l),u=!n&&o.indexOf(d)===-1;d.buildOrUpdateElements(u),i=Math.max(+d.getMaxOverflow(),i)}i=this._minPadding=r.layout.autoPadding?i:0,this._updateLayout(i),n||De(o,l=>{l.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Gm("z","_idx"));const{_active:s,_lastEvent:a}=this;a?this._eventHandler(a,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){De(this.scales,e=>{kn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!Vb(t,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:r,start:n,count:o}of t){const i=r==="_removeElements"?-o:o;XD(e,n,i)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,r=o=>new Set(e.filter(i=>i[0]===o).map((i,s)=>s+","+i.splice(1).join(","))),n=r(0);for(let o=1;o<t;o++)if(!Vb(n,r(o)))return;return Array.from(n).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;kn.update(this,this.width,this.height,e);const t=this.chartArea,r=t.width<=0||t.height<=0;this._layers=[],De(this.boxes,n=>{r&&n.position==="chartArea"||(n.configure&&n.configure(),this._layers.push(...n._layers()))},this),this._layers.forEach((n,o)=>{n._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let t=0,r=this.data.datasets.length;t<r;++t)this.getDatasetMeta(t).controller.configure();for(let t=0,r=this.data.datasets.length;t<r;++t)this._updateDataset(t,wn(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const r=this.getDatasetMeta(e),n={meta:r,index:e,mode:t,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",n)!==!1&&(r.controller._update(t),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(tn.has(this)?this.attached&&!tn.running(this)&&tn.start(this):(this.draw(),Km({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:n}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,n)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,r=[];let n,o;for(n=0,o=t.length;n<o;++n){const i=t[n];(!e||i.visible)&&r.push(i)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,r=e._clip,n=!r.disabled,o=KD(e,this.chartArea),i={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",i)!==!1&&(n&&_u(t,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),e.controller.draw(),n&&Cu(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return am(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,r,n){const o=RT.modes[t];return typeof o=="function"?o(this,e,r,n):[]}getDatasetMeta(e){const t=this.data.datasets[e],r=this._metasets;let n=r.filter(o=>o&&o._dataset===t).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},r.push(n)),n}getContext(){return this.$context||(this.$context=Bo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!t.hidden}setDatasetVisibility(e,t){const r=this.getDatasetMeta(e);r.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,r){const n=r?"show":"hide",o=this.getDatasetMeta(e),i=o.controller._resolveAnimations(void 0,n);yl(t)?(o.data[t].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),i.update(o,{visible:r}),this.update(s=>s.datasetIndex===e?n:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),tn.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),om(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete jl[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,t=this.platform,r=(o,i)=>{t.addEventListener(this,o,i),e[o]=i},n=(o,i,s)=>{o.offsetX=i,o.offsetY=s,this._eventHandler(o)};De(this.options.events,o=>r(o,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,r=(a,l)=>{t.addEventListener(this,a,l),e[a]=l},n=(a,l)=>{e[a]&&(t.removeEventListener(this,a,l),delete e[a])},o=(a,l)=>{this.canvas&&this.resize(a,l)};let i;const s=()=>{n("attach",s),this.attached=!0,this.resize(),r("resize",o),r("detach",i)};i=()=>{this.attached=!1,n("resize",o),this._stop(),this._resize(0,0),r("attach",s)},t.isAttached(this.canvas)?s():i()}unbindEvents(){De(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},De(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,r){const n=r?"set":"remove";let o,i,s,a;for(t==="dataset"&&(o=this.getDatasetMeta(e[0].datasetIndex),o.controller["_"+n+"DatasetHoverStyle"]()),s=0,a=e.length;s<a;++s){i=e[s];const l=i&&this.getDatasetMeta(i.datasetIndex).controller;l&&l[n+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],r=e.map(({datasetIndex:n,index:o})=>{const i=this.getDatasetMeta(n);if(!i)throw new Error("No dataset found at index "+n);return{datasetIndex:n,element:i.data[o],index:o}});!bl(r,t)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,t))}notifyPlugins(e,t,r){return this._plugins.notify(this,e,t,r)}isPluginEnabled(e){return this._plugins._cache.filter(t=>t.plugin.id===e).length===1}_updateHoverStyles(e,t,r){const n=this.options.hover,o=(a,l)=>a.filter(c=>!l.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),i=o(t,e),s=r?e:o(e,t);i.length&&this.updateHoverStyle(i,n.mode,!1),s.length&&n.mode&&this.updateHoverStyle(s,n.mode,!0)}_eventHandler(e,t){const r={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},n=i=>(i.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,n)===!1)return;const o=this._handleEvent(e,t,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,n),(o||r.changed)&&this.render(),this}_handleEvent(e,t,r){const{_active:n=[],options:o}=this,i=t,s=this._getActiveElements(e,n,r,i),a=TM(e),l=GD(e,this._lastEvent,r,a);r&&(this._lastEvent=null,Be(o.onHover,[e,s,this],this),a&&Be(o.onClick,[e,s,this],this));const c=!bl(s,n);return(c||t)&&(this._active=s,this._updateHoverStyles(s,n,t)),this._lastEvent=l,c}_getActiveElements(e,t,r,n){if(e.type==="mouseout")return[];if(!r)return t;const o=this.options.hover;return this.getElementsAtEventForMode(e,o.mode,o,n)}},pe(_n,"defaults",Ge),pe(_n,"instances",jl),pe(_n,"overrides",eo),pe(_n,"registry",Tr),pe(_n,"version",UD),pe(_n,"getChart",Qm),_n);function ey(){return De(Jm.instances,e=>e._plugins.invalidate())}function ZD(e,t,r){const{startAngle:n,pixelMargin:o,x:i,y:s,outerRadius:a,innerRadius:l}=t;let c=o/a;e.beginPath(),e.arc(i,s,a,n-c,r+c),l>o?(c=o/l,e.arc(i,s,l,r+c,n-c,!0)):e.arc(i,s,o,r+it,n-it),e.closePath(),e.clip()}function QD(e){return Eu(e,["outerStart","outerEnd","innerStart","innerEnd"])}function JD(e,t,r,n){const o=QD(e.options.borderRadius),i=(r-t)/2,s=Math.min(i,n*t/2),a=l=>{const c=(r-Math.min(i,l))*n/2;return ar(l,0,Math.min(i,c))};return{outerStart:a(o.outerStart),outerEnd:a(o.outerEnd),innerStart:ar(o.innerStart,0,s),innerEnd:ar(o.innerEnd,0,s)}}function $o(e,t,r,n){return{x:r+e*Math.cos(t),y:n+e*Math.sin(t)}}function Wl(e,t,r,n,o,i){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:d}=t,u=Math.max(t.outerRadius+n+r-c,0),f=d>0?d+n+r+c:0;let h=0;const g=o-l;if(n){const S=d>0?d-n:0,A=u>0?u-n:0,F=(S+A)/2,L=F!==0?g*F/(F+n):g;h=(g-L)/2}const p=Math.max(.001,g*u-r/ut)/u,m=(g-p)/2,x=l+m+h,y=o-m-h,{outerStart:_,outerEnd:v,innerStart:w,innerEnd:C}=JD(t,f,u,y-x),M=u-_,N=u-v,O=x+_/M,E=y-v/N,z=f+w,T=f+C,P=x+w/z,D=y-C/T;if(e.beginPath(),i){const S=(O+E)/2;if(e.arc(s,a,u,O,S),e.arc(s,a,u,S,E),v>0){const j=$o(N,E,s,a);e.arc(j.x,j.y,v,E,y+it)}const A=$o(T,y,s,a);if(e.lineTo(A.x,A.y),C>0){const j=$o(T,D,s,a);e.arc(j.x,j.y,C,y+it,D+Math.PI)}const F=(y-C/f+(x+w/f))/2;if(e.arc(s,a,f,y-C/f,F,!0),e.arc(s,a,f,F,x+w/f,!0),w>0){const j=$o(z,P,s,a);e.arc(j.x,j.y,w,P+Math.PI,x-it)}const L=$o(M,x,s,a);if(e.lineTo(L.x,L.y),_>0){const j=$o(M,O,s,a);e.arc(j.x,j.y,_,x-it,O)}}else{e.moveTo(s,a);const S=Math.cos(O)*u+s,A=Math.sin(O)*u+a;e.lineTo(S,A);const F=Math.cos(E)*u+s,L=Math.sin(E)*u+a;e.lineTo(F,L)}e.closePath()}function e6(e,t,r,n,o){const{fullCircles:i,startAngle:s,circumference:a}=t;let l=t.endAngle;if(i){Wl(e,t,r,n,l,o);for(let c=0;c<i;++c)e.fill();isNaN(a)||(l=s+(a%Je||Je))}return Wl(e,t,r,n,l,o),e.fill(),l}function t6(e,t,r,n,o){const{fullCircles:i,startAngle:s,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:d,borderDash:u,borderDashOffset:f}=l,h=l.borderAlign==="inner";if(!c)return;e.setLineDash(u||[]),e.lineDashOffset=f,h?(e.lineWidth=c*2,e.lineJoin=d||"round"):(e.lineWidth=c,e.lineJoin=d||"bevel");let g=t.endAngle;if(i){Wl(e,t,r,n,g,o);for(let p=0;p<i;++p)e.stroke();isNaN(a)||(g=s+(a%Je||Je))}h&&ZD(e,t,g),i||(Wl(e,t,r,n,g,o),e.stroke())}class ks extends vs{constructor(t){super(),pe(this,"circumference"),pe(this,"endAngle"),pe(this,"fullCircles"),pe(this,"innerRadius"),pe(this,"outerRadius"),pe(this,"pixelMargin"),pe(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,t&&Object.assign(this,t)}inRange(t,r,n){const o=this.getProps(["x","y"],n),{angle:i,distance:s}=Rb(o,{x:t,y:r}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:d,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),f=(this.options.spacing+this.options.borderWidth)/2,h=Te(u,l-a),g=wl(i,a,l)&&a!==l,p=h>=Je||g,m=cs(s,c+f,d+f);return p&&m}getCenterPoint(t){const{x:r,y:n,startAngle:o,endAngle:i,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:l,spacing:c}=this.options,d=(o+i)/2,u=(s+a+c+l)/2;return{x:r+Math.cos(d)*u,y:n+Math.sin(d)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:r,circumference:n}=this,o=(r.offset||0)/4,i=(r.spacing||0)/2,s=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=n>Je?Math.floor(n/Je):0,n===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*o,Math.sin(a)*o);const l=1-Math.sin(Math.min(ut,n||0)),c=o*l;t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,e6(t,this,c,i,s),t6(t,this,c,i,s),t.restore()}}pe(ks,"id","arc"),pe(ks,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),pe(ks,"defaultRoutes",{backgroundColor:"backgroundColor"}),pe(ks,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"});const ty=(e,t)=>{let{boxHeight:r=t,boxWidth:n=t}=e;return e.usePointStyle&&(r=Math.min(r,t),n=e.pointStyleWidth||Math.min(n,t)),{boxWidth:n,boxHeight:r,itemHeight:Math.max(t,r)}},r6=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class ry extends vs{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,r,n){this.maxWidth=t,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 t=this.options.labels||{};let r=Be(t.generateLabels,[this.chart],this)||[];t.filter&&(r=r.filter(n=>t.filter(n,this.chart.data))),t.sort&&(r=r.sort((n,o)=>t.sort(n,o,this.chart.data))),this.options.reverse&&r.reverse(),this.legendItems=r}fit(){const{options:t,ctx:r}=this;if(!t.display){this.width=this.height=0;return}const n=t.labels,o=Bt(n.font),i=o.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=ty(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,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,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=t;i.textAlign="left",i.textBaseline="middle";let f=-1,h=-d;return this.legendItems.forEach((g,p)=>{const m=n+r/2+i.measureText(g.text).width;(p===0||c[c.length-1]+m+2*a>s)&&(u+=d,c[c.length-(p>0?0:1)]=0,h+=d,f++),l[p]={left:0,top:h,row:f,width:m,height:o},c[c.length-1]+=m+a}),u}_fitCols(t,r,n,o){const{ctx:i,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=s-t;let u=a,f=0,h=0,g=0,p=0;return this.legendItems.forEach((m,x)=>{const{itemWidth:y,itemHeight:_}=n6(n,r,i,m,o);x>0&&h+_+2*a>d&&(u+=f+a,c.push({width:f,height:h}),g+=f+a,p++,f=h=0),l[x]={left:g,top:h,col:p,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 t=this._computeTitleHeight(),{legendHitBoxes:r,options:{align:n,labels:{padding:o},rtl:i}}=this,s=Ho(i,this.left,this.width);if(this.isHorizontal()){let a=0,l=Zt(n,this.left+o,this.right-this.lineWidths[a]);for(const c of r)a!==c.row&&(a=c.row,l=Zt(n,this.left+o,this.right-this.lineWidths[a])),c.top+=this.top+t+o,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+o}else{let a=0,l=Zt(n,this.top+t+o,this.bottom-this.columnSizes[a].height);for(const c of r)c.col!==a&&(a=c.col,l=Zt(n,this.top+t+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 t=this.ctx;_u(t,this),this._draw(),Cu(t)}}_draw(){const{options:t,columnSizes:r,lineWidths:n,ctx:o}=this,{align:i,labels:s}=t,a=Ge.color,l=Ho(t.rtl,this.left,this.width),c=Bt(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:g,boxHeight:p,itemHeight:m}=ty(s,u),x=function(C,M,N){if(isNaN(g)||g<=0||isNaN(p)||p<0)return;o.save();const O=Te(N.lineWidth,1);if(o.fillStyle=Te(N.fillStyle,a),o.lineCap=Te(N.lineCap,"butt"),o.lineDashOffset=Te(N.lineDashOffset,0),o.lineJoin=Te(N.lineJoin,"miter"),o.lineWidth=O,o.strokeStyle=Te(N.strokeStyle,a),o.setLineDash(Te(N.lineDash,[])),s.usePointStyle){const E={radius:p*Math.SQRT2/2,pointStyle:N.pointStyle,rotation:N.rotation,borderWidth:O},z=l.xPlus(C,g/2),T=M+f;sm(o,E,z,T,s.pointStyleWidth&&g)}else{const E=M+Math.max((u-p)/2,0),z=l.leftForLtr(C,g),T=fs(N.borderRadius);o.beginPath(),Object.values(T).some(P=>P!==0)?Su(o,{x:z,y:E,w:g,h:p,radius:T}):o.rect(z,E,g,p),o.fill(),O!==0&&o.stroke()}o.restore()},y=function(C,M,N){_l(o,N.text,C,M+m/2,c,{strikethrough:N.hidden,textAlign:l.textAlign(N.textAlign)})},_=this.isHorizontal(),v=this._computeTitleHeight();_?h={x:Zt(i,this.left+d,this.right-n[0]),y:this.top+d+v,line:0}:h={x:this.left+d,y:Zt(i,this.top+v+d,this.bottom-r[0].height),line:0},bm(this.ctx,t.textDirection);const w=m+d;this.legendItems.forEach((C,M)=>{o.strokeStyle=C.fontColor,o.fillStyle=C.fontColor;const N=o.measureText(C.text).width,O=l.textAlign(C.textAlign||(C.textAlign=s.textAlign)),E=g+f+N;let z=h.x,T=h.y;l.setWidth(this.width),_?M>0&&z+E+d>this.right&&(T=h.y+=w,h.line++,z=h.x=Zt(i,this.left+d,this.right-n[h.line])):M>0&&T+w>this.bottom&&(z=h.x=z+r[h.line].width+d,h.line++,T=h.y=Zt(i,this.top+v+d,this.bottom-r[h.line].height));const P=l.x(z);if(x(P,T,C),z=$M(O,z+g+f,_?z+E:this.right,t.rtl),y(l.x(z),T,C),_)h.x+=E+d;else if(typeof C.text!="string"){const D=c.lineHeight;h.y+=ny(C,D)+d}else h.y+=w}),mm(this.ctx,t.textDirection)}drawTitle(){const t=this.options,r=t.title,n=Bt(r.font),o=yr(r.padding);if(!r.display)return;const i=Ho(t.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=Zt(t.align,u,this.right-f);else{const g=this.columnSizes.reduce((p,m)=>Math.max(p,m.height),0);d=c+Zt(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const h=Zt(a,u,u+f);s.textAlign=i.textAlign(Zb(a)),s.textBaseline="middle",s.strokeStyle=r.color,s.fillStyle=r.color,s.font=n.string,_l(s,r.text,h,d,n)}_computeTitleHeight(){const t=this.options.title,r=Bt(t.font),n=yr(t.padding);return t.display?r.lineHeight+n.height:0}_getLegendItemAt(t,r){let n,o,i;if(cs(t,this.left,this.right)&&cs(r,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(o=i[n],cs(t,o.left,o.left+o.width)&&cs(r,o.top,o.top+o.height))return this.legendItems[n]}return null}handleEvent(t){const r=this.options;if(!s6(t.type,r))return;const n=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const o=this._hoveredItem,i=r6(o,n);o&&!i&&Be(r.onLeave,[t,o,this],this),this._hoveredItem=n,n&&!i&&Be(r.onHover,[t,n,this],this)}else n&&Be(r.onClick,[t,n,this],this)}}function n6(e,t,r,n,o){const i=o6(n,e,t,r),s=i6(o,n,t.lineHeight);return{itemWidth:i,itemHeight:s}}function o6(e,t,r,n){let o=e.text;return o&&typeof o!="string"&&(o=o.reduce((i,s)=>i.length>s.length?i:s)),t+r.size/2+n.measureText(o).width}function i6(e,t,r){let n=e;return typeof t.text!="string"&&(n=ny(t,r)),n}function ny(e,t){const r=e.text?e.text.length:0;return t*r}function s6(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var a6={id:"legend",_element:ry,start(e,t,r){const n=e.legend=new ry({ctx:e.ctx,options:r,chart:e});kn.configure(e,n,r),kn.addBox(e,n)},stop(e){kn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,r){const n=e.legend;kn.configure(e,n,r),n.options=r},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,r){const n=t.datasetIndex,o=r.chart;o.isDatasetVisible(n)?(o.hide(n),t.hidden=!0):(o.show(n),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:r,pointStyle:n,textAlign:o,color:i,useBorderRadius:s,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(r?0:void 0),d=yr(c.borderWidth);return{text:t[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:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};const _s={average(e){if(!e.length)return!1;let t,r,n=new Set,o=0,i=0;for(t=0,r=e.length;t<r;++t){const s=e[t].element;if(s&&s.hasValue()){const a=s.tooltipPosition();n.add(a.x),o+=a.y,++i}}return i===0||n.size===0?!1:{x:[...n].reduce((s,a)=>s+a)/n.size,y:o/i}},nearest(e,t){if(!e.length)return!1;let r=t.x,n=t.y,o=Number.POSITIVE_INFINITY,i,s,a;for(i=0,s=e.length;i<s;++i){const l=e[i].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),d=LM(t,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 Dr(e,t){return t&&(pt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function rn(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
496
|
+
`)>-1?e.split(`
|
|
497
|
+
`):e}function l6(e,t){const{element:r,datasetIndex:n,index:o}=t,i=e.getDatasetMeta(n).controller,{label:s,value:a}=i.getLabelAndValue(o);return{chart:e,label:s,parsed:i.getParsed(o),raw:e.data.datasets[n].data[o],formattedValue:a,dataset:i.getDataset(),dataIndex:o,datasetIndex:n,element:r}}function oy(e,t){const r=e.chart.ctx,{body:n,footer:o,title:i}=e,{boxWidth:s,boxHeight:a}=t,l=Bt(t.bodyFont),c=Bt(t.titleFont),d=Bt(t.footerFont),u=i.length,f=o.length,h=n.length,g=yr(t.padding);let p=g.height,m=0,x=n.reduce((v,w)=>v+w.before.length+w.lines.length+w.after.length,0);if(x+=e.beforeBody.length+e.afterBody.length,u&&(p+=u*c.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),x){const v=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;p+=h*v+(x-h)*l.lineHeight+(x-1)*t.bodySpacing}f&&(p+=t.footerMarginTop+f*d.lineHeight+(f-1)*t.footerSpacing);let y=0;const _=function(v){m=Math.max(m,r.measureText(v).width+y)};return r.save(),r.font=c.string,De(e.title,_),r.font=l.string,De(e.beforeBody.concat(e.afterBody),_),y=t.displayColors?s+2+t.boxPadding:0,De(n,v=>{De(v.before,_),De(v.lines,_),De(v.after,_)}),y=0,r.font=d.string,De(e.footer,_),r.restore(),m+=g.width,{width:m,height:p}}function c6(e,t){const{y:r,height:n}=t;return r<n/2?"top":r>e.height-n/2?"bottom":"center"}function d6(e,t,r,n){const{x:o,width:i}=n,s=r.caretSize+r.caretPadding;if(e==="left"&&o+i+s>t.width||e==="right"&&o-i-s<0)return!0}function u6(e,t,r,n){const{x:o,width:i}=r,{width:s,chartArea:{left:a,right:l}}=e;let c="center";return n==="center"?c=o<=(a+l)/2?"left":"right":o<=i/2?c="left":o>=s-i/2&&(c="right"),d6(c,e,t,r)&&(c="center"),c}function iy(e,t,r){const n=r.yAlign||t.yAlign||c6(e,r);return{xAlign:r.xAlign||t.xAlign||u6(e,t,r,n),yAlign:n}}function f6(e,t){let{x:r,width:n}=e;return t==="right"?r-=n:t==="center"&&(r-=n/2),r}function h6(e,t,r){let{y:n,height:o}=e;return t==="top"?n+=r:t==="bottom"?n-=o+r:n-=o/2,n}function sy(e,t,r,n){const{caretSize:o,caretPadding:i,cornerRadius:s}=e,{xAlign:a,yAlign:l}=r,c=o+i,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:h}=fs(s);let g=f6(t,a);const p=h6(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(d,f)+o:a==="right"&&(g+=Math.max(u,h)+o),{x:ar(g,0,n.width-t.width),y:ar(p,0,n.height-t.height)}}function Hl(e,t,r){const n=yr(r.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-n.right:e.x+n.left}function ay(e){return Dr([],rn(e))}function g6(e,t,r){return Bo(e,{tooltip:t,tooltipItems:r,type:"tooltip"})}function ly(e,t){const r=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return r?e.override(r):e}const cy={beforeTitle:Jr,title(e){if(e.length>0){const t=e[0],r=t.chart.data.labels,n=r?r.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex<n)return r[t.dataIndex]}return""},afterTitle:Jr,beforeBody:Jr,beforeLabel:Jr,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const r=e.formattedValue;return St(r)||(t+=r),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:Jr,afterBody:Jr,beforeFooter:Jr,footer:Jr,afterFooter:Jr};function Wt(e,t,r,n){const o=e[t].call(r,n);return typeof o>"u"?cy[t].call(r,n):o}var Hu;let dy=(Hu=class extends vs{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 t=this.chart,r=this.options.setContext(this.getContext()),n=r.enabled&&t.options.animation&&r.animations,o=new vm(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=g6(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,t){const{callbacks:r}=t,n=Wt(r,"beforeTitle",this,e),o=Wt(r,"title",this,e),i=Wt(r,"afterTitle",this,e);let s=[];return s=Dr(s,rn(n)),s=Dr(s,rn(o)),s=Dr(s,rn(i)),s}getBeforeBody(e,t){return ay(Wt(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:r}=t,n=[];return De(e,o=>{const i={before:[],lines:[],after:[]},s=ly(r,o);Dr(i.before,rn(Wt(s,"beforeLabel",this,o))),Dr(i.lines,Wt(s,"label",this,o)),Dr(i.after,rn(Wt(s,"afterLabel",this,o))),n.push(i)}),n}getAfterBody(e,t){return ay(Wt(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:r}=t,n=Wt(r,"beforeFooter",this,e),o=Wt(r,"footer",this,e),i=Wt(r,"afterFooter",this,e);let s=[];return s=Dr(s,rn(n)),s=Dr(s,rn(o)),s=Dr(s,rn(i)),s}_createItems(e){const t=this._active,r=this.chart.data,n=[],o=[],i=[];let s=[],a,l;for(a=0,l=t.length;a<l;++a)s.push(l6(this.chart,t[a]));return e.filter&&(s=s.filter((c,d,u)=>e.filter(c,d,u,r))),e.itemSort&&(s=s.sort((c,d)=>e.itemSort(c,d,r))),De(s,c=>{const d=ly(e.callbacks,c);n.push(Wt(d,"labelColor",this,c)),o.push(Wt(d,"labelPointStyle",this,c)),i.push(Wt(d,"labelTextColor",this,c))}),this.labelColors=n,this.labelPointStyles=o,this.labelTextColors=i,this.dataPoints=s,s}update(e,t){const r=this.options.setContext(this.getContext()),n=this._active;let o,i=[];if(!n.length)this.opacity!==0&&(o={opacity:0});else{const s=_s[r.position].call(this,n,this._eventPosition);i=this._createItems(r),this.title=this.getTitle(i,r),this.beforeBody=this.getBeforeBody(i,r),this.body=this.getBody(i,r),this.afterBody=this.getAfterBody(i,r),this.footer=this.getFooter(i,r);const a=this._size=oy(this,r),l=Object.assign({},s,a),c=iy(this.chart,r,l),d=sy(r,l,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,o={opacity:1,x:d.x,y:d.y,width:a.width,height:a.height,caretX:s.x,caretY:s.y}}this._tooltipItems=i,this.$context=void 0,o&&this._resolveAnimations().update(this,o),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,r,n){const o=this.getCaretPosition(e,r,n);t.lineTo(o.x1,o.y1),t.lineTo(o.x2,o.y2),t.lineTo(o.x3,o.y3)}getCaretPosition(e,t,r){const{xAlign:n,yAlign:o}=this,{caretSize:i,cornerRadius:s}=r,{topLeft:a,topRight:l,bottomLeft:c,bottomRight:d}=fs(s),{x:u,y:f}=e,{width:h,height:g}=t;let p,m,x,y,_,v;return o==="center"?(_=f+g/2,n==="left"?(p=u,m=p-i,y=_+i,v=_-i):(p=u+h,m=p+i,y=_-i,v=_+i),x=p):(n==="left"?m=u+Math.max(a,c)+i:n==="right"?m=u+h-Math.max(l,d)-i:m=this.caretX,o==="top"?(y=f,_=y-i,p=m-i,x=m+i):(y=f+g,_=y+i,p=m+i,x=m-i),v=y),{x1:p,x2:m,x3:x,y1:y,y2:_,y3:v}}drawTitle(e,t,r){const n=this.title,o=n.length;let i,s,a;if(o){const l=Ho(r.rtl,this.x,this.width);for(e.x=Hl(this,r.titleAlign,r),t.textAlign=l.textAlign(r.titleAlign),t.textBaseline="middle",i=Bt(r.titleFont),s=r.titleSpacing,t.fillStyle=r.titleColor,t.font=i.string,a=0;a<o;++a)t.fillText(n[a],l.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+s,a+1===o&&(e.y+=r.titleMarginBottom-s)}}_drawColorBox(e,t,r,n,o){const i=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:a,boxWidth:l}=o,c=Bt(o.bodyFont),d=Hl(this,"left",o),u=n.x(d),f=a<c.lineHeight?(c.lineHeight-a)/2:0,h=t.y+f;if(o.usePointStyle){const g={radius:Math.min(l,a)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},p=n.leftForLtr(u,l)+l/2,m=h+a/2;e.strokeStyle=o.multiKeyBackground,e.fillStyle=o.multiKeyBackground,im(e,g,p,m),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,im(e,g,p,m)}else{e.lineWidth=we(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,e.strokeStyle=i.borderColor,e.setLineDash(i.borderDash||[]),e.lineDashOffset=i.borderDashOffset||0;const g=n.leftForLtr(u,l),p=n.leftForLtr(n.xPlus(u,1),l-2),m=fs(i.borderRadius);Object.values(m).some(x=>x!==0)?(e.beginPath(),e.fillStyle=o.multiKeyBackground,Su(e,{x:g,y:h,w:l,h:a,radius:m}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),Su(e,{x:p,y:h+1,w:l-2,h:a-2,radius:m}),e.fill()):(e.fillStyle=o.multiKeyBackground,e.fillRect(g,h,l,a),e.strokeRect(g,h,l,a),e.fillStyle=i.backgroundColor,e.fillRect(p,h+1,l-2,a-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,t,r){const{body:n}=this,{bodySpacing:o,bodyAlign:i,displayColors:s,boxHeight:a,boxWidth:l,boxPadding:c}=r,d=Bt(r.bodyFont);let u=d.lineHeight,f=0;const h=Ho(r.rtl,this.x,this.width),g=function(M){t.fillText(M,h.x(e.x+f),e.y+u/2),e.y+=u+o},p=h.textAlign(i);let m,x,y,_,v,w,C;for(t.textAlign=i,t.textBaseline="middle",t.font=d.string,e.x=Hl(this,p,r),t.fillStyle=r.bodyColor,De(this.beforeBody,g),f=s&&p!=="right"?i==="center"?l/2+c:l+2+c:0,_=0,w=n.length;_<w;++_){for(m=n[_],x=this.labelTextColors[_],t.fillStyle=x,De(m.before,g),y=m.lines,s&&y.length&&(this._drawColorBox(t,e,_,h,r),u=Math.max(d.lineHeight,a)),v=0,C=y.length;v<C;++v)g(y[v]),u=d.lineHeight;De(m.after,g)}f=0,u=d.lineHeight,De(this.afterBody,g),e.y-=o}drawFooter(e,t,r){const n=this.footer,o=n.length;let i,s;if(o){const a=Ho(r.rtl,this.x,this.width);for(e.x=Hl(this,r.footerAlign,r),e.y+=r.footerMarginTop,t.textAlign=a.textAlign(r.footerAlign),t.textBaseline="middle",i=Bt(r.footerFont),t.fillStyle=r.footerColor,t.font=i.string,s=0;s<o;++s)t.fillText(n[s],a.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+r.footerSpacing}}drawBackground(e,t,r,n){const{xAlign:o,yAlign:i}=this,{x:s,y:a}=e,{width:l,height:c}=r,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:h}=fs(n.cornerRadius);t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.beginPath(),t.moveTo(s+d,a),i==="top"&&this.drawCaret(e,t,r,n),t.lineTo(s+l-u,a),t.quadraticCurveTo(s+l,a,s+l,a+u),i==="center"&&o==="right"&&this.drawCaret(e,t,r,n),t.lineTo(s+l,a+c-h),t.quadraticCurveTo(s+l,a+c,s+l-h,a+c),i==="bottom"&&this.drawCaret(e,t,r,n),t.lineTo(s+f,a+c),t.quadraticCurveTo(s,a+c,s,a+c-f),i==="center"&&o==="left"&&this.drawCaret(e,t,r,n),t.lineTo(s,a+d),t.quadraticCurveTo(s,a,s+d,a),t.closePath(),t.fill(),n.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,r=this.$animations,n=r&&r.x,o=r&&r.y;if(n||o){const i=_s[e.position].call(this,this._active,this._eventPosition);if(!i)return;const s=this._size=oy(this,e),a=Object.assign({},i,this._size),l=iy(t,e,a),c=sy(e,a,l,t);(n._to!==c.x||o._to!==c.y)&&(this.xAlign=l.xAlign,this.yAlign=l.yAlign,this.width=s.width,this.height=s.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(t);const n={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const i=yr(t.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&s&&(e.save(),e.globalAlpha=r,this.drawBackground(o,e,n,t),bm(e,t.textDirection),o.y+=i.top,this.drawTitle(o,e,t),this.drawBody(o,e,t),this.drawFooter(o,e,t),mm(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const r=this._active,n=e.map(({datasetIndex:s,index:a})=>{const l=this.chart.getDatasetMeta(s);if(!l)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:l.data[a],index:a}}),o=!bl(r,n),i=this._positionChanged(n,t);(o||i)&&(this._active=n,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,r=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,o=this._active||[],i=this._getActiveElements(e,o,t,r),s=this._positionChanged(i,e),a=t||!bl(i,o)||s;return a&&(this._active=i,(n.enabled||n.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),a}_getActiveElements(e,t,r,n){const o=this.options;if(e.type==="mouseout")return[];if(!n)return t.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const i=this.chart.getElementsAtEventForMode(e,o.mode,o,r);return o.reverse&&i.reverse(),i}_positionChanged(e,t){const{caretX:r,caretY:n,options:o}=this,i=_s[o.position].call(this,e,t);return i!==!1&&(r!==i.x||n!==i.y)}},pe(Hu,"positioners",_s),Hu);var p6={id:"tooltip",_element:dy,positioners:_s,afterInit(e,t,r){r&&(e.tooltip=new dy({chart:e,options:r}))},beforeUpdate(e,t,r){e.tooltip&&e.tooltip.initialize(r)},reset(e,t,r){e.tooltip&&e.tooltip.initialize(r)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const r={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...r,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",r)}},afterEvent(e,t){if(e.tooltip){const r=t.replay;e.tooltip.handleEvent(t.event,r,t.inChartArea)&&(t.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:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.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:cy},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const $l={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}},Ht=Object.keys($l);function uy(e,t){return e-t}function fy(e,t){if(St(t))return null;const r=e._adapter,{parser:n,round:o,isoWeekday:i}=e._parseOpts;let s=t;return typeof n=="function"&&(s=n(s)),en(s)||(s=typeof n=="string"?r.parse(s,n):r.parse(s)),s===null?null:(o&&(s=o==="week"&&(xl(i)||i===!0)?r.startOf(s,"isoWeek",i):r.startOf(s,o)),+s)}function hy(e,t,r,n){const o=Ht.length;for(let i=Ht.indexOf(e);i<o-1;++i){const s=$l[Ht[i]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((r-t)/(a*s.size))<=n)return Ht[i]}return Ht[o-1]}function b6(e,t,r,n,o){for(let i=Ht.length-1;i>=Ht.indexOf(r);i--){const s=Ht[i];if($l[s].common&&e._adapter.diff(o,n,s)>=t-1)return s}return Ht[r?Ht.indexOf(r):0]}function m6(e){for(let t=Ht.indexOf(e)+1,r=Ht.length;t<r;++t)if($l[Ht[t]].common)return Ht[t]}function gy(e,t,r){if(!r)e[t]=!0;else if(r.length){const{lo:n,hi:o}=yu(r,t),i=r[n]>=t?r[n]:r[o];e[i]=!0}}function y6(e,t,r,n){const o=e._adapter,i=+o.startOf(t[0].value,n),s=t[t.length-1].value;let a,l;for(a=i;a<=s;a=+o.add(a,1,n))l=r[a],l>=0&&(t[l].major=!0);return t}function py(e,t,r){const n=[],o={},i=t.length;let s,a;for(s=0;s<i;++s)a=t[s],o[a]=s,n.push({value:a,major:!1});return i===0||!r?n:y6(e,n,o,r)}class Vl extends Ll{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,r={}){const n=t.time||(t.time={}),o=this._adapter=new HT._date(t.adapters.date);o.init(r),as(n.displayFormats,o.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=r.normalized}parse(t,r){return t===void 0?null:fy(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,r=this._adapter,n=t.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()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),o=en(o)&&!isNaN(o)?o:+r.startOf(Date.now(),n),i=en(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 t=this.getLabelTimestamps();let r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(r=t[0],n=t[t.length-1]),{min:r,max:n}}buildTicks(){const t=this.options,r=t.time,n=t.ticks,o=n.source==="labels"?this.getLabelTimestamps():this._generate();t.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=jM(o,i,s);return this._unit=r.unit||(n.autoSkip?hy(r.minUnit,this.min,this.max,this._getLabelCapacity(i)):b6(this,a.length,r.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:m6(this._unit),this.initOffsets(o),t.reverse&&a.reverse(),py(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let r=0,n=0,o,i;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?r=1-o:r=(this.getDecimalForValue(t[1])-o)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?n=i:n=(i-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;r=ar(r,0,s),n=ar(n,0,s),this._offsets={start:r,end:n,factor:1/(r+1+n)}}_generate(){const t=this._adapter,r=this.min,n=this.max,o=this.options,i=o.time,s=i.unit||hy(i.minUnit,r,n,this._getLabelCapacity(r)),a=Te(o.ticks.stepSize,1),l=s==="week"?i.isoWeekday:!1,c=xl(l)||l===!0,d={};let u=r,f,h;if(c&&(u=+t.startOf(u,"isoWeek",l)),u=+t.startOf(u,c?"day":s),t.diff(n,r,s)>1e5*a)throw new Error(r+" and "+n+" are too far apart with stepSize of "+a+" "+s);const g=o.ticks.source==="data"&&this.getDataTimestamps();for(f=u,h=0;f<n;f=+t.add(f,a,s),h++)gy(d,f,g);return(f===n||o.bounds==="ticks"||h===1)&&gy(d,f,g),Object.keys(d).sort(uy).map(p=>+p)}getLabelForValue(t){const r=this._adapter,n=this.options.time;return n.tooltipFormat?r.format(t,n.tooltipFormat):r.format(t,n.displayFormats.datetime)}format(t,r){const n=this.options.time.displayFormats,o=this._unit,i=r||n[o];return this._adapter.format(t,i)}_tickFormatFunction(t,r,n,o){const i=this.options,s=i.ticks.callback;if(s)return Be(s,[t,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(t,o||(h?u:d))}generateTickLabels(t){let r,n,o;for(r=0,n=t.length;r<n;++r)o=t[r],o.label=this._tickFormatFunction(o.value,r,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const r=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((r.start+n)*r.factor)}getValueForPixel(t){const r=this._offsets,n=this.getDecimalForPixel(t)/r.factor-r.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const r=this.options.ticks,n=this.ctx.measureText(t).width,o=Qn(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(t){const r=this.options.time,n=r.displayFormats,o=n[r.unit]||n.millisecond,i=this._tickFormatFunction(t,0,py(this,[t],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 t=this._cache.data||[],r,n;if(t.length)return t;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)t=t.concat(o[r].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let r,n;if(t.length)return t;const o=this.getLabels();for(r=0,n=o.length;r<n;++r)t.push(fy(this,o[r]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return WM(t.sort(uy))}}pe(Vl,"id","time"),pe(Vl,"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 Yl(e,t,r){let n=0,o=e.length-1,i,s,a,l;r?(t>=e[n].pos&&t<=e[o].pos&&({lo:n,hi:o}=vu(e,"pos",t)),{pos:i,time:a}=e[n],{pos:s,time:l}=e[o]):(t>=e[n].time&&t<=e[o].time&&({lo:n,hi:o}=vu(e,"time",t)),{time:i,pos:a}=e[n],{time:s,pos:l}=e[o]);const c=s-i;return c?a+(l-a)*(t-i)/c:a}class by extends Vl{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),r=this._table=this.buildLookupTable(t);this._minPos=Yl(r,this.min),this._tableRange=Yl(r,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:r,max:n}=this,o=[],i=[];let s,a,l,c,d;for(s=0,a=t.length;s<a;++s)c=t[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 t=this.min,r=this.max;let n=super.getDataTimestamps();return(!n.includes(t)||!n.length)&&n.splice(0,0,t),(!n.includes(r)||n.length===1)&&n.push(r),n.sort((o,i)=>o-i)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const r=this.getDataTimestamps(),n=this.getLabelTimestamps();return r.length&&n.length?t=this.normalize(r.concat(n)):t=r.length?r:n,t=this._cache.all=t,t}getDecimalForValue(t){return(Yl(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const r=this._offsets,n=this.getDecimalForPixel(t)/r.factor-r.end;return Yl(this._table,n*this._tableRange+this._minPos,!0)}}pe(by,"id","timeseries"),pe(by,"defaults",Vl.defaults),Jm.register(ks,p6,a6);const v6="modal-module__overlay__cc2Es",x6="modal-module__modal__WAkuU",w6="modal-module__closeButton__1lo1j",$u={overlay:v6,modal:x6,closeButton:w6};function k6(e){return Tt({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:[]}]})(e)}const _6=k.forwardRef(({isOpen:e,onClose:t,children:r,width:n="auto"},o)=>e?b.jsx("div",{className:$u.overlay,children:b.jsxs("div",{ref:o,className:$u.modal,style:{width:n},children:[b.jsx("button",{onClick:t,className:$u.closeButton,children:b.jsx(k6,{})}),r]})}):null);/*! *****************************************************************************
|
|
498
|
+
Copyright (c) Microsoft Corporation.
|
|
499
|
+
|
|
500
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
501
|
+
purpose with or without fee is hereby granted.
|
|
502
|
+
|
|
503
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
504
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
505
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
506
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
507
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
508
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
509
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
510
|
+
***************************************************************************** */var Qt=function(){return Qt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Qt.apply(this,arguments)};function io(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Et(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Vu(){return Vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vu.apply(this,arguments)}function Ul(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var C6=/^((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)-.*))$/,S6=Ul(function(e){return C6.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function E6(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function O6(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var N6=function(){function e(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 t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(O6(this));var n=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
511
|
+
`+r+"\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||!o}if(this.isSpeedy){var i=E6(n);try{i.insertRule(r,i.cssRules.length)}catch(s){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(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',s)}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Ot="-ms-",Rl="-moz-",Ce="-webkit-",Yu="comm",Uu="rule",Ru="decl",M6="@import",my="@keyframes",T6=Math.abs,ql=String.fromCharCode,D6=Object.assign;function P6(e,t){return bt(e,0)^45?(((t<<2^bt(e,0))<<2^bt(e,1))<<2^bt(e,2))<<2^bt(e,3):0}function yy(e){return e.trim()}function I6(e,t){return(e=t.exec(e))?e[0]:e}function Oe(e,t,r){return e.replace(t,r)}function qu(e,t){return e.indexOf(t)}function bt(e,t){return e.charCodeAt(t)|0}function Cs(e,t,r){return e.slice(t,r)}function Pr(e){return e.length}function Xu(e){return e.length}function Xl(e,t){return t.push(e),e}function A6(e,t){return e.map(t).join("")}var Gl=1,Vo=1,vy=0,$t=0,et=0,Yo="";function Kl(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Gl,column:Vo,length:s,return:""}}function Ss(e,t){return D6(Kl("",null,null,"",null,null,0),e,{length:-e.length},t)}function L6(){return et}function z6(){return et=$t>0?bt(Yo,--$t):0,Vo--,et===10&&(Vo=1,Gl--),et}function Jt(){return et=$t<vy?bt(Yo,$t++):0,Vo++,et===10&&(Vo=1,Gl++),et}function Ir(){return bt(Yo,$t)}function Zl(){return $t}function Es(e,t){return Cs(Yo,e,t)}function Os(e){switch(e){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 xy(e){return Gl=Vo=1,vy=Pr(Yo=e),$t=0,[]}function wy(e){return Yo="",e}function Ql(e){return yy(Es($t-1,Gu(e===91?e+2:e===40?e+1:e)))}function F6(e){for(;(et=Ir())&&et<33;)Jt();return Os(e)>2||Os(et)>3?"":" "}function j6(e,t){for(;--t&&Jt()&&!(et<48||et>102||et>57&&et<65||et>70&&et<97););return Es(e,Zl()+(t<6&&Ir()==32&&Jt()==32))}function Gu(e){for(;Jt();)switch(et){case e:return $t;case 34:case 39:e!==34&&e!==39&&Gu(et);break;case 40:e===41&&Gu(e);break;case 92:Jt();break}return $t}function B6(e,t){for(;Jt()&&e+et!==57&&!(e+et===84&&Ir()===47););return"/*"+Es(t,$t-1)+"*"+ql(e===47?e:Jt())}function W6(e){for(;!Os(Ir());)Jt();return Es(e,$t)}function ky(e){return wy(Jl("",null,null,null,[""],e=xy(e),0,[0],e))}function Jl(e,t,r,n,o,i,s,a,l){for(var c=0,d=0,u=s,f=0,h=0,g=0,p=1,m=1,x=1,y=0,_="",v=o,w=i,C=n,M=_;m;)switch(g=y,y=Jt()){case 40:if(g!=108&&bt(M,u-1)==58){qu(M+=Oe(Ql(y),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:M+=Ql(y);break;case 9:case 10:case 13:case 32:M+=F6(g);break;case 92:M+=j6(Zl()-1,7);continue;case 47:switch(Ir()){case 42:case 47:Xl(H6(B6(Jt(),Zl()),t,r),l);break;default:M+="/"}break;case 123*p:a[c++]=Pr(M)*x;case 125*p:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+d:h>0&&Pr(M)-u&&Xl(h>32?Cy(M+";",n,r,u-1):Cy(Oe(M," ","")+";",n,r,u-2),l);break;case 59:M+=";";default:if(Xl(C=_y(M,t,r,c,d,o,a,_,v=[],w=[],u),i),y===123)if(d===0)Jl(M,t,C,C,v,i,u,a,w);else switch(f===99&&bt(M,3)===110?100:f){case 100:case 109:case 115:Jl(e,C,C,n&&Xl(_y(e,C,C,0,0,o,a,_,o,v=[],u),w),o,w,u,a,n?v:w);break;default:Jl(M,C,C,C,[""],w,0,a,w)}}c=d=h=0,p=x=1,_=M="",u=s;break;case 58:u=1+Pr(M),h=g;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&z6()==125)continue}switch(M+=ql(y),y*p){case 38:x=d>0?1:(M+="\f",-1);break;case 44:a[c++]=(Pr(M)-1)*x,x=1;break;case 64:Ir()===45&&(M+=Ql(Jt())),f=Ir(),d=u=Pr(_=M+=W6(Zl())),y++;break;case 45:g===45&&Pr(M)==2&&(p=0)}}return i}function _y(e,t,r,n,o,i,s,a,l,c,d){for(var u=o-1,f=o===0?i:[""],h=Xu(f),g=0,p=0,m=0;g<n;++g)for(var x=0,y=Cs(e,u+1,u=T6(p=s[g])),_=e;x<h;++x)(_=yy(p>0?f[x]+" "+y:Oe(y,/&\f/g,f[x])))&&(l[m++]=_);return Kl(e,t,r,o===0?Uu:a,l,c,d)}function H6(e,t,r){return Kl(e,t,r,Yu,ql(L6()),Cs(e,2,-2),0)}function Cy(e,t,r,n){return Kl(e,t,r,Ru,Cs(e,0,n),Cs(e,n+1,-1),n)}function so(e,t){for(var r="",n=Xu(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Sy(e,t,r,n){switch(e.type){case M6:case Ru:return e.return=e.return||e.value;case Yu:return"";case my:return e.return=e.value+"{"+so(e.children,n)+"}";case Uu:e.value=e.props.join(",")}return Pr(r=so(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ey(e){var t=Xu(e);return function(r,n,o,i){for(var s="",a=0;a<t;a++)s+=e[a](r,n,o,i)||"";return s}}function $6(e){return function(t){t.root||(t=t.return)&&e(t)}}var V6=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}},Y6=function(e,t,r){for(var n=0,o=0;n=o,o=Ir(),n===38&&o===12&&(t[r]=1),!Os(o);)Jt();return Es(e,$t)},U6=function(e,t){var r=-1,n=44;do switch(Os(n)){case 0:n===38&&Ir()===12&&(t[r]=1),e[r]+=Y6($t-1,t,r);break;case 2:e[r]+=Ql(n);break;case 4:if(n===44){e[++r]=Ir()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ql(n)}while(n=Jt());return e},R6=function(e,t){return wy(U6(xy(e),t))},Oy=new WeakMap,q6=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Oy.get(r))&&!n){Oy.set(e,!0);for(var o=[],i=R6(t,o),s=r.props,a=0,l=0;a<i.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=o[a]?i[a].replace(/&\f/g,s[c]):s[c]+" "+i[a]}}},X6=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},G6="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",K6=function(e){return e.type==="comm"&&e.children.indexOf(G6)>-1},Z6=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent===n[0],s=i?n[0].children:n,a=s.length-1;a>=0;a--){var l=s[a];if(l.line<t.line)break;if(l.column<t.column){if(K6(l))return;break}}o.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Ny=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},Q6=function(e,t){for(var r=e-1;r>=0;r--)if(!Ny(t[r]))return!0;return!1},My=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},J6=function(e,t,r){Ny(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."),My(e)):Q6(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),My(e)))};function Ty(e,t){switch(P6(e,t)){case 5103:return Ce+"print-"+e+e;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 Ce+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ce+e+Rl+e+Ot+e+e;case 6828:case 4268:return Ce+e+Ot+e+e;case 6165:return Ce+e+Ot+"flex-"+e+e;case 5187:return Ce+e+Oe(e,/(\w+).+(:[^]+)/,Ce+"box-$1$2"+Ot+"flex-$1$2")+e;case 5443:return Ce+e+Ot+"flex-item-"+Oe(e,/flex-|-self/,"")+e;case 4675:return Ce+e+Ot+"flex-line-pack"+Oe(e,/align-content|flex-|-self/,"")+e;case 5548:return Ce+e+Ot+Oe(e,"shrink","negative")+e;case 5292:return Ce+e+Ot+Oe(e,"basis","preferred-size")+e;case 6060:return Ce+"box-"+Oe(e,"-grow","")+Ce+e+Ot+Oe(e,"grow","positive")+e;case 4554:return Ce+Oe(e,/([^-])(transform)/g,"$1"+Ce+"$2")+e;case 6187:return Oe(Oe(Oe(e,/(zoom-|grab)/,Ce+"$1"),/(image-set)/,Ce+"$1"),e,"")+e;case 5495:case 3959:return Oe(e,/(image-set\([^]*)/,Ce+"$1$`$1");case 4968:return Oe(Oe(e,/(.+:)(flex-)?(.*)/,Ce+"box-pack:$3"+Ot+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ce+e+e;case 4095:case 3583:case 4068:case 2532:return Oe(e,/(.+)-inline(.+)/,Ce+"$1$2")+e;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(Pr(e)-1-t>6)switch(bt(e,t+1)){case 109:if(bt(e,t+4)!==45)break;case 102:return Oe(e,/(.+:)(.+)-([^]+)/,"$1"+Ce+"$2-$3$1"+Rl+(bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qu(e,"stretch")?Ty(Oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(bt(e,t+1)!==115)break;case 6444:switch(bt(e,Pr(e)-3-(~qu(e,"!important")&&10))){case 107:return Oe(e,":",":"+Ce)+e;case 101:return Oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ce+(bt(e,14)===45?"inline-":"")+"box$3$1"+Ce+"$2$3$1"+Ot+"$2box$3")+e}break;case 5936:switch(bt(e,t+11)){case 114:return Ce+e+Ot+Oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ce+e+Ot+Oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ce+e+Ot+Oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ce+e+Ot+e+e}return e}var eP=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Ru:e.return=Ty(e.value,e.length);break;case my:return so([Ss(e,{value:Oe(e.value,"@","@"+Ce)})],n);case Uu:if(e.length)return A6(e.props,function(o){switch(I6(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return so([Ss(e,{props:[Oe(o,/:(read-\w+)/,":"+Rl+"$1")]})],n);case"::placeholder":return so([Ss(e,{props:[Oe(o,/:(plac\w+)/,":"+Ce+"input-$1")]}),Ss(e,{props:[Oe(o,/:(plac\w+)/,":"+Rl+"$1")]}),Ss(e,{props:[Oe(o,/:(plac\w+)/,Ot+"input-$1")]})],n)}return""})}},ec=typeof document<"u",tP=ec?void 0:V6(function(){return Ul(function(){var e={};return function(t){return e[t]}})}),rP=[eP],Dy=function(e){var t=e.key;if(process.env.NODE_ENV!=="production"&&!t)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.
|
|
512
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(ec&&t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(_){var v=_.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var n=e.stylisPlugins||rP;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o={},i,s=[];ec&&(i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(_){for(var v=_.getAttribute("data-emotion").split(" "),w=1;w<v.length;w++)o[v[w]]=!0;s.push(_)}));var a,l=[q6,X6];if(process.env.NODE_ENV!=="production"&&l.push(Z6({get compat(){return y.compat}}),J6),ec){var c,d=[Sy,process.env.NODE_ENV!=="production"?function(_){_.root||(_.return?c.insert(_.return):_.value&&_.type!==Yu&&c.insert(_.value+"{}"))}:$6(function(_){c.insert(_)})],u=Ey(l.concat(n,d)),f=function(_){return so(ky(_),u)};a=function(_,v,w,C){c=w,process.env.NODE_ENV!=="production"&&v.map!==void 0&&(c={insert:function(M){w.insert(M+v.map)}}),f(_?_+"{"+v.styles+"}":v.styles),C&&(y.inserted[v.name]=!0)}}else{var h=[Sy],g=Ey(l.concat(n,h)),p=function(_){return so(ky(_),g)},m=tP(n)(t),x=function(_,v){var w=v.name;return m[w]===void 0&&(m[w]=p(_?_+"{"+v.styles+"}":v.styles)),m[w]};a=function(_,v,w,C){var M=v.name,N=x(_,v);if(y.compat===void 0)return C&&(y.inserted[M]=!0),process.env.NODE_ENV==="development"&&v.map!==void 0?N+v.map:N;if(C)y.inserted[M]=N;else return N}}var y={key:t,sheet:new N6({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:a};return y.sheet.hydrate(s),y},Ku=typeof document<"u";function nP(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):n+=o+" "}),n}var Py=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||Ku===!1&&e.compat!==void 0)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},oP=function(e,t,r){Py(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o="",i=t;do{var s=e.insert(t===i?"."+n:"",i,e.sheet,!0);!Ku&&s!==void 0&&(o+=s),i=i.next}while(i!==void 0);if(!Ku&&o.length!==0)return o}};function iP(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var sP={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},Iy=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
513
|
+
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';".
|
|
514
|
+
You can read more about this here:
|
|
515
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,aP="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",lP=/[A-Z]|^ms/g,Ay=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zu=function(e){return e.charCodeAt(1)===45},Ly=function(e){return e!=null&&typeof e!="boolean"},Qu=Ul(function(e){return Zu(e)?e:e.replace(lP,"-$&").toLowerCase()}),tc=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Ay,function(r,n,o){return vr={name:n,styles:o,next:vr},n})}return sP[e]!==1&&!Zu(e)&&typeof t=="number"&&t!==0?t+"px":t};if(process.env.NODE_ENV!=="production"){var cP=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,dP=["normal","none","initial","inherit","unset"],uP=tc,fP=/^-ms-/,hP=/-(.)/g,zy={};tc=function(e,t){if(e==="content"&&(typeof t!="string"||dP.indexOf(t)===-1&&!cP.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!=='"'&&t.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=uP(e,t);return r!==""&&!Zu(e)&&e.indexOf("-")!==-1&&zy[e]===void 0&&(zy[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(fP,"ms-").replace(hP,function(n,o){return o.toUpperCase()})+"?")),r}}var Fy="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ns(e,t,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(Fy);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return vr={name:r.name,styles:r.styles,next:vr},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)vr={name:n.name,styles:n.styles,next:vr},n=n.next;var o=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(o+=r.map),o}return gP(e,t,r)}case"function":{if(e!==void 0){var i=vr,s=r(e);return vr=i,Ns(e,t,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(Ay,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(`
|
|
516
|
+
`)+`
|
|
517
|
+
|
|
518
|
+
You should wrap it with \`css\` like this:
|
|
519
|
+
|
|
520
|
+
`+("css`"+l+"`"))}break}return r}function gP(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Ns(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")Ly(s)&&(n+=Qu(i)+":"+tc(i,s)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Fy);if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var a=0;a<s.length;a++)Ly(s[a])&&(n+=Qu(i)+":"+tc(i,s[a])+";");else{var l=Ns(e,t,s);switch(i){case"animation":case"animationName":{n+=Qu(i)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(aP),n+=i+"{"+l+"}"}}}}return n}var jy=/label:\s*([^\s;\n{]+)\s*(;|$)/g,By;process.env.NODE_ENV!=="production"&&(By=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var vr,Wy=function(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";vr=void 0;var i=e[0];i==null||i.raw===void 0?(n=!1,o+=Ns(r,t,i)):(process.env.NODE_ENV!=="production"&&i[0]===void 0&&console.error(Iy),o+=i[0]);for(var s=1;s<e.length;s++)o+=Ns(r,t,e[s]),n&&(process.env.NODE_ENV!=="production"&&i[s]===void 0&&console.error(Iy),o+=i[s]);var a;process.env.NODE_ENV!=="production"&&(o=o.replace(By,function(u){return a=u,""})),jy.lastIndex=0;for(var l="",c;(c=jy.exec(o))!==null;)l+="-"+c[1];var d=iP(o)+l;return process.env.NODE_ENV!=="production"?{name:d,styles:o,map:a,next:vr,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:d,styles:o,next:vr}},pP=typeof document<"u",bP=function(e){return e()},mP=I.useInsertionEffect?I.useInsertionEffect:!1,Hy=pP&&mP||bP,$y=typeof document<"u",yP={}.hasOwnProperty,Ms=k.createContext(typeof HTMLElement<"u"?Dy({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Ms.displayName="EmotionCacheContext"),Ms.Provider;var Ju=function(e){return k.forwardRef(function(t,r){var n=k.useContext(Ms);return e(t,n,r)})};$y||(Ju=function(e){return function(t){var r=k.useContext(Ms);return r===null?(r=Dy({key:"css"}),k.createElement(Ms.Provider,{value:r},e(t,r))):e(t,r)}});var ef=k.createContext({});process.env.NODE_ENV!=="production"&&(ef.displayName="EmotionThemeContext");var Vy="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Yy="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",vP=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;Py(t,r,n);var o=Hy(function(){return oP(t,r,n)});if(!$y&&o!==void 0){for(var i,s=r.name,a=r.next;a!==void 0;)s+=" "+a.name,a=a.next;return k.createElement("style",(i={},i["data-emotion"]=t.key+" "+s,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},xP=Ju(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Vy],i=[n],s="";typeof e.className=="string"?s=nP(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var a=Wy(i,void 0,k.useContext(ef));if(process.env.NODE_ENV!=="production"&&a.name.indexOf("-")===-1){var l=e[Yy];l&&(a=Wy([a,"label:"+l+";"]))}s+=t.key+"-"+a.name;var c={};for(var d in e)yP.call(e,d)&&d!=="css"&&d!==Vy&&(process.env.NODE_ENV==="production"||d!==Yy)&&(c[d]=e[d]);return c.ref=r,c.className=s,k.createElement(k.Fragment,null,k.createElement(vP,{cache:t,serialized:a,isStringTag:typeof o=="string"}),k.createElement(o,c))});process.env.NODE_ENV!=="production"&&(xP.displayName="EmotionCssPropInternal");var tf=typeof document<"u";function wP(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):n+=o+" "}),n}var Uy=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||tf===!1&&e.compat!==void 0)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},kP=function(e,t,r){Uy(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o="",i=t;do{var s=e.insert(t===i?"."+n:"",i,e.sheet,!0);!tf&&s!==void 0&&(o+=s),i=i.next}while(i!==void 0);if(!tf&&o.length!==0)return o}};function _P(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var CP={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},Ry=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
521
|
+
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';".
|
|
522
|
+
You can read more about this here:
|
|
523
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,SP="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",EP=/[A-Z]|^ms/g,qy=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rf=function(e){return e.charCodeAt(1)===45},Xy=function(e){return e!=null&&typeof e!="boolean"},nf=Ul(function(e){return rf(e)?e:e.replace(EP,"-$&").toLowerCase()}),rc=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(qy,function(r,n,o){return xr={name:n,styles:o,next:xr},n})}return CP[e]!==1&&!rf(e)&&typeof t=="number"&&t!==0?t+"px":t};if(process.env.NODE_ENV!=="production"){var OP=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,NP=["normal","none","initial","inherit","unset"],MP=rc,TP=/^-ms-/,DP=/-(.)/g,Gy={};rc=function(e,t){if(e==="content"&&(typeof t!="string"||NP.indexOf(t)===-1&&!OP.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!=='"'&&t.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=MP(e,t);return r!==""&&!rf(e)&&e.indexOf("-")!==-1&&Gy[e]===void 0&&(Gy[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(TP,"ms-").replace(DP,function(n,o){return o.toUpperCase()})+"?")),r}}var Ky="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ts(e,t,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(Ky);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return xr={name:r.name,styles:r.styles,next:xr},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)xr={name:n.name,styles:n.styles,next:xr},n=n.next;var o=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(o+=r.map),o}return PP(e,t,r)}case"function":{if(e!==void 0){var i=xr,s=r(e);return xr=i,Ts(e,t,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(qy,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(`
|
|
524
|
+
`)+`
|
|
525
|
+
|
|
526
|
+
You should wrap it with \`css\` like this:
|
|
527
|
+
|
|
528
|
+
`+("css`"+l+"`"))}break}if(t==null)return r;var c=t[r];return c!==void 0?c:r}function PP(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Ts(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":Xy(s)&&(n+=nf(i)+":"+rc(i,s)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Ky);if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)Xy(s[a])&&(n+=nf(i)+":"+rc(i,s[a])+";");else{var l=Ts(e,t,s);switch(i){case"animation":case"animationName":{n+=nf(i)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(SP),n+=i+"{"+l+"}"}}}}return n}var Zy=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Qy;process.env.NODE_ENV!=="production"&&(Qy=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var xr,IP=function(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";xr=void 0;var i=e[0];i==null||i.raw===void 0?(n=!1,o+=Ts(r,t,i)):(process.env.NODE_ENV!=="production"&&i[0]===void 0&&console.error(Ry),o+=i[0]);for(var s=1;s<e.length;s++)o+=Ts(r,t,e[s]),n&&(process.env.NODE_ENV!=="production"&&i[s]===void 0&&console.error(Ry),o+=i[s]);var a;process.env.NODE_ENV!=="production"&&(o=o.replace(Qy,function(u){return a=u,""})),Zy.lastIndex=0;for(var l="",c;(c=Zy.exec(o))!==null;)l+="-"+c[1];var d=_P(o)+l;return process.env.NODE_ENV!=="production"?{name:d,styles:o,map:a,next:xr,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:d,styles:o,next:xr}},AP=S6,LP=function(e){return e!=="theme"},Jy=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?AP:LP},ev=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(i){return e.__emotion_forwardProp(i)&&o(i)}:o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},tv=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
529
|
+
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';".
|
|
530
|
+
You can read more about this here:
|
|
531
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,zP=typeof document<"u",FP=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;Uy(t,r,n);var o=Hy(function(){return kP(t,r,n)});if(!zP&&o!==void 0){for(var i,s=r.name,a=r.next;a!==void 0;)s+=" "+a.name,a=a.next;return k.createElement("style",(i={},i["data-emotion"]=t.key+" "+s,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},jP=function e(t,r){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
|
|
532
|
+
You may have forgotten to import it.`);var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var a=ev(t,r,n),l=a||Jy(o),c=!l("as");return function(){var d=arguments,u=n&&t.__emotion_styles!==void 0?t.__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(tv),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(tv),u.push(d[h],d[0][h])}var g=Ju(function(p,m,x){var y=c&&p.as||o,_="",v=[],w=p;if(p.theme==null){w={};for(var C in p)w[C]=p[C];w.theme=k.useContext(ef)}typeof p.className=="string"?_=wP(m.registered,v,p.className):p.className!=null&&(_=p.className+" ");var M=IP(u.concat(v),m.registered,w);_+=m.key+"-"+M.name,s!==void 0&&(_+=" "+s);var N=c&&a===void 0?Jy(y):l,O={};for(var E in p)c&&E==="as"||N(E)&&(O[E]=p[E]);return O.className=_,O.ref=x,k.createElement(k.Fragment,null,k.createElement(FP,{cache:m,serialized:M,isStringTag:typeof y=="string"}),k.createElement(y,O))});return g.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=u,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return s===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+s}}),g.withComponent=function(p,m){return e(p,Vu({},r,m,{shouldForwardProp:ev(g,m,!0)})).apply(void 0,u)},g}},BP=["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"],ft=jP.bind();BP.forEach(function(e){ft[e]=ft(e)});var rv={exports:{}};/*!
|
|
533
|
+
Copyright (c) 2018 Jed Watson.
|
|
534
|
+
Licensed under the MIT License (MIT), see
|
|
535
|
+
http://jedwatson.github.io/classnames
|
|
536
|
+
*/(function(e){(function(){var t={}.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)t.call(i,l)&&i[l]&&n.push(l)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(rv);var st=rv.exports,WP=k.createContext(void 0),HP=function(){var e=k.useContext(WP);return e},$P=function(e){var t=k.useState(!!e&&typeof window<"u"&&window.matchMedia(e).matches),r=t[0],n=t[1];return k.useEffect(function(){if(e){var o=window.matchMedia(e),i=function(){o.matches!==r&&n(o.matches)};return i(),o.addEventListener("change",i),function(){return o.removeEventListener("change",i)}}},[r,e]),r},Ke={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"},Se={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"},VP=ft.div(nv||(nv=Et([`
|
|
537
|
+
position: fixed;
|
|
538
|
+
top: 0px;
|
|
539
|
+
right: 0px;
|
|
540
|
+
bottom: 0px;
|
|
541
|
+
left: 0px;
|
|
542
|
+
z-index: 1;
|
|
543
|
+
background-color: rgb(0, 0, 0, 0.3);
|
|
544
|
+
`],[`
|
|
545
|
+
position: fixed;
|
|
546
|
+
top: 0px;
|
|
547
|
+
right: 0px;
|
|
548
|
+
bottom: 0px;
|
|
549
|
+
left: 0px;
|
|
550
|
+
z-index: 1;
|
|
551
|
+
background-color: rgb(0, 0, 0, 0.3);
|
|
552
|
+
`]))),nv,YP={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",always:"always",all:"all"},UP=ft.aside(ov||(ov=Et([`
|
|
553
|
+
position: relative;
|
|
554
|
+
border-right-width: 1px;
|
|
555
|
+
border-right-style: solid;
|
|
556
|
+
border-color: #efefef;
|
|
557
|
+
|
|
558
|
+
transition: `,`;
|
|
559
|
+
|
|
560
|
+
width: `,`;
|
|
561
|
+
min-width: `,`;
|
|
562
|
+
|
|
563
|
+
&.`,` {
|
|
564
|
+
width: `,`;
|
|
565
|
+
min-width: `,`;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
&.`,` {
|
|
569
|
+
direction: rtl;
|
|
570
|
+
border-right-width: none;
|
|
571
|
+
border-left-width: 1px;
|
|
572
|
+
border-right-style: none;
|
|
573
|
+
border-left-style: solid;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
&.`,` {
|
|
577
|
+
position: fixed;
|
|
578
|
+
height: 100%;
|
|
579
|
+
top: 0px;
|
|
580
|
+
z-index: 100;
|
|
581
|
+
|
|
582
|
+
`,`
|
|
583
|
+
|
|
584
|
+
&.`,` {
|
|
585
|
+
`,`
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
&.`,` {
|
|
589
|
+
`,`
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
&.`,` {
|
|
593
|
+
right: -`,`;
|
|
594
|
+
|
|
595
|
+
&.`,` {
|
|
596
|
+
right: -`,`;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
&.`,` {
|
|
600
|
+
right: 0;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
`,`
|
|
606
|
+
`],[`
|
|
607
|
+
position: relative;
|
|
608
|
+
border-right-width: 1px;
|
|
609
|
+
border-right-style: solid;
|
|
610
|
+
border-color: #efefef;
|
|
611
|
+
|
|
612
|
+
transition: `,`;
|
|
613
|
+
|
|
614
|
+
width: `,`;
|
|
615
|
+
min-width: `,`;
|
|
616
|
+
|
|
617
|
+
&.`,` {
|
|
618
|
+
width: `,`;
|
|
619
|
+
min-width: `,`;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
&.`,` {
|
|
623
|
+
direction: rtl;
|
|
624
|
+
border-right-width: none;
|
|
625
|
+
border-left-width: 1px;
|
|
626
|
+
border-right-style: none;
|
|
627
|
+
border-left-style: solid;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
&.`,` {
|
|
631
|
+
position: fixed;
|
|
632
|
+
height: 100%;
|
|
633
|
+
top: 0px;
|
|
634
|
+
z-index: 100;
|
|
635
|
+
|
|
636
|
+
`,`
|
|
637
|
+
|
|
638
|
+
&.`,` {
|
|
639
|
+
`,`
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
&.`,` {
|
|
643
|
+
`,`
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
&.`,` {
|
|
647
|
+
right: -`,`;
|
|
648
|
+
|
|
649
|
+
&.`,` {
|
|
650
|
+
right: -`,`;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
&.`,` {
|
|
654
|
+
right: 0;
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
`,`
|
|
660
|
+
`])),function(e){var t=e.transitionDuration;return"width, left, right, ".concat(t,"ms")},function(e){var t=e.width;return t},function(e){var t=e.width;return t},Ke.collapsed,function(e){var t=e.collapsedWidth;return t},function(e){var t=e.collapsedWidth;return t},Ke.rtl,Ke.broken,function(e){var t=e.rtl,r=e.width;return t?"":"left: -".concat(r,";")},Ke.collapsed,function(e){var t=e.rtl,r=e.collapsedWidth;return t?"":"left: -".concat(r,"; ")},Ke.toggled,function(e){var t=e.rtl;return t?"":"left: 0;"},Ke.rtl,function(e){var t=e.width;return t},Ke.collapsed,function(e){var t=e.collapsedWidth;return t},Ke.toggled,function(e){var t=e.rootStyles;return t}),RP=ft.div(iv||(iv=Et([`
|
|
661
|
+
position: relative;
|
|
662
|
+
height: 100%;
|
|
663
|
+
overflow-y: auto;
|
|
664
|
+
overflow-x: hidden;
|
|
665
|
+
z-index: 3;
|
|
666
|
+
|
|
667
|
+
`,`
|
|
668
|
+
`],[`
|
|
669
|
+
position: relative;
|
|
670
|
+
height: 100%;
|
|
671
|
+
overflow-y: auto;
|
|
672
|
+
overflow-x: hidden;
|
|
673
|
+
z-index: 3;
|
|
674
|
+
|
|
675
|
+
`,`
|
|
676
|
+
`])),function(e){var t=e.backgroundColor;return t?"background-color:".concat(t,";"):""}),qP=ft.img(sv||(sv=Et([`
|
|
677
|
+
&.`,` {
|
|
678
|
+
width: 100%;
|
|
679
|
+
height: 100%;
|
|
680
|
+
object-fit: cover;
|
|
681
|
+
object-position: center;
|
|
682
|
+
position: absolute;
|
|
683
|
+
left: 0;
|
|
684
|
+
top: 0;
|
|
685
|
+
z-index: 2;
|
|
686
|
+
}
|
|
687
|
+
`],[`
|
|
688
|
+
&.`,` {
|
|
689
|
+
width: 100%;
|
|
690
|
+
height: 100%;
|
|
691
|
+
object-fit: cover;
|
|
692
|
+
object-position: center;
|
|
693
|
+
position: absolute;
|
|
694
|
+
left: 0;
|
|
695
|
+
top: 0;
|
|
696
|
+
z-index: 2;
|
|
697
|
+
}
|
|
698
|
+
`])),Ke.image),nc=k.createContext({collapsed:!1,toggled:!1,rtl:!1,transitionDuration:300});k.forwardRef(function(e,t){var r,n=e.collapsed,o=e.toggled,i=e.onBackdropClick,s=e.onBreakPoint,a=e.width,l=a===void 0?"250px":a,c=e.collapsedWidth,d=c===void 0?"80px":c,u=e.defaultCollapsed,f=e.className,h=e.children,g=e.breakPoint,p=e.customBreakPoint,m=e.backgroundColor,x=m===void 0?"rgb(249, 249, 249, 0.7)":m,y=e.transitionDuration,_=y===void 0?300:y,v=e.image,w=e.rtl,C=e.rootStyles,M=io(e,["collapsed","toggled","onBackdropClick","onBreakPoint","width","collapsedWidth","defaultCollapsed","className","children","breakPoint","customBreakPoint","backgroundColor","transitionDuration","image","rtl","rootStyles"]),N=function(){if(p)return"(max-width: ".concat(p,")");if(g)return["xs","sm","md","lg","xl","xxl"].includes(g)?"(max-width: ".concat(YP[g],")"):g==="always"||g==="all"?(g==="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(g,")")},O=k.useRef();O.current=function(L){s==null||s(L)};var E=$P(N()),z=k.useState(!1),T=z[0],P=z[1],D=HP(),S=n??(!T&&u?!0:D==null?void 0:D.collapsed),A=o??(D==null?void 0:D.toggled),F=function(){i==null||i(),D==null||D.updateSidebarState({toggled:!1})};return k.useEffect(function(){var L;(L=O.current)===null||L===void 0||L.call(O,E)},[E]),k.useEffect(function(){D==null||D.updateSidebarState({broken:E,rtl:w,transitionDuration:_})},[E,D==null?void 0:D.updateSidebarState,w,_]),k.useEffect(function(){T||(D==null||D.updateSidebarState({collapsed:u}),P(!0))},[u,T,D==null?void 0:D.updateSidebarState]),k.createElement(nc.Provider,{value:{collapsed:S,toggled:A,rtl:w,transitionDuration:_}},k.createElement(UP,Qt({ref:t,"data-testid":"".concat(Ke.root,"-test-id"),rtl:w,rootStyles:C,width:l,collapsedWidth:d,transitionDuration:_,className:st(Ke.root,(r={},r[Ke.collapsed]=S,r[Ke.toggled]=A,r[Ke.broken]=E,r[Ke.rtl]=w,r),f)},M),k.createElement(RP,{"data-testid":"".concat(Ke.container,"-test-id"),className:Ke.container,backgroundColor:x},h),v&&k.createElement(qP,{"data-testid":"".concat(Ke.image,"-test-id"),src:v,alt:"sidebar background",className:Ke.image}),E&&A&&k.createElement(VP,{"data-testid":"".concat(Ke.backdrop,"-test-id"),role:"button",tabIndex:0,"aria-label":"backdrop",onClick:F,onKeyPress:F,className:Ke.backdrop})))});var ov,iv,sv,av=ft.ul(lv||(lv=Et([`
|
|
699
|
+
list-style-type: none;
|
|
700
|
+
padding: 0;
|
|
701
|
+
margin: 0;
|
|
702
|
+
`],[`
|
|
703
|
+
list-style-type: none;
|
|
704
|
+
padding: 0;
|
|
705
|
+
margin: 0;
|
|
706
|
+
`]))),lv,XP=ft.nav(dv||(dv=Et([`
|
|
707
|
+
&.`,` {
|
|
708
|
+
`,`
|
|
709
|
+
}
|
|
710
|
+
`],[`
|
|
711
|
+
&.`,` {
|
|
712
|
+
`,`
|
|
713
|
+
}
|
|
714
|
+
`])),Se.root,function(e){var t=e.rootStyles;return t}),cv=k.createContext(void 0),oc=k.createContext(0),GP=function(e,t){var r=e.children,n=e.className,o=e.transitionDuration,i=o===void 0?300:o,s=e.closeOnClick,a=s===void 0?!1:s,l=e.rootStyles,c=e.menuItemStyles,d=e.renderExpandIcon,u=io(e,["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(cv.Provider,{value:f},k.createElement(oc.Provider,{value:0},k.createElement(XP,Qt({ref:t,className:st(Se.root,n),rootStyles:l},u),k.createElement(av,null,r))))};k.forwardRef(GP);var dv,of=function(){var e=k.useContext(cv);if(e===void 0)throw new Error("Menu Component is required!");return e},KP=ft.div(uv||(uv=Et([`
|
|
715
|
+
height: 0px;
|
|
716
|
+
overflow: hidden;
|
|
717
|
+
z-index: 999;
|
|
718
|
+
transition: height `,`ms;
|
|
719
|
+
box-sizing: border-box;
|
|
720
|
+
background-color: white;
|
|
721
|
+
|
|
722
|
+
`,`
|
|
723
|
+
|
|
724
|
+
`,`
|
|
725
|
+
|
|
726
|
+
`,`;
|
|
727
|
+
|
|
728
|
+
`,`;
|
|
729
|
+
`],[`
|
|
730
|
+
height: 0px;
|
|
731
|
+
overflow: hidden;
|
|
732
|
+
z-index: 999;
|
|
733
|
+
transition: height `,`ms;
|
|
734
|
+
box-sizing: border-box;
|
|
735
|
+
background-color: white;
|
|
736
|
+
|
|
737
|
+
`,`
|
|
738
|
+
|
|
739
|
+
`,`
|
|
740
|
+
|
|
741
|
+
`,`;
|
|
742
|
+
|
|
743
|
+
`,`;
|
|
744
|
+
`])),function(e){var t=e.transitionDuration;return t},function(e){var t=e.firstLevel,r=e.collapsed;return t&&r&&`
|
|
745
|
+
background-color: white;
|
|
746
|
+
box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d;
|
|
747
|
+
`},function(e){var t=e.defaultOpen;return t&&"height: auto;display: block;"},function(e){var t=e.collapsed,r=e.firstLevel,n=e.openWhenCollapsed;return t&&r?`
|
|
748
|
+
position: fixed;
|
|
749
|
+
padding-left: 0px;
|
|
750
|
+
width: 200px;
|
|
751
|
+
border-radius: 4px;
|
|
752
|
+
height: auto!important;
|
|
753
|
+
display: block!important;
|
|
754
|
+
transition: none!important;
|
|
755
|
+
visibility: `.concat(n?"visible":"hidden",`;
|
|
756
|
+
`):`
|
|
757
|
+
position: static!important;
|
|
758
|
+
transform: none!important;
|
|
759
|
+
`},function(e){var t=e.rootStyles;return t}),ZP=function(e,t){var r=e.children,n=e.open,o=e.openWhenCollapsed,i=e.firstLevel,s=e.collapsed,a=e.defaultOpen,l=io(e,["children","open","openWhenCollapsed","firstLevel","collapsed","defaultOpen"]),c=of().transitionDuration,d=k.useState(a)[0];return k.createElement(KP,Qt({"data-testid":"".concat(Se.subMenuContent,"-test-id"),ref:t,firstLevel:i,collapsed:s,open:n,openWhenCollapsed:o,transitionDuration:c,defaultOpen:d},l),k.createElement(av,null,r))},QP=k.forwardRef(ZP),uv,fv=ft.span(hv||(hv=Et([`
|
|
760
|
+
flex-grow: 1;
|
|
761
|
+
overflow: hidden;
|
|
762
|
+
text-overflow: ellipsis;
|
|
763
|
+
white-space: nowrap;
|
|
764
|
+
|
|
765
|
+
`,`;
|
|
766
|
+
`],[`
|
|
767
|
+
flex-grow: 1;
|
|
768
|
+
overflow: hidden;
|
|
769
|
+
text-overflow: ellipsis;
|
|
770
|
+
white-space: nowrap;
|
|
771
|
+
|
|
772
|
+
`,`;
|
|
773
|
+
`])),function(e){var t=e.rootStyles;return t}),hv,gv=ft.span(pv||(pv=Et([`
|
|
774
|
+
width: 35px;
|
|
775
|
+
min-width: 35px;
|
|
776
|
+
height: 35px;
|
|
777
|
+
line-height: 35px;
|
|
778
|
+
text-align: center;
|
|
779
|
+
display: inline-block;
|
|
780
|
+
border-radius: 2px;
|
|
781
|
+
display: flex;
|
|
782
|
+
align-items: center;
|
|
783
|
+
justify-content: center;
|
|
784
|
+
|
|
785
|
+
`,`
|
|
786
|
+
|
|
787
|
+
`,`;
|
|
788
|
+
`],[`
|
|
789
|
+
width: 35px;
|
|
790
|
+
min-width: 35px;
|
|
791
|
+
height: 35px;
|
|
792
|
+
line-height: 35px;
|
|
793
|
+
text-align: center;
|
|
794
|
+
display: inline-block;
|
|
795
|
+
border-radius: 2px;
|
|
796
|
+
display: flex;
|
|
797
|
+
align-items: center;
|
|
798
|
+
justify-content: center;
|
|
799
|
+
|
|
800
|
+
`,`
|
|
801
|
+
|
|
802
|
+
`,`;
|
|
803
|
+
`])),function(e){var t=e.rtl;return t?"margin-left: 10px;":"margin-right: 10px;"},function(e){var t=e.rootStyles;return t}),pv,bv=ft.span(mv||(mv=Et([`
|
|
804
|
+
`,`
|
|
805
|
+
opacity: `,`;
|
|
806
|
+
transition: opacity `,`ms;
|
|
807
|
+
|
|
808
|
+
`,`;
|
|
809
|
+
`],[`
|
|
810
|
+
`,`
|
|
811
|
+
opacity: `,`;
|
|
812
|
+
transition: opacity `,`ms;
|
|
813
|
+
|
|
814
|
+
`,`;
|
|
815
|
+
`])),function(e){var t=e.rtl;return t?"margin-left: 5px;":"margin-right: 5px;"},function(e){var t=e.firstLevel,r=e.collapsed;return t&&r?"0":"1"},function(e){var t=e.transitionDuration;return t},function(e){var t=e.rootStyles;return t}),mv,yv=ft.span(vv||(vv=Et([`
|
|
816
|
+
margin-right: 5px;
|
|
817
|
+
margin-left: 5px;
|
|
818
|
+
opacity: `,`;
|
|
819
|
+
transition: opacity `,`ms;
|
|
820
|
+
|
|
821
|
+
`,`;
|
|
822
|
+
`],[`
|
|
823
|
+
margin-right: 5px;
|
|
824
|
+
margin-left: 5px;
|
|
825
|
+
opacity: `,`;
|
|
826
|
+
transition: opacity `,`ms;
|
|
827
|
+
|
|
828
|
+
`,`;
|
|
829
|
+
`])),function(e){var t=e.firstLevel,r=e.collapsed;return t&&r?"0":"1"},function(e){var t=e.transitionDuration;return t},function(e){var t=e.rootStyles;return t}),vv,JP=ft.span(xv||(xv=Et([`
|
|
830
|
+
`,`
|
|
831
|
+
|
|
832
|
+
`,`;
|
|
833
|
+
`],[`
|
|
834
|
+
`,`
|
|
835
|
+
|
|
836
|
+
`,`;
|
|
837
|
+
`])),function(e){var t=e.collapsed,r=e.level,n=e.rtl;return t&&r===0&&`
|
|
838
|
+
position: absolute;
|
|
839
|
+
`.concat(n?"left: 10px;":"right: 10px;",`
|
|
840
|
+
top: 50%;
|
|
841
|
+
transform: translateY(-50%);
|
|
842
|
+
|
|
843
|
+
`)},function(e){var t=e.rootStyles;return t}),eI=ft.span(wv||(wv=Et([`
|
|
844
|
+
display: inline-block;
|
|
845
|
+
transition: transform 0.3s;
|
|
846
|
+
`,`
|
|
847
|
+
|
|
848
|
+
width: 5px;
|
|
849
|
+
height: 5px;
|
|
850
|
+
transform: rotate(`,`);
|
|
851
|
+
`],[`
|
|
852
|
+
display: inline-block;
|
|
853
|
+
transition: transform 0.3s;
|
|
854
|
+
`,`
|
|
855
|
+
|
|
856
|
+
width: 5px;
|
|
857
|
+
height: 5px;
|
|
858
|
+
transform: rotate(`,`);
|
|
859
|
+
`])),function(e){var t=e.rtl;return t?`
|
|
860
|
+
border-left: 2px solid currentcolor;
|
|
861
|
+
border-top: 2px solid currentcolor;
|
|
862
|
+
`:` border-right: 2px solid currentcolor;
|
|
863
|
+
border-bottom: 2px solid currentcolor;
|
|
864
|
+
`},function(e){var t=e.open,r=e.rtl;return t?r?"-135deg":"45deg":"-45deg"}),tI=ft.span(kv||(kv=Et([`
|
|
865
|
+
width: 5px;
|
|
866
|
+
height: 5px;
|
|
867
|
+
background-color: currentcolor;
|
|
868
|
+
border-radius: 50%;
|
|
869
|
+
display: inline-block;
|
|
870
|
+
`],[`
|
|
871
|
+
width: 5px;
|
|
872
|
+
height: 5px;
|
|
873
|
+
background-color: currentcolor;
|
|
874
|
+
border-radius: 50%;
|
|
875
|
+
display: inline-block;
|
|
876
|
+
`]))),xv,wv,kv,Vt="top",lr="bottom",cr="right",Yt="left",ic="auto",Ds=[Vt,lr,cr,Yt],Uo="start",Ps="end",rI="clippingParents",_v="viewport",Is="popper",nI="reference",Cv=Ds.reduce(function(e,t){return e.concat([t+"-"+Uo,t+"-"+Ps])},[]),Sv=[].concat(Ds,[ic]).reduce(function(e,t){return e.concat([t,t+"-"+Uo,t+"-"+Ps])},[]),oI="beforeRead",iI="read",sI="afterRead",aI="beforeMain",lI="main",cI="afterMain",dI="beforeWrite",uI="write",fI="afterWrite",sf=[oI,iI,sI,aI,lI,cI,dI,uI,fI];function Ar(e){return e?(e.nodeName||"").toLowerCase():null}function dr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ao(e){var t=dr(e).Element;return e instanceof t||e instanceof Element}function er(e){var t=dr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function af(e){if(typeof ShadowRoot>"u")return!1;var t=dr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function hI(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!er(i)||!Ar(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 gI(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),a=s.reduce(function(l,c){return l[c]="",l},{});!er(o)||!Ar(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var pI={name:"applyStyles",enabled:!0,phase:"write",fn:hI,effect:gI,requires:["computeStyles"]};function wr(e){return e.split("-")[0]}var lo=Math.max,sc=Math.min,Ro=Math.round;function lf(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ev(){return!/^((?!chrome|android).)*safari/i.test(lf())}function qo(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&er(e)&&(o=e.offsetWidth>0&&Ro(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ro(n.height)/e.offsetHeight||1);var s=ao(e)?dr(e):window,a=s.visualViewport,l=!Ev()&&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 cf(e){var t=qo(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Ov(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&af(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function kr(e){return dr(e).getComputedStyle(e)}function bI(e){return["table","td","th"].indexOf(Ar(e))>=0}function Cn(e){return((ao(e)?e.ownerDocument:e.document)||window.document).documentElement}function ac(e){return Ar(e)==="html"?e:e.assignedSlot||e.parentNode||(af(e)?e.host:null)||Cn(e)}function Nv(e){return!er(e)||kr(e).position==="fixed"?null:e.offsetParent}function mI(e){var t=/firefox/i.test(lf()),r=/Trident/i.test(lf());if(r&&er(e)){var n=kr(e);if(n.position==="fixed")return null}var o=ac(e);for(af(o)&&(o=o.host);er(o)&&["html","body"].indexOf(Ar(o))<0;){var i=kr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function As(e){for(var t=dr(e),r=Nv(e);r&&bI(r)&&kr(r).position==="static";)r=Nv(r);return r&&(Ar(r)==="html"||Ar(r)==="body"&&kr(r).position==="static")?t:r||mI(e)||t}function df(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ls(e,t,r){return lo(e,sc(t,r))}function yI(e,t,r){var n=Ls(e,t,r);return n>r?r:n}function Mv(){return{top:0,right:0,bottom:0,left:0}}function Tv(e){return Object.assign({},Mv(),e)}function Dv(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var vI=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Tv(typeof e!="number"?e:Dv(e,Ds))};function xI(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=wr(r.placement),l=df(a),c=[Yt,cr].indexOf(a)>=0,d=c?"height":"width";if(!(!i||!s)){var u=vI(o.padding,r),f=cf(i),h=l==="y"?Vt:Yt,g=l==="y"?lr:cr,p=r.rects.reference[d]+r.rects.reference[l]-s[l]-r.rects.popper[d],m=s[l]-r.rects.reference[l],x=As(i),y=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,_=p/2-m/2,v=u[h],w=y-f[d]-u[g],C=y/2-f[d]/2+_,M=Ls(v,C,w),N=l;r.modifiersData[n]=(t={},t[N]=M,t.centerOffset=M-C,t)}}function wI(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(er(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(" "))),!Ov(t.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}t.elements.arrow=o}}var kI={name:"arrow",enabled:!0,phase:"main",fn:xI,effect:wI,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xo(e){return e.split("-")[1]}var _I={top:"auto",right:"auto",bottom:"auto",left:"auto"};function CI(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:Ro(t*o)/o||0,y:Ro(r*o)/o||0}}function Pv(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,f=s.x,h=f===void 0?0:f,g=s.y,p=g===void 0?0:g,m=typeof d=="function"?d({x:h,y:p}):{x:h,y:p};h=m.x,p=m.y;var x=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),_=Yt,v=Vt,w=window;if(c){var C=As(r),M="clientHeight",N="clientWidth";if(C===dr(r)&&(C=Cn(r),kr(C).position!=="static"&&a==="absolute"&&(M="scrollHeight",N="scrollWidth")),C=C,o===Vt||(o===Yt||o===cr)&&i===Ps){v=lr;var O=u&&C===w&&w.visualViewport?w.visualViewport.height:C[M];p-=O-n.height,p*=l?1:-1}if(o===Yt||(o===Vt||o===lr)&&i===Ps){_=cr;var E=u&&C===w&&w.visualViewport?w.visualViewport.width:C[N];h-=E-n.width,h*=l?1:-1}}var z=Object.assign({position:a},c&&_I),T=d===!0?CI({x:h,y:p}):{x:h,y:p};if(h=T.x,p=T.y,l){var P;return Object.assign({},z,(P={},P[v]=y?"0":"",P[_]=x?"0":"",P.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",P))}return Object.assign({},z,(t={},t[v]=y?p+"px":"",t[_]=x?h+"px":"",t.transform="",t))}function SI(e){var t=e.state,r=e.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=kr(t.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".',`
|
|
877
|
+
|
|
878
|
+
`,'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.",`
|
|
879
|
+
|
|
880
|
+
`,"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:wr(t.placement),variation:Xo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Pv(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Pv(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var EI={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:SI,data:{}},lc={passive:!0};function OI(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,s=n.resize,a=s===void 0?!0:s,l=dr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",r.update,lc)}),a&&l.addEventListener("resize",r.update,lc),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",r.update,lc)}),a&&l.removeEventListener("resize",r.update,lc)}}var NI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:OI,data:{}},MI={left:"right",right:"left",bottom:"top",top:"bottom"};function cc(e){return e.replace(/left|right|bottom|top/g,function(t){return MI[t]})}var TI={start:"end",end:"start"};function Iv(e){return e.replace(/start|end/g,function(t){return TI[t]})}function uf(e){var t=dr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function ff(e){return qo(Cn(e)).left+uf(e).scrollLeft}function DI(e,t){var r=dr(e),n=Cn(e),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=Ev();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+ff(e),y:l}}function PI(e){var t,r=Cn(e),n=uf(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=lo(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=lo(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+ff(e),l=-n.scrollTop;return kr(o||r).direction==="rtl"&&(a+=lo(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function hf(e){var t=kr(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Av(e){return["html","body","#document"].indexOf(Ar(e))>=0?e.ownerDocument.body:er(e)&&hf(e)?e:Av(ac(e))}function zs(e,t){var r;t===void 0&&(t=[]);var n=Av(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=dr(n),s=o?[i].concat(i.visualViewport||[],hf(n)?n:[]):n,a=t.concat(s);return o?a:a.concat(zs(ac(s)))}function gf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function II(e,t){var r=qo(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Lv(e,t,r){return t===_v?gf(DI(e,r)):ao(t)?II(t,r):gf(PI(Cn(e)))}function AI(e){var t=zs(ac(e)),r=["absolute","fixed"].indexOf(kr(e).position)>=0,n=r&&er(e)?As(e):e;return ao(n)?t.filter(function(o){return ao(o)&&Ov(o,n)&&Ar(o)!=="body"}):[]}function LI(e,t,r,n){var o=t==="clippingParents"?AI(e):[].concat(t),i=[].concat(o,[r]),s=i[0],a=i.reduce(function(l,c){var d=Lv(e,c,n);return l.top=lo(d.top,l.top),l.right=sc(d.right,l.right),l.bottom=sc(d.bottom,l.bottom),l.left=lo(d.left,l.left),l},Lv(e,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 zv(e){var t=e.reference,r=e.element,n=e.placement,o=n?wr(n):null,i=n?Xo(n):null,s=t.x+t.width/2-r.width/2,a=t.y+t.height/2-r.height/2,l;switch(o){case Vt:l={x:s,y:t.y-r.height};break;case lr:l={x:s,y:t.y+t.height};break;case cr:l={x:t.x+t.width,y:a};break;case Yt:l={x:t.x-r.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?df(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case Uo:l[c]=l[c]-(t[d]/2-r[d]/2);break;case Ps:l[c]=l[c]+(t[d]/2-r[d]/2);break}}return l}function Fs(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,s=i===void 0?e.strategy:i,a=r.boundary,l=a===void 0?rI:a,c=r.rootBoundary,d=c===void 0?_v:c,u=r.elementContext,f=u===void 0?Is:u,h=r.altBoundary,g=h===void 0?!1:h,p=r.padding,m=p===void 0?0:p,x=Tv(typeof m!="number"?m:Dv(m,Ds)),y=f===Is?nI:Is,_=e.rects.popper,v=e.elements[g?y:f],w=LI(ao(v)?v:v.contextElement||Cn(e.elements.popper),l,d,s),C=qo(e.elements.reference),M=zv({reference:C,element:_,placement:o}),N=gf(Object.assign({},_,M)),O=f===Is?N:C,E={top:w.top-O.top+x.top,bottom:O.bottom-w.bottom+x.bottom,left:w.left-O.left+x.left,right:O.right-w.right+x.right},z=e.modifiersData.offset;if(f===Is&&z){var T=z[o];Object.keys(E).forEach(function(P){var D=[cr,lr].indexOf(P)>=0?1:-1,S=[Vt,lr].indexOf(P)>=0?"y":"x";E[P]+=T[S]*D})}return E}function zI(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?Sv:l,d=Xo(n),u=d?a?Cv:Cv.filter(function(g){return Xo(g)===d}):Ds,f=u.filter(function(g){return c.indexOf(g)>=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(g,p){return g[p]=Fs(e,{placement:p,boundary:o,rootBoundary:i,padding:s})[wr(p)],g},{});return Object.keys(h).sort(function(g,p){return h[g]-h[p]})}function FI(e){if(wr(e)===ic)return[];var t=cc(e);return[Iv(e),t,Iv(t)]}function jI(e){var t=e.state,r=e.options,n=e.name;if(!t.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,g=h===void 0?!0:h,p=r.allowedAutoPlacements,m=t.options.placement,x=wr(m),y=x===m,_=l||(y||!g?[cc(m)]:FI(m)),v=[m].concat(_).reduce(function(R,q){return R.concat(wr(q)===ic?zI(t,{placement:q,boundary:d,rootBoundary:u,padding:c,flipVariations:g,allowedAutoPlacements:p}):q)},[]),w=t.rects.reference,C=t.rects.popper,M=new Map,N=!0,O=v[0],E=0;E<v.length;E++){var z=v[E],T=wr(z),P=Xo(z)===Uo,D=[Vt,lr].indexOf(T)>=0,S=D?"width":"height",A=Fs(t,{placement:z,boundary:d,rootBoundary:u,altBoundary:f,padding:c}),F=D?P?cr:Yt:P?lr:Vt;w[S]>C[S]&&(F=cc(F));var L=cc(F),j=[];if(i&&j.push(A[T]<=0),a&&j.push(A[F]<=0,A[L]<=0),j.every(function(R){return R})){O=z,N=!1;break}M.set(z,j)}if(N)for(var B=g?3:1,W=function(R){var q=v.find(function(X){var Q=M.get(X);if(Q)return Q.slice(0,R).every(function(J){return J})});if(q)return O=q,"break"},H=B;H>0;H--){var U=W(H);if(U==="break")break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}}var BI={name:"flip",enabled:!0,phase:"main",fn:jI,requiresIfExists:["offset"],data:{_skip:!1}};function Fv(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function jv(e){return[Vt,cr,lr,Yt].some(function(t){return e[t]>=0})}function WI(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Fs(t,{elementContext:"reference"}),a=Fs(t,{altBoundary:!0}),l=Fv(s,n),c=Fv(a,o,i),d=jv(l),u=jv(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}var HI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:WI};function $I(e,t,r){var n=wr(e),o=[Yt,Vt].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Yt,cr].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function VI(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,s=Sv.reduce(function(d,u){return d[u]=$I(u,t.rects,i),d},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}var YI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:VI};function UI(e){var t=e.state,r=e.name;t.modifiersData[r]=zv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var RI={name:"popperOffsets",enabled:!0,phase:"read",fn:UI,data:{}};function qI(e){return e==="x"?"y":"x"}function XI(e){var t=e.state,r=e.options,n=e.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,g=r.tetherOffset,p=g===void 0?0:g,m=Fs(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),x=wr(t.placement),y=Xo(t.placement),_=!y,v=df(x),w=qI(v),C=t.modifiersData.popperOffsets,M=t.rects.reference,N=t.rects.popper,O=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,E=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(C){if(i){var P,D=v==="y"?Vt:Yt,S=v==="y"?lr:cr,A=v==="y"?"height":"width",F=C[v],L=F+m[D],j=F-m[S],B=h?-N[A]/2:0,W=y===Uo?M[A]:N[A],H=y===Uo?-N[A]:-M[A],U=t.elements.arrow,R=h&&U?cf(U):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Mv(),X=q[D],Q=q[S],J=Ls(0,M[A],R[A]),ie=_?M[A]/2-B-J-X-E.mainAxis:W-J-X-E.mainAxis,ye=_?-M[A]/2+B+J+Q+E.mainAxis:H+J+Q+E.mainAxis,ve=t.elements.arrow&&As(t.elements.arrow),ee=ve?v==="y"?ve.clientTop||0:ve.clientLeft||0:0,ae=(P=z==null?void 0:z[v])!=null?P:0,re=F+ie-ae-ee,oe=F+ye-ae,ne=Ls(h?sc(L,re):L,F,h?lo(j,oe):j);C[v]=ne,T[v]=ne-F}if(a){var Z,Y=v==="x"?Vt:Yt,fe=v==="x"?lr:cr,te=C[w],ce=w==="y"?"height":"width",be=te+m[Y],he=te-m[fe],$e=[Vt,Yt].indexOf(x)!==-1,Re=(Z=z==null?void 0:z[w])!=null?Z:0,Ae=$e?be:te-M[ce]-N[ce]-Re+E.altAxis,wt=$e?te+M[ce]+N[ce]-Re-E.altAxis:he,Le=h&&$e?yI(Ae,te,wt):Ls(h?Ae:be,te,h?wt:he);C[w]=Le,T[w]=Le-te}t.modifiersData[n]=T}}var GI={name:"preventOverflow",enabled:!0,phase:"main",fn:XI,requiresIfExists:["offset"]};function KI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ZI(e){return e===dr(e)||!er(e)?uf(e):KI(e)}function QI(e){var t=e.getBoundingClientRect(),r=Ro(t.width)/e.offsetWidth||1,n=Ro(t.height)/e.offsetHeight||1;return r!==1||n!==1}function JI(e,t,r){r===void 0&&(r=!1);var n=er(t),o=er(t)&&QI(t),i=Cn(t),s=qo(e,o,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Ar(t)!=="body"||hf(i))&&(a=ZI(t)),er(t)?(l=qo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=ff(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function eA(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.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=t.get(a);l&&o(l)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function tA(e){var t=eA(e);return sf.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function rA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Sn(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return[].concat(r).reduce(function(o,i){return o.replace(/%s/,i)},e)}var co='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',nA='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Bv=["name","enabled","phase","fn","effect","requires","options"];function oA(e){e.forEach(function(t){[].concat(Object.keys(t),Bv).filter(function(r,n,o){return o.indexOf(r)===n}).forEach(function(r){switch(r){case"name":typeof t.name!="string"&&console.error(Sn(co,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Sn(co,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":sf.indexOf(t.phase)<0&&console.error(Sn(co,t.name,'"phase"',"either "+sf.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Sn(co,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Sn(co,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Sn(co,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Sn(co,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+Bv.map(function(n){return'"'+n+'"'}).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach(function(n){e.find(function(o){return o.name===n})==null&&console.error(Sn(nA,String(t.name),n,n))})})})}function iA(e,t){var r=new Set;return e.filter(function(n){var o=t(n);if(!r.has(o))return r.add(o),!0})}function sA(e){var t=e.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(t).map(function(r){return t[r]})}var Wv="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",aA="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Hv={placement:"bottom",modifiers:[],strategy:"absolute"};function $v(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function lA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?Hv:o;return function(s,a,l){l===void 0&&(l=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Hv,i),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},d=[],u=!1,f={state:c,setOptions:function(p){var m=typeof p=="function"?p(c.options):p;g(),c.options=Object.assign({},i,c.options,m),c.scrollParents={reference:ao(s)?zs(s):s.contextElement?zs(s.contextElement):[],popper:zs(a)};var x=tA(sA([].concat(n,c.options.modifiers)));if(c.orderedModifiers=x.filter(function(O){return O.enabled}),process.env.NODE_ENV!=="production"){var y=iA([].concat(x,c.options.modifiers),function(O){var E=O.name;return E});if(oA(y),wr(c.options.placement)===ic){var _=c.orderedModifiers.find(function(O){var E=O.name;return E==="flip"});_||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var v=kr(a),w=v.marginTop,C=v.marginRight,M=v.marginBottom,N=v.marginLeft;[w,C,M,N].some(function(O){return parseFloat(O)})&&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 h(),f.update()},forceUpdate:function(){if(!u){var p=c.elements,m=p.reference,x=p.popper;if(!$v(m,x)){process.env.NODE_ENV!=="production"&&console.error(Wv);return}c.rects={reference:JI(m,As(x),c.options.strategy==="fixed"),popper:cf(x)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(O){return c.modifiersData[O.name]=Object.assign({},O.data)});for(var y=0,_=0;_<c.orderedModifiers.length;_++){if(process.env.NODE_ENV!=="production"&&(y+=1,y>100)){console.error(aA);break}if(c.reset===!0){c.reset=!1,_=-1;continue}var v=c.orderedModifiers[_],w=v.fn,C=v.options,M=C===void 0?{}:C,N=v.name;typeof w=="function"&&(c=w({state:c,options:M,name:N,instance:f})||c)}}},update:rA(function(){return new Promise(function(p){f.forceUpdate(),p(c)})}),destroy:function(){g(),u=!0}};if(!$v(s,a))return process.env.NODE_ENV!=="production"&&console.error(Wv),f;f.setOptions(l).then(function(p){!u&&l.onFirstUpdate&&l.onFirstUpdate(p)});function h(){c.orderedModifiers.forEach(function(p){var m=p.name,x=p.options,y=x===void 0?{}:x,_=p.effect;if(typeof _=="function"){var v=_({state:c,name:m,instance:f,options:y}),w=function(){};d.push(v||w)}})}function g(){d.forEach(function(p){return p()}),d=[]}return f}}var cA=[NI,RI,EI,pI,YI,BI,GI,kI,HI],dA=lA({defaultModifiers:cA}),uA=function(e){var t=e.level,r=e.buttonRef,n=e.contentRef,o=k.useContext(nc),i=o.collapsed,s=o.toggled,a=o.transitionDuration,l=k.useRef();return k.useEffect(function(){return t===0&&i&&n.current&&r.current&&(l.current=dA(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()}},[t,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}},Vv=function(e){var t=e.rtl,r=e.level,n=e.collapsed,o=e.disabled,i=e.active;return`
|
|
881
|
+
display: flex;
|
|
882
|
+
align-items: center;
|
|
883
|
+
height: 50px;
|
|
884
|
+
text-decoration: none;
|
|
885
|
+
color: inherit;
|
|
886
|
+
box-sizing: border-box;
|
|
887
|
+
cursor: pointer;
|
|
888
|
+
|
|
889
|
+
`.concat(t?`padding-left: 20px;
|
|
890
|
+
padding-right: `.concat(r===0?20:(n?r:r+1)*20,`px;
|
|
891
|
+
`):`padding-right: 20px;
|
|
892
|
+
padding-left: `.concat(r===0?20:(n?r:r+1)*20,`px;
|
|
893
|
+
`),`
|
|
894
|
+
|
|
895
|
+
&:hover {
|
|
896
|
+
background-color: #f3f3f3;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
`).concat(o&&`
|
|
900
|
+
pointer-events: none;
|
|
901
|
+
cursor: default;
|
|
902
|
+
color:#adadad;
|
|
903
|
+
`,`
|
|
904
|
+
|
|
905
|
+
`).concat(i&&"background-color: #e2eef9;",`
|
|
906
|
+
|
|
907
|
+
`)},fA=function(e,t){var r=e.className,n=e.component,o=e.children,i=io(e,["className","component","children"]);if(n){if(typeof n=="string")return k.createElement(n,Qt(Qt({className:st(r)},i),{ref:t}),o);var s=n.props,a=s.className,l=io(s,["className"]);return k.cloneElement(n,Qt(Qt(Qt({className:st(r,a)},i),l),{ref:t}),o)}else return k.createElement("a",Qt({ref:t,className:st(r)},i),o)},Yv=k.forwardRef(fA),hA=ft.li(Uv||(Uv=Et([`
|
|
908
|
+
position: relative;
|
|
909
|
+
width: 100%;
|
|
910
|
+
|
|
911
|
+
`,`;
|
|
912
|
+
|
|
913
|
+
`,`;
|
|
914
|
+
|
|
915
|
+
> .`,` {
|
|
916
|
+
`,`;
|
|
917
|
+
|
|
918
|
+
`,`;
|
|
919
|
+
}
|
|
920
|
+
`],[`
|
|
921
|
+
position: relative;
|
|
922
|
+
width: 100%;
|
|
923
|
+
|
|
924
|
+
`,`;
|
|
925
|
+
|
|
926
|
+
`,`;
|
|
927
|
+
|
|
928
|
+
> .`,` {
|
|
929
|
+
`,`;
|
|
930
|
+
|
|
931
|
+
`,`;
|
|
932
|
+
}
|
|
933
|
+
`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Se.button,function(e){var t=e.level,r=e.disabled,n=e.active,o=e.collapsed,i=e.rtl;return Vv({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),gA=function(e,t){var r,n=e.children,o=e.className,i=e.label,s=e.icon,a=e.title,l=e.prefix,c=e.suffix,d=e.open,u=e.defaultOpen,f=e.active,h=f===void 0?!1:f,g=e.disabled,p=g===void 0?!1:g,m=e.rootStyles,x=e.component,y=e.onOpenChange,_=e.onClick,v=e.onKeyUp,w=io(e,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),C=k.useContext(oc),M=k.useContext(nc),N=M.collapsed,O=M.rtl,E=M.transitionDuration,z=of(),T=z.renderExpandIcon,P=z.closeOnClick,D=z.menuItemStyles,S=z.transitionDuration,A=k.useState(!!u),F=A[0],L=A[1],j=k.useState(!1),B=j[0],W=j[1],H=k.useState(!1),U=H[0],R=H[1],q=k.useRef(null),X=k.useRef(null),Q=k.useRef(),J=uA({level:C,buttonRef:q,contentRef:X}).popperInstance,ie=k.useCallback(function(){var ne,Z=X.current;if(Z){var Y=(ne=Z==null?void 0:Z.querySelector(".".concat(Se.subMenuContent," > ul")))===null||ne===void 0?void 0:ne.clientHeight;Z.style.overflow="hidden",Z.style.height="".concat(Y,"px"),Q.current=setTimeout(function(){Z.style.overflow="auto",Z.style.height="auto"},S)}},[S]),ye=function(){var ne,Z=X.current;if(Z){var Y=(ne=Z==null?void 0:Z.querySelector(".".concat(Se.subMenuContent," > ul")))===null||ne===void 0?void 0:ne.clientHeight;Z.style.overflow="hidden",Z.style.height="".concat(Y,"px"),Z.offsetHeight,Z.style.height="0px"}},ve=function(){C===0&&N||(typeof d>"u"?(clearTimeout(Number(Q.current)),F?ye():ie(),y==null||y(!F),L(!F)):y==null||y(!d))};k.useEffect(function(){!(C===0&&N)&&typeof d<"u"&&U&&(clearTimeout(Number(Q.current)),d?ie():ye())},[N,ie,i,C,y,d]);var ee=function(ne){_==null||_(ne),ve()},ae=function(ne){v==null||v(ne),ne.key==="Enter"&&ve()},re=function(ne){if(D){var Z={level:C,disabled:p,active:h,isSubmenu:!0,open:d??F},Y=D.root,fe=D.button,te=D.label,ce=D.icon,be=D.prefix,he=D.suffix,$e=D.subMenuContent,Re=D.SubMenuExpandIcon;switch(ne){case"root":return typeof Y=="function"?Y(Z):Y;case"button":return typeof fe=="function"?fe(Z):fe;case"label":return typeof te=="function"?te(Z):te;case"icon":return typeof ce=="function"?ce(Z):ce;case"prefix":return typeof be=="function"?be(Z):be;case"suffix":return typeof he=="function"?he(Z):he;case"SubMenuExpandIcon":return typeof Re=="function"?Re(Z):Re;case"subMenuContent":return typeof $e=="function"?$e(Z):$e;default:return}}};k.useEffect(function(){setTimeout(function(){return J==null?void 0:J.update()},E),N&&C===0&&W(!1)},[N,C,O,E,J]),k.useEffect(function(){var ne=function(te){var ce,be,he;!B&&!((ce=q.current)===null||ce===void 0)&&ce.contains(te)?W(!0):(P&&!(!((be=te.closest(".".concat(Se.menuItemRoot)))===null||be===void 0)&&be.classList.contains(Se.subMenuRoot))||!(!((he=X.current)===null||he===void 0)&&he.contains(te))&&B)&&W(!1)},Z=function(te){ne(te.target)},Y=function(te){te.key==="Enter"?ne(te.target):te.key==="Escape"&&W(!1)},fe=function(){document.removeEventListener("click",Z),document.removeEventListener("keyup",Y)};return fe(),N&&C===0&&(document.addEventListener("click",Z,!1),document.addEventListener("keyup",Y,!1)),function(){fe()}},[N,C,P,B]),k.useEffect(function(){R(!0)},[]);var oe=(r={},r[Se.active]=h,r[Se.disabled]=p,r[Se.open]=d??F,r);return k.createElement(hA,{ref:t,className:st(Se.menuItemRoot,Se.subMenuRoot,oe,o),menuItemStyles:re("root"),level:C,collapsed:N,rtl:O,disabled:p,active:h,buttonStyles:re("button"),rootStyles:m},k.createElement(Yv,Qt({"data-testid":"".concat(Se.button,"-test-id"),ref:q,title:a,className:st(Se.button,oe),onClick:ee,onKeyUp:ae,component:x,tabIndex:0},w),s&&k.createElement(gv,{rtl:O,className:st(Se.icon,oe),rootStyles:re("icon")},s),l&&k.createElement(bv,{collapsed:N,transitionDuration:E,firstLevel:C===0,className:st(Se.prefix,oe),rtl:O,rootStyles:re("prefix")},l),k.createElement(fv,{className:st(Se.label,oe),rootStyles:re("label")},i),c&&k.createElement(yv,{collapsed:N,transitionDuration:E,firstLevel:C===0,className:st(Se.suffix,oe),rootStyles:re("suffix")},c),k.createElement(JP,{rtl:O,className:st(Se.SubMenuExpandIcon,oe),collapsed:N,level:C,rootStyles:re("SubMenuExpandIcon")},T?T({level:C,disabled:p,active:h,open:d??F}):N&&C===0?k.createElement(tI,null):k.createElement(eI,{rtl:O,open:d??F}))),k.createElement(QP,{ref:X,openWhenCollapsed:B,open:d??F,firstLevel:C===0,collapsed:N,defaultOpen:d&&!U||u,className:st(Se.subMenuContent,oe),rootStyles:re("subMenuContent")},k.createElement(oc.Provider,{value:C+1},n)))};k.forwardRef(gA);var Uv,pA=ft.li(Rv||(Rv=Et([`
|
|
934
|
+
width: 100%;
|
|
935
|
+
position: relative;
|
|
936
|
+
|
|
937
|
+
`,`;
|
|
938
|
+
|
|
939
|
+
`,`;
|
|
940
|
+
|
|
941
|
+
> .`,` {
|
|
942
|
+
`,`;
|
|
943
|
+
|
|
944
|
+
`,`;
|
|
945
|
+
}
|
|
946
|
+
`],[`
|
|
947
|
+
width: 100%;
|
|
948
|
+
position: relative;
|
|
949
|
+
|
|
950
|
+
`,`;
|
|
951
|
+
|
|
952
|
+
`,`;
|
|
953
|
+
|
|
954
|
+
> .`,` {
|
|
955
|
+
`,`;
|
|
956
|
+
|
|
957
|
+
`,`;
|
|
958
|
+
}
|
|
959
|
+
`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Se.button,function(e){var t=e.level,r=e.disabled,n=e.active,o=e.collapsed,i=e.rtl;return Vv({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),bA=function(e,t){var r,n=e.children,o=e.icon,i=e.className,s=e.prefix,a=e.suffix,l=e.active,c=l===void 0?!1:l,d=e.disabled,u=d===void 0?!1:d,f=e.component,h=e.rootStyles,g=io(e,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),p=k.useContext(oc),m=k.useContext(nc),x=m.collapsed,y=m.rtl,_=m.transitionDuration,v=of().menuItemStyles,w=function(M){if(v){var N={level:p,disabled:u,active:c,isSubmenu:!1},O=v.root,E=v.button,z=v.label,T=v.icon,P=v.prefix,D=v.suffix;switch(M){case"root":return typeof O=="function"?O(N):O;case"button":return typeof E=="function"?E(N):E;case"label":return typeof z=="function"?z(N):z;case"icon":return typeof T=="function"?T(N):T;case"prefix":return typeof P=="function"?P(N):P;case"suffix":return typeof D=="function"?D(N):D;default:return}}},C=(r={},r[Se.active]=c,r[Se.disabled]=u,r);return k.createElement(pA,{ref:t,className:st(Se.menuItemRoot,C,i),menuItemStyles:w("root"),level:p,collapsed:x,rtl:y,disabled:u,active:c,buttonStyles:w("button"),rootStyles:h},k.createElement(Yv,Qt({className:st(Se.button,C),"data-testid":"".concat(Se.button,"-test-id"),component:f,tabIndex:0},g),o&&k.createElement(gv,{rtl:y,className:st(Se.icon,C),rootStyles:w("icon")},o),s&&k.createElement(bv,{collapsed:x,transitionDuration:_,firstLevel:p===0,className:st(Se.prefix,C),rtl:y,rootStyles:w("prefix")},s),k.createElement(fv,{className:st(Se.label,C),rootStyles:w("label")},n),a&&k.createElement(yv,{collapsed:x,transitionDuration:_,firstLevel:p===0,className:st(Se.suffix,C),rootStyles:w("suffix")},a)))};k.forwardRef(bA);var Rv;const mA="card-module__cardFormat__LNrgl",yA={cardFormat:mA},qv=k.forwardRef((e,t)=>{const{image:r,icon:n,title:o,description:i}=e;return b.jsxs("div",{className:`${yA.cardFormat} border px-3.5 py-7`,ref:t,children:[(r==null?void 0:r.type)==="image"?b.jsx(Nb,{classIm:"mx-auto",src:`../../../../public/assets/images/${r.name}.svg`,alt:r.name,width:74,height:74}):n?b.jsx("div",{className:"flex justify-center",children:b.jsx(n,{size:74})}):null,b.jsx("h3",{className:"my-3 font-bold",children:o}),b.jsx("p",{children:i})]})});qv.displayName="CardFormat";function vA(e){return Tt({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:[]}]})(e)}function xA(e){return Tt({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:[]}]})(e)}function wA(e){return Tt({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:[]}]})(e)}function Xv(e){return Tt({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:[]}]})(e)}function kA(e){return Tt({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:[]}]})(e)}function _A(e){return Tt({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:[]}]})(e)}function CA(e){return Tt({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:[]}]})(e)}function SA(e){return Tt({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:[]}]})(e)}function Gv(e){return Tt({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:[]}]})(e)}function EA(e){return Tt({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:[]}]})(e)}function Kv(e){return Tt({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:[]}]})(e)}function OA(e){return Tt({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:[]}]})(e)}function NA(e){return Tt({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:[]}]})(e)}const pf="-";function MA(e){const t=DA(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;function o(s){const a=s.split(pf);return a[0]===""&&a.length!==1&&a.shift(),Zv(a,t)||TA(s)}function i(s,a){const l=r[s]||[];return a&&n[s]?[...l,...n[s]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function Zv(e,t){var r;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),i=o?Zv(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(pf);return(r=t.validators.find(({validator:a})=>a(s)))==null?void 0:r.classGroupId}const Qv=/^\[(.+)\]$/;function TA(e){if(Qv.test(e)){const t=Qv.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function DA(e){const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return IA(Object.entries(e.classGroups),r).forEach(([o,i])=>{bf(i,n,o,t)}),n}function bf(e,t,r,n){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Jv(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(PA(o)){bf(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{bf(s,Jv(t,i),r,n)})})}function Jv(e,t){let r=e;return t.split(pf).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function PA(e){return e.isThemeGetter}function IA(e,t){return t?e.map(([r,n])=>{const o=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[r,o]}):e}function AA(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;function o(i,s){r.set(i,s),t++,t>e&&(t=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 ex="!";function LA(e){const t=e.separator,r=t.length===1,n=t[0],o=t.length;return function(i){const s=[];let a=0,l=0,c;for(let g=0;g<i.length;g++){let p=i[g];if(a===0){if(p===n&&(r||i.slice(g,g+o)===t)){s.push(i.slice(l,g)),l=g+o;continue}if(p==="/"){c=g;continue}}p==="["?a++:p==="]"&&a--}const d=s.length===0?i:i.substring(l),u=d.startsWith(ex),f=u?d.substring(1):d,h=c&&c>l?c-l:void 0;return{modifiers:s,hasImportantModifier:u,baseClassName:f,maybePostfixModifierPosition:h}}}function zA(e){if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t}function FA(e){return{cache:AA(e.cacheSize),splitModifiers:LA(e),...MA(e)}}const jA=/\s+/;function BA(e,t){const{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(jA).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=zA(a).join(":");return{isTailwindClass:!0,modifierId:l?h+ex: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 WA(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=tx(t))&&(n&&(n+=" "),n+=r);return n}function tx(e){if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=tx(e[n]))&&(r&&(r+=" "),r+=t);return r}function HA(e,...t){let r,n,o,i=s;function s(l){const c=t.reduce((d,u)=>u(d),e());return r=FA(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=BA(l,r);return o(l,d),d}return function(){return i(WA.apply(null,arguments))}}function We(e){const t=r=>r[e]||[];return t.isThemeGetter=!0,t}const rx=/^\[(?:([a-z-]+):)?(.+)\]$/i,$A=/^\d+\/\d+$/,VA=new Set(["px","full","screen"]),YA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,UA=/\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$/,RA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,qA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,XA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function nn(e){return uo(e)||VA.has(e)||$A.test(e)}function En(e){return Go(e,"length",r3)}function uo(e){return!!e&&!Number.isNaN(Number(e))}function dc(e){return Go(e,"number",uo)}function js(e){return!!e&&Number.isInteger(Number(e))}function GA(e){return e.endsWith("%")&&uo(e.slice(0,-1))}function de(e){return rx.test(e)}function On(e){return YA.test(e)}const KA=new Set(["length","size","percentage"]);function ZA(e){return Go(e,KA,nx)}function QA(e){return Go(e,"position",nx)}const JA=new Set(["image","url"]);function e3(e){return Go(e,JA,o3)}function t3(e){return Go(e,"",n3)}function Bs(){return!0}function Go(e,t,r){const n=rx.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1}function r3(e){return UA.test(e)&&!RA.test(e)}function nx(){return!1}function n3(e){return qA.test(e)}function o3(e){return XA.test(e)}function i3(){const e=We("colors"),t=We("spacing"),r=We("blur"),n=We("brightness"),o=We("borderColor"),i=We("borderRadius"),s=We("borderSpacing"),a=We("borderWidth"),l=We("contrast"),c=We("grayscale"),d=We("hueRotate"),u=We("invert"),f=We("gap"),h=We("gradientColorStops"),g=We("gradientColorStopPositions"),p=We("inset"),m=We("margin"),x=We("opacity"),y=We("padding"),_=We("saturate"),v=We("scale"),w=We("sepia"),C=We("skew"),M=We("space"),N=We("translate"),O=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",de,t],T=()=>[de,t],P=()=>["",nn,En],D=()=>["auto",uo,de],S=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],A=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],L=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",de],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[uo,dc],H=()=>[uo,de];return{cacheSize:500,separator:":",theme:{colors:[Bs],spacing:[nn,En],blur:["none","",On,de],brightness:W(),borderColor:[e],borderRadius:["none","","full",On,de],borderSpacing:T(),borderWidth:P(),contrast:W(),grayscale:j(),hueRotate:H(),invert:j(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[GA,En],inset:z(),margin:z(),opacity:W(),padding:T(),saturate:W(),scale:W(),sepia:j(),skew:H(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",de]}],container:["container"],columns:[{columns:[On]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"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:[...S(),de]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",js,de]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",de]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",js,de]}],"grid-cols":[{"grid-cols":[Bs]}],"col-start-end":[{col:["auto",{span:["full",js,de]},de]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[Bs]}],"row-start-end":[{row:["auto",{span:[js,de]},de]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",de]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",de]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...L()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...L(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...L(),"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:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",de,t]}],"min-w":[{"min-w":[de,t,"min","max","fit"]}],"max-w":[{"max-w":[de,t,"none","full","min","max","fit","prose",{screen:[On]},On]}],h:[{h:[de,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[de,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[de,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[de,t,"auto","min","max","fit"]}],"font-size":[{text:["base",On,En]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",dc]}],"font-family":[{font:[Bs]}],"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",de]}],"line-clamp":[{"line-clamp":["none",uo,dc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",nn,de]}],"list-image":[{"list-image":["none",de]}],"list-style-type":[{list:["none","disc","decimal",de]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",nn,En]}],"underline-offset":[{"underline-offset":["auto",nn,de]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de]}],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",de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...S(),QA]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ZA]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},e3]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...A(),"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":[x]}],"divide-style":[{divide:A()}],"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:["",...A()]}],"outline-offset":[{"outline-offset":[nn,de]}],"outline-w":[{outline:[nn,En]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[nn,En]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",On,t3]}],"shadow-color":[{shadow:[Bs]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":F()}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",On,de]}],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":[x]}],"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",de]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",de]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",de]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[js,de]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",de]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",de]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",de]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[nn,En,dc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-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 V=HA(i3);function fo(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function Ws(e){if(!fo(e))return e;const t={};for(const r in e)t[r]=Ws(e[r]);return t}function K(e,t){if(fo(t)&&Object.keys(t).length===0)return Ws({...e,...t});const r={...e,...t};if(fo(t)&&fo(e))for(const n in t)fo(t[n])&&n in e&&fo(e[n])?r[n]=K(e[n],t[n]):r[n]=fo(t[n])?Ws(t[n]):t[n];return r}const s3={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"}}},a3={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"},l3={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"}},c3={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"}}},d3={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},u3={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"}},f3={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"}},h3={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"}},g3={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"}}},p3={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"}},b3={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"}}},m3={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"}},y3={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"}}}}},v3={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"},x3={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"}}}},w3={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"}},k3={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"}},_3={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"}}},C3={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"}},S3={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"}}},E3={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"}},O3={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"}}},N3={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"}},M3={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"}},T3={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"}}},D3={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"}},P3={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"}},I3={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"}},A3={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"}}}},L3={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"}}},z3={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"}},F3={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"}}}},j3={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"}},B3={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"}},W3={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"}},H3={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"},$3={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:""}},V3={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:""}}}},Y3={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:""}}},U3={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"}},R3={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"}}},q3={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"},X3={accordion:s3,alert:a3,avatar:l3,badge:c3,blockquote:d3,breadcrumb:u3,button:f3,buttonGroup:h3,card:g3,carousel:p3,checkbox:b3,datepicker:y3,darkThemeToggle:m3,dropdown:v3,fileInput:x3,floatingLabel:w3,footer:k3,helperText:_3,kbd:C3,label:S3,listGroup:O3,list:E3,modal:N3,navbar:M3,pagination:T3,popover:D3,progress:P3,radio:I3,rangeSlider:A3,rating:L3,ratingAdvanced:z3,select:F3,textInput:V3,textarea:$3,toggleSwitch:R3,sidebar:j3,spinner:B3,table:W3,tabs:H3,timeline:Y3,toast:U3,tooltip:q3},G3={theme:Ws(X3)};function le(){return Ws(G3.theme)}const ox=k.createContext(void 0);function ix(){const e=k.useContext(ox);if(!e)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return e}const sx=({children:e,className:t,theme:r={},...n})=>{const{isOpen:o}=ix(),i=K(le().accordion.content,r);return b.jsx("div",{className:V(i.base,t),"data-testid":"flowbite-accordion-content",hidden:!o,...n,children:e})},ax=({children:e,...t})=>{const{alwaysOpen:r}=t,[n,o]=k.useState(t.isOpen),i=r?{...t,isOpen:n,setOpen:()=>o(!n)}:t;return b.jsx(ox.Provider,{value:i,children:e})},lx=({as:e="h2",children:t,className:r,theme:n={},...o})=>{const{arrowIcon:i,flush:s,isOpen:a,setOpen:l}=ix(),c=()=>typeof l<"u"&&l(),d=K(le().accordion.title,n);return b.jsxs("button",{className:V(d.base,d.flush[s?"on":"off"],d.open[a?"on":"off"],r),onClick:c,type:"button",...o,children:[b.jsx(e,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:t}),i&&b.jsx(i,{"aria-hidden":!0,className:V(d.arrow.base,d.arrow.open[a?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},cx=({alwaysOpen:e=!1,arrowIcon:t=Xv,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:e,arrowIcon:t,flush:n,isOpen:l===h,setOpen:()=>c(l===h?-1:h)})),[e,t,r,n,l]),u=K(le().accordion.root,s);return b.jsx("div",{className:V(u.base,u.flush[n?"on":"off"],i),"data-testid":"flowbite-accordion",...a,children:d})};cx.displayName="Accordion",ax.displayName="Accordion.Panel",lx.displayName="Accordion.Title",sx.displayName="Accordion.Content",Object.assign(cx,{Panel:ax,Title:lx,Content:sx});const dx=({children:e,className:t,theme:r={},...n})=>{const o=K(le().avatar.group,r);return b.jsx("div",{"data-testid":"avatar-group-element",className:V(o.base,t),...n,children:e})};dx.displayName="Avatar.Group";const ux=({className:e,href:t,theme:r={},total:n,...o})=>{const i=K(le().avatar.groupCounter,r);return b.jsxs("a",{href:t,className:V(i.base,e),...o,children:["+",n]})};ux.displayName="Avatar.GroupCounter";const fx=({alt:e="",bordered:t=!1,children:r,className:n,color:o="light",img:i,placeholderInitials:s="",rounded:a=!1,size:l="md",stacked:c=!1,status:d,statusPosition:u="top-left",theme:f={},...h})=>{const g=K(le().avatar,f),p=V(g.root.img.base,t&&g.root.bordered,t&&g.root.color[o],a&&g.root.rounded,c&&g.root.stacked,g.root.img.on,g.root.size[l]),m={className:V(p,g.root.img.on),"data-testid":"flowbite-avatar-img"};return b.jsxs("div",{className:V(g.root.base,n),"data-testid":"flowbite-avatar",...h,children:[b.jsxs("div",{className:"relative",children:[i?typeof i=="string"?b.jsx("img",{alt:e,src:i,...m}):i({alt:e,...m}):s?b.jsx("div",{className:V(g.root.img.off,g.root.initials.base,c&&g.root.stacked,t&&g.root.bordered,t&&g.root.color[o],g.root.size[l],a&&g.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:b.jsx("span",{className:V(g.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:s})}):b.jsx("div",{className:V(p,g.root.img.off),"data-testid":"flowbite-avatar-img",children:b.jsx("svg",{className:g.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:b.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&&b.jsx("span",{"data-testid":"flowbite-avatar-status",className:V(g.root.status.base,g.root.status[d],g.root.statusPosition[u])})]}),r&&b.jsx("div",{children:r})]})};fx.displayName="Avatar",Object.assign(fx,{Group:dx,Counter:ux});const hx=({children:e,color:t="info",href:r,icon:n,size:o="xs",className:i,theme:s={},...a})=>{const l=K(le().badge,s),c=()=>b.jsxs("span",{className:V(l.root.base,l.root.color[t],l.root.size[o],l.icon[n?"on":"off"],i),"data-testid":"flowbite-badge",...a,children:[n&&b.jsx(n,{"aria-hidden":!0,className:l.icon.size[o],"data-testid":"flowbite-badge-icon"}),e&&b.jsx("span",{children:e})]});return r?b.jsx("a",{className:l.root.href,href:r,children:b.jsx(c,{})}):b.jsx(c,{})};hx.displayName="Badge";const gx=({className:e,color:t="info",light:r,size:n="md",theme:o={},...i})=>{const s=K(le().spinner,o);return b.jsx("span",{role:"status",...i,children:b.jsxs("svg",{fill:"none",viewBox:"0 0 100 101",className:V(s.base,s.color[t],s.light[r?"on":"off"].base,s.light[r?"on":"off"].color[t],s.size[n],e),children:[b.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"}),b.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"})]})})};gx.displayName="Spinner";const mf=k.forwardRef(({children:e,as:t,href:r,type:n="button",...o},i)=>k.createElement(t||(r?"a":"button"),{ref:i,href:r,type:n,...o},e));mf.displayName="ButtonBaseComponent";const px=(e,t,r)=>k.Children.map(e,(n,o)=>k.isValidElement(n)?n.props.children?k.cloneElement(n,{...n.props,children:px(n.props.children,t,r),positionInGroup:bx(o,k.Children.count(e))}):k.cloneElement(n,{outline:t,pill:r,positionInGroup:bx(o,k.Children.count(e))}):n),bx=(e,t)=>e===0?"start":e===t-1?"end":"middle",mx=({children:e,className:t,outline:r,pill:n,theme:o={},...i})=>{const s=k.useMemo(()=>px(e,r,n),[e,r,n]),a=K(le().buttonGroup,o);return b.jsx("div",{className:V(a.base,t),role:"group",...i,children:s})};mx.displayName="Button.Group";const yx=k.forwardRef(({children:e,className:t,color:r="info",disabled:n,fullSized:o,isProcessing:i=!1,processingLabel:s="Loading...",processingSpinner:a,gradientDuoTone:l,gradientMonochrome:c,label:d,outline:u=!1,pill:f=!1,positionInGroup:h="none",size:g="md",theme:p={},...m},x)=>{const{buttonGroup:y,button:_}=le(),v=K(_,p),w=m;return b.jsx(mf,{ref:x,disabled:n,className:V(v.base,n&&v.disabled,!l&&!c&&v.color[r],l&&!c&&v.gradientDuoTone[l],!l&&c&&v.gradient[c],u&&(v.outline.color[r]??v.outline.color.default),v.pill[f?"on":"off"],o&&v.fullSized,y.position[h],t),...w,children:b.jsx("span",{className:V(v.inner.base,v.outline[u?"on":"off"],v.outline.pill[u&&f?"on":"off"],v.size[g],u&&!v.outline.color[r]&&v.inner.outline,i&&v.isProcessing,i&&v.inner.isProcessingPadding[g],v.inner.position[h]),children:b.jsxs(b.Fragment,{children:[i&&b.jsx("span",{className:V(v.spinnerSlot,v.spinnerLeftPosition[g]),children:a||b.jsx(gx,{size:g})}),typeof e<"u"?e:b.jsx("span",{"data-testid":"flowbite-button-label",className:V(v.label),children:i?s:d})]})})})});yx.displayName="Button";const vx=Object.assign(yx,{Group:mx}),xx=({children:e,...t})=>b.jsx(vx,{onClick:r=>{const n=r.target.closest('[role="banner"]');n==null||n.remove()},...t,children:e});xx.displayName="Banner.CollapseButton";const wx=({children:e,...t})=>b.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...t,children:e});wx.displayName="Banner",Object.assign(wx,{CollapseButton:xx});const kx=k.forwardRef(({children:e,className:t,href:r,icon:n,theme:o={},...i},s)=>{const a=typeof r<"u",l=a?"a":"span",c=K(le().breadcrumb.item,o);return b.jsxs("li",{className:V(c.base,t),...i,children:[b.jsx(Kv,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),b.jsxs(l,{ref:s,className:c.href[a?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:r,children:[n&&b.jsx(n,{"aria-hidden":!0,className:c.icon}),e]})]})});kx.displayName="Breadcrumb.Item";const _x=({children:e,className:t,theme:r={},...n})=>{const o=K(le().breadcrumb.root,r);return b.jsx("nav",{"aria-label":"Breadcrumb",className:V(o.base,t),...n,children:b.jsx("ol",{className:o.list,children:e})})};_x.displayName="Breadcrumb",Object.assign(_x,{Item:kx});function Cx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sx={exports:{}};/*!
|
|
960
|
+
Copyright (c) 2018 Jed Watson.
|
|
961
|
+
Licensed under the MIT License (MIT), see
|
|
962
|
+
http://jedwatson.github.io/classnames
|
|
963
|
+
*/(function(e){(function(){var t={}.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)t.call(i,a)&&i[a]&&(s=o(s,a));return s}function o(i,s){return s?i?i+" "+s:i+s:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Sx);var K3=Sx.exports;const Z3=Cx(K3);var yf={exports:{}};function Ex(e,t=100,r={}){if(typeof e!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<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<t&&u>=0)s=setTimeout(c,t-u);else if(s=void 0,!n){const f=o,h=i;o=void 0,i=void 0,l=e.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,t)),f){const h=o,g=i;o=void 0,i=void 0,l=e.apply(h,g)}return l};return d.clear=()=>{s&&(clearTimeout(s),s=void 0)},d.flush=()=>{if(!s)return;const u=o,f=i;o=void 0,i=void 0,l=e.apply(u,f),clearTimeout(s),s=void 0},d}yf.exports.debounce=Ex,yf.exports=Ex;var Q3=yf.exports;const J3=Cx(Q3);var e7=Object.defineProperty,t7=(e,t,r)=>t in e?e7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,at=(e,t,r)=>(t7(e,typeof t!="symbol"?t+"":t,r),r);const r7=300,n7=0;class o7 extends k.PureComponent{constructor(t){super(t),at(this,"container"),at(this,"scrolling"),at(this,"started"),at(this,"pressed"),at(this,"isMobile",!1),at(this,"internal"),at(this,"scrollLeft"),at(this,"scrollTop"),at(this,"clientX"),at(this,"clientY"),at(this,"onEndScroll",()=>{this.scrolling=!1,!this.pressed&&this.started&&this.processEnd()}),at(this,"onScroll",()=>{const r=this.container.current;(r.scrollLeft!==this.scrollLeft||r.scrollTop!==this.scrollTop)&&(this.scrolling=!0,this.processScroll(),this.onEndScroll())}),at(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()}}),at(this,"onTouchEnd",()=>{const{nativeMobileScroll:r}=this.props;this.pressed&&(this.started&&(!this.scrolling||!r)?this.processEnd():this.pressed=!1,this.forceUpdate())}),at(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()}}),at(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()))}),at(this,"onMouseMove",r=>{this.pressed&&(this.processMove(r.clientX,r.clientY),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation())}),at(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=J3(this.onEndScroll,r7),this.scrolling=!1,this.started=!1,this.pressed=!1,this.internal=!1,this.getRef=this.getRef.bind(this)}componentDidMount(){const{nativeMobileScroll:t}=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}),t&&(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(t){const r=this.props.ignoreElements;if(r){const n=t.closest(r);return n===null||n.contains(this.getElement())}else return!0}isScrollable(){const t=this.container.current;return t&&(t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight)}processClick(t,r){const n=this.container.current;this.scrollLeft=n==null?void 0:n.scrollLeft,this.scrollTop=n==null?void 0:n.scrollTop,this.clientX=t,this.clientY=r,this.pressed=!0}processStart(t=!0){const{onStartScroll:r}=this.props;this.started=!0,t&&document.body.classList.add("cursor-grab"),r&&r({external:!this.internal}),this.forceUpdate()}processScroll(){if(this.started){const{onScroll:t}=this.props;t&&t({external:!this.internal})}else this.processStart(!1)}processMove(t,r){const{horizontal:n,vertical:o,activationDistance:i,onScroll:s}=this.props,a=this.container.current;this.started?(n&&(a.scrollLeft-=t-this.clientX),o&&(a.scrollTop-=r-this.clientY),s&&s({external:!this.internal}),this.clientX=t,this.clientY=r,this.scrollLeft=a.scrollLeft,this.scrollTop=a.scrollTop):(n&&Math.abs(t-this.clientX)>i||o&&Math.abs(r-this.clientY)>i)&&(this.clientX=t,this.clientY=r,this.processStart())}processEnd(){const{onEndScroll:t}=this.props;this.container.current&&t&&t({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("cursor-grab"),this.forceUpdate()}getRef(t){[this.container,this.props.innerRef].forEach(r=>{r&&(typeof r=="function"?r(t):r.current=t)})}render(){const{children:t,draggingClassName:r,className:n,style:o,hideScrollbars:i}=this.props;return b.jsx("div",{className:Z3(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:t})}}at(o7,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[n7]});const i7=k.forwardRef(({className:e,color:t="default",theme:r={},...n},o)=>{const i=K(le().checkbox,r);return b.jsx("input",{ref:o,type:"checkbox",className:V(i.root.base,i.root.color[t],e),...n})});i7.displayName="Checkbox";const Hs=({children:e,className:t,color:r="default",theme:n={},value:o,...i})=>{const s=K(le().helperText,n);return b.jsx("p",{className:V(s.root.base,s.root.colors[r],t),...i,children:o??e??""})};Hs.displayName="HelperText";const Ox=k.forwardRef(({addon:e,className:t,color:r="gray",helperText:n,icon:o,rightIcon:i,shadow:s,sizing:a="md",theme:l={},type:c="text",...d},u)=>{const f=K(le().textInput,l);return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:V(f.base,t),children:[e&&b.jsx("span",{className:f.addon,children:e}),b.jsxs("div",{className:f.field.base,children:[o&&b.jsx("div",{className:f.field.icon.base,children:b.jsx(o,{className:f.field.icon.svg})}),i&&b.jsx("div",{"data-testid":"right-icon",className:f.field.rightIcon.base,children:b.jsx(i,{className:f.field.rightIcon.svg})}),b.jsx("input",{className:V(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[e?"on":"off"],f.field.input.withShadow[s?"on":"off"]),type:c,...d,ref:u})]})]}),n&&b.jsx(Hs,{color:r,children:n})]})});Ox.displayName="TextInput";const Nx=k.createContext(void 0);function uc(){const e=k.useContext(Nx);if(!e)throw new Error("useDatePickerContext should be used within the DatePickerContext provider!");return e}var Ye=(e=>(e[e.Days=0]="Days",e[e.Months=1]="Months",e[e.Years=2]="Years",e[e.Decades=3]="Decades",e))(Ye||{}),Mx=(e=>(e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday",e))(Mx||{});const $s=(e,t,r)=>{const n=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();if(t&&r){const o=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),i=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime();return n>=o&&n<=i}if(t){const o=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();return n>=o}if(r){const o=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime();return n<=o}return!0},fc=(e,t)=>(e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e.getTime()===t.getTime()),s7=(e,t,r)=>($s(e,t,r)||(t&&e<t?e=t:r&&e>r&&(e=r)),e),a7=(e,t)=>{const r=new Date(e.getFullYear(),e.getMonth(),1);let n=r.getDay()-t;return n<0&&(n+=7),vf(r,-n)},l7=(e,t)=>{const r=[],n=new Date(0);n.setDate(n.getDate()-n.getDay()+t);const o=new Intl.DateTimeFormat(e,{weekday:"short"});for(let i=0;i<7;i++)r.push(o.format(vf(n,i)));return r},vf=(e,t)=>{const r=new Date(e);return r.setDate(r.getDate()+t),r},c7=(e,t)=>{const r=new Date(e);return r.setMonth(r.getMonth()+t),r},Ko=(e,t)=>{const r=new Date(e);return r.setFullYear(r.getFullYear()+t),r},Vs=(e,t,r)=>{let n={day:"numeric",month:"long",year:"numeric"};return r&&(n=r),new Intl.DateTimeFormat(e,n).format(t)},Zo=(e,t)=>{const r=e.getFullYear();return Math.floor(r/t)*t},d7=(e,t)=>{const r=e.getFullYear(),n=t+9;return r>=t&&r<=n},u7=({theme:e={}})=>{const{theme:t,weekStart:r,minDate:n,maxDate:o,viewDate:i,selectedDate:s,changeSelectedDate:a,language:l}=uc(),c=K(t.views.days,e),d=l7(l,r),u=a7(i,r);return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:c.header.base,children:d.map((f,h)=>b.jsx("span",{className:c.header.title,children:f},h))}),b.jsx("div",{className:c.items.base,children:[...Array(42)].map((f,h)=>{const g=vf(u,h),p=Vs(l,g,{day:"numeric"}),m=fc(s,g),x=!$s(g,n,o);return b.jsx("button",{disabled:x,type:"button",className:V(c.items.item.base,m&&c.items.item.selected,x&&c.items.item.disabled),onClick:()=>{x||a(g,!0)},children:p},h)})})]})},f7=({theme:e={}})=>{const{theme:t,selectedDate:r,viewDate:n,setViewDate:o,setView:i}=uc(),s=K(t.views.decades,e);return b.jsx("div",{className:s.items.base,children:[...Array(12)].map((a,l)=>{const c=Zo(n,100)-10+l*10,d=new Date(c,0,1),u=Ko(d,9),f=d7(n,c),h=!$s(n,d,u);return b.jsx("button",{disabled:h,type:"button",className:V(s.items.item.base,f&&s.items.item.selected,h&&s.items.item.disabled),onClick:()=>{h||(o(Ko(n,c-r.getFullYear())),i(Ye.Years))},children:c},l)})})},h7=({theme:e={}})=>{const{theme:t,minDate:r,maxDate:n,selectedDate:o,viewDate:i,language:s,setViewDate:a,setView:l}=uc(),c=K(t.views.months,e);return b.jsx("div",{className:c.items.base,children:[...Array(12)].map((d,u)=>{const f=new Date(i.getTime());f.setMonth(u);const h=Vs(s,f,{month:"short"}),g=fc(o,f),p=!$s(f,r,n);return b.jsx("button",{disabled:p,type:"button",className:V(c.items.item.base,g&&c.items.item.selected,p&&c.items.item.disabled),onClick:()=>{p||(a(f),l(Ye.Days))},children:h},u)})})},g7=({theme:e={}})=>{const{theme:t,selectedDate:r,minDate:n,maxDate:o,viewDate:i,setViewDate:s,setView:a}=uc(),l=K(t.views.years,e);return b.jsx("div",{className:l.items.base,children:[...Array(12)].map((c,d)=>{const u=Zo(i,10)-1+d*1,f=new Date(i.getTime());f.setFullYear(u);const h=fc(r,f),g=!$s(f,n,o);return b.jsx("button",{disabled:g,type:"button",className:V(l.items.item.base,h&&l.items.item.selected,g&&l.items.item.disabled),onClick:()=>{g||(s(f),a(Ye.Months))},children:u},d)})})},p7=({title:e,open:t,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=Mx.Sunday,className:h,theme:g={},onSelectedDateChanged:p,...m},x)=>{const y=K(le().datepicker,g);l=s7(l,c,d);const[_,v]=k.useState(t),[w,C]=k.useState(Ye.Days),[M,N]=k.useState(l),[O,E]=k.useState(l),z=k.useRef(null),T=k.useRef(null),P=(j,B)=>{N(j),p&&p(j),n&&w===Ye.Days&&B==!0&&!r&&v(!1)},D=()=>{P(l,!0),l&&E(l)};k.useImperativeHandle(x,()=>({focus(){var j;(j=z.current)==null||j.focus()},clear(){D()}}));const S=j=>{switch(j){case Ye.Decades:return b.jsx(f7,{theme:y.views.decades});case Ye.Years:return b.jsx(g7,{theme:y.views.years});case Ye.Months:return b.jsx(h7,{theme:y.views.months});case Ye.Days:default:return b.jsx(u7,{theme:y.views.days})}},A=()=>{switch(w){case Ye.Days:return Ye.Months;case Ye.Months:return Ye.Years;case Ye.Years:return Ye.Decades}return w},F=()=>{switch(w){case Ye.Decades:return`${Zo(O,100)} - ${Zo(O,100)+90}`;case Ye.Years:return`${Zo(O,10)} - ${Zo(O,10)+9}`;case Ye.Months:return Vs(u,O,{year:"numeric"});case Ye.Days:default:return Vs(u,O,{month:"long",year:"numeric"})}},L=(j,B,W)=>{switch(j){case Ye.Days:return new Date(c7(B,W));case Ye.Months:return new Date(Ko(B,W));case Ye.Years:return new Date(Ko(B,W*10));case Ye.Decades:return new Date(Ko(B,W*100));default:return new Date(Ko(B,W*10))}};return k.useEffect(()=>{const j=B=>{var W,H;const U=(W=T==null?void 0:T.current)==null?void 0:W.contains(B.target),R=(H=z==null?void 0:z.current)==null?void 0:H.contains(B.target);!U&&!R&&v(!1)};return document.addEventListener("mousedown",j),()=>{document.removeEventListener("mousedown",j)}},[z,T,v]),b.jsx(Nx.Provider,{value:{theme:y,language:u,minDate:c,maxDate:d,weekStart:f,isOpen:_,setIsOpen:v,view:w,setView:C,viewDate:O,setViewDate:E,selectedDate:M,setSelectedDate:N,changeSelectedDate:P},children:b.jsxs("div",{className:V(y.root.base,h),children:[!r&&b.jsx(Ox,{theme:y.root.input,icon:wA,ref:z,onFocus:()=>{fc(O,M)||E(M),v(!0)},value:M&&Vs(u,M),readOnly:!0,...m}),(_||r)&&b.jsx("div",{ref:T,className:V(y.popup.root.base,r&&y.popup.root.inline),children:b.jsxs("div",{className:y.popup.root.inner,children:[b.jsxs("div",{className:y.popup.header.base,children:[e&&b.jsx("div",{className:y.popup.header.title,children:e}),b.jsxs("div",{className:y.popup.header.selectors.base,children:[b.jsx("button",{type:"button",className:V(y.popup.header.selectors.button.base,y.popup.header.selectors.button.prev),onClick:()=>E(L(w,O,-1)),children:b.jsx(vA,{})}),b.jsx("button",{type:"button",className:V(y.popup.header.selectors.button.base,y.popup.header.selectors.button.view),onClick:()=>C(A()),children:F()}),b.jsx("button",{type:"button",className:V(y.popup.header.selectors.button.base,y.popup.header.selectors.button.next),onClick:()=>E(L(w,O,1)),children:b.jsx(xA,{})})]})]}),b.jsx("div",{className:y.popup.view.base,children:S(w)}),(o||s)&&b.jsxs("div",{className:y.popup.footer.base,children:[s&&b.jsx("button",{type:"button",className:V(y.popup.footer.button.base,y.popup.footer.button.today),onClick:()=>{const j=new Date;P(j,!0),E(j)},children:a}),o&&b.jsx("button",{type:"button",className:V(y.popup.footer.button.base,y.popup.footer.button.clear),onClick:()=>{P(l,!0),l&&E(l)},children:i})]})]})})]})})},b7=k.forwardRef(p7);b7.displayName="Datepicker";function hc(){return typeof window<"u"}function ho(e){return Tx(e)?(e.nodeName||"").toLowerCase():"#document"}function Ut(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Lr(e){var t;return(t=(Tx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Tx(e){return hc()?e instanceof Node||e instanceof Ut(e).Node:!1}function Pe(e){return hc()?e instanceof Element||e instanceof Ut(e).Element:!1}function mt(e){return hc()?e instanceof HTMLElement||e instanceof Ut(e).HTMLElement:!1}function xf(e){return!hc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ut(e).ShadowRoot}function Ys(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ur(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function m7(e){return["table","td","th"].includes(ho(e))}function gc(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function wf(e){const t=kf(),r=Pe(e)?ur(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(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 y7(e){let t=on(e);for(;mt(t)&&!Nn(t);){if(wf(t))return t;if(gc(t))return null;t=on(t)}return null}function kf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Nn(e){return["html","body","#document"].includes(ho(e))}function ur(e){return Ut(e).getComputedStyle(e)}function pc(e){return Pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function on(e){if(ho(e)==="html")return e;const t=e.assignedSlot||e.parentNode||xf(e)&&e.host||Lr(e);return xf(t)?t.host:t}function Dx(e){const t=on(e);return Nn(t)?e.ownerDocument?e.ownerDocument.body:e.body:mt(t)&&Ys(t)?t:Dx(t)}function Mn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Dx(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=Ut(o);if(i){const a=_f(s);return t.concat(s,s.visualViewport||[],Ys(o)?o:[],a&&r?Mn(a):[])}return t.concat(o,Mn(o,[],r))}function _f(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zr(e){let t=e.activeElement;for(;((r=t)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;t=t.shadowRoot.activeElement}return t}function tt(e,t){if(!e||!t)return!1;const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&xf(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Cf(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Px(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function Ix(e){return e.mozInputSource===0&&e.isTrusted?!0:Of()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Sf(e){return v7()?!1:!Of()&&e.width===0&&e.height===0||Of()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Ef(){return/apple/i.test(navigator.vendor)}function Of(){const e=/android/i;return e.test(Cf())||e.test(Px())}function Ax(){return Cf().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function v7(){return Px().includes("jsdom/")}function bc(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function x7(e){return"nativeEvent"in e}function w7(e){return e.matches("html,body")}function Dt(e){return(e==null?void 0:e.ownerDocument)||document}function Nf(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}function Tn(e){return"composedPath"in e?e.composedPath()[0]:e.target}const k7="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Mf(e){return mt(e)&&e.matches(k7)}function yt(e){e.preventDefault(),e.stopPropagation()}function Lx(e){return e?e.getAttribute("role")==="combobox"&&Mf(e):!1}const _7=["top","right","bottom","left"],zx=["start","end"],Fx=_7.reduce((e,t)=>e.concat(t,t+"-"+zx[0],t+"-"+zx[1]),[]),Qo=Math.min,go=Math.max,mc=Math.round,Jo=Math.floor,Fr=e=>({x:e,y:e}),C7={left:"right",right:"left",bottom:"top",top:"bottom"},S7={start:"end",end:"start"};function Tf(e,t,r){return go(e,Qo(t,r))}function ei(e,t){return typeof e=="function"?e(t):e}function sn(e){return e.split("-")[0]}function jr(e){return e.split("-")[1]}function jx(e){return e==="x"?"y":"x"}function Df(e){return e==="y"?"height":"width"}function yc(e){return["top","bottom"].includes(sn(e))?"y":"x"}function Pf(e){return jx(yc(e))}function Bx(e,t,r){r===void 0&&(r=!1);const n=jr(e),o=Pf(e),i=Df(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=xc(s)),[s,xc(s)]}function E7(e){const t=xc(e);return[vc(e),t,vc(t)]}function vc(e){return e.replace(/start|end/g,t=>S7[t])}function O7(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:s;default:return[]}}function N7(e,t,r,n){const o=jr(e);let i=O7(sn(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(vc)))),i}function xc(e){return e.replace(/left|right|bottom|top/g,t=>C7[t])}function M7(e){return{top:0,right:0,bottom:0,left:0,...e}}function Wx(e){return typeof e!="number"?M7(e):{top:e,right:e,bottom:e,left:e}}function wc(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Hx(e,t,r){let{reference:n,floating:o}=e;const i=yc(t),s=Pf(t),a=Df(s),l=sn(t),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(jr(t)){case"start":h[s]-=f*(r&&c?-1:1);break;case"end":h[s]+=f*(r&&c?-1:1);break}return h}const T7=async(e,t,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(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=Hx(c,n,l),f=n,h={},g=0;for(let p=0;p<a.length;p++){const{name:m,fn:x}=a[p],{x:y,y:_,data:v,reset:w}=await x({x:d,y:u,initialPlacement:n,placement:f,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});d=y??d,u=_??u,h={...h,[m]:{...h[m],...v}},w&&g<=50&&(g++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(c=w.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:d,y:u}=Hx(c,f,l)),p=-1)}return{x:d,y:u,placement:f,strategy:o,middlewareData:h}};async function If(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:h=0}=ei(t,e),g=Wx(h),p=a[f?u==="floating"?"reference":"floating":u],m=wc(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(p)))==null||r?p:p.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),x=u==="floating"?{...s.floating,x:n,y:o}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),_=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},v=wc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:y,strategy:l}):x);return{top:(m.top-v.top+g.top)/_.y,bottom:(v.bottom-m.bottom+g.bottom)/_.y,left:(m.left-v.left+g.left)/_.x,right:(v.right-m.right+g.right)/_.x}}const D7=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=ei(e,t)||{};if(c==null)return{};const u=Wx(d),f={x:r,y:n},h=Pf(o),g=Df(h),p=await s.getDimensions(c),m=h==="y",x=m?"top":"left",y=m?"bottom":"right",_=m?"clientHeight":"clientWidth",v=i.reference[g]+i.reference[h]-f[h]-i.floating[g],w=f[h]-i.reference[h],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let M=C?C[_]:0;(!M||!await(s.isElement==null?void 0:s.isElement(C)))&&(M=a.floating[_]||i.floating[g]);const N=v/2-w/2,O=M/2-p[g]/2-1,E=Qo(u[x],O),z=Qo(u[y],O),T=E,P=M-p[g]-z,D=M/2-p[g]/2+N,S=Tf(T,D,P),A=!l.arrow&&jr(o)!=null&&D!==S&&i.reference[g]/2-(D<T?E:z)-p[g]/2<0,F=A?D<T?D-T:D-P:0;return{[h]:f[h]+F,data:{[h]:S,centerOffset:D-S-F,...A&&{alignmentOffset:F}},reset:A}}});function P7(e,t,r){return(e?[...r.filter(n=>jr(n)===e),...r.filter(n=>jr(n)!==e)]:r.filter(n=>sn(n)===n)).filter(n=>e?jr(n)===e||(t?vc(n)!==n:!1):!0)}const I7=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,o;const{rects:i,middlewareData:s,placement:a,platform:l,elements:c}=t,{crossAxis:d=!1,alignment:u,allowedPlacements:f=Fx,autoAlignment:h=!0,...g}=ei(e,t),p=u!==void 0||f===Fx?P7(u||null,h,f):f,m=await If(t,g),x=((r=s.autoPlacement)==null?void 0:r.index)||0,y=p[x];if(y==null)return{};const _=Bx(y,i,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==y)return{reset:{placement:p[0]}};const v=[m[sn(y)],m[_[0]],m[_[1]]],w=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:y,overflows:v}],C=p[x+1];if(C)return{data:{index:x+1,overflows:w},reset:{placement:C}};const M=w.map(O=>{const E=jr(O.placement);return[O.placement,E&&d?O.overflows.slice(0,2).reduce((z,T)=>z+T,0):O.overflows[0],O.overflows]}).sort((O,E)=>O[1]-E[1]),N=((o=M.filter(O=>O[2].slice(0,jr(O[0])?2:3).every(E=>E<=0))[0])==null?void 0:o[0])||M[0][0];return N!==a?{data:{index:x+1,overflows:w},reset:{placement:N}}:{}}}},A7=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...m}=ei(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const x=sn(o),y=sn(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),v=f||(y||!p?[xc(a)]:E7(a));!f&&g!=="none"&&v.push(...N7(a,p,g,_));const w=[a,...v],C=await If(t,m),M=[];let N=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&M.push(C[x]),u){const T=Bx(o,s,_);M.push(C[T[0]],C[T[1]])}if(N=[...N,{placement:o,overflows:M}],!M.every(T=>T<=0)){var O,E;const T=(((O=i.flip)==null?void 0:O.index)||0)+1,P=w[T];if(P)return{data:{index:T,overflows:N},reset:{placement:P}};let D=(E=N.filter(S=>S.overflows[0]<=0).sort((S,A)=>S.overflows[1]-A.overflows[1])[0])==null?void 0:E.placement;if(!D)switch(h){case"bestFit":{var z;const S=(z=N.map(A=>[A.placement,A.overflows.filter(F=>F>0).reduce((F,L)=>F+L,0)]).sort((A,F)=>A[1]-F[1])[0])==null?void 0:z[0];S&&(D=S);break}case"initialPlacement":D=a;break}if(o!==D)return{reset:{placement:D}}}return{}}}};async function L7(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=sn(r),a=jr(r),l=yc(r)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,u=ei(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),l?{x:h*d,y:f*c}:{x:f*c,y:h*d}}const z7=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await L7(t,e);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}}}}},F7=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:m=>{let{x,y}=m;return{x,y}}},...l}=ei(e,t),c={x:r,y:n},d=await If(t,l),u=yc(sn(o)),f=jx(u);let h=c[f],g=c[u];if(i){const m=f==="y"?"top":"left",x=f==="y"?"bottom":"right",y=h+d[m],_=h-d[x];h=Tf(y,h,_)}if(s){const m=u==="y"?"top":"left",x=u==="y"?"bottom":"right",y=g+d[m],_=g-d[x];g=Tf(y,g,_)}const p=a.fn({...t,[f]:h,[u]:g});return{...p,data:{x:p.x-r,y:p.y-n}}}}};function $x(e){const t=ur(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=mt(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=mc(r)!==i||mc(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function Af(e){return Pe(e)?e:e.contextElement}function ti(e){const t=Af(e);if(!mt(t))return Fr(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=$x(t);let s=(i?mc(r.width):r.width)/n,a=(i?mc(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const j7=Fr(0);function Vx(e){const t=Ut(e);return!kf()||!t.visualViewport?j7:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function B7(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ut(e)?!1:t}function po(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Af(e);let s=Fr(1);t&&(n?Pe(n)&&(s=ti(n)):s=ti(e));const a=B7(i,r,n)?Vx(i):Fr(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=Ut(i),h=n&&Pe(n)?Ut(n):n;let g=f,p=_f(g);for(;p&&n&&h!==g;){const m=ti(p),x=p.getBoundingClientRect(),y=ur(p),_=x.left+(p.clientLeft+parseFloat(y.paddingLeft))*m.x,v=x.top+(p.clientTop+parseFloat(y.paddingTop))*m.y;l*=m.x,c*=m.y,d*=m.x,u*=m.y,l+=_,c+=v,g=Ut(p),p=_f(g)}}return wc({width:d,height:u,x:l,y:c})}function Lf(e,t){const r=pc(e).scrollLeft;return t?t.left+r:po(Lr(e)).left+r}function Yx(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:Lf(e,n)),i=n.top+t.scrollTop;return{x:o,y:i}}function W7(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=Lr(n),a=t?gc(t.floating):!1;if(n===s||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Fr(1);const d=Fr(0),u=mt(n);if((u||!u&&!i)&&((ho(n)!=="body"||Ys(s))&&(l=pc(n)),mt(n))){const h=po(n);c=ti(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}const f=s&&!u&&!i?Yx(s,l,!0):Fr(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 H7(e){return Array.from(e.getClientRects())}function $7(e){const t=Lr(e),r=pc(e),n=e.ownerDocument.body,o=go(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=go(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Lf(e);const a=-r.scrollTop;return ur(n).direction==="rtl"&&(s+=go(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function V7(e,t){const r=Ut(e),n=Lr(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=kf();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function Y7(e,t){const r=po(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=mt(e)?ti(e):Fr(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:s,height:a,x:l,y:c}}function Ux(e,t,r){let n;if(t==="viewport")n=V7(e,r);else if(t==="document")n=$7(Lr(e));else if(Pe(t))n=Y7(t,r);else{const o=Vx(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return wc(n)}function Rx(e,t){const r=on(e);return r===t||!Pe(r)||Nn(r)?!1:ur(r).position==="fixed"||Rx(r,t)}function U7(e,t){const r=t.get(e);if(r)return r;let n=Mn(e,[],!1).filter(a=>Pe(a)&&ho(a)!=="body"),o=null;const i=ur(e).position==="fixed";let s=i?on(e):e;for(;Pe(s)&&!Nn(s);){const a=ur(s),l=wf(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&o&&["absolute","fixed"].includes(o.position)||Ys(s)&&!l&&Rx(e,s))?n=n.filter(c=>c!==s):o=a,s=on(s)}return t.set(e,n),n}function R7(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?gc(t)?[]:U7(t,this._c):[].concat(r),n],s=i[0],a=i.reduce((l,c)=>{const d=Ux(t,c,o);return l.top=go(d.top,l.top),l.right=Qo(d.right,l.right),l.bottom=Qo(d.bottom,l.bottom),l.left=go(d.left,l.left),l},Ux(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function q7(e){const{width:t,height:r}=$x(e);return{width:t,height:r}}function X7(e,t,r){const n=mt(t),o=Lr(t),i=r==="fixed",s=po(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Fr(0);if(n||!n&&!i)if((ho(t)!=="body"||Ys(o))&&(a=pc(t)),n){const f=po(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&(l.x=Lf(o));const c=o&&!n&&!i?Yx(o,a):Fr(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 zf(e){return ur(e).position==="static"}function qx(e,t){if(!mt(e)||ur(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Lr(e)===r&&(r=r.ownerDocument.body),r}function Xx(e,t){const r=Ut(e);if(gc(e))return r;if(!mt(e)){let o=on(e);for(;o&&!Nn(o);){if(Pe(o)&&!zf(o))return o;o=on(o)}return r}let n=qx(e,t);for(;n&&m7(n)&&zf(n);)n=qx(n,t);return n&&Nn(n)&&zf(n)&&!wf(n)?r:n||y7(e)||r}const G7=async function(e){const t=this.getOffsetParent||Xx,r=this.getDimensions,n=await r(e.floating);return{reference:X7(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function K7(e){return ur(e).direction==="rtl"}const Z7={convertOffsetParentRelativeRectToViewportRelativeRect:W7,getDocumentElement:Lr,getClippingRect:R7,getOffsetParent:Xx,getElementRects:G7,getClientRects:H7,getDimensions:q7,getScale:ti,isElement:Pe,isRTL:K7};function Gx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Q7(e,t){let r=null,n;const o=Lr(e);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=e.getBoundingClientRect(),{left:d,top:u,width:f,height:h}=c;if(a||t(),!f||!h)return;const g=Jo(u),p=Jo(o.clientWidth-(d+f)),m=Jo(o.clientHeight-(u+h)),x=Jo(d),y={rootMargin:-g+"px "+-p+"px "+-m+"px "+-x+"px",threshold:go(0,Qo(1,l))||1};let _=!0;function v(w){const C=w[0].intersectionRatio;if(C!==l){if(!_)return s();C?s(!1,C):n=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!Gx(c,e.getBoundingClientRect())&&s(),_=!1}try{r=new IntersectionObserver(v,{...y,root:o.ownerDocument})}catch{r=new IntersectionObserver(v,y)}r.observe(e)}return s(!0),i}function Kx(e,t,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=Af(e),d=o||i?[...c?Mn(c):[],...Mn(t)]:[];d.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),i&&x.addEventListener("resize",r)});const u=c&&a?Q7(c,r):null;let f=-1,h=null;s&&(h=new ResizeObserver(x=>{let[y]=x;y&&y.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(t)})),r()}),c&&!l&&h.observe(c),h.observe(t));let g,p=l?po(e):null;l&&m();function m(){const x=po(e);p&&!Gx(p,x)&&r(),p=x,g=requestAnimationFrame(m)}return r(),()=>{var x;d.forEach(y=>{o&&y.removeEventListener("scroll",r),i&&y.removeEventListener("resize",r)}),u==null||u(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const J7=z7,eL=I7,tL=F7,rL=A7,Zx=D7,nL=(e,t,r)=>{const n=new Map,o={platform:Z7,...r},i={...o.platform,_c:n};return T7(e,t,{...o,platform:i})};var kc=typeof document<"u"?k.useLayoutEffect:k.useEffect;function _c(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!_c(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!_c(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Qx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jx(e,t){const r=Qx(e);return Math.round(t*r)/r}function Ff(e){const t=I.useRef(e);return kc(()=>{t.current=e}),t}function oL(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,u]=I.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=I.useState(n);_c(f,n)||h(n);const[g,p]=I.useState(null),[m,x]=I.useState(null),y=I.useCallback(L=>{L!==C.current&&(C.current=L,p(L))},[]),_=I.useCallback(L=>{L!==M.current&&(M.current=L,x(L))},[]),v=i||g,w=s||m,C=I.useRef(null),M=I.useRef(null),N=I.useRef(d),O=l!=null,E=Ff(l),z=Ff(o),T=Ff(c),P=I.useCallback(()=>{if(!C.current||!M.current)return;const L={placement:t,strategy:r,middleware:f};z.current&&(L.platform=z.current),nL(C.current,M.current,L).then(j=>{const B={...j,isPositioned:T.current!==!1};D.current&&!_c(N.current,B)&&(N.current=B,tg.flushSync(()=>{u(B)}))})},[f,t,r,z,T]);kc(()=>{c===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,u(L=>({...L,isPositioned:!1})))},[c]);const D=I.useRef(!1);kc(()=>(D.current=!0,()=>{D.current=!1}),[]),kc(()=>{if(v&&(C.current=v),w&&(M.current=w),v&&w){if(E.current)return E.current(v,w,P);P()}},[v,w,P,E,O]);const S=I.useMemo(()=>({reference:C,floating:M,setReference:y,setFloating:_}),[y,_]),A=I.useMemo(()=>({reference:v,floating:w}),[v,w]),F=I.useMemo(()=>{const L={position:r,left:0,top:0};if(!A.floating)return L;const j=Jx(A.floating,d.x),B=Jx(A.floating,d.y);return a?{...L,transform:"translate("+j+"px, "+B+"px)",...Qx(A.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:j,top:B}},[r,a,A.floating,d.x,d.y]);return I.useMemo(()=>({...d,update:P,refs:S,elements:A,floatingStyles:F}),[d,P,S,A,F])}const iL=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Zx({element:n.current,padding:o}).fn(r):{}:n?Zx({element:n,padding:o}).fn(r):{}}}},sL=(e,t)=>({...J7(e),options:[e,t]}),aL=(e,t)=>({...tL(e),options:[e,t]}),lL=(e,t)=>({...rL(e),options:[e,t]}),cL=(e,t)=>({...eL(e),options:[e,t]}),dL=(e,t)=>({...iL(e),options:[e,t]});/*!
|
|
964
|
+
* tabbable 6.2.0
|
|
965
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
966
|
+
*/var uL=["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])"],Cc=uL.join(","),ew=typeof Element>"u",ri=ew?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Sc=!ew&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Ec=function e(t,r){var n;r===void 0&&(r=!0);var o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),i=o===""||o==="true",s=i||r&&t&&e(t.parentNode);return s},fL=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},hL=function(e,t,r){if(Ec(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Cc));return t&&ri.call(e,Cc)&&n.unshift(e),n=n.filter(r),n},gL=function e(t,r,n){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if(!Ec(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,c=e(l,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:s,candidates:c})}else{var d=ri.call(s,Cc);d&&n.filter(s)&&(r||!t.includes(s))&&o.push(s);var u=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),f=!Ec(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(u&&f){var h=e(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},tw=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},rw=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||fL(e))&&!tw(e)?0:e.tabIndex},pL=function(e,t){var r=rw(e);return r<0&&t&&!tw(e)?0:r},bL=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},nw=function(e){return e.tagName==="INPUT"},mL=function(e){return nw(e)&&e.type==="hidden"},yL=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},vL=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},xL=function(e){if(!e.name)return!0;var t=e.form||Sc(e),r=function(i){return t.querySelectorAll('input[type="radio"][name="'+i+'"]')},n;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")n=r(window.CSS.escape(e.name));else try{n=r(e.name)}catch(i){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",i.message),!1}var o=vL(n,e.form);return!o||o===e},wL=function(e){return nw(e)&&e.type==="radio"},kL=function(e){return wL(e)&&!xL(e)},_L=function(e){var t,r=e&&Sc(e),n=(t=r)===null||t===void 0?void 0:t.host,o=!1;if(r&&r!==e){var i,s,a;for(o=!!((i=n)!==null&&i!==void 0&&(s=i.ownerDocument)!==null&&s!==void 0&&s.contains(n)||e!=null&&(a=e.ownerDocument)!==null&&a!==void 0&&a.contains(e));!o&&n;){var l,c,d;r=Sc(n),n=(l=r)===null||l===void 0?void 0:l.host,o=!!((c=n)!==null&&c!==void 0&&(d=c.ownerDocument)!==null&&d!==void 0&&d.contains(n))}}return o},ow=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return r===0&&n===0},CL=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=ri.call(e,"details>summary:first-of-type"),i=o?e.parentElement:e;if(ri.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof n=="function"){for(var s=e;e;){var a=e.parentElement,l=Sc(e);if(a&&!a.shadowRoot&&n(a)===!0)return ow(e);e.assignedSlot?e=e.assignedSlot:!a&&l!==e.ownerDocument?e=l.host:e=a}e=s}if(_L(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return ow(e);return!1},SL=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if(n.tagName==="LEGEND")return ri.call(t,"fieldset[disabled] *")?!0:!n.contains(e)}return!0}t=t.parentElement}return!1},EL=function(e,t){return!(t.disabled||Ec(t)||mL(t)||CL(t,e)||yL(t)||SL(t))},jf=function(e,t){return!(kL(t)||rw(t)<0||!EL(e,t))},OL=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},NL=function e(t){var r=[],n=[];return t.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,l=pL(a,s),c=s?e(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(bL).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},Oc=function(e,t){t=t||{};var r;return t.getShadowRoot?r=gL([e],t.includeContainer,{filter:jf.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:OL}):r=hL(e,t.includeContainer,jf.bind(null,t)),NL(r)},ML=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ri.call(e,Cc)===!1?!1:jf(t,e)};function iw(e){return I.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const TL=I.useInsertionEffect,DL=TL||(e=>e());function Br(e){const t=I.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return DL(()=>{t.current=e}),I.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.current==null?void 0:t.current(...n)},[])}const Bf="ArrowUp",Us="ArrowDown",ni="ArrowLeft",oi="ArrowRight";function Nc(e,t,r){return Math.floor(e/t)!==r}function Rs(e,t){return t<0||t>=e.current.length}function Wf(e,t){return Nt(e,{disabledIndices:t})}function sw(e,t){return Nt(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Nt(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=t===void 0?{}:t;const s=e.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 PL(e,t){let{event:r,orientation:n,loop:o,cols:i,disabledIndices:s,minIndex:a,maxIndex:l,prevIndex:c,stopEvent:d=!1}=t,u=c;if(r.key===Bf){if(d&&yt(r),c===-1)u=l;else if(u=Nt(e,{startingIndex:u,amount:i,decrement:!0,disabledIndices:s}),o&&(c-i<a||u<0)){const f=c%i,h=l%i,g=l-(h-f);h===f?u=l:u=h>f?g:g-i}Rs(e,u)&&(u=c)}if(r.key===Us&&(d&&yt(r),c===-1?u=a:(u=Nt(e,{startingIndex:c,amount:i,disabledIndices:s}),o&&c+i>l&&(u=Nt(e,{startingIndex:c%i-i,amount:i,disabledIndices:s}))),Rs(e,u)&&(u=c)),n==="both"){const f=Jo(c/i);r.key===oi&&(d&&yt(r),c%i!==i-1?(u=Nt(e,{startingIndex:c,disabledIndices:s}),o&&Nc(u,i,f)&&(u=Nt(e,{startingIndex:c-c%i-1,disabledIndices:s}))):o&&(u=Nt(e,{startingIndex:c-c%i-1,disabledIndices:s})),Nc(u,i,f)&&(u=c)),r.key===ni&&(d&&yt(r),c%i!==0?(u=Nt(e,{startingIndex:c,disabledIndices:s,decrement:!0}),o&&Nc(u,i,f)&&(u=Nt(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s}))):o&&(u=Nt(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s})),Nc(u,i,f)&&(u=c));const h=Jo(l/i)===f;Rs(e,u)&&(o&&h?u=r.key===ni?l:Nt(e,{startingIndex:c-c%i-1,disabledIndices:s}):u=c)}return u}function IL(e,t,r){const n=[];let o=0;return e.forEach((i,s)=>{let{width:a,height:l}=i;if(a>t&&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*t);o%t+a<=t&&d.every(u=>n[u]==null)?(d.forEach(u=>{n[u]=s}),c=!0):o++}}),[...n]}function AL(e,t,r,n,o){if(e===-1)return-1;const i=r.indexOf(e);switch(o){case"tl":return i;case"tr":return i+t[e].width-1;case"bl":return i+(t[e].height-1)*n;case"br":return r.lastIndexOf(e)}}function LL(e,t){return t.flatMap((r,n)=>e.includes(r)?[n]:[])}let aw=0;function an(e,t){t===void 0&&(t={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=t;n&&cancelAnimationFrame(aw);const i=()=>e==null?void 0:e.focus({preventScroll:r});o?i():aw=requestAnimationFrame(i)}var ze=typeof document<"u"?k.useLayoutEffect:k.useEffect;function zL(e,t){const r=e.compareDocumentPosition(t);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 FL(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e.entries())if(n!==t.get(r))return!1;return!0}const lw=I.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function jL(e){let{children:t,elementsRef:r,labelsRef:n}=e;const[o,i]=I.useState(()=>new Map),s=I.useCallback(l=>{i(c=>new Map(c).set(l,null))},[]),a=I.useCallback(l=>{i(c=>{const d=new Map(c);return d.delete(l),d})},[]);return ze(()=>{const l=new Map(o);Array.from(l.keys()).sort(zL).forEach((c,d)=>{l.set(c,d)}),FL(o,l)||i(l)},[o]),I.createElement(lw.Provider,{value:I.useMemo(()=>({register:s,unregister:a,map:o,elementsRef:r,labelsRef:n}),[s,a,o,r,n])},t)}function BL(e){let{label:t}=e===void 0?{}:e;const[r,n]=I.useState(null),o=I.useRef(null),{register:i,unregister:s,map:a,elementsRef:l,labelsRef:c}=I.useContext(lw),d=I.useCallback(u=>{if(o.current=u,r!==null&&(l.current[r]=u,c)){var f;const h=t!==void 0;c.current[r]=h?t:(f=u==null?void 0:u.textContent)!=null?f:null}},[r,l,c,t]);return ze(()=>{const u=o.current;if(u)return i(u),()=>{s(u)}},[i,s]),ze(()=>{const u=o.current?a.get(o.current):null;u!=null&&n(u)},[a]),I.useMemo(()=>({ref:d,index:r??-1}),[r,d])}function qs(){return qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qs.apply(this,arguments)}let Hf=!1,WL=0;const cw=()=>"floating-ui-"+WL++;function HL(){const[e,t]=I.useState(()=>Hf?cw():void 0);return ze(()=>{e==null&&t(cw())},[]),I.useEffect(()=>{Hf||(Hf=!0)},[]),e}const $L=I.useId,Mc=$L||HL;function VL(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,((n=e.get(t))==null?void 0:n.filter(o=>o!==r))||[])}}}const YL=I.createContext(null),UL=I.createContext(null),Tc=()=>{var e;return((e=I.useContext(YL))==null?void 0:e.id)||null},Xs=()=>I.useContext(UL);function bo(e){return"data-floating-ui-"+e}function Wr(e){const t=k.useRef(e);return ze(()=>{t.current=e}),t}const dw=bo("safe-polygon");function $f(e,t,r){return r&&!bc(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}function RL(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,dataRef:o,events:i,elements:{domReference:s,floating:a},refs:l}=e,{enabled:c=!0,delay:d=0,handleClose:u=null,mouseOnly:f=!1,restMs:h=0,move:g=!0}=t,p=Xs(),m=Tc(),x=Wr(u),y=Wr(d),_=I.useRef(),v=I.useRef(),w=I.useRef(),C=I.useRef(),M=I.useRef(!0),N=I.useRef(!1),O=I.useRef(()=>{}),E=I.useCallback(()=>{var D;const S=(D=o.current.openEvent)==null?void 0:D.type;return(S==null?void 0:S.includes("mouse"))&&S!=="mousedown"},[o]);I.useEffect(()=>{if(!c)return;function D(S){let{open:A}=S;A||(clearTimeout(v.current),clearTimeout(C.current),M.current=!0)}return i.on("openchange",D),()=>{i.off("openchange",D)}},[c,i]),I.useEffect(()=>{if(!c||!x.current||!r)return;function D(A){E()&&n(!1,A,"hover")}const S=Dt(a).documentElement;return S.addEventListener("mouseleave",D),()=>{S.removeEventListener("mouseleave",D)}},[a,r,n,c,x,E]);const z=I.useCallback(function(D,S,A){S===void 0&&(S=!0),A===void 0&&(A="hover");const F=$f(y.current,"close",_.current);F&&!w.current?(clearTimeout(v.current),v.current=setTimeout(()=>n(!1,D,A),F)):S&&(clearTimeout(v.current),n(!1,D,A))},[y,n]),T=I.useCallback(()=>{O.current(),w.current=void 0},[]),P=I.useCallback(()=>{if(N.current){const D=Dt(l.floating.current).body;D.style.pointerEvents="",D.removeAttribute(dw),N.current=!1}},[l]);return I.useEffect(()=>{if(!c)return;function D(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function S(L){if(clearTimeout(v.current),M.current=!1,f&&!bc(_.current)||h>0&&$f(y.current,"open")===0)return;const j=$f(y.current,"open",_.current);j?v.current=setTimeout(()=>{n(!0,L,"hover")},j):n(!0,L,"hover")}function A(L){if(D())return;O.current();const j=Dt(a);if(clearTimeout(C.current),x.current){r||clearTimeout(v.current),w.current=x.current({...e,tree:p,x:L.clientX,y:L.clientY,onClose(){P(),T(),z(L,!0,"safe-polygon")}});const B=w.current;j.addEventListener("mousemove",B),O.current=()=>{j.removeEventListener("mousemove",B)};return}(_.current!=="touch"||!tt(a,L.relatedTarget))&&z(L)}function F(L){D()||x.current==null||x.current({...e,tree:p,x:L.clientX,y:L.clientY,onClose(){P(),T(),z(L)}})(L)}if(Pe(s)){const L=s;return r&&L.addEventListener("mouseleave",F),a==null||a.addEventListener("mouseleave",F),g&&L.addEventListener("mousemove",S,{once:!0}),L.addEventListener("mouseenter",S),L.addEventListener("mouseleave",A),()=>{r&&L.removeEventListener("mouseleave",F),a==null||a.removeEventListener("mouseleave",F),g&&L.removeEventListener("mousemove",S),L.removeEventListener("mouseenter",S),L.removeEventListener("mouseleave",A)}}},[s,a,c,e,f,h,g,z,T,P,n,r,p,y,x,o]),ze(()=>{var D;if(c&&r&&(D=x.current)!=null&&D.__options.blockPointerEvents&&E()){const A=Dt(a).body;if(A.setAttribute(dw,""),A.style.pointerEvents="none",N.current=!0,Pe(s)&&a){var S;const F=s,L=p==null||(S=p.nodesRef.current.find(j=>j.id===m))==null||(S=S.context)==null?void 0:S.elements.floating;return L&&(L.style.pointerEvents=""),F.style.pointerEvents="auto",a.style.pointerEvents="auto",()=>{F.style.pointerEvents="",a.style.pointerEvents=""}}}},[c,r,m,a,s,p,x,E]),ze(()=>{r||(_.current=void 0,T(),P())},[r,T,P]),I.useEffect(()=>()=>{T(),clearTimeout(v.current),clearTimeout(C.current),P()},[c,s,T,P]),I.useMemo(()=>{if(!c)return{};function D(S){_.current=S.pointerType}return{reference:{onPointerDown:D,onPointerEnter:D,onMouseMove(S){r||h===0||(clearTimeout(C.current),C.current=setTimeout(()=>{M.current||n(!0,S.nativeEvent,"hover")},h))}},floating:{onMouseEnter(){clearTimeout(v.current)},onMouseLeave(S){z(S.nativeEvent,!1)}}}},[c,h,r,n,z])}function qL(e,t){var r;let n=[],o=(r=e.find(i=>i.id===t))==null?void 0:r.parentId;for(;o;){const i=e.find(s=>s.id===o);o=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function mo(e,t){let r=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),n=r;for(;n.length;)n=e.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 XL(e,t){let r,n=-1;function o(i,s){s>n&&(r=i,n=s),mo(e,i).forEach(a=>{o(a.id,s+1)})}return o(t,0),e.find(i=>i.id===r)}let ii=new WeakMap,Dc=new WeakSet,Pc={},Vf=0;const GL=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,uw=e=>e&&(e.host||uw(e.parentNode)),KL=(e,t)=>t.map(r=>{if(e.contains(r))return r;const n=uw(r);return e.contains(n)?n:null}).filter(r=>r!=null);function ZL(e,t,r,n){const o="data-floating-ui-inert",i=n?"inert":r?"aria-hidden":null,s=KL(t,e),a=new Set,l=new Set(s),c=[];Pc[o]||(Pc[o]=new WeakMap);const d=Pc[o];s.forEach(u),f(t),a.clear();function u(h){!h||a.has(h)||(a.add(h),h.parentNode&&u(h.parentNode))}function f(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,g=>{if(a.has(g))f(g);else{const p=i?g.getAttribute(i):null,m=p!==null&&p!=="false",x=(ii.get(g)||0)+1,y=(d.get(g)||0)+1;ii.set(g,x),d.set(g,y),c.push(g),x===1&&m&&Dc.add(g),y===1&&g.setAttribute(o,""),!m&&i&&g.setAttribute(i,"true")}})}return Vf++,()=>{c.forEach(h=>{const g=(ii.get(h)||0)-1,p=(d.get(h)||0)-1;ii.set(h,g),d.set(h,p),g||(!Dc.has(h)&&i&&h.removeAttribute(i),Dc.delete(h)),p||h.removeAttribute(o)}),Vf--,Vf||(ii=new WeakMap,ii=new WeakMap,Dc=new WeakSet,Pc={})}}function fw(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);const n=Dt(e[0]).body;return ZL(e.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,t,r)}const Gs=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function hw(e,t){const r=Oc(e,Gs());t==="prev"&&r.reverse();const n=r.indexOf(zr(Dt(e)));return r.slice(n+1)[0]}function gw(){return hw(document.body,"next")}function pw(){return hw(document.body,"prev")}function Ks(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!tt(r,n)}function QL(e){Oc(e,Gs()).forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")})}function JL(e){e.querySelectorAll("[data-tabindex]").forEach(t=>{const r=t.dataset.tabindex;delete t.dataset.tabindex,r?t.setAttribute("tabindex",r):t.removeAttribute("tabindex")})}const Yf={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 e9;function bw(e){e.key==="Tab"&&(e.target,clearTimeout(e9))}const Ic=I.forwardRef(function(e,t){const[r,n]=I.useState();ze(()=>(Ef()&&n("button"),document.addEventListener("keydown",bw),()=>{document.removeEventListener("keydown",bw)}),[]);const o={ref:t,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[bo("focus-guard")]:"",style:Yf};return I.createElement("span",qs({},e,o))}),mw=I.createContext(null),yw=bo("portal");function t9(e){let{id:t,root:r}=e===void 0?{}:e;const[n,o]=I.useState(null),i=Mc(),s=vw(),a=I.useRef(null);return ze(()=>()=>{n==null||n.remove(),queueMicrotask(()=>{a.current=null})},[n]),ze(()=>{if(a.current)return;const l=t?document.getElementById(t):null;if(!l)return;const c=document.createElement("div");c.id=i,c.setAttribute(yw,""),l.appendChild(c),a.current=c,o(c)},[t,i]),ze(()=>{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;t&&(c=document.createElement("div"),c.id=t,l.appendChild(c));const d=document.createElement("div");d.id=i,d.setAttribute(yw,""),l=c||l,l.appendChild(d),a.current=d,o(d)},[t,r,i,s]),n}function r9(e){let{children:t,id:r,root:n=null,preserveTabOrder:o=!0}=e;const i=t9({id:r,root:n}),[s,a]=I.useState(null),l=I.useRef(null),c=I.useRef(null),d=I.useRef(null),u=I.useRef(null),f=!!s&&!s.modal&&s.open&&o&&!!(n||i);return I.useEffect(()=>{if(!i||!o||s!=null&&s.modal)return;function h(g){i&&Ks(g)&&(g.type==="focusin"?JL:QL)(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]),I.createElement(mw.Provider,{value:I.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:i,setFocusManagerState:a}),[o,i])},f&&i&&I.createElement(Ic,{"data-type":"outside",ref:l,onFocus:h=>{if(Ks(h,i)){var g;(g=d.current)==null||g.focus()}else{const p=pw()||(s==null?void 0:s.refs.domReference.current);p==null||p.focus()}}}),f&&i&&I.createElement("span",{"aria-owns":i.id,style:Yf}),i&&cd.createPortal(t,i),f&&i&&I.createElement(Ic,{"data-type":"outside",ref:c,onFocus:h=>{if(Ks(h,i)){var g;(g=u.current)==null||g.focus()}else{const p=gw()||(s==null?void 0:s.refs.domReference.current);p==null||p.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,h.nativeEvent))}}}))}const vw=()=>I.useContext(mw),n9=20;let yo=[];function Uf(e){yo=yo.filter(r=>r.isConnected);let t=e;if(!(!t||ho(t)==="body")){if(!ML(t,Gs())){const r=Oc(t,Gs())[0];if(!r)return;t=r}yo.push(t),yo.length>n9&&(yo=yo.slice(-20))}}function xw(){return yo.slice().reverse().find(e=>e.isConnected)}const o9=I.forwardRef(function(e,t){return I.createElement("button",qs({},e,{type:"button",ref:t,tabIndex:-1,style:Yf}))});function ww(e){const{context:t,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}=e,{open:u,refs:f,nodeId:h,onOpenChange:g,events:p,dataRef:m,elements:{domReference:x,floating:y}}=t,_=typeof s=="number"&&s<0,v=Lx(x)&&_,w=GL()?i:!0,C=Wr(o),M=Wr(s),N=Wr(a),O=Xs(),E=vw(),z=I.useRef(null),T=I.useRef(null),P=I.useRef(!1),D=I.useRef(!1),S=E!=null,A=I.useCallback(function(B){return B===void 0&&(B=y),B?Oc(B,Gs()):[]},[y]),F=I.useCallback(B=>{const W=A(B);return C.current.map(H=>x&&H==="reference"?x:y&&H==="floating"?y:W).filter(Boolean).flat()},[x,y,C,A]);I.useEffect(()=>{if(n||!l)return;function B(H){if(H.key==="Tab"){tt(y,zr(Dt(y)))&&A().length===0&&!v&&yt(H);const U=F(),R=Tn(H);C.current[0]==="reference"&&R===x&&(yt(H),H.shiftKey?an(U[U.length-1]):an(U[1])),C.current[1]==="floating"&&R===y&&H.shiftKey&&(yt(H),an(U[0]))}}const W=Dt(y);return W.addEventListener("keydown",B),()=>{W.removeEventListener("keydown",B)}},[n,x,y,l,C,v,A,F]),I.useEffect(()=>{if(n||!d)return;function B(){D.current=!0,setTimeout(()=>{D.current=!1})}function W(H){const U=H.relatedTarget;queueMicrotask(()=>{const R=!(tt(x,U)||tt(y,U)||tt(U,y)||tt(E==null?void 0:E.portalNode,U)||U!=null&&U.hasAttribute(bo("focus-guard"))||O&&(mo(O.nodesRef.current,h).find(q=>{var X,Q;return tt((X=q.context)==null?void 0:X.elements.floating,U)||tt((Q=q.context)==null?void 0:Q.elements.domReference,U)})||qL(O.nodesRef.current,h).find(q=>{var X,Q;return((X=q.context)==null?void 0:X.elements.floating)===U||((Q=q.context)==null?void 0:Q.elements.domReference)===U})));U&&R&&!D.current&&U!==xw()&&(P.current=!0,g(!1,H))})}if(y&&mt(x))return x.addEventListener("focusout",W),x.addEventListener("pointerdown",B),!l&&y.addEventListener("focusout",W),()=>{x.removeEventListener("focusout",W),x.removeEventListener("pointerdown",B),!l&&y.removeEventListener("focusout",W)}},[n,x,y,l,h,O,E,g,d]),I.useEffect(()=>{var B;if(n)return;const W=Array.from((E==null||(B=E.portalNode)==null?void 0:B.querySelectorAll("["+bo("portal")+"]"))||[]);if(y){const H=[y,...W,z.current,T.current,C.current.includes("reference")||v?x:null].filter(R=>R!=null),U=l||v?fw(H,w,!w):fw(H);return()=>{U()}}},[n,x,y,l,C,E,v,w]),ze(()=>{if(n||!y)return;const B=Dt(y),W=zr(B);queueMicrotask(()=>{const H=F(y),U=M.current,R=(typeof U=="number"?H[U]:U.current)||y,q=tt(y,W);!_&&!q&&u&&an(R,{preventScroll:R===y})})},[n,u,y,_,F,M]),ze(()=>{if(n||!y)return;let B=!1;const W=Dt(y),H=zr(W),U=m.current;Uf(H);function R(q){let{reason:X,event:Q,nested:J}=q;X==="escape-key"&&f.domReference.current&&Uf(f.domReference.current),X==="hover"&&Q.type==="mouseleave"&&(P.current=!0),X==="outside-press"&&(J?(P.current=!1,B=!0):P.current=!(Ix(Q)||Sf(Q)))}return p.on("openchange",R),()=>{p.off("openchange",R);const q=zr(W),X=tt(y,q)||O&&mo(O.nodesRef.current,h).some(J=>{var ie;return tt((ie=J.context)==null?void 0:ie.elements.floating,q)});(X||U.openEvent&&["click","mousedown"].includes(U.openEvent.type))&&f.domReference.current&&Uf(f.domReference.current);const Q=xw();N.current&&!P.current&&mt(Q)&&(!(Q!==q&&q!==W.body)||X)&&an(Q,{cancelPrevious:!1,preventScroll:B})}},[n,y,N,m,f,p,O,h]),ze(()=>{if(!(n||!E))return E.setFocusManagerState({modal:l,closeOnFocusOut:d,open:u,onOpenChange:g,refs:f}),()=>{E.setFocusManagerState(null)}},[n,E,l,u,g,f,d]),ze(()=>{if(n||!y||typeof MutationObserver!="function"||_)return;const B=()=>{const H=y.getAttribute("tabindex");C.current.includes("floating")||zr(Dt(y))!==f.domReference.current&&A().length===0?H!=="0"&&y.setAttribute("tabindex","0"):H!=="-1"&&y.setAttribute("tabindex","-1")};B();const W=new MutationObserver(B);return W.observe(y,{childList:!0,subtree:!0,attributes:!0}),()=>{W.disconnect()}},[n,y,f,C,A,_]);function L(B){return n||!c||!l?null:I.createElement(o9,{ref:B==="start"?z:T,onClick:W=>g(!1,W.nativeEvent)},typeof c=="string"?c:"Dismiss")}const j=!n&&w&&(S||l);return I.createElement(I.Fragment,null,j&&I.createElement(Ic,{"data-type":"inside",ref:E==null?void 0:E.beforeInsideRef,onFocus:B=>{if(l){const H=F();an(o[0]==="reference"?H[0]:H[H.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(P.current=!1,Ks(B,E.portalNode)){const H=gw()||x;H==null||H.focus()}else{var W;(W=E.beforeOutsideRef.current)==null||W.focus()}}}),!v&&L("start"),r,L("end"),j&&I.createElement(Ic,{"data-type":"inside",ref:E==null?void 0:E.afterInsideRef,onFocus:B=>{if(l)an(F()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(d&&(P.current=!0),Ks(B,E.portalNode)){const H=pw()||x;H==null||H.focus()}else{var W;(W=E.afterOutsideRef.current)==null||W.focus()}}}))}const Rf=new Set,i9=I.forwardRef(function(e,t){let{lockScroll:r=!1,...n}=e;const o=Mc();return ze(()=>{if(!r)return;Rf.add(o);const i=/iP(hone|ad|od)|iOS/.test(Cf()),s=document.body.style,a=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",l=window.innerWidth-document.documentElement.clientWidth,c=s.left?parseFloat(s.left):window.pageXOffset,d=s.top?parseFloat(s.top):window.pageYOffset;if(s.overflow="hidden",l&&(s[a]=l+"px"),i){var u,f;const h=((u=window.visualViewport)==null?void 0:u.offsetLeft)||0,g=((f=window.visualViewport)==null?void 0:f.offsetTop)||0;Object.assign(s,{position:"fixed",top:-(d-Math.floor(g))+"px",left:-(c-Math.floor(h))+"px",right:"0"})}return()=>{Rf.delete(o),Rf.size===0&&(Object.assign(s,{overflow:"",[a]:""}),i&&(Object.assign(s,{position:"",top:"",left:"",right:""}),window.scrollTo(c,d)))}},[o,r]),I.createElement("div",qs({ref:t},n,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...n.style}}))});function kw(e){return mt(e.target)&&e.target.tagName==="BUTTON"}function _w(e){return Mf(e)}function Cw(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=e,{enabled:s=!0,event:a="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=t,u=I.useRef(),f=I.useRef(!1);return I.useMemo(()=>s?{reference:{onPointerDown(h){u.current=h.pointerType},onMouseDown(h){h.button===0&&(bc(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}bc(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||kw(h))&&(h.key===" "&&!_w(i)&&(h.preventDefault(),f.current=!0),h.key==="Enter"&&n(!(r&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||kw(h)||_w(i)||h.key===" "&&f.current&&(f.current=!1,n(!(r&&l),h.nativeEvent,"click"))}}}:{},[s,o,a,c,d,i,l,r,n])}const s9={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},a9={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Sw=e=>{var t,r;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(r=e==null?void 0:e.outsidePress)!=null?r:!0}};function Ew(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,nodeId:o,elements:{reference:i,domReference:s,floating:a},dataRef:l}=e,{enabled:c=!0,escapeKey:d=!0,outsidePress:u=!0,outsidePressEvent:f="pointerdown",referencePress:h=!1,referencePressEvent:g="pointerdown",ancestorScroll:p=!1,bubbles:m,capture:x}=t,y=Xs(),_=Br(typeof u=="function"?u:()=>!1),v=typeof u=="function"?_:u,w=I.useRef(!1),C=I.useRef(!1),{escapeKey:M,outsidePress:N}=Sw(m),{escapeKey:O,outsidePress:E}=Sw(x),z=Br(S=>{if(!r||!c||!d||S.key!=="Escape")return;const A=y?mo(y.nodesRef.current,o):[];if(!M&&(S.stopPropagation(),A.length>0)){let F=!0;if(A.forEach(L=>{var j;if((j=L.context)!=null&&j.open&&!L.context.dataRef.current.__escapeKeyBubbles){F=!1;return}}),!F)return}n(!1,x7(S)?S.nativeEvent:S,"escape-key")}),T=Br(S=>{var A;const F=()=>{var L;z(S),(L=Tn(S))==null||L.removeEventListener("keydown",F)};(A=Tn(S))==null||A.addEventListener("keydown",F)}),P=Br(S=>{const A=w.current;w.current=!1;const F=C.current;if(C.current=!1,f==="click"&&F||A||typeof v=="function"&&!v(S))return;const L=Tn(S),j="["+bo("inert")+"]",B=Dt(a).querySelectorAll(j);let W=Pe(L)?L:null;for(;W&&!Nn(W);){const R=on(W);if(Nn(R)||!Pe(R))break;W=R}if(B.length&&Pe(L)&&!w7(L)&&!tt(L,a)&&Array.from(B).every(R=>!tt(W,R)))return;if(mt(L)&&a){const R=L.clientWidth>0&&L.scrollWidth>L.clientWidth,q=L.clientHeight>0&&L.scrollHeight>L.clientHeight;let X=q&&S.offsetX>L.clientWidth;if(q&&ur(L).direction==="rtl"&&(X=S.offsetX<=L.offsetWidth-L.clientWidth),X||R&&S.offsetY>L.clientHeight)return}const H=y&&mo(y.nodesRef.current,o).some(R=>{var q;return Nf(S,(q=R.context)==null?void 0:q.elements.floating)});if(Nf(S,a)||Nf(S,s)||H)return;const U=y?mo(y.nodesRef.current,o):[];if(U.length>0){let R=!0;if(U.forEach(q=>{var X;if((X=q.context)!=null&&X.open&&!q.context.dataRef.current.__outsidePressBubbles){R=!1;return}}),!R)return}n(!1,S,"outside-press")}),D=Br(S=>{var A;const F=()=>{var L;P(S),(L=Tn(S))==null||L.removeEventListener(f,F)};(A=Tn(S))==null||A.addEventListener(f,F)});return I.useEffect(()=>{if(!r||!c)return;l.current.__escapeKeyBubbles=M,l.current.__outsidePressBubbles=N;function S(L){n(!1,L,"ancestor-scroll")}const A=Dt(a);d&&A.addEventListener("keydown",O?T:z,O),v&&A.addEventListener(f,E?D:P,E);let F=[];return p&&(Pe(s)&&(F=Mn(s)),Pe(a)&&(F=F.concat(Mn(a))),!Pe(i)&&i&&i.contextElement&&(F=F.concat(Mn(i.contextElement)))),F=F.filter(L=>{var j;return L!==((j=A.defaultView)==null?void 0:j.visualViewport)}),F.forEach(L=>{L.addEventListener("scroll",S,{passive:!0})}),()=>{d&&A.removeEventListener("keydown",O?T:z,O),v&&A.removeEventListener(f,E?D:P,E),F.forEach(L=>{L.removeEventListener("scroll",S)})}},[l,a,s,i,d,v,f,r,n,p,c,M,N,z,O,T,P,E,D]),I.useEffect(()=>{w.current=!1},[v,f]),I.useMemo(()=>c?{reference:{onKeyDown:z,[s9[g]]:S=>{h&&n(!1,S.nativeEvent,"reference-press")}},floating:{onKeyDown:z,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[a9[f]]:()=>{w.current=!0}}}:{},[c,h,f,g,n,z])}let qf;process.env.NODE_ENV!=="production"&&(qf=new Set);function Ow(e){var t;e===void 0&&(e={});const{open:r=!1,onOpenChange:n,nodeId:o}=e;if(process.env.NODE_ENV!=="production"){var i;const N="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=e.elements)!=null&&i.reference&&!Pe(e.elements.reference)){var s;if(!((s=qf)!=null&&s.has(N))){var a;(a=qf)==null||a.add(N),console.error(N)}}}const[l,c]=I.useState(null),d=((t=e.elements)==null?void 0:t.reference)||l,u=oL(e),f=Xs(),h=Tc()!=null,g=Br((N,O,E)=>{N&&(m.current.openEvent=O),x.emit("openchange",{open:N,event:O,reason:E,nested:h}),n==null||n(N,O,E)}),p=I.useRef(null),m=I.useRef({}),x=I.useState(()=>VL())[0],y=Mc(),_=I.useCallback(N=>{const O=Pe(N)?{getBoundingClientRect:()=>N.getBoundingClientRect(),contextElement:N}:N;u.refs.setReference(O)},[u.refs]),v=I.useCallback(N=>{(Pe(N)||N===null)&&(p.current=N,c(N)),(Pe(u.refs.reference.current)||u.refs.reference.current===null||N!==null&&!Pe(N))&&u.refs.setReference(N)},[u.refs]),w=I.useMemo(()=>({...u.refs,setReference:v,setPositionReference:_,domReference:p}),[u.refs,v,_]),C=I.useMemo(()=>({...u.elements,domReference:d}),[u.elements,d]),M=I.useMemo(()=>({...u,refs:w,elements:C,dataRef:m,nodeId:o,floatingId:y,events:x,open:r,onOpenChange:g}),[u,o,y,x,r,g,w,C]);return ze(()=>{const N=f==null?void 0:f.nodesRef.current.find(O=>O.id===o);N&&(N.context=M)}),I.useMemo(()=>({...u,context:M,refs:w,elements:C}),[u,w,C,M])}function l9(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,events:o,refs:i,elements:{domReference:s}}=e,{enabled:a=!0,visibleOnly:l=!0}=t,c=I.useRef(!1),d=I.useRef(),u=I.useRef(!0);return I.useEffect(()=>{if(!a)return;const f=Ut(s);function h(){!r&&mt(s)&&s===zr(Dt(s))&&(c.current=!0)}function g(){u.current=!0}return f.addEventListener("blur",h),f.addEventListener("keydown",g,!0),()=>{f.removeEventListener("blur",h),f.removeEventListener("keydown",g,!0)}},[s,r,a]),I.useEffect(()=>{if(!a)return;function f(h){let{reason:g}=h;(g==="reference-press"||g==="escape-key")&&(c.current=!0)}return o.on("openchange",f),()=>{o.off("openchange",f)}},[o,a]),I.useEffect(()=>()=>{clearTimeout(d.current)},[]),I.useMemo(()=>a?{reference:{onPointerDown(f){Sf(f.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const h=Tn(f.nativeEvent);if(l&&Pe(h))try{if(Ef()&&Ax())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!Mf(h))return}n(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const h=f.relatedTarget,g=Pe(h)&&h.hasAttribute(bo("focus-guard"))&&h.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{const p=zr(s?s.ownerDocument:document);!h&&p===s||tt(i.floating.current,p)||tt(s,p)||g||n(!1,f.nativeEvent,"focus")})}}}:{},[a,l,s,i,n])}const Nw="active",Mw="selected";function Xf(e,t,r){const n=new Map,o=r==="item";let i=e;if(o&&e){const{[Nw]:s,[Mw]:a,...l}=e;i=l}return{...r==="floating"&&{tabIndex:-1},...i,...t.map(s=>{const a=s?s[r]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[c,d]=l;if(!(o&&[Nw,Mw].includes(c)))if(c.indexOf("on")===0){if(n.has(c)||n.set(c,[]),typeof d=="function"){var u;(u=n.get(c))==null||u.push(d),s[c]=function(){for(var f,h=arguments.length,g=new Array(h),p=0;p<h;p++)g[p]=arguments[p];return(f=n.get(c))==null?void 0:f.map(m=>m(...g)).find(m=>m!==void 0)}}}else s[c]=d}),s),{})}}function Tw(e){e===void 0&&(e=[]);const t=e,r=I.useCallback(i=>Xf(i,e,"reference"),t),n=I.useCallback(i=>Xf(i,e,"floating"),t),o=I.useCallback(i=>Xf(i,e,"item"),e.map(i=>i==null?void 0:i.item));return I.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])}let Dw=!1;function Ac(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function Pw(e,t){return Ac(t,e===Bf||e===Us,e===ni||e===oi)}function Gf(e,t,r){return Ac(t,e===Us,r?e===ni:e===oi)||e==="Enter"||e===" "||e===""}function c9(e,t,r){return Ac(t,r?e===ni:e===oi,e===Us)}function Iw(e,t,r){return Ac(t,r?e===oi:e===ni,e===Bf)}function d9(e,t){const{open:r,onOpenChange:n,refs:o,elements:{domReference:i,floating:s}}=e,{listRef:a,activeIndex:l,onNavigate:c=()=>{},enabled:d=!0,selectedIndex:u=null,allowEscape:f=!1,loop:h=!1,nested:g=!1,rtl:p=!1,virtual:m=!1,focusItemOnOpen:x="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:_=!0,disabledIndices:v=void 0,orientation:w="vertical",cols:C=1,scrollItemIntoView:M=!0,virtualItemRef:N,itemSizes:O,dense:E=!1}=t;process.env.NODE_ENV!=="production"&&(f&&(h||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),m||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),w==="vertical"&&C>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const z=Tc(),T=Xs(),P=Br(c),D=I.useRef(x),S=I.useRef(u??-1),A=I.useRef(null),F=I.useRef(!0),L=I.useRef(P),j=I.useRef(!!s),B=I.useRef(!1),W=I.useRef(!1),H=Wr(v),U=Wr(r),R=Wr(M),[q,X]=I.useState(),[Q,J]=I.useState(),ie=Br(function(ee,ae,re){re===void 0&&(re=!1);const oe=ee.current[ae.current];oe&&(m?(X(oe.id),T==null||T.events.emit("virtualfocus",oe),N&&(N.current=oe)):an(oe,{preventScroll:!0,sync:Ax()&&Ef()?Dw||B.current:!1}),requestAnimationFrame(()=>{const ne=R.current;ne&&oe&&(re||!F.current)&&(oe.scrollIntoView==null||oe.scrollIntoView(typeof ne=="boolean"?{block:"nearest",inline:"nearest"}:ne))}))});ze(()=>{document.createElement("div").focus({get preventScroll(){return Dw=!0,!1}})},[]),ze(()=>{d&&(r&&s?D.current&&u!=null&&(W.current=!0,S.current=u,P(u)):j.current&&(S.current=-1,L.current(null)))},[d,r,s,u,P]),ze(()=>{if(d&&r&&s)if(l==null){if(B.current=!1,u!=null)return;if(j.current&&(S.current=-1,ie(a,S)),!j.current&&D.current&&(A.current!=null||D.current===!0&&A.current==null)){let ee=0;const ae=()=>{a.current[0]==null?(ee<2&&(ee?requestAnimationFrame:queueMicrotask)(ae),ee++):(S.current=A.current==null||Gf(A.current,w,p)||g?Wf(a,H.current):sw(a,H.current),A.current=null,P(S.current))};ae()}}else Rs(a,l)||(S.current=l,ie(a,S,W.current),W.current=!1)},[d,r,s,l,u,g,a,w,p,P,ie,H]),ze(()=>{var ee;if(!d||s||!T||m||!j.current)return;const ae=T.nodesRef.current,re=(ee=ae.find(Z=>Z.id===z))==null||(ee=ee.context)==null?void 0:ee.elements.floating,oe=zr(Dt(s)),ne=ae.some(Z=>Z.context&&tt(Z.context.elements.floating,oe));re&&!ne&&F.current&&re.focus({preventScroll:!0})},[d,s,T,z,m]),ze(()=>{if(!d||!T||!m||z)return;function ee(ae){J(ae.id),N&&(N.current=ae)}return T.events.on("virtualfocus",ee),()=>{T.events.off("virtualfocus",ee)}},[d,T,m,z,N]),ze(()=>{L.current=P,j.current=!!s}),ze(()=>{r||(A.current=null)},[r]);const ye=l!=null,ve=I.useMemo(()=>{function ee(ae){if(!r)return;const re=a.current.indexOf(ae);re!==-1&&P(re)}return{onFocus(ae){let{currentTarget:re}=ae;ee(re)},onClick:ae=>{let{currentTarget:re}=ae;return re.focus({preventScroll:!0})},...y&&{onMouseMove(ae){let{currentTarget:re}=ae;ee(re)},onPointerLeave(ae){let{pointerType:re}=ae;!F.current||re==="touch"||(S.current=-1,ie(a,S),P(null),m||an(o.floating.current,{preventScroll:!0}))}}}},[r,o,ie,y,a,P,m]);return I.useMemo(()=>{if(!d)return{};const ee=H.current;function ae(Y){if(F.current=!1,B.current=!0,!U.current&&Y.currentTarget===o.floating.current)return;if(g&&Iw(Y.key,w,p)){yt(Y),n(!1,Y.nativeEvent,"list-navigation"),mt(i)&&!m&&i.focus();return}const fe=S.current,te=Wf(a,ee),ce=sw(a,ee);if(Y.key==="Home"&&(yt(Y),S.current=te,P(S.current)),Y.key==="End"&&(yt(Y),S.current=ce,P(S.current)),C>1){const be=O||Array.from({length:a.current.length},()=>({width:1,height:1})),he=IL(be,C,E),$e=he.findIndex(Ae=>Ae!=null&&!(ee!=null&&ee.includes(Ae))),Re=he.reduce((Ae,wt,Le)=>wt!=null&&!(ee!=null&&ee.includes(wt))?Le:Ae,-1);if(S.current=he[PL({current:he.map(Ae=>Ae!=null?a.current[Ae]:null)},{event:Y,orientation:w,loop:h,cols:C,disabledIndices:LL([...ee||[],void 0],he),minIndex:$e,maxIndex:Re,prevIndex:AL(S.current,be,he,C,Y.key===Us?"bl":Y.key===oi?"tr":"tl"),stopEvent:!0})],P(S.current),w==="both")return}if(Pw(Y.key,w)){if(yt(Y),r&&!m&&zr(Y.currentTarget.ownerDocument)===Y.currentTarget){S.current=Gf(Y.key,w,p)?te:ce,P(S.current);return}Gf(Y.key,w,p)?h?S.current=fe>=ce?f&&fe!==a.current.length?-1:te:Nt(a,{startingIndex:fe,disabledIndices:ee}):S.current=Math.min(ce,Nt(a,{startingIndex:fe,disabledIndices:ee})):h?S.current=fe<=te?f&&fe!==-1?a.current.length:ce:Nt(a,{startingIndex:fe,decrement:!0,disabledIndices:ee}):S.current=Math.max(te,Nt(a,{startingIndex:fe,decrement:!0,disabledIndices:ee})),Rs(a,S.current)?P(null):P(S.current)}}function re(Y){x==="auto"&&Ix(Y.nativeEvent)&&(D.current=!0)}function oe(Y){D.current=x,x==="auto"&&Sf(Y.nativeEvent)&&(D.current=!0)}const ne=m&&r&&ye&&{"aria-activedescendant":Q||q},Z=a.current.find(Y=>(Y==null?void 0:Y.id)===q);return{reference:{...ne,onKeyDown(Y){F.current=!1;const fe=Y.key.indexOf("Arrow")===0,te=c9(Y.key,w,p),ce=Iw(Y.key,w,p),be=Pw(Y.key,w),he=(g?te:be)||Y.key==="Enter"||Y.key.trim()==="";if(m&&r){const wt=T==null?void 0:T.nodesRef.current.find(fn=>fn.parentId==null),Le=T&&wt?XL(T.nodesRef.current,wt.id):null;if(fe&&Le&&N){const fn=new KeyboardEvent("keydown",{key:Y.key,bubbles:!0});if(te||ce){var $e,Re;const Jh=(($e=Le.context)==null?void 0:$e.elements.domReference)===Y.currentTarget,da=ce&&!Jh?(Re=Le.context)==null?void 0:Re.elements.domReference:te?Z:null;da&&(yt(Y),da.dispatchEvent(fn),J(void 0))}if(be&&Le.context&&Le.context.open&&Le.parentId&&Y.currentTarget!==Le.context.elements.domReference){var Ae;yt(Y),(Ae=Le.context.elements.domReference)==null||Ae.dispatchEvent(fn);return}}return ae(Y)}if(!(!r&&!_&&fe)){if(he&&(A.current=g&&be?null:Y.key),g){te&&(yt(Y),r?(S.current=Wf(a,ee),P(S.current)):n(!0,Y.nativeEvent,"list-navigation"));return}be&&(u!=null&&(S.current=u),yt(Y),!r&&_?n(!0,Y.nativeEvent,"list-navigation"):ae(Y),r&&P(S.current))}},onFocus(){r&&P(null)},onPointerDown:oe,onMouseDown:re,onClick:re},floating:{"aria-orientation":w==="both"?void 0:w,...!Lx(i)&&ne,onKeyDown:ae,onPointerMove(){F.current=!0}},item:ve}},[i,o,q,Q,H,U,a,d,w,p,m,r,ye,g,u,_,f,C,h,x,P,n,ve,T,N,O,E])}const u9=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Aw(e,t){var r;t===void 0&&(t={});const{open:n,floatingId:o}=e,{enabled:i=!0,role:s="dialog"}=t,a=(r=u9.get(s))!=null?r:s,l=Mc(),c=Tc()!=null;return I.useMemo(()=>{if(!i)return{};const d={id:o,...a&&{role:a}};return a==="tooltip"||s==="label"?{reference:{["aria-"+(s==="label"?"labelledby":"describedby")]:n?o:void 0},floating:d}:{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"&&c&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},floating:{...d,...a==="menu"&&{"aria-labelledby":l}},item(u){let{active:f,selected:h}=u;const g={role:"option",...f&&{id:o+"-option"}};switch(s){case"select":return{...g,"aria-selected":f&&h};case"combobox":return{...g,...f&&{"aria-selected":!0}}}return{}}}},[i,s,a,n,o,l,c])}function f9(e,t){var r;const{open:n,dataRef:o}=e,{listRef:i,activeIndex:s,onMatch:a,onTypingChange:l,enabled:c=!0,findMatch:d=null,resetMs:u=750,ignoreKeys:f=[],selectedIndex:h=null}=t,g=I.useRef(),p=I.useRef(""),m=I.useRef((r=h??s)!=null?r:-1),x=I.useRef(null),y=Br(a),_=Br(l),v=Wr(d),w=Wr(f);return ze(()=>{n&&(clearTimeout(g.current),x.current=null,p.current="")},[n]),ze(()=>{if(n&&p.current===""){var C;m.current=(C=h??s)!=null?C:-1}},[n,h,s]),I.useMemo(()=>{if(!c)return{};function C(O){O?o.current.typing||(o.current.typing=O,_(O)):o.current.typing&&(o.current.typing=O,_(O))}function M(O,E,z){const T=v.current?v.current(E,z):E.find(P=>(P==null?void 0:P.toLocaleLowerCase().indexOf(z.toLocaleLowerCase()))===0);return T?O.indexOf(T):-1}function N(O){const E=i.current;if(p.current.length>0&&p.current[0]!==" "&&(M(E,E,p.current)===-1?C(!1):O.key===" "&&yt(O)),E==null||w.current.includes(O.key)||O.key.length!==1||O.ctrlKey||O.metaKey||O.altKey)return;n&&O.key!==" "&&(yt(O),C(!0)),E.every(P=>{var D,S;return P?((D=P[0])==null?void 0:D.toLocaleLowerCase())!==((S=P[1])==null?void 0:S.toLocaleLowerCase()):!0})&&p.current===O.key&&(p.current="",m.current=x.current),p.current+=O.key,clearTimeout(g.current),g.current=setTimeout(()=>{p.current="",m.current=x.current,C(!1)},u);const z=m.current,T=M(E,[...E.slice((z||0)+1),...E.slice(0,(z||0)+1)],p.current);T!==-1?(y(T),x.current=T):O.key!==" "&&(p.current="",C(!1))}return{reference:{onKeyDown:N},floating:{onKeyDown:N,onKeyUp(O){O.key===" "&&C(!1)}}}},[c,n,o,i,u,w,v,y,_])}function Lw(e,t){const[r,n]=e;let o=!1;const i=t.length;for(let s=0,a=i-1;s<i;a=s++){const[l,c]=t[s]||[0,0],[d,u]=t[a]||[0,0];c>=n!=u>=n&&r<=(d-l)*(n-c)/(u-c)+l&&(o=!o)}return o}function h9(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function g9(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:r=!1,requireIntent:n=!0}=e;let o,i=!1,s=null,a=null,l=performance.now();function c(u,f){const h=performance.now(),g=h-l;if(s===null||a===null||g===0)return s=u,a=f,l=h,null;const p=u-s,m=f-a,x=Math.sqrt(p*p+m*m)/g;return s=u,a=f,l=h,x}const d=u=>{let{x:f,y:h,placement:g,elements:p,onClose:m,nodeId:x,tree:y}=u;return function(_){function v(){clearTimeout(o),m()}if(clearTimeout(o),!p.domReference||!p.floating||g==null||f==null||h==null)return;const{clientX:w,clientY:C}=_,M=[w,C],N=Tn(_),O=_.type==="mouseleave",E=tt(p.floating,N),z=tt(p.domReference,N),T=p.domReference.getBoundingClientRect(),P=p.floating.getBoundingClientRect(),D=g.split("-")[0],S=f>P.right-P.width/2,A=h>P.bottom-P.height/2,F=h9(M,T),L=P.width>T.width,j=P.height>T.height,B=(L?T:P).left,W=(L?T:P).right,H=(j?T:P).top,U=(j?T:P).bottom;if(E&&(i=!0,!O))return;if(z&&(i=!1),z&&!O){i=!0;return}if(O&&Pe(_.relatedTarget)&&tt(p.floating,_.relatedTarget)||y&&mo(y.nodesRef.current,x).some(X=>{let{context:Q}=X;return Q==null?void 0:Q.open}))return;if(D==="top"&&h>=T.bottom-1||D==="bottom"&&h<=T.top+1||D==="left"&&f>=T.right-1||D==="right"&&f<=T.left+1)return v();let R=[];switch(D){case"top":R=[[B,T.top+1],[B,P.bottom-1],[W,P.bottom-1],[W,T.top+1]];break;case"bottom":R=[[B,P.top+1],[B,T.bottom-1],[W,T.bottom-1],[W,P.top+1]];break;case"left":R=[[P.right-1,U],[P.right-1,H],[T.left+1,H],[T.left+1,U]];break;case"right":R=[[T.right-1,U],[T.right-1,H],[P.left+1,H],[P.left+1,U]];break}function q(X){let[Q,J]=X;switch(D){case"top":{const ie=[L?Q+t/2:S?Q+t*4:Q-t*4,J+t+1],ye=[L?Q-t/2:S?Q+t*4:Q-t*4,J+t+1],ve=[[P.left,S||L?P.bottom-t:P.top],[P.right,S?L?P.bottom-t:P.top:P.bottom-t]];return[ie,ye,...ve]}case"bottom":{const ie=[L?Q+t/2:S?Q+t*4:Q-t*4,J-t],ye=[L?Q-t/2:S?Q+t*4:Q-t*4,J-t],ve=[[P.left,S||L?P.top+t:P.bottom],[P.right,S?L?P.top+t:P.bottom:P.top+t]];return[ie,ye,...ve]}case"left":{const ie=[Q+t+1,j?J+t/2:A?J+t*4:J-t*4],ye=[Q+t+1,j?J-t/2:A?J+t*4:J-t*4];return[[A||j?P.right-t:P.left,P.top],[A?j?P.right-t:P.left:P.right-t,P.bottom],ie,ye]}case"right":{const ie=[Q-t,j?J+t/2:A?J+t*4:J-t*4],ye=[Q-t,j?J-t/2:A?J+t*4:J-t*4],ve=[[A||j?P.left+t:P.right,P.top],[A?j?P.left+t:P.right:P.left+t,P.bottom]];return[ie,ye,...ve]}}}if(!Lw([w,C],R)){if(i&&!F)return v();if(!O&&n){const X=c(_.clientX,_.clientY);if(X!==null&&X<.1)return v()}Lw([w,C],q([f,h]))?!i&&n&&(o=window.setTimeout(v,40)):v()}}};return d.__options={blockPointerEvents:r},d}const p9=({arrowRef:e,placement:t})=>{const r=[];return r.push(sL(8)),r.push(t==="auto"?cL():lL()),r.push(aL({padding:8})),e!=null&&e.current&&r.push(dL({element:e.current})),r},b9=({placement:e})=>e==="auto"?void 0:e,m9=({placement:e})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[e.split("-")[0]],zw=({open:e,arrowRef:t,placement:r="top",setOpen:n})=>Ow({placement:b9({placement:r}),open:e,onOpenChange:n,whileElementsMounted:Kx,middleware:p9({placement:r,arrowRef:t})}),Fw=({context:e,trigger:t,role:r="tooltip",interactions:n=[]})=>Tw([Cw(e,{enabled:t==="click"}),RL(e,{enabled:t==="hover",handleClose:g9()}),Ew(e),Aw(e,{role:r}),...n]),jw=k.createContext(void 0);function Kf(){const e=k.useContext(jw);if(!e)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return e}const Zf=({className:e,theme:t={},...r})=>{const{theme:n}=Kf(),o=t.divider??n.floating.divider;return b.jsx("div",{className:V(o,e),...r})},Bw=({children:e,className:t,theme:r={},...n})=>{const{theme:o}=Kf(),i=r.header??o.floating.header;return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:V(i,t),...n,children:e}),b.jsx(Zf,{})]})},Ww=k.forwardRef(({children:e,className:t,icon:r,onClick:n,theme:o={},...i},s)=>{const{ref:a,index:l}=BL({label:typeof e=="string"?e:void 0}),c=iw([s,a]),{theme:d,activeIndex:u,dismissOnClick:f,getItemProps:h,handleSelect:g}=Kf(),p=u===l,m=K(d.floating.item,o),x=i;return b.jsx("li",{role:"menuitem",className:m.container,children:b.jsxs(mf,{ref:c,className:V(m.base,t),...x,...h({onClick:()=>{n==null||n(),f&&g(null)}}),tabIndex:p?0:-1,children:[r&&b.jsx(r,{className:m.icon}),e]})})});Ww.displayName="DropdownItem";const y9={top:OA,right:Kv,bottom:Gv,left:EA},v9=({refs:e,children:t,inline:r,theme:n,disabled:o,setButtonWidth:i,getReferenceProps:s,renderTrigger:a,...l})=>{const c=e.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:e.setReference,disabled:o,...d,...u.props})}return r?b.jsx("button",{type:"button",ref:e.setReference,className:n==null?void 0:n.inlineWrapper,disabled:o,...d,children:t}):b.jsx(vx,{...l,disabled:o,type:"button",ref:e.setReference,...d,children:t})},Hw=({children:e,className:t,dismissOnClick:r=!0,theme:n={},renderTrigger:o,...i})=>{const[s,a]=k.useState(!1),[l,c]=k.useState(null),[d,u]=k.useState(null),[f,h]=k.useState(void 0),g=k.useRef([]),p=k.useRef([]),m=K(le().dropdown,n),x=i,y=i["data-testid"]||"flowbite-dropdown-target",{placement:_=i.inline?"bottom-start":"bottom",trigger:v="click",label:w,inline:C,arrowIcon:M=!0,...N}=x,O=k.useCallback(B=>{u(B),a(!1)},[]),E=k.useCallback(B=>{s?c(B):O(B)},[s,O]),{context:z,floatingStyles:T,refs:P}=zw({open:s,setOpen:a,placement:_}),D=d9(z,{listRef:g,activeIndex:l,selectedIndex:d,onNavigate:c}),S=f9(z,{listRef:p,activeIndex:l,selectedIndex:d,onMatch:E}),{getReferenceProps:A,getFloatingProps:F,getItemProps:L}=Fw({context:z,role:"menu",trigger:v,interactions:[D,S]}),j=k.useMemo(()=>{const[B]=_.split("-");return y9[B]??Gv},[_]);return b.jsxs(jw.Provider,{value:{theme:m,activeIndex:l,dismissOnClick:r,getItemProps:L,handleSelect:O},children:[b.jsxs(v9,{...N,refs:P,inline:C,theme:m,"data-testid":y,className:V(m.floating.target,N.className),setButtonWidth:h,getReferenceProps:A,renderTrigger:o,children:[w,M&&b.jsx(j,{className:m.arrowIcon})]}),s&&b.jsx(ww,{context:z,modal:!1,children:b.jsx("div",{ref:P.setFloating,style:{...T,minWidth:f},"data-testid":"flowbite-dropdown","aria-expanded":s,...F({className:V(m.floating.base,m.floating.animation,"duration-100",!s&&m.floating.hidden,m.floating.style.auto,t)}),children:b.jsx(jL,{elementsRef:g,labelsRef:p,children:b.jsx("ul",{className:m.content,tabIndex:-1,children:e})})})})]})};Hw.displayName="Dropdown",Bw.displayName="Dropdown.Header",Zf.displayName="Dropdown.Divider",Object.assign(Hw,{Item:Ww,Header:Bw,Divider:Zf});const x9=k.forwardRef(({className:e,color:t="gray",helperText:r,sizing:n="md",theme:o={},...i},s)=>{const a=K(le().fileInput,o);return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:V(a.root.base,e),children:b.jsx("div",{className:a.field.base,children:b.jsx("input",{className:V(a.field.input.base,a.field.input.colors[t],a.field.input.sizes[n]),...i,type:"file",ref:s})})}),r&&b.jsx(Hs,{color:t,children:r})]})});x9.displayName="FileInput";const w9=k.forwardRef(({label:e,helperText:t,color:r="default",sizing:n="md",variant:o,disabled:i=!1,theme:s={},className:a,...l},c)=>{const d=k.useId(),u=K(le().floatingLabel,s);return b.jsxs("div",{children:[b.jsxs("div",{className:V("relative",o==="standard"?"z-0":""),children:[b.jsx("input",{type:"text",id:l.id?l.id:"floatingLabel"+d,"aria-describedby":"outlined_success_help",className:V(u.input[r][o][n],a),placeholder:" ","data-testid":"floating-label",disabled:i,...l,ref:c}),b.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:V(u.label[r][o][n],a),children:e})]}),b.jsx("p",{id:"outlined_helper_text"+d,className:V(u.helperText[r],a),children:t})]})});w9.displayName="FloatingLabel";const $w=({alt:e,className:t,children:r,href:n,name:o,src:i,theme:s={},...a})=>{const l=K(le().footer.brand,s);return b.jsx("div",{children:n?b.jsxs("a",{"data-testid":"flowbite-footer-brand",href:n,className:V(l.base,t),...a,children:[b.jsx("img",{alt:e,src:i,className:l.img}),b.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:o}),r]}):b.jsx("img",{alt:e,"data-testid":"flowbite-footer-brand",src:i,className:V(l.img,t),...a})})},Vw=({by:e,className:t,href:r,theme:n={},year:o,...i})=>{const s=K(le().footer.copyright,n);return b.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:V(s.base,t),...i,children:["© ",o,r?b.jsx("a",{href:r,className:s.href,children:e}):b.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:s.span,children:e})]})},Yw=({className:e,theme:t={},...r})=>{const n=K(le().footer.divider,t);return b.jsx("hr",{"data-testid":"footer-divider",className:V(n.base,e),...r})},Uw=({ariaLabel:e,className:t,href:r,icon:n,theme:o={},...i})=>{const s=K(le().footer.icon,o);return b.jsx("div",{children:r?b.jsx("a",{"aria-label":e,"data-testid":"flowbite-footer-icon",href:r,className:V(s.base,t),...i,children:b.jsx(n,{className:s.size})}):b.jsx(n,{"data-testid":"flowbite-footer-icon",className:s.size,...i})})},Rw=({as:e="a",children:t,className:r,href:n,theme:o={},...i})=>{const s=K(le().footer.groupLink.link,o);return b.jsx("li",{className:V(s.base,r),children:b.jsx(e,{href:n,className:s.href,...i,children:t})})},qw=({children:e,className:t,col:r=!1,theme:n={},...o})=>{const i=K(le().footer.groupLink,n);return b.jsx("ul",{"data-testid":"footer-groupLink",className:V(i.base,r&&i.col,t),...o,children:e})},Xw=({as:e="h2",className:t,theme:r={},title:n,...o})=>{const i=K(le().footer.title,r);return b.jsx(e,{"data-testid":"flowbite-footer-title",className:V(i.base,t),...o,children:n})},Gw=({bgDark:e=!1,children:t,className:r,container:n=!1,theme:o={},...i})=>{const s=K(le().footer,o);return b.jsx("footer",{"data-testid":"flowbite-footer",className:V(s.root.base,e&&s.root.bgDark,n&&s.root.container,r),...i,children:t})};Gw.displayName="Footer",Vw.displayName="Footer.Copyright",Rw.displayName="Footer.Link",$w.displayName="Footer.Brand",qw.displayName="Footer.LinkGroup",Uw.displayName="Footer.Icon",Xw.displayName="Footer.Title",Yw.displayName="Footer.Divider",Object.assign(Gw,{Copyright:Vw,Link:Rw,LinkGroup:qw,Brand:$w,Icon:Uw,Title:Xw,Divider:Yw});const Kw=({children:e,className:t,icon:r,theme:n={},...o})=>{const i=K(le().list.item,n);return b.jsxs("li",{className:V(i.withIcon[r?"on":"off"],t),...o,children:[r&&b.jsx(r,{className:V(i.icon)}),e]})},Zw=({children:e,className:t,unstyled:r,nested:n,ordered:o,horizontal:i,theme:s={},...a})=>{const l=K(le().list,s);return b.jsx(o?"ol":"ul",{className:V(l.root.base,l.root.ordered[o?"on":"off"],r&&l.root.unstyled,n&&l.root.nested,i&&l.root.horizontal,t),...a,children:e})};Zw.displayName="List",Kw.displayName="List.Item",Object.assign(Zw,{Item:Kw});const Qw=({active:e,children:t,className:r,href:n,icon:o,onClick:i,theme:s={},disabled:a,...l})=>{const c=K(le().listGroup.item,s),d=typeof n<"u",u=d?"a":"button";return b.jsx("li",{className:V(c.base,r),children:b.jsxs(u,{href:n,onClick:i,type:d?void 0:"button",disabled:a,className:V(c.link.active[e?"on":"off"],c.link.disabled[a?"on":"off"],c.link.base,c.link.href[d?"on":"off"]),...l,children:[o&&b.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),t]})})},Jw=({children:e,className:t,theme:r={},...n})=>{const o=K(le().listGroup,r);return b.jsx("ul",{className:V(o.root.base,t),...n,children:e})};Jw.displayName="ListGroup",Qw.displayName="ListGroup.Item",Object.assign(Jw,{Item:Qw});const e1=k.createContext(void 0);function Qf(){const e=k.useContext(e1);if(!e)throw new Error("useModalContext should be used within the ModalContext provider!");return e}const t1=({children:e,className:t,theme:r={},...n})=>{const{theme:o,popup:i}=Qf(),s=K(o.body,r);return b.jsx("div",{className:V(s.base,i&&[s.popup],t),...n,children:e})},r1=({children:e,className:t,theme:r={},...n})=>{const{theme:o,popup:i}=Qf(),s=K(o.footer,r);return b.jsx("div",{className:V(s.base,!i&&s.popup,t),...n,children:e})},n1=({as:e="h3",children:t,className:r,theme:n={},id:o,...i})=>{const s=k.useId(),a=o||s,{theme:l,popup:c,onClose:d,setHeaderId:u}=Qf(),f=K(l.header,n);return k.useLayoutEffect(()=>(u(a),()=>u(void 0)),[a,u]),b.jsxs("div",{className:V(f.base,c&&f.popup,r),...i,children:[b.jsx(e,{id:a,className:f.title,children:t}),b.jsx("button",{"aria-label":"Close",className:f.close.base,type:"button",onClick:d,children:b.jsx(NA,{"aria-hidden":!0,className:f.close.icon})})]})},o1=k.forwardRef(({children:e,className:t,dismissible:r=!1,onClose:n,popup:o,position:i="center",root:s,show:a,size:l="2xl",theme:c={},initialFocus:d,...u},f)=>{const[h,g]=k.useState(void 0),p=K(le().modal,c),{context:m}=Ow({open:a,onOpenChange:()=>n&&n()}),x=iw([m.refs.setFloating,f]),y=Cw(m),_=Ew(m,{outsidePressEvent:"mousedown",enabled:r}),v=Aw(m),{getFloatingProps:w}=Tw([y,_,v]);return a?b.jsx(e1.Provider,{value:{theme:p,popup:o,onClose:n,setHeaderId:g},children:b.jsx(r9,{root:s,children:b.jsx(i9,{lockScroll:!0,"data-testid":"modal-overlay",className:V(p.root.base,p.root.positions[i],a?p.root.show.on:p.root.show.off,t),...u,children:b.jsx(ww,{context:m,initialFocus:d,children:b.jsx("div",{ref:x,...w(u),"aria-labelledby":h,className:V(p.content.base,p.root.sizes[l]),children:b.jsx("div",{className:p.content.inner,children:e})})})})})}):null});o1.displayName="Modal",n1.displayName="Modal.Header",t1.displayName="Modal.Body",r1.displayName="Modal.Footer",Object.assign(o1,{Header:n1,Body:t1,Footer:r1});const i1=k.createContext(void 0);function Lc(){const e=k.useContext(i1);if(!e)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return e}const s1=({as:e="a",children:t,className:r,theme:n={},...o})=>{const{theme:i}=Lc(),s=K(i.brand,n);return b.jsx(e,{className:V(s.base,r),...o,children:t})},a1=({children:e,className:t,theme:r={},...n})=>{const{theme:o,isOpen:i}=Lc(),s=K(o.collapse,r);return b.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:V(s.base,s.hidden[i?"off":"on"],t),...n,children:b.jsx("ul",{className:s.list,children:e})})},l1=({active:e,as:t="a",disabled:r,children:n,className:o,theme:i={},onClick:s,...a})=>{const{theme:l,setIsOpen:c}=Lc(),d=K(l.link,i),u=f=>{c(!1),s==null||s(f)};return b.jsx("li",{children:b.jsx(t,{className:V(d.base,e&&d.active.on,!e&&!r&&d.active.off,d.disabled[r?"on":"off"],o),onClick:u,...a,children:n})})},c1=({barIcon:e=eM,className:t,theme:r={},...n})=>{const{theme:o,isOpen:i,setIsOpen:s}=Lc(),a=K(o.toggle,r);return b.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:()=>{s(!i)},className:V(a.base,t),...n,children:[b.jsx("span",{className:"sr-only",children:"Open main menu"}),b.jsx(e,{"aria-hidden":!0,className:a.icon})]})},d1=({border:e,children:t,className:r,fluid:n=!1,menuOpen:o,rounded:i,theme:s={},...a})=>{const[l,c]=k.useState(o),d=K(le().navbar,s);return b.jsx(i1.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:b.jsx("nav",{className:V(d.root.base,d.root.bordered[e?"on":"off"],d.root.rounded[i?"on":"off"],r),...a,children:b.jsx("div",{className:V(d.root.inner.base,d.root.inner.fluid[n?"on":"off"]),children:t})})})};d1.displayName="Navbar",s1.displayName="Navbar.Brand",a1.displayName="Navbar.Collapse",l1.displayName="Navbar.Link",c1.displayName="Navbar.Toggle",Object.assign(d1,{Brand:s1,Collapse:a1,Link:l1,Toggle:c1});const k9=(e,t)=>e>=t?[]:[...Array(t-e+1).keys()].map(r=>r+e),Jf=({active:e,children:t,className:r,onClick:n,theme:o={},...i})=>{const s=K(le().pagination,o);return b.jsx("button",{type:"button",className:V(e&&s.pages.selector.active,r),onClick:n,...i,children:t})};Jf.displayName="Pagination.Button";const eh=({children:e,className:t,onClick:r,theme:n={},disabled:o=!1,...i})=>{const s=K(le().pagination,n);return b.jsx("button",{type:"button",className:V(o&&s.pages.selector.disabled,t),disabled:o,onClick:r,...i,children:e})};eh.displayName="Pagination.Navigation";const u1=({className:e,currentPage:t,layout:r="pagination",nextLabel:n="Next",onPageChange:o,previousLabel:i="Previous",renderPaginationButton:s=u=>b.jsx(Jf,{...u}),showIcons:a=!1,theme:l={},totalPages:c,...d})=>{const u=K(le().pagination,l),f=Math.min(Math.max(r==="pagination"?t+2:t+4,5),c),h=Math.max(1,f-4),g=()=>{o(Math.min(t+1,c))},p=()=>{o(Math.max(t-1,1))};return b.jsxs("nav",{className:V(u.base,e),...d,children:[r==="table"&&b.jsxs("div",{className:u.layout.table.base,children:["Showing ",b.jsx("span",{className:u.layout.table.span,children:h})," to ",b.jsx("span",{className:u.layout.table.span,children:f})," of ",b.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),b.jsxs("ul",{className:u.pages.base,children:[b.jsx("li",{children:b.jsxs(eh,{className:V(u.pages.previous.base,a&&u.pages.showIcon),onClick:p,disabled:t===1,children:[a&&b.jsx(kA,{"aria-hidden":!0,className:u.pages.previous.icon}),i]})}),r==="pagination"&&k9(h,f).map(m=>b.jsx("li",{"aria-current":m===t?"page":void 0,children:s({className:V(u.pages.selector.base,t===m&&u.pages.selector.active),active:m===t,onClick:()=>o(m),children:m})},m)),b.jsx("li",{children:b.jsxs(eh,{className:V(u.pages.next.base,a&&u.pages.showIcon),onClick:g,disabled:t===c,children:[n,a&&b.jsx(_A,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};u1.displayName="Pagination",Object.assign(u1,{Button:Jf});const _9=k.forwardRef(({className:e,theme:t={},...r},n)=>{const o=K(le().radio,t);return b.jsx("input",{ref:n,type:"radio",className:V(o.root.base,e),...r})});_9.displayName="Radio";const C9=k.forwardRef(({className:e,sizing:t="md",theme:r={},...n},o)=>{const i=K(le().rangeSlider,r);return b.jsx(b.Fragment,{children:b.jsx("div",{"data-testid":"flowbite-range-slider",className:V(i.root.base,e),children:b.jsx("div",{className:i.field.base,children:b.jsx("input",{ref:o,type:"range",className:V(i.field.input.base,i.field.input.sizes[t]),...n})})})})});C9.displayName="RangeSlider";const f1=({children:e,className:t,percentFilled:r=0,theme:n={},...o})=>{const i=K(le().ratingAdvanced,n);return b.jsxs("div",{className:V(i.base,t),...o,children:[b.jsx("span",{className:i.label,children:e}),b.jsx("div",{className:i.progress.base,children:b.jsx("div",{className:i.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${r}%`}})}),b.jsx("span",{className:i.progress.label,children:`${r}%`})]})},h1=k.createContext(void 0);function S9(){const e=k.useContext(h1);if(!e)throw new Error("useRatingContext should be used within the RatingContext provider!");return e}const g1=({className:e,filled:t=!0,starIcon:r=CA,theme:n={},...o})=>{const{theme:i,size:s="sm"}=S9(),a=K(i.star,n);return b.jsx(r,{"data-testid":"flowbite-rating-star",className:V(a.sizes[s],a[t?"filled":"empty"],e),...o})},p1=({children:e,className:t,size:r="sm",theme:n={},...o})=>{const i=K(le().rating,n);return b.jsx(h1.Provider,{value:{theme:i,size:r},children:b.jsx("div",{className:V(i.root.base,t),...o,children:e})})};p1.displayName="Rating",g1.displayName="Rating.Star",f1.displayName="Rating.Advanced",Object.assign(p1,{Star:g1,Advanced:f1});const E9=k.forwardRef(({addon:e,children:t,className:r,color:n="gray",helperText:o,icon:i,shadow:s,sizing:a="md",theme:l={},...c},d)=>{const u=K(le().select,l);return b.jsxs("div",{className:V(u.base,r),children:[e&&b.jsx("span",{className:u.addon,children:e}),b.jsxs("div",{className:u.field.base,children:[i&&b.jsx("div",{className:u.field.icon.base,children:b.jsx(i,{className:u.field.icon.svg})}),b.jsx("select",{className:V(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[e?"on":"off"],u.field.select.withShadow[s?"on":"off"]),...c,ref:d,children:t}),o&&b.jsx(Hs,{color:n,children:o})]})]})});E9.displayName="Select";const O9=({animation:e="duration-300",arrow:t=!0,children:r,className:n,content:o,placement:i="top",style:s="dark",theme:a,trigger:l="hover",minWidth:c,...d})=>{const u=k.useRef(null),[f,h]=k.useState(!1),g=zw({open:f,placement:i,arrowRef:u,setOpen:h}),{context:p,middlewareData:{arrow:{x:m,y:x}={}},refs:y,strategy:_,update:v,x:w,y:C}=g,M=l9(p),{getFloatingProps:N,getReferenceProps:O}=Fw({context:p,role:"tooltip",trigger:l,interactions:[M]});return k.useEffect(()=>{if(y.reference.current&&y.floating.current&&f)return Kx(y.reference.current,y.floating.current,v)},[f,y.floating,y.reference,v]),b.jsxs(b.Fragment,{children:[b.jsx("div",{ref:y.setReference,className:a.target,"data-testid":"flowbite-tooltip-target",...O(),children:r}),b.jsxs("div",{ref:y.setFloating,"data-testid":"flowbite-tooltip",...N({className:V(a.base,e&&`${a.animation} ${e}`,!f&&a.hidden,a.style[s],n),style:{position:_,top:C??" ",left:w??" ",minWidth:c},...d}),children:[b.jsx("div",{className:a.content,children:o}),t&&b.jsx("div",{className:V(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:x??" ",left:m??" ",right:" ",bottom:" ",[m9({placement:g.placement})]:a.arrow.placement},children:" "})]})]})},th=({animation:e="duration-300",arrow:t=!0,children:r,className:n,content:o,placement:i="top",style:s="dark",theme:a={},trigger:l="hover",...c})=>{const d=K(le().tooltip,a);return b.jsx(O9,{animation:e,arrow:t,content:o,placement:i,style:s,theme:d,trigger:l,className:n,...c,children:r})};th.displayName="Tooltip";const b1=k.createContext(void 0);function si(){const e=k.useContext(b1);if(!e)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return e}const rh=k.createContext(void 0);function N9(){const e=k.useContext(rh);if(!e)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return e}const m1=({children:e,className:t,icon:r,label:n,chevronIcon:o=Xv,renderChevronIcon:i,open:s=!1,theme:a={},...l})=>{const c=k.useId(),[d,u]=k.useState(s),{theme:f,isCollapsed:h}=si(),g=K(f.collapse,a);return k.useEffect(()=>u(s),[s]),b.jsxs(({children:p})=>b.jsx("li",{children:h&&!d?b.jsx(th,{content:n,placement:"right",children:p}):p}),{children:[b.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:n,type:"button",className:V(g.button,t),...l,children:[r&&b.jsx(r,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:V(g.icon.base,g.icon.open[d?"on":"off"])}),h?b.jsx("span",{className:"sr-only",children:n}):b.jsxs(b.Fragment,{children:[b.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:g.label.base,children:n}),i?i(g,d):b.jsx(o,{"aria-hidden":!0,className:V(g.label.icon.base,g.label.icon.open[d?"on":"off"])})]})]}),b.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:g.list,children:b.jsx(rh.Provider,{value:{isInsideCollapse:!0},children:e})})]})};m1.displayName="Sidebar.Collapse";const y1=({children:e,color:t="info",className:r,theme:n={},...o})=>{const{theme:i,isCollapsed:s}=si(),a=K(i.cta,n);return b.jsx("div",{"data-testid":"sidebar-cta",hidden:s,className:V(a.base,a.color[t],r),...o,children:e})};y1.displayName="Sidebar.CTA";const M9=({id:e,theme:t,isCollapsed:r,tooltipChildren:n,children:o,...i})=>b.jsx("li",{...i,children:r?b.jsx(th,{content:b.jsx(v1,{id:e,theme:t,children:n}),placement:"right",children:o}):o}),v1=({id:e,theme:t,children:r})=>b.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${e}`,className:V(t.content.base),children:r}),x1=k.forwardRef(({active:e,as:t="a",children:r,className:n,icon:o,label:i,labelColor:s="info",theme:a={},...l},c)=>{var d,u,f,h;const g=k.useId(),{theme:p,isCollapsed:m}=si(),{isInsideCollapse:x}=N9(),y=K(p.item,a);return b.jsx(M9,{theme:y,className:y.listItem,id:g,isCollapsed:m,tooltipChildren:r,children:b.jsxs(t,{"aria-labelledby":`flowbite-sidebar-item-${g}`,ref:c,className:V(y.base,e&&y.active,!m&&x&&((d=y.collapsed)==null?void 0:d.insideCollapse),n),...l,children:[o&&b.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:V((u=y.icon)==null?void 0:u.base,e&&((f=y.icon)==null?void 0:f.active))}),m&&!o&&b.jsx("span",{className:(h=y.collapsed)==null?void 0:h.noIcon,children:r.charAt(0).toLocaleUpperCase()??"?"}),!m&&b.jsx(v1,{id:g,theme:y,children:r}),!m&&i&&b.jsx(hx,{color:s,"data-testid":"flowbite-sidebar-label",hidden:m,className:y.label,children:i})]})})});x1.displayName="Sidebar.Item";const w1=({children:e,className:t,theme:r={},...n})=>{const{theme:o}=si(),i=K(o.itemGroup,r);return b.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:V(i.base,t),...n,children:b.jsx(rh.Provider,{value:{isInsideCollapse:!1},children:e})})};w1.displayName="Sidebar.ItemGroup";const k1=({children:e,className:t,theme:r={},...n})=>{const{theme:o}=si(),i=K(o.items,r);return b.jsx("div",{className:V(i.base,t),"data-testid":"flowbite-sidebar-items",...n,children:e})};k1.displayName="Sidebar.Items";const _1=({children:e,className:t,href:r,img:n,imgAlt:o="",theme:i={},...s})=>{const a=k.useId(),{theme:l,isCollapsed:c}=si(),d=K(l.logo,i);return b.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${a}`,href:r,className:V(d.base,t),...s,children:[b.jsx("img",{alt:o,src:n,className:d.img}),b.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${a}`,children:e})]})};_1.displayName="Sidebar.Logo";const C1=({children:e,as:t="nav",collapseBehavior:r="collapse",collapsed:n=!1,theme:o={},className:i,...s})=>{const a=K(le().sidebar,o);return b.jsx(b1.Provider,{value:{theme:a,isCollapsed:n},children:b.jsx(t,{"aria-label":"Sidebar",hidden:n&&r==="hide",className:V(a.root.base,a.root.collapsed[n?"on":"off"],i),...s,children:b.jsx("div",{className:a.root.inner,children:e})})})};C1.displayName="Sidebar",Object.assign(C1,{Collapse:m1,CTA:y1,Item:x1,Items:k1,ItemGroup:w1,Logo:_1});const S1=k.createContext(void 0);function T9(){const e=k.useContext(S1);if(!e)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return e}const E1=k.createContext(void 0);function nh(){const e=k.useContext(E1);if(!e)throw new Error("useTableContext should be used within the TableContext provider!");return e}const O1=k.forwardRef(({children:e,className:t,theme:r={},...n},o)=>{const{theme:i}=nh(),s=K(i.body,r);return b.jsx(S1.Provider,{value:{theme:s},children:b.jsx("tbody",{className:V(s.base,t),ref:o,...n,children:e})})});O1.displayName="Table.Body";const N1=k.forwardRef(({children:e,className:t,theme:r={},...n},o)=>{const{theme:i}=T9(),s=K(i.cell,r);return b.jsx("td",{className:V(s.base,t),ref:o,...n,children:e})});N1.displayName="Table.Cell";const M1=k.createContext(void 0);function D9(){const e=k.useContext(M1);if(!e)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return e}const T1=k.forwardRef(({children:e,className:t,theme:r={},...n},o)=>{const{theme:i}=nh(),s=K(i.head,r);return b.jsx(M1.Provider,{value:{theme:s},children:b.jsx("thead",{className:V(s.base,t),ref:o,...n,children:b.jsx("tr",{children:e})})})});T1.displayName="Table.Head";const D1=k.forwardRef(({children:e,className:t,theme:r={},...n},o)=>{const{theme:i}=D9(),s=K(i.cell,r);return b.jsx("th",{className:V(s.base,t),ref:o,...n,children:e})});D1.displayName="Table.HeadCell";const P1=k.forwardRef(({children:e,className:t,theme:r={},...n},o)=>{const{theme:i,hoverable:s,striped:a}=nh(),l=K(i.row,r);return b.jsx("tr",{ref:o,"data-testid":"table-row-element",className:V(l.base,a&&l.striped,s&&l.hovered,t),...n,children:e})});P1.displayName="Table.Row";const I1=k.forwardRef(({children:e,className:t,striped:r,hoverable:n,theme:o={},...i},s)=>{const a=K(le().table,o);return b.jsx("div",{"data-testid":"table-element",className:V(a.root.wrapper),children:b.jsxs(E1.Provider,{value:{theme:a,striped:r,hoverable:n},children:[b.jsx("div",{className:V(a.root.shadow,t)}),b.jsx("table",{className:V(a.root.base,t),...i,ref:s,children:e})]})})});I1.displayName="Table",Object.assign(I1,{Head:T1,Body:O1,Row:P1,Cell:N1,HeadCell:D1});const A1=({children:e,className:t})=>b.jsx("div",{className:t,children:e});A1.displayName="Tabs.Item";const L1=k.forwardRef(({children:e,className:t,onActiveTabChange:r,style:n="default",theme:o={},...i},s)=>{const a=K(le().tabs,o),l=k.useId(),c=k.useMemo(()=>k.Children.map(k.Children.toArray(e),({props:v})=>v),[e]),d=k.useRef([]),[u,f]=k.useState(Math.max(0,c.findIndex(v=>v.active))),[h,g]=k.useState(-1),p=v=>{f(v),r&&r(v)},m=({target:v})=>{p(v),g(v)},x=({event:v,target:w})=>{v.key==="ArrowLeft"&&g(Math.max(0,h-1)),v.key==="ArrowRight"&&g(Math.min(c.length-1,h+1)),v.key==="Enter"&&(p(w),g(w))},y=a.tablist.tabitem.styles[n],_=a.tabitemcontainer.styles[n];return k.useEffect(()=>{var v;(v=d.current[h])==null||v.focus()},[h]),k.useImperativeHandle(s,()=>({setActiveTab:p})),b.jsxs("div",{className:V(a.base,t),children:[b.jsx("div",{"aria-label":"Tabs",role:"tablist",className:V(a.tablist.base,a.tablist.styles[n],t),...i,children:c.map((v,w)=>b.jsxs("button",{type:"button","aria-controls":`${l}-tabpanel-${w}`,"aria-selected":w===u,className:V(a.tablist.tabitem.base,y.base,w===u&&y.active.on,w!==u&&!v.disabled&&y.active.off),disabled:v.disabled,id:`${l}-tab-${w}`,onClick:()=>m({target:w}),onKeyDown:C=>x({event:C,target:w}),ref:C=>d.current[w]=C,role:"tab",tabIndex:w===h?0:-1,style:{zIndex:w===h?2:1},children:[v.icon&&b.jsx(v.icon,{className:a.tablist.tabitem.icon}),v.title]},w))}),b.jsx("div",{className:V(a.tabitemcontainer.base,_),children:c.map((v,w)=>b.jsx("div",{"aria-labelledby":`${l}-tab-${w}`,className:a.tabpanel,hidden:w!==u,id:`${l}-tabpanel-${w}`,role:"tabpanel",tabIndex:0,children:v.children},w))})]})});L1.displayName="Tabs",Object.assign(L1,{Item:A1});const P9=k.forwardRef(({className:e,color:t="gray",helperText:r,shadow:n,theme:o={},...i},s)=>{const a=K(le().textarea,o);return b.jsxs(b.Fragment,{children:[b.jsx("textarea",{ref:s,className:V(a.base,a.colors[t],a.withShadow[n?"on":"off"],e),...i}),r&&b.jsx(Hs,{color:t,children:r})]})});P9.displayName="Textarea";const z1=k.createContext(void 0);function oh(){const e=k.useContext(z1);if(!e)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return e}const F1=({children:e,className:t,theme:r={},...n})=>{const{theme:o}=oh(),i=K(o.body,r);return b.jsx("div",{className:V(i.base,t),...n,children:e})},j1=k.createContext(void 0);function ih(){const e=k.useContext(j1);if(!e)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return e}const B1=k.createContext(void 0);function W1(){const e=k.useContext(B1);if(!e)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return e}const H1=({children:e,className:t,theme:r={},...n})=>{const{horizontal:o}=ih(),{theme:i}=W1(),s=K(i.content,r);return b.jsx(z1.Provider,{value:{theme:s},children:b.jsx("div",{"data-testid":"timeline-content",className:V(o&&s.root.base,t),...n,children:e})})},$1=({children:e,className:t,theme:r={},...n})=>{const{theme:o,horizontal:i}=ih(),s=K(o.item,r);return b.jsx(B1.Provider,{value:{theme:s},children:b.jsx("li",{"data-testid":"timeline-item",className:V(i&&s.root.horizontal,!i&&s.root.vertical,t),...n,children:e})})},V1=({children:e,className:t,icon:r,theme:n={},...o})=>{const{horizontal:i}=ih(),{theme:s}=W1(),a=K(s.point,n);return b.jsxs("div",{"data-testid":"timeline-point",className:V(i&&a.horizontal,!i&&a.vertical,t),...o,children:[e,r?b.jsx("span",{className:V(a.marker.icon.wrapper),children:b.jsx(r,{"aria-hidden":!0,className:V(a.marker.icon.base)})}):b.jsx("div",{className:V(i&&a.marker.base.horizontal,!i&&a.marker.base.vertical)}),i&&b.jsx("div",{className:V(a.line)})]})},Y1=({children:e,className:t,theme:r={},...n})=>{const{theme:o}=oh(),i=K(o.time,r);return b.jsx("time",{className:V(i.base,t),...n,children:e})},U1=({as:e="h3",children:t,className:r,theme:n={},...o})=>{const{theme:i}=oh(),s=K(i.title,n);return b.jsx(e,{className:V(s.base,r),...o,children:t})},R1=({children:e,className:t,horizontal:r,theme:n={},...o})=>{const i=K(le().timeline,n);return b.jsx(j1.Provider,{value:{theme:i,horizontal:r},children:b.jsx("ol",{"data-testid":"timeline-component",className:V(r&&i.root.direction.horizontal,!r&&i.root.direction.vertical,t),...o,children:e})})};R1.displayName="Timeline",$1.displayName="Timeline.Item",V1.displayName="Timeline.Point",H1.displayName="Timeline.Content",Y1.displayName="Timeline.Time",U1.displayName="Timeline.Title",F1.displayName="Timeline.Body",Object.assign(R1,{Item:$1,Point:V1,Content:H1,Time:Y1,Title:U1,Body:F1});const q1=k.createContext(void 0);function I9(){const e=k.useContext(q1);if(!e)throw new Error("useToastContext should be used within the ToastContext provider!");return e}const X1=({className:e,onClick:t,theme:r={},xIcon:n=SA,onDismiss:o,...i})=>{const{theme:s,duration:a,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=I9(),f=K(s.toggle,r);return b.jsx("button",{"aria-label":"Close",onClick:h=>{if(t&&t(h),o){o();return}d(!l),setTimeout(()=>u(!c),a)},type:"button",className:V(f.base,e),...i,children:b.jsx(n,{"aria-hidden":!0,className:f.icon})})},A9={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},G1=({children:e,className:t,duration:r=300,theme:n={},...o})=>{const[i,s]=k.useState(!1),[a,l]=k.useState(!1),c=K(le().toast,n);return a?null:b.jsx(q1.Provider,{value:{theme:c,duration:r,isClosed:i,isRemoved:a,setIsClosed:s,setIsRemoved:l},children:b.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:V(c.root.base,A9[r],i&&c.root.closed,t),...o,children:e})})};G1.displayName="Toast",X1.displayName="Toast.Toggle",Object.assign(G1,{Toggle:X1});const L9=k.forwardRef(({checked:e,className:t,color:r="blue",sizing:n="md",disabled:o,label:i,name:s,onChange:a,theme:l={},...c},d)=>{const u=k.useId(),f=K(le().toggleSwitch,l),h=()=>a(!e),g=()=>{h()},p=m=>{m.code=="Enter"&&m.preventDefault()};return b.jsxs(b.Fragment,{children:[s&&e?b.jsx("input",{ref:d,checked:e,hidden:!0,name:s,readOnly:!0,type:"checkbox",className:"sr-only"}):null,b.jsxs("button",{"aria-checked":e,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:o,id:`${u}-flowbite-toggleswitch`,onClick:g,onKeyDown:p,role:"switch",tabIndex:0,type:"button",className:V(f.root.base,f.root.active[o?"off":"on"],t),...c,children:[b.jsx("div",{"data-testid":"flowbite-toggleswitch-toggle",className:V(f.toggle.base,f.toggle.checked[e?"on":"off"],e&&f.toggle.checked.color[r],f.toggle.sizes[n])}),i!=null&&i.length?b.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:f.root.label,children:i}):null]})]})});L9.displayName="ToggleSwitch";const z9=({logo:e,menuItems:t,campaignCards:r=[],onLogout:n,defaultCollapsed:o=!0,backgroundColor:i="#483FFF",textColor:s="#483FFF",className:a=""})=>{const[l,c]=k.useState(o),[d,u]=k.useState(null),f=()=>{d||c(!1)},h=()=>{d||c(!0)},g=m=>{m.action?m.action():m.href&&(m.target==="_blank"?window.open(m.href,"_blank"):window.location.href=m.href)},p=m=>{m.action?m.action():m.href&&(m.target==="_blank"?window.open(m.href,"_blank"):window.location.href=m.href)};return b.jsx("div",{className:`fixed left-0 top-0 z-40 h-full ${a}`,children:b.jsxs("div",{className:"flex flex-col",onMouseEnter:f,onMouseLeave:h,children:[b.jsxs(yN,{collapsed:l,rootStyles:{[`.${qe.container}`]:{backgroundColor:i,color:s,height:"100vh",display:"flex",flexDirection:"column"}},children:[b.jsx("div",{className:"mb-2 mt-5",children:b.jsx("a",{href:"/",children:b.jsx(Nb,{classIm:"mx-3",src:e.src,alt:e.alt,width:e.width,height:e.height})})}),b.jsx(wN,{children:t.map(m=>b.jsx(V4,{icon:m.icon,onClick:()=>g(m),className:"mx-3 my-1 mb-2 rounded-md bg-white hover:bg-opacity-90",rootStyles:{button:{width:l?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:l?"0 0.25rem":"0 0.5rem",color:s,"&:hover":{color:s}}},children:m.label},m.id))}),n&&b.jsx("div",{className:"mt-auto w-full cursor-pointer self-end p-4",children:b.jsx("div",{className:"flex justify-center rounded-md bg-white p-2",onClick:n,children:b.jsx("button",{className:"text-3xl",style:{color:s},children:b.jsx(qE,{})})})})]}),r.length>0&&b.jsx(_6,{width:"40%",isOpen:d==="campaigns",onClose:()=>u(null),children:b.jsxs("div",{className:"flex flex-col px-10 pb-5",children:[b.jsx("h2",{className:"mb-3 text-center font-bold",children:"Selecciona el tipo de campaña que quieres crear"}),b.jsx("div",{className:"flex",children:r.map(m=>b.jsx("div",{className:"flex w-3/6 p-2",onClick:()=>p(m),children:b.jsx(qv,{image:m.image,title:m.title,description:m.description})},m.id))})]})})]})})};function F9(e){return Ve({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:[]}]})(e)}function j9(e){return Ve({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:[]}]})(e)}function B9(e){return Ve({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:[]}]})(e)}function K1(e){return Ve({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:[]}]})(e)}function Z1(e){return Ve({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:[]}]})(e)}function Q1(e){return Ve({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:[]}]})(e)}function W9(e){return Ve({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:[]}]})(e)}function J1(e){return Ve({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M3 3a1 1 0 000 2h11a1 1 0 100-2H3zM3 7a1 1 0 000 2h5a1 1 0 000-2H3zM3 11a1 1 0 100 2h4a1 1 0 100-2H3zM13 16a1 1 0 102 0v-5.586l1.293 1.293a1 1 0 001.414-1.414l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 101.414 1.414L13 10.414V16z"},child:[]}]})(e)}function H9(e){return Ve({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M3 3a1 1 0 000 2h11a1 1 0 100-2H3zM3 7a1 1 0 000 2h7a1 1 0 100-2H3zM3 11a1 1 0 100 2h4a1 1 0 100-2H3zM15 8a1 1 0 10-2 0v5.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L15 13.586V8z"},child:[]}]})(e)}function $9(e){return Ve({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:[]}]})(e)}function V9(e){return Ve({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:[]}]})(e)}function ek(e){return Ve({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:[]}]})(e)}function Y9(e){return Ve({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:[]}]})(e)}function tk(e){return Ve({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:[]}]})(e)}function U9(e){return Ve({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:[]}]})(e)}function R9(e){return Ve({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:[]}]})(e)}const sh="-";function q9(e){const t=G9(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;function o(s){const a=s.split(sh);return a[0]===""&&a.length!==1&&a.shift(),rk(a,t)||X9(s)}function i(s,a){const l=r[s]||[];return a&&n[s]?[...l,...n[s]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function rk(e,t){var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?rk(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(sh);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId}const nk=/^\[(.+)\]$/;function X9(e){if(nk.test(e)){const t=nk.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function G9(e){const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Z9(Object.entries(e.classGroups),r).forEach(([i,s])=>{ah(s,n,i,t)}),n}function ah(e,t,r,n){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:ok(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(K9(o)){ah(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{ah(s,ok(t,i),r,n)})})}function ok(e,t){let r=e;return t.split(sh).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function K9(e){return e.isThemeGetter}function Z9(e,t){return t?e.map(([r,n])=>{const o=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[r,o]}):e}function Q9(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;function o(i,s){r.set(i,s),t++,t>e&&(t=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 ik="!";function J9(e){const t=e.separator,r=t.length===1,n=t[0],o=t.length;return function(s){const a=[];let l=0,c=0,d;for(let p=0;p<s.length;p++){let m=s[p];if(l===0){if(m===n&&(r||s.slice(p,p+o)===t)){a.push(s.slice(c,p)),c=p+o;continue}if(m==="/"){d=p;continue}}m==="["?l++:m==="]"&&l--}const u=a.length===0?s:s.substring(c),f=u.startsWith(ik),h=f?u.substring(1):u,g=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:g}}}function e8(e){if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t}function t8(e){return{cache:Q9(e.cacheSize),splitModifiers:J9(e),...q9(e)}}const r8=/\s+/;function n8(e,t){const{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(r8).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=e8(a).join(":");return{isTailwindClass:!0,modifierId:l?h+ik: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 o8(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=sk(t))&&(n&&(n+=" "),n+=r);return n}function sk(e){if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=sk(e[n]))&&(r&&(r+=" "),r+=t);return r}function i8(e,...t){let r,n,o,i=s;function s(l){const c=t.reduce((d,u)=>u(d),e());return r=t8(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=n8(l,r);return o(l,d),d}return function(){return i(o8.apply(null,arguments))}}function He(e){const t=r=>r[e]||[];return t.isThemeGetter=!0,t}const ak=/^\[(?:([a-z-]+):)?(.+)\]$/i,s8=/^\d+\/\d+$/,a8=new Set(["px","full","screen"]),l8=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,c8=/\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$/,d8=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,u8=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,f8=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function ln(e){return vo(e)||a8.has(e)||s8.test(e)}function Dn(e){return ai(e,"length",x8)}function vo(e){return!!e&&!Number.isNaN(Number(e))}function zc(e){return ai(e,"number",vo)}function Zs(e){return!!e&&Number.isInteger(Number(e))}function h8(e){return e.endsWith("%")&&vo(e.slice(0,-1))}function ue(e){return ak.test(e)}function Pn(e){return l8.test(e)}const g8=new Set(["length","size","percentage"]);function p8(e){return ai(e,g8,lk)}function b8(e){return ai(e,"position",lk)}const m8=new Set(["image","url"]);function y8(e){return ai(e,m8,k8)}function v8(e){return ai(e,"",w8)}function Qs(){return!0}function ai(e,t,r){const n=ak.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1}function x8(e){return c8.test(e)&&!d8.test(e)}function lk(){return!1}function w8(e){return u8.test(e)}function k8(e){return f8.test(e)}function _8(){const e=He("colors"),t=He("spacing"),r=He("blur"),n=He("brightness"),o=He("borderColor"),i=He("borderRadius"),s=He("borderSpacing"),a=He("borderWidth"),l=He("contrast"),c=He("grayscale"),d=He("hueRotate"),u=He("invert"),f=He("gap"),h=He("gradientColorStops"),g=He("gradientColorStopPositions"),p=He("inset"),m=He("margin"),x=He("opacity"),y=He("padding"),_=He("saturate"),v=He("scale"),w=He("sepia"),C=He("skew"),M=He("space"),N=He("translate"),O=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",ue,t],T=()=>[ue,t],P=()=>["",ln,Dn],D=()=>["auto",vo,ue],S=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],A=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],L=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",ue],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[vo,zc],H=()=>[vo,ue];return{cacheSize:500,separator:":",theme:{colors:[Qs],spacing:[ln,Dn],blur:["none","",Pn,ue],brightness:W(),borderColor:[e],borderRadius:["none","","full",Pn,ue],borderSpacing:T(),borderWidth:P(),contrast:W(),grayscale:j(),hueRotate:H(),invert:j(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[h8,Dn],inset:z(),margin:z(),opacity:W(),padding:T(),saturate:W(),scale:W(),sepia:j(),skew:H(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",ue]}],container:["container"],columns:[{columns:[Pn]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"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:[...S(),ue]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Zs,ue]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ue]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",Zs,ue]}],"grid-cols":[{"grid-cols":[Qs]}],"col-start-end":[{col:["auto",{span:["full",Zs,ue]},ue]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[Qs]}],"row-start-end":[{row:["auto",{span:[Zs,ue]},ue]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ue]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...L()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...L(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...L(),"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:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ue,t]}],"min-w":[{"min-w":[ue,t,"min","max","fit"]}],"max-w":[{"max-w":[ue,t,"none","full","min","max","fit","prose",{screen:[Pn]},Pn]}],h:[{h:[ue,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ue,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Pn,Dn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",zc]}],"font-family":[{font:[Qs]}],"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",ue]}],"line-clamp":[{"line-clamp":["none",vo,zc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ln,ue]}],"list-image":[{"list-image":["none",ue]}],"list-style-type":[{list:["none","disc","decimal",ue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ln,Dn]}],"underline-offset":[{"underline-offset":["auto",ln,ue]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue]}],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",ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...S(),b8]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",p8]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},y8]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...A(),"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":[x]}],"divide-style":[{divide:A()}],"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:["",...A()]}],"outline-offset":[{"outline-offset":[ln,ue]}],"outline-w":[{outline:[ln,Dn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[ln,Dn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Pn,v8]}],"shadow-color":[{shadow:[Qs]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":F()}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Pn,ue]}],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":[x]}],"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",ue]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",ue]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",ue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[Zs,ue]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ue]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ue]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",ue]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ln,Dn,zc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-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 $=i8(_8);function xo(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function Js(e){if(!xo(e))return e;const t={};for(const r in e)t[r]=Js(e[r]);return t}function G(e,t){if(xo(t)&&Object.keys(t).length===0)return Js({...e,...t});const r={...e,...t};if(xo(t)&&xo(e))for(const n in t)xo(t[n])&&n in e&&xo(e[n])?r[n]=G(e[n],t[n]):r[n]=xo(t[n])?Js(t[n]):t[n];return r}function CB(e){return e}const C8={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"}}},S8={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"},E8={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"}},O8={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"}}},N8={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},M8={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"}},T8={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"}},D8={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"}},P8={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"}}},I8={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"}},A8={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"}}},L8={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"}},z8={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"}}}}},F8={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"},j8={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"}}}},B8={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"}},W8={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"}},H8={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"}}},$8={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"}},V8={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"}}},Y8={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"}},U8={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"}}},R8={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"}},q8={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"}},X8={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"}}},G8={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"}},K8={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"}},Z8={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"}},Q8={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"}}}},J8={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"}}},ez={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"}},tz={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"}}}},rz={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"}},nz={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"}},oz={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"}},iz={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"},sz={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:""}},az={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:""}}}},lz={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:""}}},cz={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"}},dz={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"}}},uz={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"},fz={theme:Js({accordion:C8,alert:S8,avatar:E8,badge:O8,blockquote:N8,breadcrumb:M8,button:T8,buttonGroup:D8,card:P8,carousel:I8,checkbox:A8,datepicker:z8,darkThemeToggle:L8,dropdown:F8,fileInput:j8,floatingLabel:B8,footer:W8,helperText:H8,kbd:$8,label:V8,listGroup:U8,list:Y8,modal:R8,navbar:q8,pagination:X8,popover:G8,progress:K8,radio:Z8,rangeSlider:Q8,rating:J8,ratingAdvanced:ez,select:tz,textInput:az,textarea:sz,toggleSwitch:dz,sidebar:rz,spinner:nz,table:oz,tabs:iz,timeline:lz,toast:cz,tooltip:uz})};function se(){return Js(fz.theme)}const ck=k.createContext(void 0);function dk(){const e=k.useContext(ck);if(!e)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return e}const uk=({children:e,className:t,theme:r={},...n})=>{const{isOpen:o}=dk(),i=G(se().accordion.content,r);return b.jsx("div",{className:$(i.base,t),"data-testid":"flowbite-accordion-content",hidden:!o,...n,children:e})},fk=({children:e,...t})=>{const{alwaysOpen:r}=t,[n,o]=k.useState(t.isOpen),i=r?{...t,isOpen:n,setOpen:()=>o(!n)}:t;return b.jsx(ck.Provider,{value:i,children:e})},hk=({as:e="h2",children:t,className:r,theme:n={},...o})=>{const{arrowIcon:i,flush:s,isOpen:a,setOpen:l}=dk(),c=()=>typeof l<"u"&&l(),d=G(se().accordion.title,n);return b.jsxs("button",{className:$(d.base,d.flush[s?"on":"off"],d.open[a?"on":"off"],r),onClick:c,type:"button",...o,children:[b.jsx(e,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:t}),i&&b.jsx(i,{"aria-hidden":!0,className:$(d.arrow.base,d.arrow.open[a?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},gk=({alwaysOpen:e=!1,arrowIcon:t=K1,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:e,arrowIcon:t,flush:n,isOpen:l===h,setOpen:()=>c(l===h?-1:h)})),[e,t,r,n,l]),u=G(se().accordion.root,s);return b.jsx("div",{className:$(u.base,u.flush[n?"on":"off"],i),"data-testid":"flowbite-accordion",...a,children:d})};gk.displayName="Accordion",fk.displayName="Accordion.Panel",hk.displayName="Accordion.Title",uk.displayName="Accordion.Content",Object.assign(gk,{Panel:fk,Title:hk,Content:uk});const pk=({children:e,className:t,theme:r={},...n})=>{const o=G(se().avatar.group,r);return b.jsx("div",{"data-testid":"avatar-group-element",className:$(o.base,t),...n,children:e})};pk.displayName="Avatar.Group";const bk=({className:e,href:t,theme:r={},total:n,...o})=>{const i=G(se().avatar.groupCounter,r);return b.jsxs("a",{href:t,className:$(i.base,e),...o,children:["+",n]})};bk.displayName="Avatar.GroupCounter";const mk=({alt:e="",bordered:t=!1,children:r,className:n,color:o="light",img:i,placeholderInitials:s="",rounded:a=!1,size:l="md",stacked:c=!1,status:d,statusPosition:u="top-left",theme:f={},...h})=>{const g=G(se().avatar,f),p=$(g.root.img.base,t&&g.root.bordered,t&&g.root.color[o],a&&g.root.rounded,c&&g.root.stacked,g.root.img.on,g.root.size[l]),m={className:$(p,g.root.img.on),"data-testid":"flowbite-avatar-img"};return b.jsxs("div",{className:$(g.root.base,n),"data-testid":"flowbite-avatar",...h,children:[b.jsxs("div",{className:"relative",children:[i?typeof i=="string"?b.jsx("img",{alt:e,src:i,...m}):i({alt:e,...m}):s?b.jsx("div",{className:$(g.root.img.off,g.root.initials.base,c&&g.root.stacked,t&&g.root.bordered,t&&g.root.color[o],g.root.size[l],a&&g.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:b.jsx("span",{className:$(g.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:s})}):b.jsx("div",{className:$(p,g.root.img.off),"data-testid":"flowbite-avatar-img",children:b.jsx("svg",{className:g.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:b.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&&b.jsx("span",{"data-testid":"flowbite-avatar-status",className:$(g.root.status.base,g.root.status[d],g.root.statusPosition[u])})]}),r&&b.jsx("div",{children:r})]})};mk.displayName="Avatar",Object.assign(mk,{Group:pk,Counter:bk});const yk=({children:e,color:t="info",href:r,icon:n,size:o="xs",className:i,theme:s={},...a})=>{const l=G(se().badge,s),c=()=>b.jsxs("span",{className:$(l.root.base,l.root.color[t],l.root.size[o],l.icon[n?"on":"off"],i),"data-testid":"flowbite-badge",...a,children:[n&&b.jsx(n,{"aria-hidden":!0,className:l.icon.size[o],"data-testid":"flowbite-badge-icon"}),e&&b.jsx("span",{children:e})]});return r?b.jsx("a",{className:l.root.href,href:r,children:b.jsx(c,{})}):b.jsx(c,{})};yk.displayName="Badge";const vk=({className:e,color:t="info",light:r,size:n="md",theme:o={},...i})=>{const s=G(se().spinner,o);return b.jsx("span",{role:"status",...i,children:b.jsxs("svg",{fill:"none",viewBox:"0 0 100 101",className:$(s.base,s.color[t],s.light[r?"on":"off"].base,s.light[r?"on":"off"].color[t],s.size[n],e),children:[b.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"}),b.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"})]})})};vk.displayName="Spinner";const lh=k.forwardRef(({children:e,as:t,href:r,type:n="button",...o},i)=>{const s=t||(r?"a":"button");return k.createElement(s,{ref:i,href:r,type:n,...o},e)});lh.displayName="ButtonBaseComponent";const xk=(e,t,r)=>k.Children.map(e,(n,o)=>k.isValidElement(n)?n.props.children?k.cloneElement(n,{...n.props,children:xk(n.props.children,t,r),positionInGroup:wk(o,k.Children.count(e))}):k.cloneElement(n,{outline:t,pill:r,positionInGroup:wk(o,k.Children.count(e))}):n),wk=(e,t)=>e===0?"start":e===t-1?"end":"middle",kk=({children:e,className:t,outline:r,pill:n,theme:o={},...i})=>{const s=k.useMemo(()=>xk(e,r,n),[e,r,n]),a=G(se().buttonGroup,o);return b.jsx("div",{className:$(a.base,t),role:"group",...i,children:s})};kk.displayName="Button.Group";const _k=k.forwardRef(({children:e,className:t,color:r="info",disabled:n,fullSized:o,isProcessing:i=!1,processingLabel:s="Loading...",processingSpinner:a,gradientDuoTone:l,gradientMonochrome:c,label:d,outline:u=!1,pill:f=!1,positionInGroup:h="none",size:g="md",theme:p={},...m},x)=>{const{buttonGroup:y,button:_}=se(),v=G(_,p),w=m;return b.jsx(lh,{ref:x,disabled:n,className:$(v.base,n&&v.disabled,!l&&!c&&v.color[r],l&&!c&&v.gradientDuoTone[l],!l&&c&&v.gradient[c],u&&(v.outline.color[r]??v.outline.color.default),v.pill[f?"on":"off"],o&&v.fullSized,y.position[h],t),...w,children:b.jsx("span",{className:$(v.inner.base,v.outline[u?"on":"off"],v.outline.pill[u&&f?"on":"off"],v.size[g],u&&!v.outline.color[r]&&v.inner.outline,i&&v.isProcessing,i&&v.inner.isProcessingPadding[g],v.inner.position[h]),children:b.jsxs(b.Fragment,{children:[i&&b.jsx("span",{className:$(v.spinnerSlot,v.spinnerLeftPosition[g]),children:a||b.jsx(vk,{size:g})}),typeof e<"u"?e:b.jsx("span",{"data-testid":"flowbite-button-label",className:$(v.label),children:i?s:d})]})})})});_k.displayName="Button";const Ck=Object.assign(_k,{Group:kk}),Sk=({children:e,...t})=>{const r=n=>{const i=n.target.closest('[role="banner"]');i==null||i.remove()};return b.jsx(Ck,{onClick:r,...t,children:e})};Sk.displayName="Banner.CollapseButton";const Ek=({children:e,...t})=>b.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...t,children:e});Ek.displayName="Banner",Object.assign(Ek,{CollapseButton:Sk});const Ok=k.forwardRef(({children:e,className:t,href:r,icon:n,theme:o={},...i},s)=>{const a=typeof r<"u",l=a?"a":"span",c=G(se().breadcrumb.item,o);return b.jsxs("li",{className:$(c.base,t),...i,children:[b.jsx(tk,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),b.jsxs(l,{ref:s,className:c.href[a?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:r,children:[n&&b.jsx(n,{"aria-hidden":!0,className:c.icon}),e]})]})});Ok.displayName="Breadcrumb.Item";const Nk=({children:e,className:t,theme:r={},...n})=>{const o=G(se().breadcrumb.root,r);return b.jsx("nav",{"aria-label":"Breadcrumb",className:$(o.base,t),...n,children:b.jsx("ol",{className:o.list,children:e})})};Nk.displayName="Breadcrumb",Object.assign(Nk,{Item:Ok});function Mk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tk={exports:{}};/*!
|
|
481
967
|
Copyright (c) 2018 Jed Watson.
|
|
482
968
|
Licensed under the MIT License (MIT), see
|
|
483
969
|
http://jedwatson.github.io/classnames
|
|
484
|
-
*/(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})()})(wu);var yw=wu.exports;const vw=xu(yw);var Cs={exports:{}};function ku(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}Cs.exports.debounce=ku,Cs.exports=ku;var xw=Cs.exports;const ww=xu(xw);var kw=Object.defineProperty,_w=(t,e,r)=>e in t?kw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Me=(t,e,r)=>(_w(t,typeof e!="symbol"?e+"":e,r),r);const Cw=300,Sw=0;class Ew 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=ww(this.onEndScroll,Cw),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:vw(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(Ew,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[Sw]});const Ow=k.forwardRef(({className:t,color:e="default",theme:r={},...n},o)=>{const i=H(K().checkbox,r);return g.jsx("input",{ref:o,type:"checkbox",className:L(i.root.base,i.root.color[e],t),...n})});Ow.displayName="Checkbox";const Dn=({children:t,className:e,color:r="default",theme:n={},value:o,...i})=>{const s=H(K().helperText,n);return g.jsx("p",{className:L(s.root.base,s.root.colors[r],e),...i,children:o??t??""})};Dn.displayName="HelperText";const Ss=k.forwardRef(({addon:t,className:e,color:r="gray",helperText:n,icon:o,rightIcon:i,shadow:s,sizing:a="md",theme:l={},type:c="text",...d},u)=>{const f=H(K().textInput,l);return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:L(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:L(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(Dn,{color:r,children:n})]})});Ss.displayName="TextInput";const _u=k.createContext(void 0);function Uo(){const t=k.useContext(_u);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||{}),Cu=(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))(Cu||{});const In=(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},qo=(t,e)=>(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t.getTime()===e.getTime()),Tw=(t,e,r)=>(In(t,e,r)||(e&&t<e?t=e:r&&t>r&&(t=r)),t),Nw=(t,e)=>{const r=new Date(t.getFullYear(),t.getMonth(),1);let o=r.getDay()-e;return o<0&&(o+=7),Es(r,-o)},Mw=(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(Es(n,i)));return r},Es=(t,e)=>{const r=new Date(t);return r.setDate(r.getDate()+e),r},Pw=(t,e)=>{const r=new Date(t);return r.setMonth(r.getMonth()+e),r},Ir=(t,e)=>{const r=new Date(t);return r.setFullYear(r.getFullYear()+e),r},Ln=(t,e,r)=>{let n={day:"numeric",month:"long",year:"numeric"};return r&&(n=r),new Intl.DateTimeFormat(t,n).format(e)},Lr=(t,e)=>{const r=t.getFullYear();return Math.floor(r/e)*e},Aw=(t,e)=>{const r=t.getFullYear(),n=e+9;return r>=e&&r<=n},Dw=({theme:t={}})=>{const{theme:e,weekStart:r,minDate:n,maxDate:o,viewDate:i,selectedDate:s,changeSelectedDate:a,language:l}=Uo(),c=H(e.views.days,t),d=Mw(l,r),u=Nw(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=Es(u,h),b=Ln(l,p,{day:"numeric"}),m=qo(s,p),v=!In(p,n,o);return g.jsx("button",{disabled:v,type:"button",className:L(c.items.item.base,m&&c.items.item.selected,v&&c.items.item.disabled),onClick:()=>{v||a(p,!0)},children:b},h)})})]})},Iw=({theme:t={}})=>{const{theme:e,selectedDate:r,viewDate:n,setViewDate:o,setView:i}=Uo(),s=H(e.views.decades,t);return g.jsx("div",{className:s.items.base,children:[...Array(12)].map((a,l)=>{const d=Lr(n,100)-10+l*10,u=new Date(d,0,1),f=Ir(u,9),h=Aw(n,d),p=!In(n,u,f);return g.jsx("button",{disabled:p,type:"button",className:L(s.items.item.base,h&&s.items.item.selected,p&&s.items.item.disabled),onClick:()=>{p||(o(Ir(n,d-r.getFullYear())),i(ve.Years))},children:d},l)})})},Lw=({theme:t={}})=>{const{theme:e,minDate:r,maxDate:n,selectedDate:o,viewDate:i,language:s,setViewDate:a,setView:l}=Uo(),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=Ln(s,f,{month:"short"}),p=qo(o,f),b=!In(f,r,n);return g.jsx("button",{disabled:b,type:"button",className:L(c.items.item.base,p&&c.items.item.selected,b&&c.items.item.disabled),onClick:()=>{b||(a(f),l(ve.Days))},children:h},u)})})},Fw=({theme:t={}})=>{const{theme:e,selectedDate:r,minDate:n,maxDate:o,viewDate:i,setViewDate:s,setView:a}=Uo(),l=H(e.views.years,t);return g.jsx("div",{className:l.items.base,children:[...Array(12)].map((c,d)=>{const f=Lr(i,10)-1+d*1,h=new Date(i.getTime());h.setFullYear(f);const p=qo(r,h),b=!In(h,n,o);return g.jsx("button",{disabled:b,type:"button",className:L(l.items.item.base,p&&l.items.item.selected,b&&l.items.item.disabled),onClick:()=>{b||(s(h),a(ve.Months))},children:f},d)})})},zw=({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=Cu.Sunday,className:h,theme:p={},onSelectedDateChanged:b,...m},v)=>{const y=H(K().datepicker,p);l=Tw(l,c,d);const[C,x]=k.useState(e),[w,_]=k.useState(ve.Days),[O,N]=k.useState(l),[M,E]=k.useState(l),F=k.useRef(null),P=k.useRef(null),D=($,j)=>{N($),b&&b($),n&&w===ve.Days&&j==!0&&!r&&x(!1)},S=()=>{D(l,!0),l&&E(l)};k.useImperativeHandle(v,()=>({focus(){var $;($=F.current)==null||$.focus()},clear(){S()}}));const T=$=>{switch($){case ve.Decades:return g.jsx(Iw,{theme:y.views.decades});case ve.Years:return g.jsx(Fw,{theme:y.views.years});case ve.Months:return g.jsx(Lw,{theme:y.views.months});case ve.Days:default:return g.jsx(Dw,{theme:y.views.days})}},I=()=>{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`${Lr(M,100)} - ${Lr(M,100)+90}`;case ve.Years:return`${Lr(M,10)} - ${Lr(M,10)+9}`;case ve.Months:return Ln(u,M,{year:"numeric"});case ve.Days:default:return Ln(u,M,{month:"long",year:"numeric"})}},B=($,j,W)=>{switch($){case ve.Days:return new Date(Pw(j,W));case ve.Months:return new Date(Ir(j,W));case ve.Years:return new Date(Ir(j,W*10));case ve.Decades:return new Date(Ir(j,W*100));default:return new Date(Ir(j,W*10))}};return k.useEffect(()=>{const $=j=>{var Y,U;const W=(Y=P==null?void 0:P.current)==null?void 0:Y.contains(j.target),V=(U=F==null?void 0:F.current)==null?void 0:U.contains(j.target);!W&&!V&&x(!1)};return document.addEventListener("mousedown",$),()=>{document.removeEventListener("mousedown",$)}},[F,P,x]),g.jsx(_u.Provider,{value:{theme:y,language:u,minDate:c,maxDate:d,weekStart:f,isOpen:C,setIsOpen:x,view:w,setView:_,viewDate:M,setViewDate:E,selectedDate:O,setSelectedDate:N,changeSelectedDate:D},children:g.jsxs("div",{className:L(y.root.base,h),children:[!r&&g.jsx(Ss,{theme:y.root.input,icon:Yv,ref:F,onFocus:()=>{qo(M,O)||E(O),x(!0)},value:O&&Ln(u,O),readOnly:!0,...m}),(C||r)&&g.jsx("div",{ref:P,className:L(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:L(y.popup.header.selectors.button.base,y.popup.header.selectors.button.prev),onClick:()=>E(B(w,M,-1)),children:g.jsx(Vv,{})}),g.jsx("button",{type:"button",className:L(y.popup.header.selectors.button.base,y.popup.header.selectors.button.view),onClick:()=>_(I()),children:z()}),g.jsx("button",{type:"button",className:L(y.popup.header.selectors.button.base,y.popup.header.selectors.button.next),onClick:()=>E(B(w,M,1)),children:g.jsx(Rv,{})})]})]}),g.jsx("div",{className:y.popup.view.base,children:T(w)}),(o||s)&&g.jsxs("div",{className:y.popup.footer.base,children:[s&&g.jsx("button",{type:"button",className:L(y.popup.footer.button.base,y.popup.footer.button.today),onClick:()=>{const $=new Date;D($,!0),E($)},children:a}),o&&g.jsx("button",{type:"button",className:L(y.popup.footer.button.base,y.popup.footer.button.clear),onClick:()=>{D(l,!0),l&&E(l)},children:i})]})]})})]})})},Bw=k.forwardRef(zw);Bw.displayName="Datepicker";function Ko(){return typeof window<"u"}function gr(t){return Su(t)?(t.nodeName||"").toLowerCase():"#document"}function Je(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ct(t){var e;return(e=(Su(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Su(t){return Ko()?t instanceof Node||t instanceof Je(t).Node:!1}function pe(t){return Ko()?t instanceof Element||t instanceof Je(t).Element:!1}function Be(t){return Ko()?t instanceof HTMLElement||t instanceof Je(t).HTMLElement:!1}function Os(t){return!Ko()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Je(t).ShadowRoot}function Fn(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=dt(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(o)}function jw(t){return["table","td","th"].includes(gr(t))}function Go(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Ts(t){const e=Ns(),r=pe(t)?dt(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 $w(t){let e=Ft(t);for(;Be(e)&&!Kt(e);){if(Ts(e))return e;if(Go(e))return null;e=Ft(e)}return null}function Ns(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Kt(t){return["html","body","#document"].includes(gr(t))}function dt(t){return Je(t).getComputedStyle(t)}function Xo(t){return pe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ft(t){if(gr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Os(t)&&t.host||Ct(t);return Os(e)?e.host:e}function Eu(t){const e=Ft(t);return Kt(e)?t.ownerDocument?t.ownerDocument.body:t.body:Be(e)&&Fn(e)?e:Eu(e)}function Gt(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=Eu(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),s=Je(o);if(i){const a=Ms(s);return e.concat(s,s.visualViewport||[],Fn(o)?o:[],a&&r?Gt(a):[])}return e.concat(o,Gt(o,[],r))}function Ms(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function St(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&&Os(r)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}function Ps(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function Ou(){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 Tu(t){return t.mozInputSource===0&&t.isTrusted?!0:Is()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function As(t){return Hw()?!1:!Is()&&t.width===0&&t.height===0||Is()&&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 Ds(){return/apple/i.test(navigator.vendor)}function Is(){const t=/android/i;return t.test(Ps())||t.test(Ou())}function Nu(){return Ps().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Hw(){return Ou().includes("jsdom/")}function Zo(t,e){const r=["mouse","pen"];return e||r.push("",void 0),r.includes(t)}function Ww(t){return"nativeEvent"in t}function Vw(t){return t.matches("html,body")}function Ye(t){return(t==null?void 0:t.ownerDocument)||document}function Ls(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 Xt(t){return"composedPath"in t?t.composedPath()[0]:t.target}const Rw="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Fs(t){return Be(t)&&t.matches(Rw)}function je(t){t.preventDefault(),t.stopPropagation()}function Mu(t){return t?t.getAttribute("role")==="combobox"&&Fs(t):!1}const Yw=["top","right","bottom","left"],Pu=["start","end"],Au=Yw.reduce((t,e)=>t.concat(e,e+"-"+Pu[0],e+"-"+Pu[1]),[]),Fr=Math.min,pr=Math.max,Jo=Math.round,zr=Math.floor,Et=t=>({x:t,y:t}),Uw={left:"right",right:"left",bottom:"top",top:"bottom"},qw={start:"end",end:"start"};function zs(t,e,r){return pr(t,Fr(e,r))}function Br(t,e){return typeof t=="function"?t(e):t}function zt(t){return t.split("-")[0]}function Ot(t){return t.split("-")[1]}function Du(t){return t==="x"?"y":"x"}function Bs(t){return t==="y"?"height":"width"}function Qo(t){return["top","bottom"].includes(zt(t))?"y":"x"}function js(t){return Du(Qo(t))}function Iu(t,e,r){r===void 0&&(r=!1);const n=Ot(t),o=js(t),i=Bs(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=ti(s)),[s,ti(s)]}function Kw(t){const e=ti(t);return[ei(t),e,ei(e)]}function ei(t){return t.replace(/start|end/g,e=>qw[e])}function Gw(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 Xw(t,e,r,n){const o=Ot(t);let i=Gw(zt(t),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),e&&(i=i.concat(i.map(ei)))),i}function ti(t){return t.replace(/left|right|bottom|top/g,e=>Uw[e])}function Zw(t){return{top:0,right:0,bottom:0,left:0,...t}}function Lu(t){return typeof t!="number"?Zw(t):{top:t,right:t,bottom:t,left:t}}function ri(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 Fu(t,e,r){let{reference:n,floating:o}=t;const i=Qo(e),s=js(e),a=Bs(s),l=zt(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(Ot(e)){case"start":h[s]-=f*(r&&c?-1:1);break;case"end":h[s]+=f*(r&&c?-1:1);break}return h}const Jw=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}=Fu(c,n,l),f=n,h={},p=0;for(let b=0;b<a.length;b++){const{name:m,fn:v}=a[b],{x:y,y:C,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=C??u,h={...h,[m]:{...h[m],...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}=Fu(c,f,l)),b=-1)}return{x:d,y:u,placement:f,strategy:o,middlewareData:h}};async function $s(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}=Br(e,t),p=Lu(h),m=a[f?u==="floating"?"reference":"floating":u],v=ri(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(m)))==null||r?m:m.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,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},w=ri(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:C,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 Qw=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}=Br(t,e)||{};if(c==null)return{};const u=Lu(d),f={x:r,y:n},h=js(o),p=Bs(h),b=await s.getDimensions(c),m=h==="y",v=m?"top":"left",y=m?"bottom":"right",C=m?"clientHeight":"clientWidth",x=i.reference[p]+i.reference[h]-f[h]-i.floating[p],w=f[h]-i.reference[h],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let O=_?_[C]:0;(!O||!await(s.isElement==null?void 0:s.isElement(_)))&&(O=a.floating[C]||i.floating[p]);const N=x/2-w/2,M=O/2-b[p]/2-1,E=Fr(u[v],M),F=Fr(u[y],M),P=E,D=O-b[p]-F,S=O/2-b[p]/2+N,T=zs(P,S,D),I=!l.arrow&&Ot(o)!=null&&S!==T&&i.reference[p]/2-(S<P?E:F)-b[p]/2<0,z=I?S<P?S-P:S-D:0;return{[h]:f[h]+z,data:{[h]:T,centerOffset:S-T-z,...I&&{alignmentOffset:z}},reset:I}}});function e1(t,e,r){return(t?[...r.filter(o=>Ot(o)===t),...r.filter(o=>Ot(o)!==t)]:r.filter(o=>zt(o)===o)).filter(o=>t?Ot(o)===t||(e?ei(o)!==o:!1):!0)}const t1=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=Au,autoAlignment:h=!0,...p}=Br(t,e),b=u!==void 0||f===Au?e1(u||null,h,f):f,m=await $s(e,p),v=((r=s.autoPlacement)==null?void 0:r.index)||0,y=b[v];if(y==null)return{};const C=Iu(y,i,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==y)return{reset:{placement:b[0]}};const x=[m[zt(y)],m[C[0]],m[C[1]]],w=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:y,overflows:x}],_=b[v+1];if(_)return{data:{index:v+1,overflows:w},reset:{placement:_}};const O=w.map(E=>{const F=Ot(E.placement);return[E.placement,F&&d?E.overflows.slice(0,2).reduce((P,D)=>P+D,0):E.overflows[0],E.overflows]}).sort((E,F)=>E[1]-F[1]),M=((o=O.filter(E=>E[2].slice(0,Ot(E[0])?2:3).every(F=>F<=0))[0])==null?void 0:o[0])||O[0][0];return M!==a?{data:{index:v+1,overflows:w},reset:{placement:M}}:{}}}},r1=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:b=!0,...m}=Br(t,e);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const v=zt(o),y=zt(a)===a,C=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=f||(y||!b?[ti(a)]:Kw(a));!f&&p!=="none"&&x.push(...Xw(a,b,p,C));const w=[a,...x],_=await $s(e,m),O=[];let N=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&O.push(_[v]),u){const P=Iu(o,s,C);O.push(_[P[0]],_[P[1]])}if(N=[...N,{placement:o,overflows:O}],!O.every(P=>P<=0)){var M,E;const P=(((M=i.flip)==null?void 0:M.index)||0)+1,D=w[P];if(D)return{data:{index:P,overflows:N},reset:{placement:D}};let S=(E=N.filter(T=>T.overflows[0]<=0).sort((T,I)=>T.overflows[1]-I.overflows[1])[0])==null?void 0:E.placement;if(!S)switch(h){case"bestFit":{var F;const T=(F=N.map(I=>[I.placement,I.overflows.filter(z=>z>0).reduce((z,B)=>z+B,0)]).sort((I,z)=>I[1]-z[1])[0])==null?void 0:F[0];T&&(S=T);break}case"initialPlacement":S=a;break}if(o!==S)return{reset:{placement:S}}}return{}}}};async function n1(t,e){const{placement:r,platform:n,elements:o}=t,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=zt(r),a=Ot(r),l=Qo(r)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,u=Br(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 o1=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 n1(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}}}}},i1=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:m=>{let{x:v,y}=m;return{x:v,y}}},...l}=Br(t,e),c={x:r,y:n},d=await $s(e,l),u=Qo(zt(o)),f=Du(u);let h=c[f],p=c[u];if(i){const m=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=h+d[m],C=h-d[v];h=zs(y,h,C)}if(s){const m=u==="y"?"top":"left",v=u==="y"?"bottom":"right",y=p+d[m],C=p-d[v];p=zs(y,p,C)}const b=a.fn({...e,[f]:h,[u]:p});return{...b,data:{x:b.x-r,y:b.y-n}}}}};function zu(t){const e=dt(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=Be(t),i=o?t.offsetWidth:r,s=o?t.offsetHeight:n,a=Jo(r)!==i||Jo(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function Hs(t){return pe(t)?t:t.contextElement}function jr(t){const e=Hs(t);if(!Be(e))return Et(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:i}=zu(e);let s=(i?Jo(r.width):r.width)/n,a=(i?Jo(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const s1=Et(0);function Bu(t){const e=Je(t);return!Ns()||!e.visualViewport?s1:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function a1(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Je(t)?!1:e}function br(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),i=Hs(t);let s=Et(1);e&&(n?pe(n)&&(s=jr(n)):s=jr(t));const a=a1(i,r,n)?Bu(i):Et(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=Je(i),h=n&&pe(n)?Je(n):n;let p=f,b=Ms(p);for(;b&&n&&h!==p;){const m=jr(b),v=b.getBoundingClientRect(),y=dt(b),C=v.left+(b.clientLeft+parseFloat(y.paddingLeft))*m.x,x=v.top+(b.clientTop+parseFloat(y.paddingTop))*m.y;l*=m.x,c*=m.y,d*=m.x,u*=m.y,l+=C,c+=x,p=Je(b),b=Ms(p)}}return ri({width:d,height:u,x:l,y:c})}function Ws(t,e){const r=Xo(t).scrollLeft;return e?e.left+r:br(Ct(t)).left+r}function ju(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-(r?0:Ws(t,n)),i=n.top+e.scrollTop;return{x:o,y:i}}function l1(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const i=o==="fixed",s=Ct(n),a=e?Go(e.floating):!1;if(n===s||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Et(1);const d=Et(0),u=Be(n);if((u||!u&&!i)&&((gr(n)!=="body"||Fn(s))&&(l=Xo(n)),Be(n))){const h=br(n);c=jr(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}const f=s&&!u&&!i?ju(s,l,!0):Et(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 c1(t){return Array.from(t.getClientRects())}function d1(t){const e=Ct(t),r=Xo(t),n=t.ownerDocument.body,o=pr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=pr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Ws(t);const a=-r.scrollTop;return dt(n).direction==="rtl"&&(s+=pr(e.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function u1(t,e){const r=Je(t),n=Ct(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=Ns();(!c||c&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function f1(t,e){const r=br(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,i=Be(t)?jr(t):Et(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 $u(t,e,r){let n;if(e==="viewport")n=u1(t,r);else if(e==="document")n=d1(Ct(t));else if(pe(e))n=f1(e,r);else{const o=Bu(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return ri(n)}function Hu(t,e){const r=Ft(t);return r===e||!pe(r)||Kt(r)?!1:dt(r).position==="fixed"||Hu(r,e)}function h1(t,e){const r=e.get(t);if(r)return r;let n=Gt(t,[],!1).filter(a=>pe(a)&&gr(a)!=="body"),o=null;const i=dt(t).position==="fixed";let s=i?Ft(t):t;for(;pe(s)&&!Kt(s);){const a=dt(s),l=Ts(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Fn(s)&&!l&&Hu(t,s))?n=n.filter(d=>d!==s):o=a,s=Ft(s)}return e.set(t,n),n}function g1(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const s=[...r==="clippingAncestors"?Go(e)?[]:h1(e,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,d)=>{const u=$u(e,d,o);return c.top=pr(u.top,c.top),c.right=Fr(u.right,c.right),c.bottom=Fr(u.bottom,c.bottom),c.left=pr(u.left,c.left),c},$u(e,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function p1(t){const{width:e,height:r}=zu(t);return{width:e,height:r}}function b1(t,e,r){const n=Be(e),o=Ct(e),i=r==="fixed",s=br(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=Et(0);if(n||!n&&!i)if((gr(e)!=="body"||Fn(o))&&(a=Xo(e)),n){const f=br(e,!0,i,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else o&&(l.x=Ws(o));const c=o&&!n&&!i?ju(o,a):Et(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 Vs(t){return dt(t).position==="static"}function Wu(t,e){if(!Be(t)||dt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ct(t)===r&&(r=r.ownerDocument.body),r}function Vu(t,e){const r=Je(t);if(Go(t))return r;if(!Be(t)){let o=Ft(t);for(;o&&!Kt(o);){if(pe(o)&&!Vs(o))return o;o=Ft(o)}return r}let n=Wu(t,e);for(;n&&jw(n)&&Vs(n);)n=Wu(n,e);return n&&Kt(n)&&Vs(n)&&!Ts(n)?r:n||$w(t)||r}const m1=async function(t){const e=this.getOffsetParent||Vu,r=this.getDimensions,n=await r(t.floating);return{reference:b1(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function y1(t){return dt(t).direction==="rtl"}const v1={convertOffsetParentRelativeRectToViewportRelativeRect:l1,getDocumentElement:Ct,getClippingRect:g1,getOffsetParent:Vu,getElementRects:m1,getClientRects:c1,getDimensions:p1,getScale:jr,isElement:pe,isRTL:y1};function Ru(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function x1(t,e){let r=null,n;const o=Ct(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=zr(u),b=zr(o.clientWidth-(d+f)),m=zr(o.clientHeight-(u+h)),v=zr(d),C={rootMargin:-p+"px "+-b+"px "+-m+"px "+-v+"px",threshold:pr(0,Fr(1,l))||1};let x=!0;function w(_){const O=_[0].intersectionRatio;if(O!==l){if(!x)return s();O?s(!1,O):n=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!Ru(c,t.getBoundingClientRect())&&s(),x=!1}try{r=new IntersectionObserver(w,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(w,C)}r.observe(t)}return s(!0),i}function Yu(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=Hs(t),d=o||i?[...c?Gt(c):[],...Gt(e)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",r,{passive:!0}),i&&v.addEventListener("resize",r)});const u=c&&a?x1(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 C;(C=h)==null||C.observe(e)})),r()}),c&&!l&&h.observe(c),h.observe(e));let p,b=l?br(t):null;l&&m();function m(){const v=br(t);b&&!Ru(b,v)&&r(),b=v,p=requestAnimationFrame(m)}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 w1=o1,k1=t1,_1=i1,C1=r1,Uu=Qw,S1=(t,e,r)=>{const n=new Map,o={platform:v1,...r},i={...o.platform,_c:n};return Jw(t,e,{...o,platform:i})};var ni=typeof document<"u"?k.useLayoutEffect:k.useEffect;function oi(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(!oi(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)&&!oi(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function qu(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Ku(t,e){const r=qu(t);return Math.round(e*r)/r}function Rs(t){const e=A.useRef(t);return ni(()=>{e.current=t}),e}function E1(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]=A.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[f,h]=A.useState(n);oi(f,n)||h(n);const[p,b]=A.useState(null),[m,v]=A.useState(null),y=A.useCallback(B=>{B!==_.current&&(_.current=B,b(B))},[]),C=A.useCallback(B=>{B!==O.current&&(O.current=B,v(B))},[]),x=i||p,w=s||m,_=A.useRef(null),O=A.useRef(null),N=A.useRef(d),M=l!=null,E=Rs(l),F=Rs(o),P=Rs(c),D=A.useCallback(()=>{if(!_.current||!O.current)return;const B={placement:e,strategy:r,middleware:f};F.current&&(B.platform=F.current),S1(_.current,O.current,B).then($=>{const j={...$,isPositioned:P.current!==!1};S.current&&!oi(N.current,j)&&(N.current=j,Zh.flushSync(()=>{u(j)}))})},[f,e,r,F,P]);ni(()=>{c===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,u(B=>({...B,isPositioned:!1})))},[c]);const S=A.useRef(!1);ni(()=>(S.current=!0,()=>{S.current=!1}),[]),ni(()=>{if(x&&(_.current=x),w&&(O.current=w),x&&w){if(E.current)return E.current(x,w,D);D()}},[x,w,D,E,M]);const T=A.useMemo(()=>({reference:_,floating:O,setReference:y,setFloating:C}),[y,C]),I=A.useMemo(()=>({reference:x,floating:w}),[x,w]),z=A.useMemo(()=>{const B={position:r,left:0,top:0};if(!I.floating)return B;const $=Ku(I.floating,d.x),j=Ku(I.floating,d.y);return a?{...B,transform:"translate("+$+"px, "+j+"px)",...qu(I.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:$,top:j}},[r,a,I.floating,d.x,d.y]);return A.useMemo(()=>({...d,update:D,refs:T,elements:I,floatingStyles:z}),[d,D,T,I,z])}const O1=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?Uu({element:n.current,padding:o}).fn(r):{}:n?Uu({element:n,padding:o}).fn(r):{}}}},T1=(t,e)=>({...w1(t),options:[t,e]}),N1=(t,e)=>({..._1(t),options:[t,e]}),M1=(t,e)=>({...C1(t),options:[t,e]}),P1=(t,e)=>({...k1(t),options:[t,e]}),A1=(t,e)=>({...O1(t),options:[t,e]});/*!
|
|
970
|
+
*/(function(e){(function(){var t={}.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)t.call(i,a)&&i[a]&&(s=o(s,a));return s}function o(i,s){return s?i?i+" "+s:i+s:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Tk);var hz=Tk.exports;const gz=Mk(hz);var ch={exports:{}};function Dk(e,t=100,r={}){if(typeof e!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<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<t&&u>=0)s=setTimeout(c,t-u);else if(s=void 0,!n){const f=o,h=i;o=void 0,i=void 0,l=e.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,t)),f){const h=o,g=i;o=void 0,i=void 0,l=e.apply(h,g)}return l};return d.clear=()=>{s&&(clearTimeout(s),s=void 0)},d.flush=()=>{if(!s)return;const u=o,f=i;o=void 0,i=void 0,l=e.apply(u,f),clearTimeout(s),s=void 0},d}ch.exports.debounce=Dk,ch.exports=Dk;var pz=ch.exports;const bz=Mk(pz);var mz=Object.defineProperty,yz=(e,t,r)=>t in e?mz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lt=(e,t,r)=>(yz(e,typeof t!="symbol"?t+"":t,r),r);const vz=300,xz=0;class wz extends k.PureComponent{constructor(t){super(t),lt(this,"container"),lt(this,"scrolling"),lt(this,"started"),lt(this,"pressed"),lt(this,"isMobile",!1),lt(this,"internal"),lt(this,"scrollLeft"),lt(this,"scrollTop"),lt(this,"clientX"),lt(this,"clientY"),lt(this,"onEndScroll",()=>{this.scrolling=!1,!this.pressed&&this.started&&this.processEnd()}),lt(this,"onScroll",()=>{const r=this.container.current;(r.scrollLeft!==this.scrollLeft||r.scrollTop!==this.scrollTop)&&(this.scrolling=!0,this.processScroll(),this.onEndScroll())}),lt(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()}}),lt(this,"onTouchEnd",()=>{const{nativeMobileScroll:r}=this.props;this.pressed&&(this.started&&(!this.scrolling||!r)?this.processEnd():this.pressed=!1,this.forceUpdate())}),lt(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()}}),lt(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()))}),lt(this,"onMouseMove",r=>{this.pressed&&(this.processMove(r.clientX,r.clientY),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation())}),lt(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=bz(this.onEndScroll,vz),this.scrolling=!1,this.started=!1,this.pressed=!1,this.internal=!1,this.getRef=this.getRef.bind(this)}componentDidMount(){const{nativeMobileScroll:t}=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}),t&&(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(t){const r=this.props.ignoreElements;if(r){const n=t.closest(r);return n===null||n.contains(this.getElement())}else return!0}isScrollable(){const t=this.container.current;return t&&(t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight)}processClick(t,r){const n=this.container.current;this.scrollLeft=n==null?void 0:n.scrollLeft,this.scrollTop=n==null?void 0:n.scrollTop,this.clientX=t,this.clientY=r,this.pressed=!0}processStart(t=!0){const{onStartScroll:r}=this.props;this.started=!0,t&&document.body.classList.add("cursor-grab"),r&&r({external:!this.internal}),this.forceUpdate()}processScroll(){if(this.started){const{onScroll:t}=this.props;t&&t({external:!this.internal})}else this.processStart(!1)}processMove(t,r){const{horizontal:n,vertical:o,activationDistance:i,onScroll:s}=this.props,a=this.container.current;this.started?(n&&(a.scrollLeft-=t-this.clientX),o&&(a.scrollTop-=r-this.clientY),s&&s({external:!this.internal}),this.clientX=t,this.clientY=r,this.scrollLeft=a.scrollLeft,this.scrollTop=a.scrollTop):(n&&Math.abs(t-this.clientX)>i||o&&Math.abs(r-this.clientY)>i)&&(this.clientX=t,this.clientY=r,this.processStart())}processEnd(){const{onEndScroll:t}=this.props;this.container.current&&t&&t({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("cursor-grab"),this.forceUpdate()}getRef(t){[this.container,this.props.innerRef].forEach(r=>{r&&(typeof r=="function"?r(t):r.current=t)})}render(){const{children:t,draggingClassName:r,className:n,style:o,hideScrollbars:i}=this.props;return b.jsx("div",{className:gz(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:t})}}lt(wz,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[xz]});const kz=k.forwardRef(({className:e,color:t="default",theme:r={},...n},o)=>{const i=G(se().checkbox,r);return b.jsx("input",{ref:o,type:"checkbox",className:$(i.root.base,i.root.color[t],e),...n})});kz.displayName="Checkbox";const ea=({children:e,className:t,color:r="default",theme:n={},value:o,...i})=>{const s=G(se().helperText,n);return b.jsx("p",{className:$(s.root.base,s.root.colors[r],t),...i,children:o??e??""})};ea.displayName="HelperText";const dh=k.forwardRef(({addon:e,className:t,color:r="gray",helperText:n,icon:o,rightIcon:i,shadow:s,sizing:a="md",theme:l={},type:c="text",...d},u)=>{const f=G(se().textInput,l);return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:$(f.base,t),children:[e&&b.jsx("span",{className:f.addon,children:e}),b.jsxs("div",{className:f.field.base,children:[o&&b.jsx("div",{className:f.field.icon.base,children:b.jsx(o,{className:f.field.icon.svg})}),i&&b.jsx("div",{"data-testid":"right-icon",className:f.field.rightIcon.base,children:b.jsx(i,{className:f.field.rightIcon.svg})}),b.jsx("input",{className:$(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[e?"on":"off"],f.field.input.withShadow[s?"on":"off"]),type:c,...d,ref:u})]})]}),n&&b.jsx(ea,{color:r,children:n})]})});dh.displayName="TextInput";const Pk=k.createContext(void 0);function Fc(){const e=k.useContext(Pk);if(!e)throw new Error("useDatePickerContext should be used within the DatePickerContext provider!");return e}var Ue=(e=>(e[e.Days=0]="Days",e[e.Months=1]="Months",e[e.Years=2]="Years",e[e.Decades=3]="Decades",e))(Ue||{}),Ik=(e=>(e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday",e))(Ik||{});const ta=(e,t,r)=>{const n=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();if(t&&r){const o=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),i=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime();return n>=o&&n<=i}if(t){const o=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();return n>=o}if(r){const o=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime();return n<=o}return!0},jc=(e,t)=>(e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e.getTime()===t.getTime()),_z=(e,t,r)=>(ta(e,t,r)||(t&&e<t?e=t:r&&e>r&&(e=r)),e),Cz=(e,t)=>{const r=new Date(e.getFullYear(),e.getMonth(),1);let o=r.getDay()-t;return o<0&&(o+=7),uh(r,-o)},Sz=(e,t)=>{const r=[],n=new Date(0);n.setDate(n.getDate()-n.getDay()+t);const o=new Intl.DateTimeFormat(e,{weekday:"short"});for(let i=0;i<7;i++)r.push(o.format(uh(n,i)));return r},uh=(e,t)=>{const r=new Date(e);return r.setDate(r.getDate()+t),r},Ez=(e,t)=>{const r=new Date(e);return r.setMonth(r.getMonth()+t),r},li=(e,t)=>{const r=new Date(e);return r.setFullYear(r.getFullYear()+t),r},ra=(e,t,r)=>{let n={day:"numeric",month:"long",year:"numeric"};return r&&(n=r),new Intl.DateTimeFormat(e,n).format(t)},ci=(e,t)=>{const r=e.getFullYear();return Math.floor(r/t)*t},Oz=(e,t)=>{const r=e.getFullYear(),n=t+9;return r>=t&&r<=n},Nz=({theme:e={}})=>{const{theme:t,weekStart:r,minDate:n,maxDate:o,viewDate:i,selectedDate:s,changeSelectedDate:a,language:l}=Fc(),c=G(t.views.days,e),d=Sz(l,r),u=Cz(i,r);return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:c.header.base,children:d.map((f,h)=>b.jsx("span",{className:c.header.title,children:f},h))}),b.jsx("div",{className:c.items.base,children:[...Array(42)].map((f,h)=>{const g=uh(u,h),p=ra(l,g,{day:"numeric"}),m=jc(s,g),x=!ta(g,n,o);return b.jsx("button",{disabled:x,type:"button",className:$(c.items.item.base,m&&c.items.item.selected,x&&c.items.item.disabled),onClick:()=>{x||a(g,!0)},children:p},h)})})]})},Mz=({theme:e={}})=>{const{theme:t,selectedDate:r,viewDate:n,setViewDate:o,setView:i}=Fc(),s=G(t.views.decades,e);return b.jsx("div",{className:s.items.base,children:[...Array(12)].map((a,l)=>{const d=ci(n,100)-10+l*10,u=new Date(d,0,1),f=li(u,9),h=Oz(n,d),g=!ta(n,u,f);return b.jsx("button",{disabled:g,type:"button",className:$(s.items.item.base,h&&s.items.item.selected,g&&s.items.item.disabled),onClick:()=>{g||(o(li(n,d-r.getFullYear())),i(Ue.Years))},children:d},l)})})},Tz=({theme:e={}})=>{const{theme:t,minDate:r,maxDate:n,selectedDate:o,viewDate:i,language:s,setViewDate:a,setView:l}=Fc(),c=G(t.views.months,e);return b.jsx("div",{className:c.items.base,children:[...Array(12)].map((d,u)=>{const f=new Date(i.getTime());f.setMonth(u);const h=ra(s,f,{month:"short"}),g=jc(o,f),p=!ta(f,r,n);return b.jsx("button",{disabled:p,type:"button",className:$(c.items.item.base,g&&c.items.item.selected,p&&c.items.item.disabled),onClick:()=>{p||(a(f),l(Ue.Days))},children:h},u)})})},Dz=({theme:e={}})=>{const{theme:t,selectedDate:r,minDate:n,maxDate:o,viewDate:i,setViewDate:s,setView:a}=Fc(),l=G(t.views.years,e);return b.jsx("div",{className:l.items.base,children:[...Array(12)].map((c,d)=>{const f=ci(i,10)-1+d*1,h=new Date(i.getTime());h.setFullYear(f);const g=jc(r,h),p=!ta(h,n,o);return b.jsx("button",{disabled:p,type:"button",className:$(l.items.item.base,g&&l.items.item.selected,p&&l.items.item.disabled),onClick:()=>{p||(s(h),a(Ue.Months))},children:f},d)})})},Pz=({title:e,open:t,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=Ik.Sunday,className:h,theme:g={},onSelectedDateChanged:p,...m},x)=>{const y=G(se().datepicker,g);l=_z(l,c,d);const[_,v]=k.useState(t),[w,C]=k.useState(Ue.Days),[M,N]=k.useState(l),[O,E]=k.useState(l),z=k.useRef(null),T=k.useRef(null),P=(j,B)=>{N(j),p&&p(j),n&&w===Ue.Days&&B==!0&&!r&&v(!1)},D=()=>{P(l,!0),l&&E(l)};k.useImperativeHandle(x,()=>({focus(){var j;(j=z.current)==null||j.focus()},clear(){D()}}));const S=j=>{switch(j){case Ue.Decades:return b.jsx(Mz,{theme:y.views.decades});case Ue.Years:return b.jsx(Dz,{theme:y.views.years});case Ue.Months:return b.jsx(Tz,{theme:y.views.months});case Ue.Days:default:return b.jsx(Nz,{theme:y.views.days})}},A=()=>{switch(w){case Ue.Days:return Ue.Months;case Ue.Months:return Ue.Years;case Ue.Years:return Ue.Decades}return w},F=()=>{switch(w){case Ue.Decades:return`${ci(O,100)} - ${ci(O,100)+90}`;case Ue.Years:return`${ci(O,10)} - ${ci(O,10)+9}`;case Ue.Months:return ra(u,O,{year:"numeric"});case Ue.Days:default:return ra(u,O,{month:"long",year:"numeric"})}},L=(j,B,W)=>{switch(j){case Ue.Days:return new Date(Ez(B,W));case Ue.Months:return new Date(li(B,W));case Ue.Years:return new Date(li(B,W*10));case Ue.Decades:return new Date(li(B,W*100));default:return new Date(li(B,W*10))}};return k.useEffect(()=>{const j=B=>{var U,R;const W=(U=T==null?void 0:T.current)==null?void 0:U.contains(B.target),H=(R=z==null?void 0:z.current)==null?void 0:R.contains(B.target);!W&&!H&&v(!1)};return document.addEventListener("mousedown",j),()=>{document.removeEventListener("mousedown",j)}},[z,T,v]),b.jsx(Pk.Provider,{value:{theme:y,language:u,minDate:c,maxDate:d,weekStart:f,isOpen:_,setIsOpen:v,view:w,setView:C,viewDate:O,setViewDate:E,selectedDate:M,setSelectedDate:N,changeSelectedDate:P},children:b.jsxs("div",{className:$(y.root.base,h),children:[!r&&b.jsx(dh,{theme:y.root.input,icon:B9,ref:z,onFocus:()=>{jc(O,M)||E(M),v(!0)},value:M&&ra(u,M),readOnly:!0,...m}),(_||r)&&b.jsx("div",{ref:T,className:$(y.popup.root.base,r&&y.popup.root.inline),children:b.jsxs("div",{className:y.popup.root.inner,children:[b.jsxs("div",{className:y.popup.header.base,children:[e&&b.jsx("div",{className:y.popup.header.title,children:e}),b.jsxs("div",{className:y.popup.header.selectors.base,children:[b.jsx("button",{type:"button",className:$(y.popup.header.selectors.button.base,y.popup.header.selectors.button.prev),onClick:()=>E(L(w,O,-1)),children:b.jsx(F9,{})}),b.jsx("button",{type:"button",className:$(y.popup.header.selectors.button.base,y.popup.header.selectors.button.view),onClick:()=>C(A()),children:F()}),b.jsx("button",{type:"button",className:$(y.popup.header.selectors.button.base,y.popup.header.selectors.button.next),onClick:()=>E(L(w,O,1)),children:b.jsx(j9,{})})]})]}),b.jsx("div",{className:y.popup.view.base,children:S(w)}),(o||s)&&b.jsxs("div",{className:y.popup.footer.base,children:[s&&b.jsx("button",{type:"button",className:$(y.popup.footer.button.base,y.popup.footer.button.today),onClick:()=>{const j=new Date;P(j,!0),E(j)},children:a}),o&&b.jsx("button",{type:"button",className:$(y.popup.footer.button.base,y.popup.footer.button.clear),onClick:()=>{P(l,!0),l&&E(l)},children:i})]})]})})]})})},Iz=k.forwardRef(Pz);Iz.displayName="Datepicker";function Bc(){return typeof window<"u"}function wo(e){return Ak(e)?(e.nodeName||"").toLowerCase():"#document"}function Rt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hr(e){var t;return(t=(Ak(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ak(e){return Bc()?e instanceof Node||e instanceof Rt(e).Node:!1}function Ie(e){return Bc()?e instanceof Element||e instanceof Rt(e).Element:!1}function vt(e){return Bc()?e instanceof HTMLElement||e instanceof Rt(e).HTMLElement:!1}function fh(e){return!Bc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Rt(e).ShadowRoot}function na(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=fr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Az(e){return["table","td","th"].includes(wo(e))}function Wc(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function hh(e){const t=gh(),r=Ie(e)?fr(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(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 Lz(e){let t=cn(e);for(;vt(t)&&!In(t);){if(hh(t))return t;if(Wc(t))return null;t=cn(t)}return null}function gh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function In(e){return["html","body","#document"].includes(wo(e))}function fr(e){return Rt(e).getComputedStyle(e)}function Hc(e){return Ie(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cn(e){if(wo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fh(e)&&e.host||Hr(e);return fh(t)?t.host:t}function Lk(e){const t=cn(e);return In(t)?e.ownerDocument?e.ownerDocument.body:e.body:vt(t)&&na(t)?t:Lk(t)}function An(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Lk(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=Rt(o);if(i){const a=ph(s);return t.concat(s,s.visualViewport||[],na(o)?o:[],a&&r?An(a):[])}return t.concat(o,An(o,[],r))}function ph(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $r(e){let t=e.activeElement;for(;((r=t)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;t=t.shadowRoot.activeElement}return t}function rt(e,t){if(!e||!t)return!1;const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&fh(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function bh(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function zk(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function Fk(e){return e.mozInputSource===0&&e.isTrusted?!0:vh()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function mh(e){return zz()?!1:!vh()&&e.width===0&&e.height===0||vh()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function yh(){return/apple/i.test(navigator.vendor)}function vh(){const e=/android/i;return e.test(bh())||e.test(zk())}function jk(){return bh().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function zz(){return zk().includes("jsdom/")}function $c(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function Fz(e){return"nativeEvent"in e}function jz(e){return e.matches("html,body")}function Pt(e){return(e==null?void 0:e.ownerDocument)||document}function xh(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}function Ln(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Bz="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function wh(e){return vt(e)&&e.matches(Bz)}function xt(e){e.preventDefault(),e.stopPropagation()}function Bk(e){return e?e.getAttribute("role")==="combobox"&&wh(e):!1}const Wz=["top","right","bottom","left"],Wk=["start","end"],Hk=Wz.reduce((e,t)=>e.concat(t,t+"-"+Wk[0],t+"-"+Wk[1]),[]),di=Math.min,ko=Math.max,Vc=Math.round,ui=Math.floor,Vr=e=>({x:e,y:e}),Hz={left:"right",right:"left",bottom:"top",top:"bottom"},$z={start:"end",end:"start"};function kh(e,t,r){return ko(e,di(t,r))}function fi(e,t){return typeof e=="function"?e(t):e}function dn(e){return e.split("-")[0]}function Yr(e){return e.split("-")[1]}function $k(e){return e==="x"?"y":"x"}function _h(e){return e==="y"?"height":"width"}function Yc(e){return["top","bottom"].includes(dn(e))?"y":"x"}function Ch(e){return $k(Yc(e))}function Vk(e,t,r){r===void 0&&(r=!1);const n=Yr(e),o=Ch(e),i=_h(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Rc(s)),[s,Rc(s)]}function Vz(e){const t=Rc(e);return[Uc(e),t,Uc(t)]}function Uc(e){return e.replace(/start|end/g,t=>$z[t])}function Yz(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:s;default:return[]}}function Uz(e,t,r,n){const o=Yr(e);let i=Yz(dn(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Uc)))),i}function Rc(e){return e.replace(/left|right|bottom|top/g,t=>Hz[t])}function Rz(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yk(e){return typeof e!="number"?Rz(e):{top:e,right:e,bottom:e,left:e}}function qc(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Uk(e,t,r){let{reference:n,floating:o}=e;const i=Yc(t),s=Ch(t),a=_h(s),l=dn(t),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(Yr(t)){case"start":h[s]-=f*(r&&c?-1:1);break;case"end":h[s]+=f*(r&&c?-1:1);break}return h}const qz=async(e,t,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(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=Uk(c,n,l),f=n,h={},g=0;for(let p=0;p<a.length;p++){const{name:m,fn:x}=a[p],{x:y,y:_,data:v,reset:w}=await x({x:d,y:u,initialPlacement:n,placement:f,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});d=y??d,u=_??u,h={...h,[m]:{...h[m],...v}},w&&g<=50&&(g++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(c=w.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:d,y:u}=Uk(c,f,l)),p=-1)}return{x:d,y:u,placement:f,strategy:o,middlewareData:h}};async function Sh(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:h=0}=fi(t,e),g=Yk(h),m=a[f?u==="floating"?"reference":"floating":u],x=qc(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(m)))==null||r?m:m.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)),v=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=qc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:_,strategy:l}):y);return{top:(x.top-w.top+g.top)/v.y,bottom:(w.bottom-x.bottom+g.bottom)/v.y,left:(x.left-w.left+g.left)/v.x,right:(w.right-x.right+g.right)/v.x}}const Xz=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=fi(e,t)||{};if(c==null)return{};const u=Yk(d),f={x:r,y:n},h=Ch(o),g=_h(h),p=await s.getDimensions(c),m=h==="y",x=m?"top":"left",y=m?"bottom":"right",_=m?"clientHeight":"clientWidth",v=i.reference[g]+i.reference[h]-f[h]-i.floating[g],w=f[h]-i.reference[h],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let M=C?C[_]:0;(!M||!await(s.isElement==null?void 0:s.isElement(C)))&&(M=a.floating[_]||i.floating[g]);const N=v/2-w/2,O=M/2-p[g]/2-1,E=di(u[x],O),z=di(u[y],O),T=E,P=M-p[g]-z,D=M/2-p[g]/2+N,S=kh(T,D,P),A=!l.arrow&&Yr(o)!=null&&D!==S&&i.reference[g]/2-(D<T?E:z)-p[g]/2<0,F=A?D<T?D-T:D-P:0;return{[h]:f[h]+F,data:{[h]:S,centerOffset:D-S-F,...A&&{alignmentOffset:F}},reset:A}}});function Gz(e,t,r){return(e?[...r.filter(o=>Yr(o)===e),...r.filter(o=>Yr(o)!==e)]:r.filter(o=>dn(o)===o)).filter(o=>e?Yr(o)===e||(t?Uc(o)!==o:!1):!0)}const Kz=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,o;const{rects:i,middlewareData:s,placement:a,platform:l,elements:c}=t,{crossAxis:d=!1,alignment:u,allowedPlacements:f=Hk,autoAlignment:h=!0,...g}=fi(e,t),p=u!==void 0||f===Hk?Gz(u||null,h,f):f,m=await Sh(t,g),x=((r=s.autoPlacement)==null?void 0:r.index)||0,y=p[x];if(y==null)return{};const _=Vk(y,i,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==y)return{reset:{placement:p[0]}};const v=[m[dn(y)],m[_[0]],m[_[1]]],w=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:y,overflows:v}],C=p[x+1];if(C)return{data:{index:x+1,overflows:w},reset:{placement:C}};const M=w.map(E=>{const z=Yr(E.placement);return[E.placement,z&&d?E.overflows.slice(0,2).reduce((T,P)=>T+P,0):E.overflows[0],E.overflows]}).sort((E,z)=>E[1]-z[1]),O=((o=M.filter(E=>E[2].slice(0,Yr(E[0])?2:3).every(z=>z<=0))[0])==null?void 0:o[0])||M[0][0];return O!==a?{data:{index:x+1,overflows:w},reset:{placement:O}}:{}}}},Zz=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...m}=fi(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const x=dn(o),y=dn(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),v=f||(y||!p?[Rc(a)]:Vz(a));!f&&g!=="none"&&v.push(...Uz(a,p,g,_));const w=[a,...v],C=await Sh(t,m),M=[];let N=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&M.push(C[x]),u){const T=Vk(o,s,_);M.push(C[T[0]],C[T[1]])}if(N=[...N,{placement:o,overflows:M}],!M.every(T=>T<=0)){var O,E;const T=(((O=i.flip)==null?void 0:O.index)||0)+1,P=w[T];if(P)return{data:{index:T,overflows:N},reset:{placement:P}};let D=(E=N.filter(S=>S.overflows[0]<=0).sort((S,A)=>S.overflows[1]-A.overflows[1])[0])==null?void 0:E.placement;if(!D)switch(h){case"bestFit":{var z;const S=(z=N.map(A=>[A.placement,A.overflows.filter(F=>F>0).reduce((F,L)=>F+L,0)]).sort((A,F)=>A[1]-F[1])[0])==null?void 0:z[0];S&&(D=S);break}case"initialPlacement":D=a;break}if(o!==D)return{reset:{placement:D}}}return{}}}};async function Qz(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=dn(r),a=Yr(r),l=Yc(r)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,u=fi(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),l?{x:h*d,y:f*c}:{x:f*c,y:h*d}}const Jz=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await Qz(t,e);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}}}}},eF=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:m=>{let{x,y}=m;return{x,y}}},...l}=fi(e,t),c={x:r,y:n},d=await Sh(t,l),u=Yc(dn(o)),f=$k(u);let h=c[f],g=c[u];if(i){const m=f==="y"?"top":"left",x=f==="y"?"bottom":"right",y=h+d[m],_=h-d[x];h=kh(y,h,_)}if(s){const m=u==="y"?"top":"left",x=u==="y"?"bottom":"right",y=g+d[m],_=g-d[x];g=kh(y,g,_)}const p=a.fn({...t,[f]:h,[u]:g});return{...p,data:{x:p.x-r,y:p.y-n}}}}};function Rk(e){const t=fr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=vt(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=Vc(r)!==i||Vc(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function Eh(e){return Ie(e)?e:e.contextElement}function hi(e){const t=Eh(e);if(!vt(t))return Vr(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Rk(t);let s=(i?Vc(r.width):r.width)/n,a=(i?Vc(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const tF=Vr(0);function qk(e){const t=Rt(e);return!gh()||!t.visualViewport?tF:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rF(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Rt(e)?!1:t}function _o(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Eh(e);let s=Vr(1);t&&(n?Ie(n)&&(s=hi(n)):s=hi(e));const a=rF(i,r,n)?qk(i):Vr(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=Rt(i),h=n&&Ie(n)?Rt(n):n;let g=f,p=ph(g);for(;p&&n&&h!==g;){const m=hi(p),x=p.getBoundingClientRect(),y=fr(p),_=x.left+(p.clientLeft+parseFloat(y.paddingLeft))*m.x,v=x.top+(p.clientTop+parseFloat(y.paddingTop))*m.y;l*=m.x,c*=m.y,d*=m.x,u*=m.y,l+=_,c+=v,g=Rt(p),p=ph(g)}}return qc({width:d,height:u,x:l,y:c})}function Oh(e,t){const r=Hc(e).scrollLeft;return t?t.left+r:_o(Hr(e)).left+r}function Xk(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:Oh(e,n)),i=n.top+t.scrollTop;return{x:o,y:i}}function nF(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=Hr(n),a=t?Wc(t.floating):!1;if(n===s||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Vr(1);const d=Vr(0),u=vt(n);if((u||!u&&!i)&&((wo(n)!=="body"||na(s))&&(l=Hc(n)),vt(n))){const h=_o(n);c=hi(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}const f=s&&!u&&!i?Xk(s,l,!0):Vr(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 oF(e){return Array.from(e.getClientRects())}function iF(e){const t=Hr(e),r=Hc(e),n=e.ownerDocument.body,o=ko(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=ko(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Oh(e);const a=-r.scrollTop;return fr(n).direction==="rtl"&&(s+=ko(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function sF(e,t){const r=Rt(e),n=Hr(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=gh();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function aF(e,t){const r=_o(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=vt(e)?hi(e):Vr(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:s,height:a,x:l,y:c}}function Gk(e,t,r){let n;if(t==="viewport")n=sF(e,r);else if(t==="document")n=iF(Hr(e));else if(Ie(t))n=aF(t,r);else{const o=qk(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return qc(n)}function Kk(e,t){const r=cn(e);return r===t||!Ie(r)||In(r)?!1:fr(r).position==="fixed"||Kk(r,t)}function lF(e,t){const r=t.get(e);if(r)return r;let n=An(e,[],!1).filter(a=>Ie(a)&&wo(a)!=="body"),o=null;const i=fr(e).position==="fixed";let s=i?cn(e):e;for(;Ie(s)&&!In(s);){const a=fr(s),l=hh(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||na(s)&&!l&&Kk(e,s))?n=n.filter(d=>d!==s):o=a,s=cn(s)}return t.set(e,n),n}function cF(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?Wc(t)?[]:lF(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,d)=>{const u=Gk(t,d,o);return c.top=ko(u.top,c.top),c.right=di(u.right,c.right),c.bottom=di(u.bottom,c.bottom),c.left=ko(u.left,c.left),c},Gk(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function dF(e){const{width:t,height:r}=Rk(e);return{width:t,height:r}}function uF(e,t,r){const n=vt(t),o=Hr(t),i=r==="fixed",s=_o(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Vr(0);if(n||!n&&!i)if((wo(t)!=="body"||na(o))&&(a=Hc(t)),n){const f=_o(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&(l.x=Oh(o));const c=o&&!n&&!i?Xk(o,a):Vr(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 Nh(e){return fr(e).position==="static"}function Zk(e,t){if(!vt(e)||fr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Hr(e)===r&&(r=r.ownerDocument.body),r}function Qk(e,t){const r=Rt(e);if(Wc(e))return r;if(!vt(e)){let o=cn(e);for(;o&&!In(o);){if(Ie(o)&&!Nh(o))return o;o=cn(o)}return r}let n=Zk(e,t);for(;n&&Az(n)&&Nh(n);)n=Zk(n,t);return n&&In(n)&&Nh(n)&&!hh(n)?r:n||Lz(e)||r}const fF=async function(e){const t=this.getOffsetParent||Qk,r=this.getDimensions,n=await r(e.floating);return{reference:uF(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function hF(e){return fr(e).direction==="rtl"}const gF={convertOffsetParentRelativeRectToViewportRelativeRect:nF,getDocumentElement:Hr,getClippingRect:cF,getOffsetParent:Qk,getElementRects:fF,getClientRects:oF,getDimensions:dF,getScale:hi,isElement:Ie,isRTL:hF};function Jk(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pF(e,t){let r=null,n;const o=Hr(e);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=e.getBoundingClientRect(),{left:d,top:u,width:f,height:h}=c;if(a||t(),!f||!h)return;const g=ui(u),p=ui(o.clientWidth-(d+f)),m=ui(o.clientHeight-(u+h)),x=ui(d),_={rootMargin:-g+"px "+-p+"px "+-m+"px "+-x+"px",threshold:ko(0,di(1,l))||1};let v=!0;function w(C){const M=C[0].intersectionRatio;if(M!==l){if(!v)return s();M?s(!1,M):n=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!Jk(c,e.getBoundingClientRect())&&s(),v=!1}try{r=new IntersectionObserver(w,{..._,root:o.ownerDocument})}catch{r=new IntersectionObserver(w,_)}r.observe(e)}return s(!0),i}function e_(e,t,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=Eh(e),d=o||i?[...c?An(c):[],...An(t)]:[];d.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),i&&x.addEventListener("resize",r)});const u=c&&a?pF(c,r):null;let f=-1,h=null;s&&(h=new ResizeObserver(x=>{let[y]=x;y&&y.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(t)})),r()}),c&&!l&&h.observe(c),h.observe(t));let g,p=l?_o(e):null;l&&m();function m(){const x=_o(e);p&&!Jk(p,x)&&r(),p=x,g=requestAnimationFrame(m)}return r(),()=>{var x;d.forEach(y=>{o&&y.removeEventListener("scroll",r),i&&y.removeEventListener("resize",r)}),u==null||u(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const bF=Jz,mF=Kz,yF=eF,vF=Zz,t_=Xz,xF=(e,t,r)=>{const n=new Map,o={platform:gF,...r},i={...o.platform,_c:n};return qz(e,t,{...o,platform:i})};var Xc=typeof document<"u"?k.useLayoutEffect:k.useEffect;function Gc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Gc(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Gc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function r_(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function n_(e,t){const r=r_(e);return Math.round(t*r)/r}function Mh(e){const t=I.useRef(e);return Xc(()=>{t.current=e}),t}function wF(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,u]=I.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=I.useState(n);Gc(f,n)||h(n);const[g,p]=I.useState(null),[m,x]=I.useState(null),y=I.useCallback(L=>{L!==C.current&&(C.current=L,p(L))},[]),_=I.useCallback(L=>{L!==M.current&&(M.current=L,x(L))},[]),v=i||g,w=s||m,C=I.useRef(null),M=I.useRef(null),N=I.useRef(d),O=l!=null,E=Mh(l),z=Mh(o),T=Mh(c),P=I.useCallback(()=>{if(!C.current||!M.current)return;const L={placement:t,strategy:r,middleware:f};z.current&&(L.platform=z.current),xF(C.current,M.current,L).then(j=>{const B={...j,isPositioned:T.current!==!1};D.current&&!Gc(N.current,B)&&(N.current=B,tg.flushSync(()=>{u(B)}))})},[f,t,r,z,T]);Xc(()=>{c===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,u(L=>({...L,isPositioned:!1})))},[c]);const D=I.useRef(!1);Xc(()=>(D.current=!0,()=>{D.current=!1}),[]),Xc(()=>{if(v&&(C.current=v),w&&(M.current=w),v&&w){if(E.current)return E.current(v,w,P);P()}},[v,w,P,E,O]);const S=I.useMemo(()=>({reference:C,floating:M,setReference:y,setFloating:_}),[y,_]),A=I.useMemo(()=>({reference:v,floating:w}),[v,w]),F=I.useMemo(()=>{const L={position:r,left:0,top:0};if(!A.floating)return L;const j=n_(A.floating,d.x),B=n_(A.floating,d.y);return a?{...L,transform:"translate("+j+"px, "+B+"px)",...r_(A.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:j,top:B}},[r,a,A.floating,d.x,d.y]);return I.useMemo(()=>({...d,update:P,refs:S,elements:A,floatingStyles:F}),[d,P,S,A,F])}const kF=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?t_({element:n.current,padding:o}).fn(r):{}:n?t_({element:n,padding:o}).fn(r):{}}}},_F=(e,t)=>({...bF(e),options:[e,t]}),CF=(e,t)=>({...yF(e),options:[e,t]}),SF=(e,t)=>({...vF(e),options:[e,t]}),EF=(e,t)=>({...mF(e),options:[e,t]}),OF=(e,t)=>({...kF(e),options:[e,t]});/*!
|
|
485
971
|
* tabbable 6.2.0
|
|
486
972
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
487
|
-
*/var D1=["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])"],ii=D1.join(","),Gu=typeof Element>"u",$r=Gu?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,si=!Gu&&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},ai=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},I1=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},L1=function(e,r,n){if(ai(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(ii));return r&&$r.call(e,ii)&&o.unshift(e),o=o.filter(n),o},F1=function t(e,r,n){for(var o=[],i=Array.from(e);i.length;){var s=i.shift();if(!ai(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=$r.call(s,ii);d&&n.filter(s)&&(r||!e.includes(s))&&o.push(s);var u=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),f=!ai(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},Xu=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Zu=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||I1(e))&&!Xu(e)?0:e.tabIndex},z1=function(e,r){var n=Zu(e);return n<0&&r&&!Xu(e)?0:n},B1=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},Ju=function(e){return e.tagName==="INPUT"},j1=function(e){return Ju(e)&&e.type==="hidden"},$1=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},H1=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},W1=function(e){if(!e.name)return!0;var r=e.form||si(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=H1(o,e.form);return!i||i===e},V1=function(e){return Ju(e)&&e.type==="radio"},R1=function(e){return V1(e)&&!W1(e)},Y1=function(e){var r,n=e&&si(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=si(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},Qu=function(e){var r=e.getBoundingClientRect(),n=r.width,o=r.height;return n===0&&o===0},U1=function(e,r){var n=r.displayCheck,o=r.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var i=$r.call(e,"details>summary:first-of-type"),s=i?e.parentElement:e;if($r.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=si(e);if(l&&!l.shadowRoot&&o(l)===!0)return Qu(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=a}if(Y1(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Qu(e);return!1},q1=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 $r.call(r,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}r=r.parentElement}return!1},K1=function(e,r){return!(r.disabled||ai(r)||j1(r)||U1(r,e)||$1(r)||q1(r))},Ys=function(e,r){return!(R1(r)||Zu(r)<0||!K1(e,r))},G1=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},X1=function t(e){var r=[],n=[];return e.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,l=z1(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(B1).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},li=function(e,r){r=r||{};var n;return r.getShadowRoot?n=F1([e],r.includeContainer,{filter:Ys.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:G1}):n=L1(e,r.includeContainer,Ys.bind(null,r)),X1(n)},Z1=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return $r.call(e,ii)===!1?!1:Ys(r,e)};function ef(t){return A.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})},t)}const J1=A.useInsertionEffect||(t=>t());function Tt(t){const e=A.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return J1(()=>{e.current=t}),A.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 Us="ArrowUp",zn="ArrowDown",Hr="ArrowLeft",Wr="ArrowRight";function ci(t,e,r){return Math.floor(t/e)!==r}function Bn(t,e){return e<0||e>=t.current.length}function qs(t,e){return Re(t,{disabledIndices:e})}function tf(t,e){return Re(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function Re(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 Q1(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===Us){if(d&&je(r),c===-1)u=l;else if(u=Re(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}Bn(t,u)&&(u=c)}if(r.key===zn&&(d&&je(r),c===-1?u=a:(u=Re(t,{startingIndex:c,amount:i,disabledIndices:s}),o&&c+i>l&&(u=Re(t,{startingIndex:c%i-i,amount:i,disabledIndices:s}))),Bn(t,u)&&(u=c)),n==="both"){const f=zr(c/i);r.key===Wr&&(d&&je(r),c%i!==i-1?(u=Re(t,{startingIndex:c,disabledIndices:s}),o&&ci(u,i,f)&&(u=Re(t,{startingIndex:c-c%i-1,disabledIndices:s}))):o&&(u=Re(t,{startingIndex:c-c%i-1,disabledIndices:s})),ci(u,i,f)&&(u=c)),r.key===Hr&&(d&&je(r),c%i!==0?(u=Re(t,{startingIndex:c,disabledIndices:s,decrement:!0}),o&&ci(u,i,f)&&(u=Re(t,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s}))):o&&(u=Re(t,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s})),ci(u,i,f)&&(u=c));const h=zr(l/i)===f;Bn(t,u)&&(o&&h?u=r.key===Hr?l:Re(t,{startingIndex:c-c%i-1,disabledIndices:s}):u=c)}return u}function ek(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 tk(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 rk(t,e){return e.flatMap((r,n)=>t.includes(r)?[n]:[])}let rf=0;function Bt(t,e){e===void 0&&(e={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=e;n&&cancelAnimationFrame(rf);const i=()=>t==null?void 0:t.focus({preventScroll:r});o?i():rf=requestAnimationFrame(i)}var be=typeof document<"u"?k.useLayoutEffect:k.useEffect;function nk(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 ok(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 nf=A.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function ik(t){let{children:e,elementsRef:r,labelsRef:n}=t;const[o,i]=A.useState(()=>new Map),s=A.useCallback(l=>{i(c=>new Map(c).set(l,null))},[]),a=A.useCallback(l=>{i(c=>{const d=new Map(c);return d.delete(l),d})},[]);return be(()=>{const l=new Map(o);Array.from(l.keys()).sort(nk).forEach((d,u)=>{l.set(d,u)}),ok(o,l)||i(l)},[o]),A.createElement(nf.Provider,{value:A.useMemo(()=>({register:s,unregister:a,map:o,elementsRef:r,labelsRef:n}),[s,a,o,r,n])},e)}function sk(t){let{label:e}=t===void 0?{}:t;const[r,n]=A.useState(null),o=A.useRef(null),{register:i,unregister:s,map:a,elementsRef:l,labelsRef:c}=A.useContext(nf),d=A.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 be(()=>{const u=o.current;if(u)return i(u),()=>{s(u)}},[i,s]),be(()=>{const u=o.current?a.get(o.current):null;u!=null&&n(u)},[a]),A.useMemo(()=>({ref:d,index:r??-1}),[r,d])}function jn(){return jn=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},jn.apply(this,arguments)}let Ks=!1,ak=0;const of=()=>"floating-ui-"+ak++;function lk(){const[t,e]=A.useState(()=>Ks?of():void 0);return be(()=>{t==null&&e(of())},[]),A.useEffect(()=>{Ks||(Ks=!0)},[]),t}const di=A.useId||lk;function ck(){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 dk=A.createContext(null),uk=A.createContext(null),ui=()=>{var t;return((t=A.useContext(dk))==null?void 0:t.id)||null},$n=()=>A.useContext(uk);function mr(t){return"data-floating-ui-"+t}function Nt(t){const e=k.useRef(t);return be(()=>{e.current=t}),e}const sf=mr("safe-polygon");function Gs(t,e,r){return r&&!Zo(r)?0:typeof t=="number"?t:t==null?void 0:t[e]}function fk(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,b=$n(),m=ui(),v=Nt(u),y=Nt(d),C=A.useRef(),x=A.useRef(),w=A.useRef(),_=A.useRef(),O=A.useRef(!0),N=A.useRef(!1),M=A.useRef(()=>{}),E=A.useCallback(()=>{var S;const T=(S=o.current.openEvent)==null?void 0:S.type;return(T==null?void 0:T.includes("mouse"))&&T!=="mousedown"},[o]);A.useEffect(()=>{if(!c)return;function S(T){let{open:I}=T;I||(clearTimeout(x.current),clearTimeout(_.current),O.current=!0)}return i.on("openchange",S),()=>{i.off("openchange",S)}},[c,i]),A.useEffect(()=>{if(!c||!v.current||!r)return;function S(I){E()&&n(!1,I,"hover")}const T=Ye(a).documentElement;return T.addEventListener("mouseleave",S),()=>{T.removeEventListener("mouseleave",S)}},[a,r,n,c,v,E]);const F=A.useCallback(function(S,T,I){T===void 0&&(T=!0),I===void 0&&(I="hover");const z=Gs(y.current,"close",C.current);z&&!w.current?(clearTimeout(x.current),x.current=setTimeout(()=>n(!1,S,I),z)):T&&(clearTimeout(x.current),n(!1,S,I))},[y,n]),P=A.useCallback(()=>{M.current(),w.current=void 0},[]),D=A.useCallback(()=>{if(N.current){const S=Ye(l.floating.current).body;S.style.pointerEvents="",S.removeAttribute(sf),N.current=!1}},[l]);return A.useEffect(()=>{if(!c)return;function S(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function T(B){if(clearTimeout(x.current),O.current=!1,f&&!Zo(C.current)||h>0&&Gs(y.current,"open")===0)return;const $=Gs(y.current,"open",C.current);$?x.current=setTimeout(()=>{n(!0,B,"hover")},$):n(!0,B,"hover")}function I(B){if(S())return;M.current();const $=Ye(a);if(clearTimeout(_.current),v.current){r||clearTimeout(x.current),w.current=v.current({...t,tree:b,x:B.clientX,y:B.clientY,onClose(){D(),P(),F(B,!0,"safe-polygon")}});const W=w.current;$.addEventListener("mousemove",W),M.current=()=>{$.removeEventListener("mousemove",W)};return}(C.current==="touch"?!Se(a,B.relatedTarget):!0)&&F(B)}function z(B){S()||v.current==null||v.current({...t,tree:b,x:B.clientX,y:B.clientY,onClose(){D(),P(),F(B)}})(B)}if(pe(s)){const B=s;return r&&B.addEventListener("mouseleave",z),a==null||a.addEventListener("mouseleave",z),p&&B.addEventListener("mousemove",T,{once:!0}),B.addEventListener("mouseenter",T),B.addEventListener("mouseleave",I),()=>{r&&B.removeEventListener("mouseleave",z),a==null||a.removeEventListener("mouseleave",z),p&&B.removeEventListener("mousemove",T),B.removeEventListener("mouseenter",T),B.removeEventListener("mouseleave",I)}}},[s,a,c,t,f,h,p,F,P,D,n,r,b,y,v,o]),be(()=>{var S;if(c&&r&&(S=v.current)!=null&&S.__options.blockPointerEvents&&E()){const I=Ye(a).body;if(I.setAttribute(sf,""),I.style.pointerEvents="none",N.current=!0,pe(s)&&a){var T;const z=s,B=b==null||(T=b.nodesRef.current.find($=>$.id===m))==null||(T=T.context)==null?void 0:T.elements.floating;return B&&(B.style.pointerEvents=""),z.style.pointerEvents="auto",a.style.pointerEvents="auto",()=>{z.style.pointerEvents="",a.style.pointerEvents=""}}}},[c,r,m,a,s,b,v,E]),be(()=>{r||(C.current=void 0,P(),D())},[r,P,D]),A.useEffect(()=>()=>{P(),clearTimeout(x.current),clearTimeout(_.current),D()},[c,s,P,D]),A.useMemo(()=>{if(!c)return{};function S(T){C.current=T.pointerType}return{reference:{onPointerDown:S,onPointerEnter:S,onMouseMove(T){r||h===0||(clearTimeout(_.current),_.current=setTimeout(()=>{O.current||n(!0,T.nativeEvent,"hover")},h))}},floating:{onMouseEnter(){clearTimeout(x.current)},onMouseLeave(T){F(T.nativeEvent,!1)}}}},[c,h,r,n,F])}function hk(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 yr(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 gk(t,e){let r,n=-1;function o(i,s){s>n&&(r=i,n=s),yr(t,i).forEach(l=>{o(l.id,s+1)})}return o(e,0),t.find(i=>i.id===r)}let Vr=new WeakMap,fi=new WeakSet,hi={},Xs=0;const pk=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,af=t=>t&&(t.host||af(t.parentNode)),bk=(t,e)=>e.map(r=>{if(t.contains(r))return r;const n=af(r);return t.contains(n)?n:null}).filter(r=>r!=null);function mk(t,e,r,n){const o="data-floating-ui-inert",i=n?"inert":r?"aria-hidden":null,s=bk(e,t),a=new Set,l=new Set(s),c=[];hi[o]||(hi[o]=new WeakMap);const d=hi[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 b=i?p.getAttribute(i):null,m=b!==null&&b!=="false",v=(Vr.get(p)||0)+1,y=(d.get(p)||0)+1;Vr.set(p,v),d.set(p,y),c.push(p),v===1&&m&&fi.add(p),y===1&&p.setAttribute(o,""),!m&&i&&p.setAttribute(i,"true")}})}return Xs++,()=>{c.forEach(h=>{const p=(Vr.get(h)||0)-1,b=(d.get(h)||0)-1;Vr.set(h,p),d.set(h,b),p||(!fi.has(h)&&i&&h.removeAttribute(i),fi.delete(h)),b||h.removeAttribute(o)}),Xs--,Xs||(Vr=new WeakMap,Vr=new WeakMap,fi=new WeakSet,hi={})}}function lf(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=Ye(t[0]).body;return mk(t.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,e,r)}const Hn=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function cf(t,e){const r=li(t,Hn());e==="prev"&&r.reverse();const n=r.indexOf(St(Ye(t)));return r.slice(n+1)[0]}function df(){return cf(document.body,"next")}function uf(){return cf(document.body,"prev")}function Wn(t,e){const r=e||t.currentTarget,n=t.relatedTarget;return!n||!Se(r,n)}function yk(t){li(t,Hn()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function vk(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 Zs={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 xk;function ff(t){t.key==="Tab"&&(t.target,clearTimeout(xk))}const gi=A.forwardRef(function(e,r){const[n,o]=A.useState();be(()=>(Ds()&&o("button"),document.addEventListener("keydown",ff),()=>{document.removeEventListener("keydown",ff)}),[]);const i={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[mr("focus-guard")]:"",style:Zs};return A.createElement("span",jn({},e,i))}),hf=A.createContext(null),gf=mr("portal");function wk(t){let{id:e,root:r}=t===void 0?{}:t;const[n,o]=A.useState(null),i=di(),s=pf(),a=A.useRef(null);return be(()=>()=>{n==null||n.remove(),queueMicrotask(()=>{a.current=null})},[n]),be(()=>{if(a.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=i,c.setAttribute(gf,""),l.appendChild(c),a.current=c,o(c)},[e,i]),be(()=>{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(gf,""),l=c||l,l.appendChild(d),a.current=d,o(d)},[e,r,i,s]),n}function kk(t){let{children:e,id:r,root:n=null,preserveTabOrder:o=!0}=t;const i=wk({id:r,root:n}),[s,a]=A.useState(null),l=A.useRef(null),c=A.useRef(null),d=A.useRef(null),u=A.useRef(null),f=!!s&&!s.modal&&s.open&&o&&!!(n||i);return A.useEffect(()=>{if(!i||!o||s!=null&&s.modal)return;function h(p){i&&Wn(p)&&(p.type==="focusin"?vk:yk)(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]),A.createElement(hf.Provider,{value:A.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:i,setFocusManagerState:a}),[o,i])},f&&i&&A.createElement(gi,{"data-type":"outside",ref:l,onFocus:h=>{if(Wn(h,i)){var p;(p=d.current)==null||p.focus()}else{const b=uf()||(s==null?void 0:s.refs.domReference.current);b==null||b.focus()}}}),f&&i&&A.createElement("span",{"aria-owns":i.id,style:Zs}),i&&ga.createPortal(e,i),f&&i&&A.createElement(gi,{"data-type":"outside",ref:c,onFocus:h=>{if(Wn(h,i)){var p;(p=u.current)==null||p.focus()}else{const b=df()||(s==null?void 0:s.refs.domReference.current);b==null||b.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,h.nativeEvent))}}}))}const pf=()=>A.useContext(hf),_k=20;let vr=[];function Js(t){vr=vr.filter(r=>r.isConnected);let e=t;if(!(!e||gr(e)==="body")){if(!Z1(e,Hn())){const r=li(e,Hn())[0];if(!r)return;e=r}vr.push(e),vr.length>_k&&(vr=vr.slice(-20))}}function bf(){return vr.slice().reverse().find(t=>t.isConnected)}const Ck=A.forwardRef(function(e,r){return A.createElement("button",jn({},e,{type:"button",ref:r,tabIndex:-1,style:Zs}))});function mf(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:b,dataRef:m,elements:{domReference:v,floating:y}}=e,C=typeof s=="number"&&s<0,x=Mu(v)&&C,w=pk()?i:!0,_=Nt(o),O=Nt(s),N=Nt(a),M=$n(),E=pf(),F=A.useRef(null),P=A.useRef(null),D=A.useRef(!1),S=A.useRef(!1),T=E!=null,I=A.useCallback(function(j){return j===void 0&&(j=y),j?li(j,Hn()):[]},[y]),z=A.useCallback(j=>{const W=I(j);return _.current.map(V=>v&&V==="reference"?v:y&&V==="floating"?y:W).filter(Boolean).flat()},[v,y,_,I]);A.useEffect(()=>{if(n||!l)return;function j(V){if(V.key==="Tab"){Se(y,St(Ye(y)))&&I().length===0&&!x&&je(V);const Y=z(),U=Xt(V);_.current[0]==="reference"&&U===v&&(je(V),V.shiftKey?Bt(Y[Y.length-1]):Bt(Y[1])),_.current[1]==="floating"&&U===y&&V.shiftKey&&(je(V),Bt(Y[0]))}}const W=Ye(y);return W.addEventListener("keydown",j),()=>{W.removeEventListener("keydown",j)}},[n,v,y,l,_,x,I,z]),A.useEffect(()=>{if(n||!d)return;function j(){S.current=!0,setTimeout(()=>{S.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(mr("focus-guard"))||M&&(yr(M.nodesRef.current,h).find(q=>{var G,de;return Se((G=q.context)==null?void 0:G.elements.floating,Y)||Se((de=q.context)==null?void 0:de.elements.domReference,Y)})||hk(M.nodesRef.current,h).find(q=>{var G,de;return((G=q.context)==null?void 0:G.elements.floating)===Y||((de=q.context)==null?void 0:de.elements.domReference)===Y})));Y&&U&&!S.current&&Y!==bf()&&(D.current=!0,p(!1,V))})}if(y&&Be(v))return v.addEventListener("focusout",W),v.addEventListener("pointerdown",j),!l&&y.addEventListener("focusout",W),()=>{v.removeEventListener("focusout",W),v.removeEventListener("pointerdown",j),!l&&y.removeEventListener("focusout",W)}},[n,v,y,l,h,M,E,p,d]),A.useEffect(()=>{var j;if(n)return;const W=Array.from((E==null||(j=E.portalNode)==null?void 0:j.querySelectorAll("["+mr("portal")+"]"))||[]);if(y){const V=[y,...W,F.current,P.current,_.current.includes("reference")||x?v:null].filter(U=>U!=null),Y=l||x?lf(V,w,!w):lf(V);return()=>{Y()}}},[n,v,y,l,_,E,x,w]),be(()=>{if(n||!y)return;const j=Ye(y),W=St(j);queueMicrotask(()=>{const V=z(y),Y=O.current,U=(typeof Y=="number"?V[Y]:Y.current)||y,q=Se(y,W);!C&&!q&&u&&Bt(U,{preventScroll:U===y})})},[n,u,y,C,z,O]),be(()=>{if(n||!y)return;let j=!1;const W=Ye(y),V=St(W),Y=m.current;Js(V);function U(q){let{reason:G,event:de,nested:X}=q;G==="escape-key"&&f.domReference.current&&Js(f.domReference.current),G==="hover"&&de.type==="mouseleave"&&(D.current=!0),G==="outside-press"&&(X?(D.current=!1,j=!0):D.current=!(Tu(de)||As(de)))}return b.on("openchange",U),()=>{b.off("openchange",U);const q=St(W),G=Se(y,q)||M&&yr(M.nodesRef.current,h).some(oe=>{var Ie;return Se((Ie=oe.context)==null?void 0:Ie.elements.floating,q)});(G||Y.openEvent&&["click","mousedown"].includes(Y.openEvent.type))&&f.domReference.current&&Js(f.domReference.current);const X=bf();N.current&&!D.current&&Be(X)&&(!(X!==q&&q!==W.body)||G)&&Bt(X,{cancelPrevious:!1,preventScroll:j})}},[n,y,N,m,f,b,M,h]),be(()=>{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]),be(()=>{if(n||!y||typeof MutationObserver!="function"||C)return;const j=()=>{const V=y.getAttribute("tabindex");_.current.includes("floating")||St(Ye(y))!==f.domReference.current&&I().length===0?V!=="0"&&y.setAttribute("tabindex","0"):V!=="-1"&&y.setAttribute("tabindex","-1")};j();const W=new MutationObserver(j);return W.observe(y,{childList:!0,subtree:!0,attributes:!0}),()=>{W.disconnect()}},[n,y,f,_,I,C]);function B(j){return n||!c||!l?null:A.createElement(Ck,{ref:j==="start"?F:P,onClick:W=>p(!1,W.nativeEvent)},typeof c=="string"?c:"Dismiss")}const $=!n&&w&&(T||l);return A.createElement(A.Fragment,null,$&&A.createElement(gi,{"data-type":"inside",ref:E==null?void 0:E.beforeInsideRef,onFocus:j=>{if(l){const V=z();Bt(o[0]==="reference"?V[0]:V[V.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(D.current=!1,Wn(j,E.portalNode)){const V=df()||v;V==null||V.focus()}else{var W;(W=E.beforeOutsideRef.current)==null||W.focus()}}}),!x&&B("start"),r,B("end"),$&&A.createElement(gi,{"data-type":"inside",ref:E==null?void 0:E.afterInsideRef,onFocus:j=>{if(l)Bt(z()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(d&&(D.current=!0),Wn(j,E.portalNode)){const V=uf()||v;V==null||V.focus()}else{var W;(W=E.afterOutsideRef.current)==null||W.focus()}}}))}const Qs=new Set,Sk=A.forwardRef(function(e,r){let{lockScroll:n=!1,...o}=e;const i=di();return be(()=>{if(!n)return;Qs.add(i);const s=/iP(hone|ad|od)|iOS/.test(Ps()),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 b=((h=window.visualViewport)==null?void 0:h.offsetLeft)||0,m=((p=window.visualViewport)==null?void 0:p.offsetTop)||0;Object.assign(a,{position:"fixed",top:-(f-Math.floor(m))+"px",left:-(u-Math.floor(b))+"px",right:"0"})}return()=>{Qs.delete(i),Qs.size===0&&(Object.assign(a,{overflow:"",[c]:""}),s&&(Object.assign(a,{position:"",top:"",left:"",right:""}),window.scrollTo(u,f)))}},[i,n]),A.createElement("div",jn({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function yf(t){return Be(t.target)&&t.target.tagName==="BUTTON"}function vf(t){return Fs(t)}function xf(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=A.useRef(),f=A.useRef(!1);return A.useMemo(()=>s?{reference:{onPointerDown(h){u.current=h.pointerType},onMouseDown(h){h.button===0&&(Zo(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}Zo(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||yf(h))&&(h.key===" "&&!vf(i)&&(h.preventDefault(),f.current=!0),h.key==="Enter"&&n(!(r&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||yf(h)||vf(i)||h.key===" "&&f.current&&(f.current=!1,n(!(r&&l),h.nativeEvent,"click"))}}}:{},[s,o,a,c,d,i,l,r,n])}const Ek={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Ok={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},wf=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 kf(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:b=!1,bubbles:m,capture:v}=e,y=$n(),C=Tt(typeof u=="function"?u:()=>!1),x=typeof u=="function"?C:u,w=A.useRef(!1),_=A.useRef(!1),{escapeKey:O,outsidePress:N}=wf(m),{escapeKey:M,outsidePress:E}=wf(v),F=Tt(T=>{if(!r||!c||!d||T.key!=="Escape")return;const I=y?yr(y.nodesRef.current,o):[];if(!O&&(T.stopPropagation(),I.length>0)){let z=!0;if(I.forEach(B=>{var $;if(($=B.context)!=null&&$.open&&!B.context.dataRef.current.__escapeKeyBubbles){z=!1;return}}),!z)return}n(!1,Ww(T)?T.nativeEvent:T,"escape-key")}),P=Tt(T=>{var I;const z=()=>{var B;F(T),(B=Xt(T))==null||B.removeEventListener("keydown",z)};(I=Xt(T))==null||I.addEventListener("keydown",z)}),D=Tt(T=>{const I=w.current;w.current=!1;const z=_.current;if(_.current=!1,f==="click"&&z||I||typeof x=="function"&&!x(T))return;const B=Xt(T),$="["+mr("inert")+"]",j=Ye(a).querySelectorAll($);let W=pe(B)?B:null;for(;W&&!Kt(W);){const U=Ft(W);if(Kt(U)||!pe(U))break;W=U}if(j.length&&pe(B)&&!Vw(B)&&!Se(B,a)&&Array.from(j).every(U=>!Se(W,U)))return;if(Be(B)&&a){const U=B.clientWidth>0&&B.scrollWidth>B.clientWidth,q=B.clientHeight>0&&B.scrollHeight>B.clientHeight;let G=q&&T.offsetX>B.clientWidth;if(q&&dt(B).direction==="rtl"&&(G=T.offsetX<=B.offsetWidth-B.clientWidth),G||U&&T.offsetY>B.clientHeight)return}const V=y&&yr(y.nodesRef.current,o).some(U=>{var q;return Ls(T,(q=U.context)==null?void 0:q.elements.floating)});if(Ls(T,a)||Ls(T,s)||V)return;const Y=y?yr(y.nodesRef.current,o):[];if(Y.length>0){let U=!0;if(Y.forEach(q=>{var G;if((G=q.context)!=null&&G.open&&!q.context.dataRef.current.__outsidePressBubbles){U=!1;return}}),!U)return}n(!1,T,"outside-press")}),S=Tt(T=>{var I;const z=()=>{var B;D(T),(B=Xt(T))==null||B.removeEventListener(f,z)};(I=Xt(T))==null||I.addEventListener(f,z)});return A.useEffect(()=>{if(!r||!c)return;l.current.__escapeKeyBubbles=O,l.current.__outsidePressBubbles=N;function T(B){n(!1,B,"ancestor-scroll")}const I=Ye(a);d&&I.addEventListener("keydown",M?P:F,M),x&&I.addEventListener(f,E?S:D,E);let z=[];return b&&(pe(s)&&(z=Gt(s)),pe(a)&&(z=z.concat(Gt(a))),!pe(i)&&i&&i.contextElement&&(z=z.concat(Gt(i.contextElement)))),z=z.filter(B=>{var $;return B!==(($=I.defaultView)==null?void 0:$.visualViewport)}),z.forEach(B=>{B.addEventListener("scroll",T,{passive:!0})}),()=>{d&&I.removeEventListener("keydown",M?P:F,M),x&&I.removeEventListener(f,E?S:D,E),z.forEach(B=>{B.removeEventListener("scroll",T)})}},[l,a,s,i,d,x,f,r,n,b,c,O,N,F,M,P,D,E,S]),A.useEffect(()=>{w.current=!1},[x,f]),A.useMemo(()=>c?{reference:{onKeyDown:F,[Ek[p]]:T=>{h&&n(!1,T.nativeEvent,"reference-press")}},floating:{onKeyDown:F,onMouseDown(){_.current=!0},onMouseUp(){_.current=!0},[Ok[f]]:()=>{w.current=!0}}}:{},[c,h,f,p,n,F])}let ea;process.env.NODE_ENV!=="production"&&(ea=new Set);function _f(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 N="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=ea)!=null&&s.has(N))){var a;(a=ea)==null||a.add(N),console.error(N)}}}const[l,c]=A.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=E1(t),f=$n(),h=ui()!=null,p=Tt((N,M,E)=>{N&&(m.current.openEvent=M),v.emit("openchange",{open:N,event:M,reason:E,nested:h}),n==null||n(N,M,E)}),b=A.useRef(null),m=A.useRef({}),v=A.useState(()=>ck())[0],y=di(),C=A.useCallback(N=>{const M=pe(N)?{getBoundingClientRect:()=>N.getBoundingClientRect(),contextElement:N}:N;u.refs.setReference(M)},[u.refs]),x=A.useCallback(N=>{(pe(N)||N===null)&&(b.current=N,c(N)),(pe(u.refs.reference.current)||u.refs.reference.current===null||N!==null&&!pe(N))&&u.refs.setReference(N)},[u.refs]),w=A.useMemo(()=>({...u.refs,setReference:x,setPositionReference:C,domReference:b}),[u.refs,x,C]),_=A.useMemo(()=>({...u.elements,domReference:d}),[u.elements,d]),O=A.useMemo(()=>({...u,refs:w,elements:_,dataRef:m,nodeId:o,floatingId:y,events:v,open:r,onOpenChange:p}),[u,o,y,v,r,p,w,_]);return be(()=>{const N=f==null?void 0:f.nodesRef.current.find(M=>M.id===o);N&&(N.context=O)}),A.useMemo(()=>({...u,context:O,refs:w,elements:_}),[u,w,_,O])}function Tk(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=A.useRef(!1),d=A.useRef(),u=A.useRef(!0);return A.useEffect(()=>{if(!a)return;const f=Je(s);function h(){!r&&Be(s)&&s===St(Ye(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]),A.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]),A.useEffect(()=>()=>{clearTimeout(d.current)},[]),A.useMemo(()=>a?{reference:{onPointerDown(f){As(f.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const h=Xt(f.nativeEvent);if(l&&pe(h))try{if(Ds()&&Nu())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!Fs(h))return}n(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const h=f.relatedTarget,p=pe(h)&&h.hasAttribute(mr("focus-guard"))&&h.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{const b=St(s?s.ownerDocument:document);!h&&b===s||Se(i.floating.current,b)||Se(s,b)||p||n(!1,f.nativeEvent,"focus")})}}}:{},[a,l,s,i,n])}const Cf="active",Sf="selected";function ta(t,e,r){const n=new Map,o=r==="item";let i=t;if(o&&t){const{[Cf]:s,[Sf]: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&&[Cf,Sf].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),b=0;b<h;b++)p[b]=arguments[b];return(f=n.get(c))==null?void 0:f.map(m=>m(...p)).find(m=>m!==void 0)}}}else s[c]=d}),s),{})}}function Ef(t){t===void 0&&(t=[]);const e=t,r=A.useCallback(i=>ta(i,t,"reference"),e),n=A.useCallback(i=>ta(i,t,"floating"),e),o=A.useCallback(i=>ta(i,t,"item"),t.map(i=>i==null?void 0:i.item));return A.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])}let Of=!1;function pi(t,e,r){switch(t){case"vertical":return e;case"horizontal":return r;default:return e||r}}function Tf(t,e){return pi(e,t===Us||t===zn,t===Hr||t===Wr)}function ra(t,e,r){return pi(e,t===zn,r?t===Hr:t===Wr)||t==="Enter"||t===" "||t===""}function Nk(t,e,r){return pi(e,r?t===Hr:t===Wr,t===zn)}function Nf(t,e,r){return pi(e,r?t===Wr:t===Hr,t===Us)}function Mk(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:b=!1,virtual:m=!1,focusItemOnOpen:v="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:C=!0,disabledIndices:x=void 0,orientation:w="vertical",cols:_=1,scrollItemIntoView:O=!0,virtualItemRef:N,itemSizes:M,dense:E=!1}=e;process.env.NODE_ENV!=="production"&&(f&&(h||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),m||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),w==="vertical"&&_>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const F=ui(),P=$n(),D=Tt(c),S=A.useRef(v),T=A.useRef(u??-1),I=A.useRef(null),z=A.useRef(!0),B=A.useRef(D),$=A.useRef(!!s),j=A.useRef(!1),W=A.useRef(!1),V=Nt(x),Y=Nt(r),U=Nt(O),[q,G]=A.useState(),[de,X]=A.useState(),oe=Tt(function(J,Ee,le){le===void 0&&(le=!1);const re=J.current[Ee.current];re&&(m?(G(re.id),P==null||P.events.emit("virtualfocus",re),N&&(N.current=re)):Bt(re,{preventScroll:!0,sync:Nu()&&Ds()?Of||j.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))}))});be(()=>{document.createElement("div").focus({get preventScroll(){return Of=!0,!1}})},[]),be(()=>{d&&(r&&s?S.current&&u!=null&&(W.current=!0,T.current=u,D(u)):$.current&&(T.current=-1,B.current(null)))},[d,r,s,u,D]),be(()=>{if(d&&r&&s)if(l==null){if(j.current=!1,u!=null)return;if($.current&&(T.current=-1,oe(a,T)),!$.current&&S.current&&(I.current!=null||S.current===!0&&I.current==null)){let J=0;const Ee=()=>{a.current[0]==null?(J<2&&(J?requestAnimationFrame:queueMicrotask)(Ee),J++):(T.current=I.current==null||ra(I.current,w,b)||p?qs(a,V.current):tf(a,V.current),I.current=null,D(T.current))};Ee()}}else Bn(a,l)||(T.current=l,oe(a,T,W.current),W.current=!1)},[d,r,s,l,u,p,a,w,b,D,oe,V]),be(()=>{var J;if(!d||s||!P||m||!$.current)return;const Ee=P.nodesRef.current,le=(J=Ee.find(Q=>Q.id===F))==null||(J=J.context)==null?void 0:J.elements.floating,re=St(Ye(s)),he=Ee.some(Q=>Q.context&&Se(Q.context.elements.floating,re));le&&!he&&z.current&&le.focus({preventScroll:!0})},[d,s,P,F,m]),be(()=>{if(!d||!P||!m||F)return;function J(Ee){X(Ee.id),N&&(N.current=Ee)}return P.events.on("virtualfocus",J),()=>{P.events.off("virtualfocus",J)}},[d,P,m,F,N]),be(()=>{B.current=D,$.current=!!s}),be(()=>{r||(I.current=null)},[r]);const Ie=l!=null,$e=A.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"||(T.current=-1,oe(a,T),D(null),m||Bt(o.floating.current,{preventScroll:!0}))}}}},[r,o,oe,y,a,D,m]);return A.useMemo(()=>{if(!d)return{};const J=V.current;function Ee(R){if(z.current=!1,j.current=!0,!Y.current&&R.currentTarget===o.floating.current)return;if(p&&Nf(R.key,w,b)){je(R),n(!1,R.nativeEvent,"list-navigation"),Be(i)&&!m&&i.focus();return}const Oe=T.current,ie=qs(a,J),ke=tf(a,J);if(R.key==="Home"&&(je(R),T.current=ie,D(T.current)),R.key==="End"&&(je(R),T.current=ke,D(T.current)),_>1){const Le=M||Array.from({length:a.current.length},()=>({width:1,height:1})),Pe=ek(Le,_,E),ut=Pe.findIndex(nt=>nt!=null&&!(J!=null&&J.includes(nt))),mt=Pe.reduce((nt,Jt,ot)=>Jt!=null&&!(J!=null&&J.includes(Jt))?ot:nt,-1);if(T.current=Pe[Q1({current:Pe.map(nt=>nt!=null?a.current[nt]:null)},{event:R,orientation:w,loop:h,cols:_,disabledIndices:rk([...J||[],void 0],Pe),minIndex:ut,maxIndex:mt,prevIndex:tk(T.current,Le,Pe,_,R.key===zn?"bl":R.key===Wr?"tr":"tl"),stopEvent:!0})],D(T.current),w==="both")return}if(Tf(R.key,w)){if(je(R),r&&!m&&St(R.currentTarget.ownerDocument)===R.currentTarget){T.current=ra(R.key,w,b)?ie:ke,D(T.current);return}ra(R.key,w,b)?h?T.current=Oe>=ke?f&&Oe!==a.current.length?-1:ie:Re(a,{startingIndex:Oe,disabledIndices:J}):T.current=Math.min(ke,Re(a,{startingIndex:Oe,disabledIndices:J})):h?T.current=Oe<=ie?f&&Oe!==-1?a.current.length:ke:Re(a,{startingIndex:Oe,decrement:!0,disabledIndices:J}):T.current=Math.max(ie,Re(a,{startingIndex:Oe,decrement:!0,disabledIndices:J})),Bn(a,T.current)?D(null):D(T.current)}}function le(R){v==="auto"&&Tu(R.nativeEvent)&&(S.current=!0)}function re(R){S.current=v,v==="auto"&&As(R.nativeEvent)&&(S.current=!0)}const he=m&&r&&Ie&&{"aria-activedescendant":de||q},Q=a.current.find(R=>(R==null?void 0:R.id)===q);return{reference:{...he,onKeyDown(R){z.current=!1;const Oe=R.key.indexOf("Arrow")===0,ie=Nk(R.key,w,b),ke=Nf(R.key,w,b),Le=Tf(R.key,w),Pe=(p?ie:Le)||R.key==="Enter"||R.key.trim()==="";if(m&&r){const Jt=P==null?void 0:P.nodesRef.current.find(yi=>yi.parentId==null),ot=P&&Jt?gk(P.nodesRef.current,Jt.id):null;if(Oe&&ot&&N){const yi=new KeyboardEvent("keydown",{key:R.key,bubbles:!0});if(ie||ke){var ut,mt;const b2=((ut=ot.context)==null?void 0:ut.elements.domReference)===R.currentTarget,Xh=ke&&!b2?(mt=ot.context)==null?void 0:mt.elements.domReference:ie?Q:null;Xh&&(je(R),Xh.dispatchEvent(yi),X(void 0))}if(Le&&ot.context&&ot.context.open&&ot.parentId&&R.currentTarget!==ot.context.elements.domReference){var nt;je(R),(nt=ot.context.elements.domReference)==null||nt.dispatchEvent(yi);return}}return Ee(R)}if(!(!r&&!C&&Oe)){if(Pe&&(I.current=p&&Le?null:R.key),p){ie&&(je(R),r?(T.current=qs(a,J),D(T.current)):n(!0,R.nativeEvent,"list-navigation"));return}Le&&(u!=null&&(T.current=u),je(R),!r&&C?n(!0,R.nativeEvent,"list-navigation"):Ee(R),r&&D(T.current))}},onFocus(){r&&D(null)},onPointerDown:re,onMouseDown:le,onClick:le},floating:{"aria-orientation":w==="both"?void 0:w,...!Mu(i)&&he,onKeyDown:Ee,onPointerMove(){z.current=!0}},item:$e}},[i,o,q,de,V,Y,a,d,w,b,m,r,Ie,p,u,C,f,_,h,v,D,n,$e,P,N,M,E])}const Pk=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Mf(t,e){var r;e===void 0&&(e={});const{open:n,floatingId:o}=t,{enabled:i=!0,role:s="dialog"}=e,a=(r=Pk.get(s))!=null?r:s,l=di(),d=ui()!=null;return A.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 b={role:"option",...h&&{id:o+"-option"}};switch(s){case"select":return{...b,"aria-selected":h&&p};case"combobox":return{...b,...h&&{"aria-selected":!0}}}return{}}}},[i,s,a,n,o,l,d])}function Ak(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=A.useRef(),b=A.useRef(""),m=A.useRef((r=h??s)!=null?r:-1),v=A.useRef(null),y=Tt(a),C=Tt(l),x=Nt(d),w=Nt(f);return be(()=>{n&&(clearTimeout(p.current),v.current=null,b.current="")},[n]),be(()=>{if(n&&b.current===""){var _;m.current=(_=h??s)!=null?_:-1}},[n,h,s]),A.useMemo(()=>{if(!c)return{};function _(M){M?o.current.typing||(o.current.typing=M,C(M)):o.current.typing&&(o.current.typing=M,C(M))}function O(M,E,F){const P=x.current?x.current(E,F):E.find(D=>(D==null?void 0:D.toLocaleLowerCase().indexOf(F.toLocaleLowerCase()))===0);return P?M.indexOf(P):-1}function N(M){const E=i.current;if(b.current.length>0&&b.current[0]!==" "&&(O(E,E,b.current)===-1?_(!1):M.key===" "&&je(M)),E==null||w.current.includes(M.key)||M.key.length!==1||M.ctrlKey||M.metaKey||M.altKey)return;n&&M.key!==" "&&(je(M),_(!0)),E.every(S=>{var T,I;return S?((T=S[0])==null?void 0:T.toLocaleLowerCase())!==((I=S[1])==null?void 0:I.toLocaleLowerCase()):!0})&&b.current===M.key&&(b.current="",m.current=v.current),b.current+=M.key,clearTimeout(p.current),p.current=setTimeout(()=>{b.current="",m.current=v.current,_(!1)},u);const P=m.current,D=O(E,[...E.slice((P||0)+1),...E.slice(0,(P||0)+1)],b.current);D!==-1?(y(D),v.current=D):M.key!==" "&&(b.current="",_(!1))}return{reference:{onKeyDown:N},floating:{onKeyDown:N,onKeyUp(M){M.key===" "&&_(!1)}}}},[c,n,o,i,u,w,x,y,C])}function Pf(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 Dk(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function Ik(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 b=u-s,m=f-a,y=Math.sqrt(b*b+m*m)/p;return s=u,a=f,l=h,y}const d=u=>{let{x:f,y:h,placement:p,elements:b,onClose:m,nodeId:v,tree:y}=u;return function(x){function w(){clearTimeout(o),m()}if(clearTimeout(o),!b.domReference||!b.floating||p==null||f==null||h==null)return;const{clientX:_,clientY:O}=x,N=[_,O],M=Xt(x),E=x.type==="mouseleave",F=Se(b.floating,M),P=Se(b.domReference,M),D=b.domReference.getBoundingClientRect(),S=b.floating.getBoundingClientRect(),T=p.split("-")[0],I=f>S.right-S.width/2,z=h>S.bottom-S.height/2,B=Dk(N,D),$=S.width>D.width,j=S.height>D.height,W=($?D:S).left,V=($?D:S).right,Y=(j?D:S).top,U=(j?D:S).bottom;if(F&&(i=!0,!E))return;if(P&&(i=!1),P&&!E){i=!0;return}if(E&&pe(x.relatedTarget)&&Se(b.floating,x.relatedTarget)||y&&yr(y.nodesRef.current,v).some(de=>{let{context:X}=de;return X==null?void 0:X.open}))return;if(T==="top"&&h>=D.bottom-1||T==="bottom"&&h<=D.top+1||T==="left"&&f>=D.right-1||T==="right"&&f<=D.left+1)return w();let q=[];switch(T){case"top":q=[[W,D.top+1],[W,S.bottom-1],[V,S.bottom-1],[V,D.top+1]];break;case"bottom":q=[[W,S.top+1],[W,D.bottom-1],[V,D.bottom-1],[V,S.top+1]];break;case"left":q=[[S.right-1,U],[S.right-1,Y],[D.left+1,Y],[D.left+1,U]];break;case"right":q=[[D.right-1,U],[D.right-1,Y],[S.left+1,Y],[S.left+1,U]];break}function G(de){let[X,oe]=de;switch(T){case"top":{const Ie=[$?X+e/2:I?X+e*4:X-e*4,oe+e+1],$e=[$?X-e/2:I?X+e*4:X-e*4,oe+e+1],J=[[S.left,I||$?S.bottom-e:S.top],[S.right,I?$?S.bottom-e:S.top:S.bottom-e]];return[Ie,$e,...J]}case"bottom":{const Ie=[$?X+e/2:I?X+e*4:X-e*4,oe-e],$e=[$?X-e/2:I?X+e*4:X-e*4,oe-e],J=[[S.left,I||$?S.top+e:S.bottom],[S.right,I?$?S.top+e:S.bottom:S.top+e]];return[Ie,$e,...J]}case"left":{const Ie=[X+e+1,j?oe+e/2:z?oe+e*4:oe-e*4],$e=[X+e+1,j?oe-e/2:z?oe+e*4:oe-e*4];return[...[[z||j?S.right-e:S.left,S.top],[z?j?S.right-e:S.left:S.right-e,S.bottom]],Ie,$e]}case"right":{const Ie=[X-e,j?oe+e/2:z?oe+e*4:oe-e*4],$e=[X-e,j?oe-e/2:z?oe+e*4:oe-e*4],J=[[z||j?S.left+e:S.right,S.top],[z?j?S.left+e:S.right:S.left+e,S.bottom]];return[Ie,$e,...J]}}}if(!Pf([_,O],q)){if(i&&!B)return w();if(!E&&n){const de=c(x.clientX,x.clientY);if(de!==null&&de<.1)return w()}Pf([_,O],G([f,h]))?!i&&n&&(o=window.setTimeout(w,40)):w()}}};return d.__options={blockPointerEvents:r},d}const Lk=({arrowRef:t,placement:e})=>{const r=[];return r.push(T1(8)),r.push(e==="auto"?P1():M1()),r.push(N1({padding:8})),t!=null&&t.current&&r.push(A1({element:t.current})),r},Fk=({placement:t})=>t==="auto"?void 0:t,zk=({placement:t})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[t.split("-")[0]],Af=({open:t,arrowRef:e,placement:r="top",setOpen:n})=>_f({placement:Fk({placement:r}),open:t,onOpenChange:n,whileElementsMounted:Yu,middleware:Lk({placement:r,arrowRef:e})}),Df=({context:t,trigger:e,role:r="tooltip",interactions:n=[]})=>Ef([xf(t,{enabled:e==="click"}),fk(t,{enabled:e==="hover",handleClose:Ik()}),kf(t),Mf(t,{role:r}),...n]),If=k.createContext(void 0);function na(){const t=k.useContext(If);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const oa=({className:t,theme:e={},...r})=>{const{theme:n}=na(),o=e.divider??n.floating.divider;return g.jsx("div",{className:L(o,t),...r})},Lf=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=na(),i=r.header??o.floating.header;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:L(i,e),...n,children:t}),g.jsx(oa,{})]})},Ff=k.forwardRef(({children:t,className:e,icon:r,onClick:n,theme:o={},...i},s)=>{const{ref:a,index:l}=sk({label:typeof t=="string"?t:void 0}),c=ef([s,a]),{theme:d,activeIndex:u,dismissOnClick:f,getItemProps:h,handleSelect:p}=na(),b=u===l,m=H(d.floating.item,o),v=i;return g.jsx("li",{role:"menuitem",className:m.container,children:g.jsxs(_s,{ref:c,className:L(m.base,e),...v,...h({onClick:()=>{n==null||n(),f&&p(null)}}),tabIndex:b?0:-1,children:[r&&g.jsx(r,{className:m.icon}),t]})})});Ff.displayName="DropdownItem";const Bk={top:Xv,right:Ud,bottom:Yd,left:Gv},jk=({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(pu,{...l,disabled:o,type:"button",ref:t.setReference,...d,children:e})},zf=({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([]),b=k.useRef([]),m=H(K().dropdown,n),v=i,y=i["data-testid"]||"flowbite-dropdown-target",{placement:C=i.inline?"bottom-start":"bottom",trigger:x="click",label:w,inline:_,arrowIcon:O=!0,...N}=v,M=k.useCallback(j=>{u(j),a(!1)},[]),E=k.useCallback(j=>{s?c(j):M(j)},[s,M]),{context:F,floatingStyles:P,refs:D}=Af({open:s,setOpen:a,placement:C}),S=Mk(F,{listRef:p,activeIndex:l,selectedIndex:d,onNavigate:c}),T=Ak(F,{listRef:b,activeIndex:l,selectedIndex:d,onMatch:E}),{getReferenceProps:I,getFloatingProps:z,getItemProps:B}=Df({context:F,role:"menu",trigger:x,interactions:[S,T]}),$=k.useMemo(()=>{const[j]=C.split("-");return Bk[j]??Yd},[C]);return g.jsxs(If.Provider,{value:{theme:m,activeIndex:l,dismissOnClick:r,getItemProps:B,handleSelect:M},children:[g.jsxs(jk,{...N,refs:D,inline:_,theme:m,"data-testid":y,className:L(m.floating.target,N.className),setButtonWidth:h,getReferenceProps:I,renderTrigger:o,children:[w,O&&g.jsx($,{className:m.arrowIcon})]}),s&&g.jsx(mf,{context:F,modal:!1,children:g.jsx("div",{ref:D.setFloating,style:{...P,minWidth:f},"data-testid":"flowbite-dropdown","aria-expanded":s,...z({className:L(m.floating.base,m.floating.animation,"duration-100",!s&&m.floating.hidden,m.floating.style.auto,e)}),children:g.jsx(ik,{elementsRef:p,labelsRef:b,children:g.jsx("ul",{className:m.content,tabIndex:-1,children:t})})})})]})};zf.displayName="Dropdown",Lf.displayName="Dropdown.Header",oa.displayName="Dropdown.Divider",Object.assign(zf,{Item:Ff,Header:Lf,Divider:oa});const Bf=k.forwardRef(({className:t,color:e="gray",helperText:r,sizing:n="md",theme:o={},...i},s)=>{const a=H(K().fileInput,o);return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:L(a.root.base,t),children:g.jsx("div",{className:a.field.base,children:g.jsx("input",{className:L(a.field.input.base,a.field.input.colors[e],a.field.input.sizes[n]),...i,type:"file",ref:s})})}),r&&g.jsx(Dn,{color:e,children:r})]})});Bf.displayName="FileInput";const $k=k.forwardRef(({label:t,helperText:e,color:r="default",sizing:n="md",variant:o,disabled:i=!1,theme:s={},className:a,...l},c)=>{const d=k.useId(),u=H(K().floatingLabel,s);return g.jsxs("div",{children:[g.jsxs("div",{className:L("relative",o==="standard"?"z-0":""),children:[g.jsx("input",{type:"text",id:l.id?l.id:"floatingLabel"+d,"aria-describedby":"outlined_success_help",className:L(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:L(u.label[r][o][n],a),children:t})]}),g.jsx("p",{id:"outlined_helper_text"+d,className:L(u.helperText[r],a),children:e})]})});$k.displayName="FloatingLabel";const jf=({alt:t,className:e,children:r,href:n,name:o,src:i,theme:s={},...a})=>{const l=H(K().footer.brand,s);return g.jsx("div",{children:n?g.jsxs("a",{"data-testid":"flowbite-footer-brand",href:n,className:L(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:L(l.img,e),...a})})},$f=({by:t,className:e,href:r,theme:n={},year:o,...i})=>{const s=H(K().footer.copyright,n);return g.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:L(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})]})},Hf=({className:t,theme:e={},...r})=>{const n=H(K().footer.divider,e);return g.jsx("hr",{"data-testid":"footer-divider",className:L(n.base,t),...r})},Wf=({ariaLabel:t,className:e,href:r,icon:n,theme:o={},...i})=>{const s=H(K().footer.icon,o);return g.jsx("div",{children:r?g.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:r,className:L(s.base,e),...i,children:g.jsx(n,{className:s.size})}):g.jsx(n,{"data-testid":"flowbite-footer-icon",className:s.size,...i})})},Vf=({as:t="a",children:e,className:r,href:n,theme:o={},...i})=>{const s=H(K().footer.groupLink.link,o);return g.jsx("li",{className:L(s.base,r),children:g.jsx(t,{href:n,className:s.href,...i,children:e})})},Rf=({children:t,className:e,col:r=!1,theme:n={},...o})=>{const i=H(K().footer.groupLink,n);return g.jsx("ul",{"data-testid":"footer-groupLink",className:L(i.base,r&&i.col,e),...o,children:t})},Yf=({as:t="h2",className:e,theme:r={},title:n,...o})=>{const i=H(K().footer.title,r);return g.jsx(t,{"data-testid":"flowbite-footer-title",className:L(i.base,e),...o,children:n})},Uf=({bgDark:t=!1,children:e,className:r,container:n=!1,theme:o={},...i})=>{const s=H(K().footer,o);return g.jsx("footer",{"data-testid":"flowbite-footer",className:L(s.root.base,t&&s.root.bgDark,n&&s.root.container,r),...i,children:e})};Uf.displayName="Footer",$f.displayName="Footer.Copyright",Vf.displayName="Footer.Link",jf.displayName="Footer.Brand",Rf.displayName="Footer.LinkGroup",Wf.displayName="Footer.Icon",Yf.displayName="Footer.Title",Hf.displayName="Footer.Divider",Object.assign(Uf,{Copyright:$f,Link:Vf,LinkGroup:Rf,Brand:jf,Icon:Wf,Title:Yf,Divider:Hf});const qf=({children:t,className:e,color:r="default",disabled:n=!1,theme:o={},value:i,...s})=>{const a=H(K().label,o);return g.jsx("label",{className:L(a.root.base,a.root.colors[r],n&&a.root.disabled,e),"data-testid":"flowbite-label",...s,children:i??t??""})};qf.displayName="Label";const Kf=({children:t,className:e,icon:r,theme:n={},...o})=>{const i=H(K().list.item,n);return g.jsxs("li",{className:L(i.withIcon[r?"on":"off"],e),...o,children:[r&&g.jsx(r,{className:L(i.icon)}),t]})},Gf=({children:t,className:e,unstyled:r,nested:n,ordered:o,horizontal:i,theme:s={},...a})=>{const l=H(K().list,s),c=o?"ol":"ul";return g.jsx(c,{className:L(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})};Gf.displayName="List",Kf.displayName="List.Item",Object.assign(Gf,{Item:Kf});const Xf=({active:t,children:e,className:r,href:n,icon:o,onClick:i,theme:s={},disabled:a,...l})=>{const c=H(K().listGroup.item,s),d=typeof n<"u",u=d?"a":"button";return g.jsx("li",{className:L(c.base,r),children:g.jsxs(u,{href:n,onClick:i,type:d?void 0:"button",disabled:a,className:L(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]})})},Zf=({children:t,className:e,theme:r={},...n})=>{const o=H(K().listGroup,r);return g.jsx("ul",{className:L(o.root.base,e),...n,children:t})};Zf.displayName="ListGroup",Xf.displayName="ListGroup.Item",Object.assign(Zf,{Item:Xf});const Jf=k.createContext(void 0);function ia(){const t=k.useContext(Jf);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const Qf=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=ia(),s=H(o.body,r);return g.jsx("div",{className:L(s.base,i&&[s.popup],e),...n,children:t})},eh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=ia(),s=H(o.footer,r);return g.jsx("div",{className:L(s.base,!i&&s.popup,e),...n,children:t})},th=({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:L(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(Zv,{"aria-hidden":!0,className:f.close.icon})})]})},rh=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),b=H(K().modal,c),{context:m}=_f({open:a,onOpenChange:()=>n&&n()}),v=ef([m.refs.setFloating,f]),y=xf(m),C=kf(m,{outsidePressEvent:"mousedown",enabled:r}),x=Mf(m),{getFloatingProps:w}=Ef([y,C,x]);return a?g.jsx(Jf.Provider,{value:{theme:b,popup:o,onClose:n,setHeaderId:p},children:g.jsx(kk,{root:s,children:g.jsx(Sk,{lockScroll:!0,"data-testid":"modal-overlay",className:L(b.root.base,b.root.positions[i],a?b.root.show.on:b.root.show.off,e),...u,children:g.jsx(mf,{context:m,initialFocus:d,children:g.jsx("div",{ref:v,...w(u),"aria-labelledby":h,className:L(b.content.base,b.root.sizes[l]),children:g.jsx("div",{className:b.content.inner,children:t})})})})})}):null});rh.displayName="Modal",th.displayName="Modal.Header",Qf.displayName="Modal.Body",eh.displayName="Modal.Footer",Object.assign(rh,{Header:th,Body:Qf,Footer:eh});const nh=k.createContext(void 0);function bi(){const t=k.useContext(nh);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const oh=({as:t="a",children:e,className:r,theme:n={},...o})=>{const{theme:i}=bi(),s=H(i.brand,n);return g.jsx(t,{className:L(s.base,r),...o,children:e})},ih=({children:t,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i}=bi(),s=H(o.collapse,r);return g.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:L(s.base,s.hidden[i?"off":"on"],e),...n,children:g.jsx("ul",{className:s.list,children:t})})},sh=({active:t,as:e="a",disabled:r,children:n,className:o,theme:i={},onClick:s,...a})=>{const{theme:l,setIsOpen:c}=bi(),d=H(l.link,i),u=f=>{c(!1),s==null||s(f)};return g.jsx("li",{children:g.jsx(e,{className:L(d.base,t&&d.active.on,!t&&!r&&d.active.off,d.disabled[r?"on":"off"],o),onClick:u,...a,children:n})})},ah=({barIcon:t=ag,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i,setIsOpen:s}=bi(),a=H(o.toggle,r),l=()=>{s(!i)};return g.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:L(a.base,e),...n,children:[g.jsx("span",{className:"sr-only",children:"Open main menu"}),g.jsx(t,{"aria-hidden":!0,className:a.icon})]})},lh=({border:t,children:e,className:r,fluid:n=!1,menuOpen:o,rounded:i,theme:s={},...a})=>{const[l,c]=k.useState(o),d=H(K().navbar,s);return g.jsx(nh.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:g.jsx("nav",{className:L(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[i?"on":"off"],r),...a,children:g.jsx("div",{className:L(d.root.inner.base,d.root.inner.fluid[n?"on":"off"]),children:e})})})};lh.displayName="Navbar",oh.displayName="Navbar.Brand",ih.displayName="Navbar.Collapse",sh.displayName="Navbar.Link",ah.displayName="Navbar.Toggle",Object.assign(lh,{Brand:oh,Collapse:ih,Link:sh,Toggle:ah});const Hk=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(r=>r+t),sa=({active:t,children:e,className:r,onClick:n,theme:o={},...i})=>{const s=H(K().pagination,o);return g.jsx("button",{type:"button",className:L(t&&s.pages.selector.active,r),onClick:n,...i,children:e})};sa.displayName="Pagination.Button";const aa=({children:t,className:e,onClick:r,theme:n={},disabled:o=!1,...i})=>{const s=H(K().pagination,n);return g.jsx("button",{type:"button",className:L(o&&s.pages.selector.disabled,e),disabled:o,onClick:r,...i,children:t})};aa.displayName="Pagination.Navigation";const ch=({className:t,currentPage:e,layout:r="pagination",nextLabel:n="Next",onPageChange:o,previousLabel:i="Previous",renderPaginationButton:s=u=>g.jsx(sa,{...u}),showIcons:a=!1,theme:l={},totalPages:c,...d})=>{const u=H(K().pagination,l),f=Math.min(Math.max(r==="pagination"?e+2:e+4,5),c),h=Math.max(1,f-4),p=()=>{o(Math.min(e+1,c))},b=()=>{o(Math.max(e-1,1))};return g.jsxs("nav",{className:L(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(aa,{className:L(u.pages.previous.base,a&&u.pages.showIcon),onClick:b,disabled:e===1,children:[a&&g.jsx(Vd,{"aria-hidden":!0,className:u.pages.previous.icon}),i]})}),r==="pagination"&&Hk(h,f).map(m=>g.jsx("li",{"aria-current":m===e?"page":void 0,children:s({className:L(u.pages.selector.base,e===m&&u.pages.selector.active),active:m===e,onClick:()=>o(m),children:m})},m)),g.jsx("li",{children:g.jsxs(aa,{className:L(u.pages.next.base,a&&u.pages.showIcon),onClick:p,disabled:e===c,children:[n,a&&g.jsx(Rd,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};ch.displayName="Pagination",Object.assign(ch,{Button:sa});const Wk=k.forwardRef(({className:t,theme:e={},...r},n)=>{const o=H(K().radio,e);return g.jsx("input",{ref:n,type:"radio",className:L(o.root.base,t),...r})});Wk.displayName="Radio";const Vk=k.forwardRef(({className:t,sizing:e="md",theme:r={},...n},o)=>{const i=H(K().rangeSlider,r);return g.jsx(g.Fragment,{children:g.jsx("div",{"data-testid":"flowbite-range-slider",className:L(i.root.base,t),children:g.jsx("div",{className:i.field.base,children:g.jsx("input",{ref:o,type:"range",className:L(i.field.input.base,i.field.input.sizes[e]),...n})})})})});Vk.displayName="RangeSlider";const dh=({children:t,className:e,percentFilled:r=0,theme:n={},...o})=>{const i=H(K().ratingAdvanced,n);return g.jsxs("div",{className:L(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}%`})]})},uh=k.createContext(void 0);function Rk(){const t=k.useContext(uh);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const fh=({className:t,filled:e=!0,starIcon:r=qv,theme:n={},...o})=>{const{theme:i,size:s="sm"}=Rk(),a=H(i.star,n);return g.jsx(r,{"data-testid":"flowbite-rating-star",className:L(a.sizes[s],a[e?"filled":"empty"],t),...o})},hh=({children:t,className:e,size:r="sm",theme:n={},...o})=>{const i=H(K().rating,n);return g.jsx(uh.Provider,{value:{theme:i,size:r},children:g.jsx("div",{className:L(i.root.base,e),...o,children:t})})};hh.displayName="Rating",fh.displayName="Rating.Star",dh.displayName="Rating.Advanced",Object.assign(hh,{Star:fh,Advanced:dh});const Yk=k.forwardRef(({addon:t,children:e,className:r,color:n="gray",helperText:o,icon:i,shadow:s,sizing:a="md",theme:l={},...c},d)=>{const u=H(K().select,l);return g.jsxs("div",{className:L(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:L(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(Dn,{color:n,children:o})]})]})});Yk.displayName="Select";const Uk=({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=Af({open:f,placement:i,arrowRef:u,setOpen:h}),{context:b,middlewareData:{arrow:{x:m,y:v}={}},refs:y,strategy:C,update:x,x:w,y:_}=p,O=Tk(b),{getFloatingProps:N,getReferenceProps:M}=Df({context:b,role:"tooltip",trigger:l,interactions:[O]});return k.useEffect(()=>{if(y.reference.current&&y.floating.current&&f)return Yu(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",...M(),children:r}),g.jsxs("div",{ref:y.setFloating,"data-testid":"flowbite-tooltip",...N({className:L(a.base,t&&`${a.animation} ${t}`,!f&&a.hidden,a.style[s],n),style:{position:C,top:_??" ",left:w??" ",minWidth:c},...d}),children:[g.jsx("div",{className:a.content,children:o}),e&&g.jsx("div",{className:L(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:m??" ",right:" ",bottom:" ",[zk({placement:p.placement})]:a.arrow.placement},children:" "})]})]})},la=({animation:t="duration-300",arrow:e=!0,children:r,className:n,content:o,placement:i="top",style:s="dark",theme:a={},trigger:l="hover",...c})=>{const d=H(K().tooltip,a);return g.jsx(Uk,{animation:t,arrow:e,content:o,placement:i,style:s,theme:d,trigger:l,className:n,...c,children:r})};la.displayName="Tooltip";const gh=k.createContext(void 0);function Rr(){const t=k.useContext(gh);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const ca=k.createContext(void 0);function qk(){const t=k.useContext(ca);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const ph=({children:t,className:e,icon:r,label:n,chevronIcon:o=Wd,renderChevronIcon:i,open:s=!1,theme:a={},...l})=>{const c=k.useId(),[d,u]=k.useState(s),{theme:f,isCollapsed:h}=Rr(),p=H(f.collapse,a);k.useEffect(()=>u(s),[s]);const b=({children:m})=>g.jsx("li",{children:h&&!d?g.jsx(la,{content:n,placement:"right",children:m}):m});return g.jsxs(b,{children:[g.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:n,type:"button",className:L(p.button,e),...l,children:[r&&g.jsx(r,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:L(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:L(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(ca.Provider,{value:{isInsideCollapse:!0},children:t})})]})};ph.displayName="Sidebar.Collapse";const bh=({children:t,color:e="info",className:r,theme:n={},...o})=>{const{theme:i,isCollapsed:s}=Rr(),a=H(i.cta,n);return g.jsx("div",{"data-testid":"sidebar-cta",hidden:s,className:L(a.base,a.color[e],r),...o,children:t})};bh.displayName="Sidebar.CTA";const Kk=({id:t,theme:e,isCollapsed:r,tooltipChildren:n,children:o,...i})=>g.jsx("li",{...i,children:r?g.jsx(la,{content:g.jsx(mh,{id:t,theme:e,children:n}),placement:"right",children:o}):o}),mh=({id:t,theme:e,children:r})=>g.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:L(e.content.base),children:r}),yh=k.forwardRef(({active:t,as:e="a",children:r,className:n,icon:o,label:i,labelColor:s="info",theme:a={},...l},c)=>{var b,m,v,y;const d=k.useId(),{theme:u,isCollapsed:f}=Rr(),{isInsideCollapse:h}=qk(),p=H(u.item,a);return g.jsx(Kk,{theme:p,className:p.listItem,id:d,isCollapsed:f,tooltipChildren:r,children:g.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:L(p.base,t&&p.active,!f&&h&&((b=p.collapsed)==null?void 0:b.insideCollapse),n),...l,children:[o&&g.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:L((m=p.icon)==null?void 0:m.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(mh,{id:d,theme:p,children:r}),!f&&i&&g.jsx(cu,{color:s,"data-testid":"flowbite-sidebar-label",hidden:f,className:p.label,children:i})]})})});yh.displayName="Sidebar.Item";const vh=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Rr(),i=H(o.itemGroup,r);return g.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:L(i.base,e),...n,children:g.jsx(ca.Provider,{value:{isInsideCollapse:!1},children:t})})};vh.displayName="Sidebar.ItemGroup";const xh=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Rr(),i=H(o.items,r);return g.jsx("div",{className:L(i.base,e),"data-testid":"flowbite-sidebar-items",...n,children:t})};xh.displayName="Sidebar.Items";const wh=({children:t,className:e,href:r,img:n,imgAlt:o="",theme:i={},...s})=>{const a=k.useId(),{theme:l,isCollapsed:c}=Rr(),d=H(l.logo,i);return g.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${a}`,href:r,className:L(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})]})};wh.displayName="Sidebar.Logo";const kh=({children:t,as:e="nav",collapseBehavior:r="collapse",collapsed:n=!1,theme:o={},className:i,...s})=>{const a=H(K().sidebar,o);return g.jsx(gh.Provider,{value:{theme:a,isCollapsed:n},children:g.jsx(e,{"aria-label":"Sidebar",hidden:n&&r==="hide",className:L(a.root.base,a.root.collapsed[n?"on":"off"],i),...s,children:g.jsx("div",{className:a.root.inner,children:t})})})};kh.displayName="Sidebar",Object.assign(kh,{Collapse:ph,CTA:bh,Item:yh,Items:xh,ItemGroup:vh,Logo:wh});const _h=k.createContext(void 0);function Gk(){const t=k.useContext(_h);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const Ch=k.createContext(void 0);function da(){const t=k.useContext(Ch);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const Sh=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=da(),s=H(i.body,r);return g.jsx(_h.Provider,{value:{theme:s},children:g.jsx("tbody",{className:L(s.base,e),ref:o,...n,children:t})})});Sh.displayName="Table.Body";const Eh=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=Gk(),s=H(i.cell,r);return g.jsx("td",{className:L(s.base,e),ref:o,...n,children:t})});Eh.displayName="Table.Cell";const Oh=k.createContext(void 0);function Xk(){const t=k.useContext(Oh);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const Th=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=da(),s=H(i.head,r);return g.jsx(Oh.Provider,{value:{theme:s},children:g.jsx("thead",{className:L(s.base,e),ref:o,...n,children:g.jsx("tr",{children:t})})})});Th.displayName="Table.Head";const Nh=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=Xk(),s=H(i.cell,r);return g.jsx("th",{className:L(s.base,e),ref:o,...n,children:t})});Nh.displayName="Table.HeadCell";const Mh=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i,hoverable:s,striped:a}=da(),l=H(i.row,r);return g.jsx("tr",{ref:o,"data-testid":"table-row-element",className:L(l.base,a&&l.striped,s&&l.hovered,e),...n,children:t})});Mh.displayName="Table.Row";const Ph=k.forwardRef(({children:t,className:e,striped:r,hoverable:n,theme:o={},...i},s)=>{const a=H(K().table,o);return g.jsx("div",{"data-testid":"table-element",className:L(a.root.wrapper),children:g.jsxs(Ch.Provider,{value:{theme:a,striped:r,hoverable:n},children:[g.jsx("div",{className:L(a.root.shadow,e)}),g.jsx("table",{className:L(a.root.base,e),...i,ref:s,children:t})]})})});Ph.displayName="Table";const Yr=Object.assign(Ph,{Head:Th,Body:Sh,Row:Mh,Cell:Eh,HeadCell:Nh}),Ur=({children:t,className:e})=>g.jsx("div",{className:e,children:t});Ur.displayName="Tabs.Item";const Ah=k.forwardRef(({children:t,className:e,onActiveTabChange:r,style:n="default",theme:o={},...i},s)=>{const a=H(K().tabs,o),l=k.useId(),c=k.useMemo(()=>k.Children.map(k.Children.toArray(t),({props:x})=>x),[t]),d=k.useRef([]),[u,f]=k.useState(Math.max(0,c.findIndex(x=>x.active))),[h,p]=k.useState(-1),b=x=>{f(x),r&&r(x)},m=({target:x})=>{b(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"&&(b(w),p(w))},y=a.tablist.tabitem.styles[n],C=a.tabitemcontainer.styles[n];return k.useEffect(()=>{var x;(x=d.current[h])==null||x.focus()},[h]),k.useImperativeHandle(s,()=>({setActiveTab:b})),g.jsxs("div",{className:L(a.base,e),children:[g.jsx("div",{"aria-label":"Tabs",role:"tablist",className:L(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:L(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:()=>m({target:w}),onKeyDown:_=>v({event:_,target:w}),ref:_=>d.current[w]=_,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:L(a.tabitemcontainer.base,C),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))})]})});Ah.displayName="Tabs";const Zk=Object.assign(Ah,{Item:Ur}),Jk=k.forwardRef(({className:t,color:e="gray",helperText:r,shadow:n,theme:o={},...i},s)=>{const a=H(K().textarea,o);return g.jsxs(g.Fragment,{children:[g.jsx("textarea",{ref:s,className:L(a.base,a.colors[e],a.withShadow[n?"on":"off"],t),...i}),r&&g.jsx(Dn,{color:e,children:r})]})});Jk.displayName="Textarea";const Dh=k.createContext(void 0);function ua(){const t=k.useContext(Dh);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const Ih=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=ua(),i=H(o.body,r);return g.jsx("div",{className:L(i.base,e),...n,children:t})},Lh=k.createContext(void 0);function fa(){const t=k.useContext(Lh);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const Fh=k.createContext(void 0);function zh(){const t=k.useContext(Fh);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const Bh=({children:t,className:e,theme:r={},...n})=>{const{horizontal:o}=fa(),{theme:i}=zh(),s=H(i.content,r);return g.jsx(Dh.Provider,{value:{theme:s},children:g.jsx("div",{"data-testid":"timeline-content",className:L(o&&s.root.base,e),...n,children:t})})},jh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,horizontal:i}=fa(),s=H(o.item,r);return g.jsx(Fh.Provider,{value:{theme:s},children:g.jsx("li",{"data-testid":"timeline-item",className:L(i&&s.root.horizontal,!i&&s.root.vertical,e),...n,children:t})})},$h=({children:t,className:e,icon:r,theme:n={},...o})=>{const{horizontal:i}=fa(),{theme:s}=zh(),a=H(s.point,n);return g.jsxs("div",{"data-testid":"timeline-point",className:L(i&&a.horizontal,!i&&a.vertical,e),...o,children:[t,r?g.jsx("span",{className:L(a.marker.icon.wrapper),children:g.jsx(r,{"aria-hidden":!0,className:L(a.marker.icon.base)})}):g.jsx("div",{className:L(i&&a.marker.base.horizontal,!i&&a.marker.base.vertical)}),i&&g.jsx("div",{className:L(a.line)})]})},Hh=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=ua(),i=H(o.time,r);return g.jsx("time",{className:L(i.base,e),...n,children:t})},Wh=({as:t="h3",children:e,className:r,theme:n={},...o})=>{const{theme:i}=ua(),s=H(i.title,n);return g.jsx(t,{className:L(s.base,r),...o,children:e})},Vh=({children:t,className:e,horizontal:r,theme:n={},...o})=>{const i=H(K().timeline,n);return g.jsx(Lh.Provider,{value:{theme:i,horizontal:r},children:g.jsx("ol",{"data-testid":"timeline-component",className:L(r&&i.root.direction.horizontal,!r&&i.root.direction.vertical,e),...o,children:t})})};Vh.displayName="Timeline",jh.displayName="Timeline.Item",$h.displayName="Timeline.Point",Bh.displayName="Timeline.Content",Hh.displayName="Timeline.Time",Wh.displayName="Timeline.Title",Ih.displayName="Timeline.Body",Object.assign(Vh,{Item:jh,Point:$h,Content:Bh,Time:Hh,Title:Wh,Body:Ih});const Rh=k.createContext(void 0);function Qk(){const t=k.useContext(Rh);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const Yh=({className:t,onClick:e,theme:r={},xIcon:n=Kv,onDismiss:o,...i})=>{const{theme:s,duration:a,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=Qk(),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:L(f.base,t),...i,children:g.jsx(n,{"aria-hidden":!0,className:f.icon})})},e2={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},Uh=({children:t,className:e,duration:r=300,theme:n={},...o})=>{const[i,s]=k.useState(!1),[a,l]=k.useState(!1),c=H(K().toast,n);return a?null:g.jsx(Rh.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:L(c.root.base,e2[r],i&&c.root.closed,e),...o,children:t})})};Uh.displayName="Toast",Yh.displayName="Toast.Toggle",Object.assign(Uh,{Toggle:Yh});const t2=k.forwardRef(({checked:t,className:e,color:r="blue",sizing:n="md",disabled:o,label:i,name:s,onChange:a,theme:l={},...c},d)=>{const u=k.useId(),f=H(K().toggleSwitch,l),h=()=>a(!t),p=()=>{h()},b=m=>{m.code=="Enter"&&m.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:b,role:"switch",tabIndex:0,type:"button",className:L(f.root.base,f.root.active[o?"off":"on"],e),...c,children:[g.jsx("div",{"data-testid":"flowbite-toggleswitch-toggle",className:L(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]})]})});t2.displayName="ToggleSwitch";const r2=({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(Vd,{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(Rd,{className:"h-5 w-5"})})]});function n2({label:t,checked:e=!1,disabled:r=!1,onChange:n}){const[o,i]=k.useState(e),s=a=>{if(r)return;const l=a.target.checked;i(l),n==null||n(l)};return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("label",{className:`inline-flex items-center ${r?"cursor-not-allowed opacity-60":"cursor-pointer"}`,children:[g.jsx("input",{type:"checkbox",className:"peer sr-only",checked:o,onChange:s,disabled:r}),g.jsx("div",{className:`peer relative h-6 w-11 rounded-full bg-gray-200
|
|
973
|
+
*/var NF=["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])"],Kc=NF.join(","),o_=typeof Element>"u",gi=o_?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Zc=!o_&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Qc=function e(t,r){var n;r===void 0&&(r=!0);var o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),i=o===""||o==="true",s=i||r&&t&&e(t.parentNode);return s},MF=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},TF=function(t,r,n){if(Qc(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Kc));return r&&gi.call(t,Kc)&&o.unshift(t),o=o.filter(n),o},DF=function e(t,r,n){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if(!Qc(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,c=e(l,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:s,candidates:c})}else{var d=gi.call(s,Kc);d&&n.filter(s)&&(r||!t.includes(s))&&o.push(s);var u=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),f=!Qc(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(u&&f){var h=e(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},i_=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},s_=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||MF(t))&&!i_(t)?0:t.tabIndex},PF=function(t,r){var n=s_(t);return n<0&&r&&!i_(t)?0:n},IF=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},a_=function(t){return t.tagName==="INPUT"},AF=function(t){return a_(t)&&t.type==="hidden"},LF=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},zF=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},FF=function(t){if(!t.name)return!0;var r=t.form||Zc(t),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(t.name));else try{o=n(t.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=zF(o,t.form);return!i||i===t},jF=function(t){return a_(t)&&t.type==="radio"},BF=function(t){return jF(t)&&!FF(t)},WF=function(t){var r,n=t&&Zc(t),o=(r=n)===null||r===void 0?void 0:r.host,i=!1;if(n&&n!==t){var s,a,l;for(i=!!((s=o)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!i&&o;){var c,d,u;n=Zc(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},l_=function(t){var r=t.getBoundingClientRect(),n=r.width,o=r.height;return n===0&&o===0},HF=function(t,r){var n=r.displayCheck,o=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var i=gi.call(t,"details>summary:first-of-type"),s=i?t.parentElement:t;if(gi.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var a=t;t;){var l=t.parentElement,c=Zc(t);if(l&&!l.shadowRoot&&o(l)===!0)return l_(t);t.assignedSlot?t=t.assignedSlot:!l&&c!==t.ownerDocument?t=c.host:t=l}t=a}if(WF(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return l_(t);return!1},$F=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.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 gi.call(r,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}r=r.parentElement}return!1},VF=function(t,r){return!(r.disabled||Qc(r)||AF(r)||HF(r,t)||LF(r)||$F(r))},Th=function(t,r){return!(BF(r)||s_(r)<0||!VF(t,r))},YF=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},UF=function e(t){var r=[],n=[];return t.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,l=PF(a,s),c=s?e(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(IF).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},Jc=function(t,r){r=r||{};var n;return r.getShadowRoot?n=DF([t],r.includeContainer,{filter:Th.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:YF}):n=TF(t,r.includeContainer,Th.bind(null,r)),UF(n)},RF=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return gi.call(t,Kc)===!1?!1:Th(r,t)};function c_(e){return I.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const qF=I.useInsertionEffect||(e=>e());function Ur(e){const t=I.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return qF(()=>{t.current=e}),I.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.current==null?void 0:t.current(...n)},[])}const Dh="ArrowUp",oa="ArrowDown",pi="ArrowLeft",bi="ArrowRight";function ed(e,t,r){return Math.floor(e/t)!==r}function ia(e,t){return t<0||t>=e.current.length}function Ph(e,t){return Mt(e,{disabledIndices:t})}function d_(e,t){return Mt(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Mt(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=t===void 0?{}:t;const s=e.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 XF(e,t){let{event:r,orientation:n,loop:o,cols:i,disabledIndices:s,minIndex:a,maxIndex:l,prevIndex:c,stopEvent:d=!1}=t,u=c;if(r.key===Dh){if(d&&xt(r),c===-1)u=l;else if(u=Mt(e,{startingIndex:u,amount:i,decrement:!0,disabledIndices:s}),o&&(c-i<a||u<0)){const f=c%i,h=l%i,g=l-(h-f);h===f?u=l:u=h>f?g:g-i}ia(e,u)&&(u=c)}if(r.key===oa&&(d&&xt(r),c===-1?u=a:(u=Mt(e,{startingIndex:c,amount:i,disabledIndices:s}),o&&c+i>l&&(u=Mt(e,{startingIndex:c%i-i,amount:i,disabledIndices:s}))),ia(e,u)&&(u=c)),n==="both"){const f=ui(c/i);r.key===bi&&(d&&xt(r),c%i!==i-1?(u=Mt(e,{startingIndex:c,disabledIndices:s}),o&&ed(u,i,f)&&(u=Mt(e,{startingIndex:c-c%i-1,disabledIndices:s}))):o&&(u=Mt(e,{startingIndex:c-c%i-1,disabledIndices:s})),ed(u,i,f)&&(u=c)),r.key===pi&&(d&&xt(r),c%i!==0?(u=Mt(e,{startingIndex:c,disabledIndices:s,decrement:!0}),o&&ed(u,i,f)&&(u=Mt(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s}))):o&&(u=Mt(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s})),ed(u,i,f)&&(u=c));const h=ui(l/i)===f;ia(e,u)&&(o&&h?u=r.key===pi?l:Mt(e,{startingIndex:c-c%i-1,disabledIndices:s}):u=c)}return u}function GF(e,t,r){const n=[];let o=0;return e.forEach((i,s)=>{let{width:a,height:l}=i;if(a>t&&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*t);o%t+a<=t&&d.every(u=>n[u]==null)?(d.forEach(u=>{n[u]=s}),c=!0):o++}}),[...n]}function KF(e,t,r,n,o){if(e===-1)return-1;const i=r.indexOf(e);switch(o){case"tl":return i;case"tr":return i+t[e].width-1;case"bl":return i+(t[e].height-1)*n;case"br":return r.lastIndexOf(e)}}function ZF(e,t){return t.flatMap((r,n)=>e.includes(r)?[n]:[])}let u_=0;function un(e,t){t===void 0&&(t={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=t;n&&cancelAnimationFrame(u_);const i=()=>e==null?void 0:e.focus({preventScroll:r});o?i():u_=requestAnimationFrame(i)}var Fe=typeof document<"u"?k.useLayoutEffect:k.useEffect;function QF(e,t){const r=e.compareDocumentPosition(t);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 JF(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e.entries())if(n!==t.get(r))return!1;return!0}const f_=I.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function ej(e){let{children:t,elementsRef:r,labelsRef:n}=e;const[o,i]=I.useState(()=>new Map),s=I.useCallback(l=>{i(c=>new Map(c).set(l,null))},[]),a=I.useCallback(l=>{i(c=>{const d=new Map(c);return d.delete(l),d})},[]);return Fe(()=>{const l=new Map(o);Array.from(l.keys()).sort(QF).forEach((d,u)=>{l.set(d,u)}),JF(o,l)||i(l)},[o]),I.createElement(f_.Provider,{value:I.useMemo(()=>({register:s,unregister:a,map:o,elementsRef:r,labelsRef:n}),[s,a,o,r,n])},t)}function tj(e){let{label:t}=e===void 0?{}:e;const[r,n]=I.useState(null),o=I.useRef(null),{register:i,unregister:s,map:a,elementsRef:l,labelsRef:c}=I.useContext(f_),d=I.useCallback(u=>{if(o.current=u,r!==null&&(l.current[r]=u,c)){var f;const h=t!==void 0;c.current[r]=h?t:(f=u==null?void 0:u.textContent)!=null?f:null}},[r,l,c,t]);return Fe(()=>{const u=o.current;if(u)return i(u),()=>{s(u)}},[i,s]),Fe(()=>{const u=o.current?a.get(o.current):null;u!=null&&n(u)},[a]),I.useMemo(()=>({ref:d,index:r??-1}),[r,d])}function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sa.apply(this,arguments)}let Ih=!1,rj=0;const h_=()=>"floating-ui-"+rj++;function nj(){const[e,t]=I.useState(()=>Ih?h_():void 0);return Fe(()=>{e==null&&t(h_())},[]),I.useEffect(()=>{Ih||(Ih=!0)},[]),e}const td=I.useId||nj;function oj(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,((n=e.get(t))==null?void 0:n.filter(o=>o!==r))||[])}}}const ij=I.createContext(null),sj=I.createContext(null),rd=()=>{var e;return((e=I.useContext(ij))==null?void 0:e.id)||null},aa=()=>I.useContext(sj);function Co(e){return"data-floating-ui-"+e}function Rr(e){const t=k.useRef(e);return Fe(()=>{t.current=e}),t}const g_=Co("safe-polygon");function Ah(e,t,r){return r&&!$c(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}function aj(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,dataRef:o,events:i,elements:{domReference:s,floating:a},refs:l}=e,{enabled:c=!0,delay:d=0,handleClose:u=null,mouseOnly:f=!1,restMs:h=0,move:g=!0}=t,p=aa(),m=rd(),x=Rr(u),y=Rr(d),_=I.useRef(),v=I.useRef(),w=I.useRef(),C=I.useRef(),M=I.useRef(!0),N=I.useRef(!1),O=I.useRef(()=>{}),E=I.useCallback(()=>{var D;const S=(D=o.current.openEvent)==null?void 0:D.type;return(S==null?void 0:S.includes("mouse"))&&S!=="mousedown"},[o]);I.useEffect(()=>{if(!c)return;function D(S){let{open:A}=S;A||(clearTimeout(v.current),clearTimeout(C.current),M.current=!0)}return i.on("openchange",D),()=>{i.off("openchange",D)}},[c,i]),I.useEffect(()=>{if(!c||!x.current||!r)return;function D(A){E()&&n(!1,A,"hover")}const S=Pt(a).documentElement;return S.addEventListener("mouseleave",D),()=>{S.removeEventListener("mouseleave",D)}},[a,r,n,c,x,E]);const z=I.useCallback(function(D,S,A){S===void 0&&(S=!0),A===void 0&&(A="hover");const F=Ah(y.current,"close",_.current);F&&!w.current?(clearTimeout(v.current),v.current=setTimeout(()=>n(!1,D,A),F)):S&&(clearTimeout(v.current),n(!1,D,A))},[y,n]),T=I.useCallback(()=>{O.current(),w.current=void 0},[]),P=I.useCallback(()=>{if(N.current){const D=Pt(l.floating.current).body;D.style.pointerEvents="",D.removeAttribute(g_),N.current=!1}},[l]);return I.useEffect(()=>{if(!c)return;function D(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function S(L){if(clearTimeout(v.current),M.current=!1,f&&!$c(_.current)||h>0&&Ah(y.current,"open")===0)return;const j=Ah(y.current,"open",_.current);j?v.current=setTimeout(()=>{n(!0,L,"hover")},j):n(!0,L,"hover")}function A(L){if(D())return;O.current();const j=Pt(a);if(clearTimeout(C.current),x.current){r||clearTimeout(v.current),w.current=x.current({...e,tree:p,x:L.clientX,y:L.clientY,onClose(){P(),T(),z(L,!0,"safe-polygon")}});const W=w.current;j.addEventListener("mousemove",W),O.current=()=>{j.removeEventListener("mousemove",W)};return}(_.current==="touch"?!rt(a,L.relatedTarget):!0)&&z(L)}function F(L){D()||x.current==null||x.current({...e,tree:p,x:L.clientX,y:L.clientY,onClose(){P(),T(),z(L)}})(L)}if(Ie(s)){const L=s;return r&&L.addEventListener("mouseleave",F),a==null||a.addEventListener("mouseleave",F),g&&L.addEventListener("mousemove",S,{once:!0}),L.addEventListener("mouseenter",S),L.addEventListener("mouseleave",A),()=>{r&&L.removeEventListener("mouseleave",F),a==null||a.removeEventListener("mouseleave",F),g&&L.removeEventListener("mousemove",S),L.removeEventListener("mouseenter",S),L.removeEventListener("mouseleave",A)}}},[s,a,c,e,f,h,g,z,T,P,n,r,p,y,x,o]),Fe(()=>{var D;if(c&&r&&(D=x.current)!=null&&D.__options.blockPointerEvents&&E()){const A=Pt(a).body;if(A.setAttribute(g_,""),A.style.pointerEvents="none",N.current=!0,Ie(s)&&a){var S;const F=s,L=p==null||(S=p.nodesRef.current.find(j=>j.id===m))==null||(S=S.context)==null?void 0:S.elements.floating;return L&&(L.style.pointerEvents=""),F.style.pointerEvents="auto",a.style.pointerEvents="auto",()=>{F.style.pointerEvents="",a.style.pointerEvents=""}}}},[c,r,m,a,s,p,x,E]),Fe(()=>{r||(_.current=void 0,T(),P())},[r,T,P]),I.useEffect(()=>()=>{T(),clearTimeout(v.current),clearTimeout(C.current),P()},[c,s,T,P]),I.useMemo(()=>{if(!c)return{};function D(S){_.current=S.pointerType}return{reference:{onPointerDown:D,onPointerEnter:D,onMouseMove(S){r||h===0||(clearTimeout(C.current),C.current=setTimeout(()=>{M.current||n(!0,S.nativeEvent,"hover")},h))}},floating:{onMouseEnter(){clearTimeout(v.current)},onMouseLeave(S){z(S.nativeEvent,!1)}}}},[c,h,r,n,z])}function lj(e,t){var r;let n=[],o=(r=e.find(i=>i.id===t))==null?void 0:r.parentId;for(;o;){const i=e.find(s=>s.id===o);o=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function So(e,t){let r=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),n=r;for(;n.length;)n=e.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 cj(e,t){let r,n=-1;function o(i,s){s>n&&(r=i,n=s),So(e,i).forEach(l=>{o(l.id,s+1)})}return o(t,0),e.find(i=>i.id===r)}let mi=new WeakMap,nd=new WeakSet,od={},Lh=0;const dj=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,p_=e=>e&&(e.host||p_(e.parentNode)),uj=(e,t)=>t.map(r=>{if(e.contains(r))return r;const n=p_(r);return e.contains(n)?n:null}).filter(r=>r!=null);function fj(e,t,r,n){const o="data-floating-ui-inert",i=n?"inert":r?"aria-hidden":null,s=uj(t,e),a=new Set,l=new Set(s),c=[];od[o]||(od[o]=new WeakMap);const d=od[o];s.forEach(u),f(t),a.clear();function u(h){!h||a.has(h)||(a.add(h),h.parentNode&&u(h.parentNode))}function f(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,g=>{if(a.has(g))f(g);else{const p=i?g.getAttribute(i):null,m=p!==null&&p!=="false",x=(mi.get(g)||0)+1,y=(d.get(g)||0)+1;mi.set(g,x),d.set(g,y),c.push(g),x===1&&m&&nd.add(g),y===1&&g.setAttribute(o,""),!m&&i&&g.setAttribute(i,"true")}})}return Lh++,()=>{c.forEach(h=>{const g=(mi.get(h)||0)-1,p=(d.get(h)||0)-1;mi.set(h,g),d.set(h,p),g||(!nd.has(h)&&i&&h.removeAttribute(i),nd.delete(h)),p||h.removeAttribute(o)}),Lh--,Lh||(mi=new WeakMap,mi=new WeakMap,nd=new WeakSet,od={})}}function b_(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);const n=Pt(e[0]).body;return fj(e.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,t,r)}const la=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function m_(e,t){const r=Jc(e,la());t==="prev"&&r.reverse();const n=r.indexOf($r(Pt(e)));return r.slice(n+1)[0]}function y_(){return m_(document.body,"next")}function v_(){return m_(document.body,"prev")}function ca(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!rt(r,n)}function hj(e){Jc(e,la()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function gj(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const zh={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 pj;function x_(e){e.key==="Tab"&&(e.target,clearTimeout(pj))}const id=I.forwardRef(function(t,r){const[n,o]=I.useState();Fe(()=>(yh()&&o("button"),document.addEventListener("keydown",x_),()=>{document.removeEventListener("keydown",x_)}),[]);const i={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[Co("focus-guard")]:"",style:zh};return I.createElement("span",sa({},t,i))}),w_=I.createContext(null),k_=Co("portal");function bj(e){let{id:t,root:r}=e===void 0?{}:e;const[n,o]=I.useState(null),i=td(),s=__(),a=I.useRef(null);return Fe(()=>()=>{n==null||n.remove(),queueMicrotask(()=>{a.current=null})},[n]),Fe(()=>{if(a.current)return;const l=t?document.getElementById(t):null;if(!l)return;const c=document.createElement("div");c.id=i,c.setAttribute(k_,""),l.appendChild(c),a.current=c,o(c)},[t,i]),Fe(()=>{if(a.current)return;let l=r||(s==null?void 0:s.portalNode);l&&!Ie(l)&&(l=l.current),l=l||document.body;let c=null;t&&(c=document.createElement("div"),c.id=t,l.appendChild(c));const d=document.createElement("div");d.id=i,d.setAttribute(k_,""),l=c||l,l.appendChild(d),a.current=d,o(d)},[t,r,i,s]),n}function mj(e){let{children:t,id:r,root:n=null,preserveTabOrder:o=!0}=e;const i=bj({id:r,root:n}),[s,a]=I.useState(null),l=I.useRef(null),c=I.useRef(null),d=I.useRef(null),u=I.useRef(null),f=!!s&&!s.modal&&s.open&&o&&!!(n||i);return I.useEffect(()=>{if(!i||!o||s!=null&&s.modal)return;function h(g){i&&ca(g)&&(g.type==="focusin"?gj:hj)(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]),I.createElement(w_.Provider,{value:I.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:i,setFocusManagerState:a}),[o,i])},f&&i&&I.createElement(id,{"data-type":"outside",ref:l,onFocus:h=>{if(ca(h,i)){var g;(g=d.current)==null||g.focus()}else{const p=v_()||(s==null?void 0:s.refs.domReference.current);p==null||p.focus()}}}),f&&i&&I.createElement("span",{"aria-owns":i.id,style:zh}),i&&cd.createPortal(t,i),f&&i&&I.createElement(id,{"data-type":"outside",ref:c,onFocus:h=>{if(ca(h,i)){var g;(g=u.current)==null||g.focus()}else{const p=y_()||(s==null?void 0:s.refs.domReference.current);p==null||p.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,h.nativeEvent))}}}))}const __=()=>I.useContext(w_),yj=20;let Eo=[];function Fh(e){Eo=Eo.filter(r=>r.isConnected);let t=e;if(!(!t||wo(t)==="body")){if(!RF(t,la())){const r=Jc(t,la())[0];if(!r)return;t=r}Eo.push(t),Eo.length>yj&&(Eo=Eo.slice(-20))}}function C_(){return Eo.slice().reverse().find(e=>e.isConnected)}const vj=I.forwardRef(function(t,r){return I.createElement("button",sa({},t,{type:"button",ref:r,tabIndex:-1,style:zh}))});function S_(e){const{context:t,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}=e,{open:u,refs:f,nodeId:h,onOpenChange:g,events:p,dataRef:m,elements:{domReference:x,floating:y}}=t,_=typeof s=="number"&&s<0,v=Bk(x)&&_,w=dj()?i:!0,C=Rr(o),M=Rr(s),N=Rr(a),O=aa(),E=__(),z=I.useRef(null),T=I.useRef(null),P=I.useRef(!1),D=I.useRef(!1),S=E!=null,A=I.useCallback(function(B){return B===void 0&&(B=y),B?Jc(B,la()):[]},[y]),F=I.useCallback(B=>{const W=A(B);return C.current.map(H=>x&&H==="reference"?x:y&&H==="floating"?y:W).filter(Boolean).flat()},[x,y,C,A]);I.useEffect(()=>{if(n||!l)return;function B(H){if(H.key==="Tab"){rt(y,$r(Pt(y)))&&A().length===0&&!v&&xt(H);const U=F(),R=Ln(H);C.current[0]==="reference"&&R===x&&(xt(H),H.shiftKey?un(U[U.length-1]):un(U[1])),C.current[1]==="floating"&&R===y&&H.shiftKey&&(xt(H),un(U[0]))}}const W=Pt(y);return W.addEventListener("keydown",B),()=>{W.removeEventListener("keydown",B)}},[n,x,y,l,C,v,A,F]),I.useEffect(()=>{if(n||!d)return;function B(){D.current=!0,setTimeout(()=>{D.current=!1})}function W(H){const U=H.relatedTarget;queueMicrotask(()=>{const R=!(rt(x,U)||rt(y,U)||rt(U,y)||rt(E==null?void 0:E.portalNode,U)||U!=null&&U.hasAttribute(Co("focus-guard"))||O&&(So(O.nodesRef.current,h).find(q=>{var X,Q;return rt((X=q.context)==null?void 0:X.elements.floating,U)||rt((Q=q.context)==null?void 0:Q.elements.domReference,U)})||lj(O.nodesRef.current,h).find(q=>{var X,Q;return((X=q.context)==null?void 0:X.elements.floating)===U||((Q=q.context)==null?void 0:Q.elements.domReference)===U})));U&&R&&!D.current&&U!==C_()&&(P.current=!0,g(!1,H))})}if(y&&vt(x))return x.addEventListener("focusout",W),x.addEventListener("pointerdown",B),!l&&y.addEventListener("focusout",W),()=>{x.removeEventListener("focusout",W),x.removeEventListener("pointerdown",B),!l&&y.removeEventListener("focusout",W)}},[n,x,y,l,h,O,E,g,d]),I.useEffect(()=>{var B;if(n)return;const W=Array.from((E==null||(B=E.portalNode)==null?void 0:B.querySelectorAll("["+Co("portal")+"]"))||[]);if(y){const H=[y,...W,z.current,T.current,C.current.includes("reference")||v?x:null].filter(R=>R!=null),U=l||v?b_(H,w,!w):b_(H);return()=>{U()}}},[n,x,y,l,C,E,v,w]),Fe(()=>{if(n||!y)return;const B=Pt(y),W=$r(B);queueMicrotask(()=>{const H=F(y),U=M.current,R=(typeof U=="number"?H[U]:U.current)||y,q=rt(y,W);!_&&!q&&u&&un(R,{preventScroll:R===y})})},[n,u,y,_,F,M]),Fe(()=>{if(n||!y)return;let B=!1;const W=Pt(y),H=$r(W),U=m.current;Fh(H);function R(q){let{reason:X,event:Q,nested:J}=q;X==="escape-key"&&f.domReference.current&&Fh(f.domReference.current),X==="hover"&&Q.type==="mouseleave"&&(P.current=!0),X==="outside-press"&&(J?(P.current=!1,B=!0):P.current=!(Fk(Q)||mh(Q)))}return p.on("openchange",R),()=>{p.off("openchange",R);const q=$r(W),X=rt(y,q)||O&&So(O.nodesRef.current,h).some(ie=>{var ye;return rt((ye=ie.context)==null?void 0:ye.elements.floating,q)});(X||U.openEvent&&["click","mousedown"].includes(U.openEvent.type))&&f.domReference.current&&Fh(f.domReference.current);const J=C_();N.current&&!P.current&&vt(J)&&(!(J!==q&&q!==W.body)||X)&&un(J,{cancelPrevious:!1,preventScroll:B})}},[n,y,N,m,f,p,O,h]),Fe(()=>{if(!(n||!E))return E.setFocusManagerState({modal:l,closeOnFocusOut:d,open:u,onOpenChange:g,refs:f}),()=>{E.setFocusManagerState(null)}},[n,E,l,u,g,f,d]),Fe(()=>{if(n||!y||typeof MutationObserver!="function"||_)return;const B=()=>{const H=y.getAttribute("tabindex");C.current.includes("floating")||$r(Pt(y))!==f.domReference.current&&A().length===0?H!=="0"&&y.setAttribute("tabindex","0"):H!=="-1"&&y.setAttribute("tabindex","-1")};B();const W=new MutationObserver(B);return W.observe(y,{childList:!0,subtree:!0,attributes:!0}),()=>{W.disconnect()}},[n,y,f,C,A,_]);function L(B){return n||!c||!l?null:I.createElement(vj,{ref:B==="start"?z:T,onClick:W=>g(!1,W.nativeEvent)},typeof c=="string"?c:"Dismiss")}const j=!n&&w&&(S||l);return I.createElement(I.Fragment,null,j&&I.createElement(id,{"data-type":"inside",ref:E==null?void 0:E.beforeInsideRef,onFocus:B=>{if(l){const H=F();un(o[0]==="reference"?H[0]:H[H.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(P.current=!1,ca(B,E.portalNode)){const H=y_()||x;H==null||H.focus()}else{var W;(W=E.beforeOutsideRef.current)==null||W.focus()}}}),!v&&L("start"),r,L("end"),j&&I.createElement(id,{"data-type":"inside",ref:E==null?void 0:E.afterInsideRef,onFocus:B=>{if(l)un(F()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(d&&(P.current=!0),ca(B,E.portalNode)){const H=v_()||x;H==null||H.focus()}else{var W;(W=E.afterOutsideRef.current)==null||W.focus()}}}))}const jh=new Set,xj=I.forwardRef(function(t,r){let{lockScroll:n=!1,...o}=t;const i=td();return Fe(()=>{if(!n)return;jh.add(i);const s=/iP(hone|ad|od)|iOS/.test(bh()),a=document.body.style,c=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth,u=a.left?parseFloat(a.left):window.pageXOffset,f=a.top?parseFloat(a.top):window.pageYOffset;if(a.overflow="hidden",d&&(a[c]=d+"px"),s){var h,g;const p=((h=window.visualViewport)==null?void 0:h.offsetLeft)||0,m=((g=window.visualViewport)==null?void 0:g.offsetTop)||0;Object.assign(a,{position:"fixed",top:-(f-Math.floor(m))+"px",left:-(u-Math.floor(p))+"px",right:"0"})}return()=>{jh.delete(i),jh.size===0&&(Object.assign(a,{overflow:"",[c]:""}),s&&(Object.assign(a,{position:"",top:"",left:"",right:""}),window.scrollTo(u,f)))}},[i,n]),I.createElement("div",sa({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function E_(e){return vt(e.target)&&e.target.tagName==="BUTTON"}function O_(e){return wh(e)}function N_(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=e,{enabled:s=!0,event:a="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=t,u=I.useRef(),f=I.useRef(!1);return I.useMemo(()=>s?{reference:{onPointerDown(h){u.current=h.pointerType},onMouseDown(h){h.button===0&&($c(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}$c(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||E_(h))&&(h.key===" "&&!O_(i)&&(h.preventDefault(),f.current=!0),h.key==="Enter"&&n(!(r&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||E_(h)||O_(i)||h.key===" "&&f.current&&(f.current=!1,n(!(r&&l),h.nativeEvent,"click"))}}}:{},[s,o,a,c,d,i,l,r,n])}const wj={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},kj={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},M_=e=>{var t,r;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(r=e==null?void 0:e.outsidePress)!=null?r:!0}};function T_(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,nodeId:o,elements:{reference:i,domReference:s,floating:a},dataRef:l}=e,{enabled:c=!0,escapeKey:d=!0,outsidePress:u=!0,outsidePressEvent:f="pointerdown",referencePress:h=!1,referencePressEvent:g="pointerdown",ancestorScroll:p=!1,bubbles:m,capture:x}=t,y=aa(),_=Ur(typeof u=="function"?u:()=>!1),v=typeof u=="function"?_:u,w=I.useRef(!1),C=I.useRef(!1),{escapeKey:M,outsidePress:N}=M_(m),{escapeKey:O,outsidePress:E}=M_(x),z=Ur(S=>{if(!r||!c||!d||S.key!=="Escape")return;const A=y?So(y.nodesRef.current,o):[];if(!M&&(S.stopPropagation(),A.length>0)){let F=!0;if(A.forEach(L=>{var j;if((j=L.context)!=null&&j.open&&!L.context.dataRef.current.__escapeKeyBubbles){F=!1;return}}),!F)return}n(!1,Fz(S)?S.nativeEvent:S,"escape-key")}),T=Ur(S=>{var A;const F=()=>{var L;z(S),(L=Ln(S))==null||L.removeEventListener("keydown",F)};(A=Ln(S))==null||A.addEventListener("keydown",F)}),P=Ur(S=>{const A=w.current;w.current=!1;const F=C.current;if(C.current=!1,f==="click"&&F||A||typeof v=="function"&&!v(S))return;const L=Ln(S),j="["+Co("inert")+"]",B=Pt(a).querySelectorAll(j);let W=Ie(L)?L:null;for(;W&&!In(W);){const R=cn(W);if(In(R)||!Ie(R))break;W=R}if(B.length&&Ie(L)&&!jz(L)&&!rt(L,a)&&Array.from(B).every(R=>!rt(W,R)))return;if(vt(L)&&a){const R=L.clientWidth>0&&L.scrollWidth>L.clientWidth,q=L.clientHeight>0&&L.scrollHeight>L.clientHeight;let X=q&&S.offsetX>L.clientWidth;if(q&&fr(L).direction==="rtl"&&(X=S.offsetX<=L.offsetWidth-L.clientWidth),X||R&&S.offsetY>L.clientHeight)return}const H=y&&So(y.nodesRef.current,o).some(R=>{var q;return xh(S,(q=R.context)==null?void 0:q.elements.floating)});if(xh(S,a)||xh(S,s)||H)return;const U=y?So(y.nodesRef.current,o):[];if(U.length>0){let R=!0;if(U.forEach(q=>{var X;if((X=q.context)!=null&&X.open&&!q.context.dataRef.current.__outsidePressBubbles){R=!1;return}}),!R)return}n(!1,S,"outside-press")}),D=Ur(S=>{var A;const F=()=>{var L;P(S),(L=Ln(S))==null||L.removeEventListener(f,F)};(A=Ln(S))==null||A.addEventListener(f,F)});return I.useEffect(()=>{if(!r||!c)return;l.current.__escapeKeyBubbles=M,l.current.__outsidePressBubbles=N;function S(L){n(!1,L,"ancestor-scroll")}const A=Pt(a);d&&A.addEventListener("keydown",O?T:z,O),v&&A.addEventListener(f,E?D:P,E);let F=[];return p&&(Ie(s)&&(F=An(s)),Ie(a)&&(F=F.concat(An(a))),!Ie(i)&&i&&i.contextElement&&(F=F.concat(An(i.contextElement)))),F=F.filter(L=>{var j;return L!==((j=A.defaultView)==null?void 0:j.visualViewport)}),F.forEach(L=>{L.addEventListener("scroll",S,{passive:!0})}),()=>{d&&A.removeEventListener("keydown",O?T:z,O),v&&A.removeEventListener(f,E?D:P,E),F.forEach(L=>{L.removeEventListener("scroll",S)})}},[l,a,s,i,d,v,f,r,n,p,c,M,N,z,O,T,P,E,D]),I.useEffect(()=>{w.current=!1},[v,f]),I.useMemo(()=>c?{reference:{onKeyDown:z,[wj[g]]:S=>{h&&n(!1,S.nativeEvent,"reference-press")}},floating:{onKeyDown:z,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[kj[f]]:()=>{w.current=!0}}}:{},[c,h,f,g,n,z])}let Bh;process.env.NODE_ENV!=="production"&&(Bh=new Set);function D_(e){var t;e===void 0&&(e={});const{open:r=!1,onOpenChange:n,nodeId:o}=e;if(process.env.NODE_ENV!=="production"){var i;const N="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=e.elements)!=null&&i.reference&&!Ie(e.elements.reference)){var s;if(!((s=Bh)!=null&&s.has(N))){var a;(a=Bh)==null||a.add(N),console.error(N)}}}const[l,c]=I.useState(null),d=((t=e.elements)==null?void 0:t.reference)||l,u=wF(e),f=aa(),h=rd()!=null,g=Ur((N,O,E)=>{N&&(m.current.openEvent=O),x.emit("openchange",{open:N,event:O,reason:E,nested:h}),n==null||n(N,O,E)}),p=I.useRef(null),m=I.useRef({}),x=I.useState(()=>oj())[0],y=td(),_=I.useCallback(N=>{const O=Ie(N)?{getBoundingClientRect:()=>N.getBoundingClientRect(),contextElement:N}:N;u.refs.setReference(O)},[u.refs]),v=I.useCallback(N=>{(Ie(N)||N===null)&&(p.current=N,c(N)),(Ie(u.refs.reference.current)||u.refs.reference.current===null||N!==null&&!Ie(N))&&u.refs.setReference(N)},[u.refs]),w=I.useMemo(()=>({...u.refs,setReference:v,setPositionReference:_,domReference:p}),[u.refs,v,_]),C=I.useMemo(()=>({...u.elements,domReference:d}),[u.elements,d]),M=I.useMemo(()=>({...u,refs:w,elements:C,dataRef:m,nodeId:o,floatingId:y,events:x,open:r,onOpenChange:g}),[u,o,y,x,r,g,w,C]);return Fe(()=>{const N=f==null?void 0:f.nodesRef.current.find(O=>O.id===o);N&&(N.context=M)}),I.useMemo(()=>({...u,context:M,refs:w,elements:C}),[u,w,C,M])}function _j(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,events:o,refs:i,elements:{domReference:s}}=e,{enabled:a=!0,visibleOnly:l=!0}=t,c=I.useRef(!1),d=I.useRef(),u=I.useRef(!0);return I.useEffect(()=>{if(!a)return;const f=Rt(s);function h(){!r&&vt(s)&&s===$r(Pt(s))&&(c.current=!0)}function g(){u.current=!0}return f.addEventListener("blur",h),f.addEventListener("keydown",g,!0),()=>{f.removeEventListener("blur",h),f.removeEventListener("keydown",g,!0)}},[s,r,a]),I.useEffect(()=>{if(!a)return;function f(h){let{reason:g}=h;(g==="reference-press"||g==="escape-key")&&(c.current=!0)}return o.on("openchange",f),()=>{o.off("openchange",f)}},[o,a]),I.useEffect(()=>()=>{clearTimeout(d.current)},[]),I.useMemo(()=>a?{reference:{onPointerDown(f){mh(f.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const h=Ln(f.nativeEvent);if(l&&Ie(h))try{if(yh()&&jk())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!wh(h))return}n(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const h=f.relatedTarget,g=Ie(h)&&h.hasAttribute(Co("focus-guard"))&&h.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{const p=$r(s?s.ownerDocument:document);!h&&p===s||rt(i.floating.current,p)||rt(s,p)||g||n(!1,f.nativeEvent,"focus")})}}}:{},[a,l,s,i,n])}const P_="active",I_="selected";function Wh(e,t,r){const n=new Map,o=r==="item";let i=e;if(o&&e){const{[P_]:s,[I_]:a,...l}=e;i=l}return{...r==="floating"&&{tabIndex:-1},...i,...t.map(s=>{const a=s?s[r]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[c,d]=l;if(!(o&&[P_,I_].includes(c)))if(c.indexOf("on")===0){if(n.has(c)||n.set(c,[]),typeof d=="function"){var u;(u=n.get(c))==null||u.push(d),s[c]=function(){for(var f,h=arguments.length,g=new Array(h),p=0;p<h;p++)g[p]=arguments[p];return(f=n.get(c))==null?void 0:f.map(m=>m(...g)).find(m=>m!==void 0)}}}else s[c]=d}),s),{})}}function A_(e){e===void 0&&(e=[]);const t=e,r=I.useCallback(i=>Wh(i,e,"reference"),t),n=I.useCallback(i=>Wh(i,e,"floating"),t),o=I.useCallback(i=>Wh(i,e,"item"),e.map(i=>i==null?void 0:i.item));return I.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])}let L_=!1;function sd(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function z_(e,t){return sd(t,e===Dh||e===oa,e===pi||e===bi)}function Hh(e,t,r){return sd(t,e===oa,r?e===pi:e===bi)||e==="Enter"||e===" "||e===""}function Cj(e,t,r){return sd(t,r?e===pi:e===bi,e===oa)}function F_(e,t,r){return sd(t,r?e===bi:e===pi,e===Dh)}function Sj(e,t){const{open:r,onOpenChange:n,refs:o,elements:{domReference:i,floating:s}}=e,{listRef:a,activeIndex:l,onNavigate:c=()=>{},enabled:d=!0,selectedIndex:u=null,allowEscape:f=!1,loop:h=!1,nested:g=!1,rtl:p=!1,virtual:m=!1,focusItemOnOpen:x="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:_=!0,disabledIndices:v=void 0,orientation:w="vertical",cols:C=1,scrollItemIntoView:M=!0,virtualItemRef:N,itemSizes:O,dense:E=!1}=t;process.env.NODE_ENV!=="production"&&(f&&(h||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),m||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),w==="vertical"&&C>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const z=rd(),T=aa(),P=Ur(c),D=I.useRef(x),S=I.useRef(u??-1),A=I.useRef(null),F=I.useRef(!0),L=I.useRef(P),j=I.useRef(!!s),B=I.useRef(!1),W=I.useRef(!1),H=Rr(v),U=Rr(r),R=Rr(M),[q,X]=I.useState(),[Q,J]=I.useState(),ie=Ur(function(ee,ae,re){re===void 0&&(re=!1);const oe=ee.current[ae.current];oe&&(m?(X(oe.id),T==null||T.events.emit("virtualfocus",oe),N&&(N.current=oe)):un(oe,{preventScroll:!0,sync:jk()&&yh()?L_||B.current:!1}),requestAnimationFrame(()=>{const ne=R.current;ne&&oe&&(re||!F.current)&&(oe.scrollIntoView==null||oe.scrollIntoView(typeof ne=="boolean"?{block:"nearest",inline:"nearest"}:ne))}))});Fe(()=>{document.createElement("div").focus({get preventScroll(){return L_=!0,!1}})},[]),Fe(()=>{d&&(r&&s?D.current&&u!=null&&(W.current=!0,S.current=u,P(u)):j.current&&(S.current=-1,L.current(null)))},[d,r,s,u,P]),Fe(()=>{if(d&&r&&s)if(l==null){if(B.current=!1,u!=null)return;if(j.current&&(S.current=-1,ie(a,S)),!j.current&&D.current&&(A.current!=null||D.current===!0&&A.current==null)){let ee=0;const ae=()=>{a.current[0]==null?(ee<2&&(ee?requestAnimationFrame:queueMicrotask)(ae),ee++):(S.current=A.current==null||Hh(A.current,w,p)||g?Ph(a,H.current):d_(a,H.current),A.current=null,P(S.current))};ae()}}else ia(a,l)||(S.current=l,ie(a,S,W.current),W.current=!1)},[d,r,s,l,u,g,a,w,p,P,ie,H]),Fe(()=>{var ee;if(!d||s||!T||m||!j.current)return;const ae=T.nodesRef.current,re=(ee=ae.find(Z=>Z.id===z))==null||(ee=ee.context)==null?void 0:ee.elements.floating,oe=$r(Pt(s)),ne=ae.some(Z=>Z.context&&rt(Z.context.elements.floating,oe));re&&!ne&&F.current&&re.focus({preventScroll:!0})},[d,s,T,z,m]),Fe(()=>{if(!d||!T||!m||z)return;function ee(ae){J(ae.id),N&&(N.current=ae)}return T.events.on("virtualfocus",ee),()=>{T.events.off("virtualfocus",ee)}},[d,T,m,z,N]),Fe(()=>{L.current=P,j.current=!!s}),Fe(()=>{r||(A.current=null)},[r]);const ye=l!=null,ve=I.useMemo(()=>{function ee(re){if(!r)return;const oe=a.current.indexOf(re);oe!==-1&&P(oe)}return{onFocus(re){let{currentTarget:oe}=re;ee(oe)},onClick:re=>{let{currentTarget:oe}=re;return oe.focus({preventScroll:!0})},...y&&{onMouseMove(re){let{currentTarget:oe}=re;ee(oe)},onPointerLeave(re){let{pointerType:oe}=re;!F.current||oe==="touch"||(S.current=-1,ie(a,S),P(null),m||un(o.floating.current,{preventScroll:!0}))}}}},[r,o,ie,y,a,P,m]);return I.useMemo(()=>{if(!d)return{};const ee=H.current;function ae(Y){if(F.current=!1,B.current=!0,!U.current&&Y.currentTarget===o.floating.current)return;if(g&&F_(Y.key,w,p)){xt(Y),n(!1,Y.nativeEvent,"list-navigation"),vt(i)&&!m&&i.focus();return}const fe=S.current,te=Ph(a,ee),ce=d_(a,ee);if(Y.key==="Home"&&(xt(Y),S.current=te,P(S.current)),Y.key==="End"&&(xt(Y),S.current=ce,P(S.current)),C>1){const be=O||Array.from({length:a.current.length},()=>({width:1,height:1})),he=GF(be,C,E),$e=he.findIndex(Ae=>Ae!=null&&!(ee!=null&&ee.includes(Ae))),Re=he.reduce((Ae,wt,Le)=>wt!=null&&!(ee!=null&&ee.includes(wt))?Le:Ae,-1);if(S.current=he[XF({current:he.map(Ae=>Ae!=null?a.current[Ae]:null)},{event:Y,orientation:w,loop:h,cols:C,disabledIndices:ZF([...ee||[],void 0],he),minIndex:$e,maxIndex:Re,prevIndex:KF(S.current,be,he,C,Y.key===oa?"bl":Y.key===bi?"tr":"tl"),stopEvent:!0})],P(S.current),w==="both")return}if(z_(Y.key,w)){if(xt(Y),r&&!m&&$r(Y.currentTarget.ownerDocument)===Y.currentTarget){S.current=Hh(Y.key,w,p)?te:ce,P(S.current);return}Hh(Y.key,w,p)?h?S.current=fe>=ce?f&&fe!==a.current.length?-1:te:Mt(a,{startingIndex:fe,disabledIndices:ee}):S.current=Math.min(ce,Mt(a,{startingIndex:fe,disabledIndices:ee})):h?S.current=fe<=te?f&&fe!==-1?a.current.length:ce:Mt(a,{startingIndex:fe,decrement:!0,disabledIndices:ee}):S.current=Math.max(te,Mt(a,{startingIndex:fe,decrement:!0,disabledIndices:ee})),ia(a,S.current)?P(null):P(S.current)}}function re(Y){x==="auto"&&Fk(Y.nativeEvent)&&(D.current=!0)}function oe(Y){D.current=x,x==="auto"&&mh(Y.nativeEvent)&&(D.current=!0)}const ne=m&&r&&ye&&{"aria-activedescendant":Q||q},Z=a.current.find(Y=>(Y==null?void 0:Y.id)===q);return{reference:{...ne,onKeyDown(Y){F.current=!1;const fe=Y.key.indexOf("Arrow")===0,te=Cj(Y.key,w,p),ce=F_(Y.key,w,p),be=z_(Y.key,w),he=(g?te:be)||Y.key==="Enter"||Y.key.trim()==="";if(m&&r){const wt=T==null?void 0:T.nodesRef.current.find(fn=>fn.parentId==null),Le=T&&wt?cj(T.nodesRef.current,wt.id):null;if(fe&&Le&&N){const fn=new KeyboardEvent("keydown",{key:Y.key,bubbles:!0});if(te||ce){var $e,Re;const Jh=(($e=Le.context)==null?void 0:$e.elements.domReference)===Y.currentTarget,da=ce&&!Jh?(Re=Le.context)==null?void 0:Re.elements.domReference:te?Z:null;da&&(xt(Y),da.dispatchEvent(fn),J(void 0))}if(be&&Le.context&&Le.context.open&&Le.parentId&&Y.currentTarget!==Le.context.elements.domReference){var Ae;xt(Y),(Ae=Le.context.elements.domReference)==null||Ae.dispatchEvent(fn);return}}return ae(Y)}if(!(!r&&!_&&fe)){if(he&&(A.current=g&&be?null:Y.key),g){te&&(xt(Y),r?(S.current=Ph(a,ee),P(S.current)):n(!0,Y.nativeEvent,"list-navigation"));return}be&&(u!=null&&(S.current=u),xt(Y),!r&&_?n(!0,Y.nativeEvent,"list-navigation"):ae(Y),r&&P(S.current))}},onFocus(){r&&P(null)},onPointerDown:oe,onMouseDown:re,onClick:re},floating:{"aria-orientation":w==="both"?void 0:w,...!Bk(i)&&ne,onKeyDown:ae,onPointerMove(){F.current=!0}},item:ve}},[i,o,q,Q,H,U,a,d,w,p,m,r,ye,g,u,_,f,C,h,x,P,n,ve,T,N,O,E])}const Ej=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function j_(e,t){var r;t===void 0&&(t={});const{open:n,floatingId:o}=e,{enabled:i=!0,role:s="dialog"}=t,a=(r=Ej.get(s))!=null?r:s,l=td(),d=rd()!=null;return I.useMemo(()=>{if(!i)return{};const u={id:o,...a&&{role:a}};return a==="tooltip"||s==="label"?{reference:{["aria-"+(s==="label"?"labelledby":"describedby")]:n?o:void 0},floating:u}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":n?o:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:l},...a==="menu"&&d&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},floating:{...u,...a==="menu"&&{"aria-labelledby":l}},item(f){let{active:h,selected:g}=f;const p={role:"option",...h&&{id:o+"-option"}};switch(s){case"select":return{...p,"aria-selected":h&&g};case"combobox":return{...p,...h&&{"aria-selected":!0}}}return{}}}},[i,s,a,n,o,l,d])}function Oj(e,t){var r;const{open:n,dataRef:o}=e,{listRef:i,activeIndex:s,onMatch:a,onTypingChange:l,enabled:c=!0,findMatch:d=null,resetMs:u=750,ignoreKeys:f=[],selectedIndex:h=null}=t,g=I.useRef(),p=I.useRef(""),m=I.useRef((r=h??s)!=null?r:-1),x=I.useRef(null),y=Ur(a),_=Ur(l),v=Rr(d),w=Rr(f);return Fe(()=>{n&&(clearTimeout(g.current),x.current=null,p.current="")},[n]),Fe(()=>{if(n&&p.current===""){var C;m.current=(C=h??s)!=null?C:-1}},[n,h,s]),I.useMemo(()=>{if(!c)return{};function C(O){O?o.current.typing||(o.current.typing=O,_(O)):o.current.typing&&(o.current.typing=O,_(O))}function M(O,E,z){const T=v.current?v.current(E,z):E.find(P=>(P==null?void 0:P.toLocaleLowerCase().indexOf(z.toLocaleLowerCase()))===0);return T?O.indexOf(T):-1}function N(O){const E=i.current;if(p.current.length>0&&p.current[0]!==" "&&(M(E,E,p.current)===-1?C(!1):O.key===" "&&xt(O)),E==null||w.current.includes(O.key)||O.key.length!==1||O.ctrlKey||O.metaKey||O.altKey)return;n&&O.key!==" "&&(xt(O),C(!0)),E.every(D=>{var S,A;return D?((S=D[0])==null?void 0:S.toLocaleLowerCase())!==((A=D[1])==null?void 0:A.toLocaleLowerCase()):!0})&&p.current===O.key&&(p.current="",m.current=x.current),p.current+=O.key,clearTimeout(g.current),g.current=setTimeout(()=>{p.current="",m.current=x.current,C(!1)},u);const T=m.current,P=M(E,[...E.slice((T||0)+1),...E.slice(0,(T||0)+1)],p.current);P!==-1?(y(P),x.current=P):O.key!==" "&&(p.current="",C(!1))}return{reference:{onKeyDown:N},floating:{onKeyDown:N,onKeyUp(O){O.key===" "&&C(!1)}}}},[c,n,o,i,u,w,v,y,_])}function B_(e,t){const[r,n]=e;let o=!1;const i=t.length;for(let s=0,a=i-1;s<i;a=s++){const[l,c]=t[s]||[0,0],[d,u]=t[a]||[0,0];c>=n!=u>=n&&r<=(d-l)*(n-c)/(u-c)+l&&(o=!o)}return o}function Nj(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Mj(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:r=!1,requireIntent:n=!0}=e;let o,i=!1,s=null,a=null,l=performance.now();function c(u,f){const h=performance.now(),g=h-l;if(s===null||a===null||g===0)return s=u,a=f,l=h,null;const p=u-s,m=f-a,y=Math.sqrt(p*p+m*m)/g;return s=u,a=f,l=h,y}const d=u=>{let{x:f,y:h,placement:g,elements:p,onClose:m,nodeId:x,tree:y}=u;return function(v){function w(){clearTimeout(o),m()}if(clearTimeout(o),!p.domReference||!p.floating||g==null||f==null||h==null)return;const{clientX:C,clientY:M}=v,N=[C,M],O=Ln(v),E=v.type==="mouseleave",z=rt(p.floating,O),T=rt(p.domReference,O),P=p.domReference.getBoundingClientRect(),D=p.floating.getBoundingClientRect(),S=g.split("-")[0],A=f>D.right-D.width/2,F=h>D.bottom-D.height/2,L=Nj(N,P),j=D.width>P.width,B=D.height>P.height,W=(j?P:D).left,H=(j?P:D).right,U=(B?P:D).top,R=(B?P:D).bottom;if(z&&(i=!0,!E))return;if(T&&(i=!1),T&&!E){i=!0;return}if(E&&Ie(v.relatedTarget)&&rt(p.floating,v.relatedTarget)||y&&So(y.nodesRef.current,x).some(Q=>{let{context:J}=Q;return J==null?void 0:J.open}))return;if(S==="top"&&h>=P.bottom-1||S==="bottom"&&h<=P.top+1||S==="left"&&f>=P.right-1||S==="right"&&f<=P.left+1)return w();let q=[];switch(S){case"top":q=[[W,P.top+1],[W,D.bottom-1],[H,D.bottom-1],[H,P.top+1]];break;case"bottom":q=[[W,D.top+1],[W,P.bottom-1],[H,P.bottom-1],[H,D.top+1]];break;case"left":q=[[D.right-1,R],[D.right-1,U],[P.left+1,U],[P.left+1,R]];break;case"right":q=[[P.right-1,R],[P.right-1,U],[D.left+1,U],[D.left+1,R]];break}function X(Q){let[J,ie]=Q;switch(S){case"top":{const ye=[j?J+t/2:A?J+t*4:J-t*4,ie+t+1],ve=[j?J-t/2:A?J+t*4:J-t*4,ie+t+1],ee=[[D.left,A||j?D.bottom-t:D.top],[D.right,A?j?D.bottom-t:D.top:D.bottom-t]];return[ye,ve,...ee]}case"bottom":{const ye=[j?J+t/2:A?J+t*4:J-t*4,ie-t],ve=[j?J-t/2:A?J+t*4:J-t*4,ie-t],ee=[[D.left,A||j?D.top+t:D.bottom],[D.right,A?j?D.top+t:D.bottom:D.top+t]];return[ye,ve,...ee]}case"left":{const ye=[J+t+1,B?ie+t/2:F?ie+t*4:ie-t*4],ve=[J+t+1,B?ie-t/2:F?ie+t*4:ie-t*4];return[...[[F||B?D.right-t:D.left,D.top],[F?B?D.right-t:D.left:D.right-t,D.bottom]],ye,ve]}case"right":{const ye=[J-t,B?ie+t/2:F?ie+t*4:ie-t*4],ve=[J-t,B?ie-t/2:F?ie+t*4:ie-t*4],ee=[[F||B?D.left+t:D.right,D.top],[F?B?D.left+t:D.right:D.left+t,D.bottom]];return[ye,ve,...ee]}}}if(!B_([C,M],q)){if(i&&!L)return w();if(!E&&n){const Q=c(v.clientX,v.clientY);if(Q!==null&&Q<.1)return w()}B_([C,M],X([f,h]))?!i&&n&&(o=window.setTimeout(w,40)):w()}}};return d.__options={blockPointerEvents:r},d}const Tj=({arrowRef:e,placement:t})=>{const r=[];return r.push(_F(8)),r.push(t==="auto"?EF():SF()),r.push(CF({padding:8})),e!=null&&e.current&&r.push(OF({element:e.current})),r},Dj=({placement:e})=>e==="auto"?void 0:e,Pj=({placement:e})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[e.split("-")[0]],W_=({open:e,arrowRef:t,placement:r="top",setOpen:n})=>D_({placement:Dj({placement:r}),open:e,onOpenChange:n,whileElementsMounted:e_,middleware:Tj({placement:r,arrowRef:t})}),H_=({context:e,trigger:t,role:r="tooltip",interactions:n=[]})=>A_([N_(e,{enabled:t==="click"}),aj(e,{enabled:t==="hover",handleClose:Mj()}),T_(e),j_(e,{role:r}),...n]),$_=k.createContext(void 0);function $h(){const e=k.useContext($_);if(!e)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return e}const Vh=({className:e,theme:t={},...r})=>{const{theme:n}=$h(),o=t.divider??n.floating.divider;return b.jsx("div",{className:$(o,e),...r})},V_=({children:e,className:t,theme:r={},...n})=>{const{theme:o}=$h(),i=r.header??o.floating.header;return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:$(i,t),...n,children:e}),b.jsx(Vh,{})]})},Y_=k.forwardRef(({children:e,className:t,icon:r,onClick:n,theme:o={},...i},s)=>{const{ref:a,index:l}=tj({label:typeof e=="string"?e:void 0}),c=c_([s,a]),{theme:d,activeIndex:u,dismissOnClick:f,getItemProps:h,handleSelect:g}=$h(),p=u===l,m=G(d.floating.item,o),x=i;return b.jsx("li",{role:"menuitem",className:m.container,children:b.jsxs(lh,{ref:c,className:$(m.base,t),...x,...h({onClick:()=>{n==null||n(),f&&g(null)}}),tabIndex:p?0:-1,children:[r&&b.jsx(r,{className:m.icon}),e]})})});Y_.displayName="DropdownItem";const Ij={top:U9,right:tk,bottom:ek,left:Y9},Aj=({refs:e,children:t,inline:r,theme:n,disabled:o,setButtonWidth:i,getReferenceProps:s,renderTrigger:a,...l})=>{const c=e.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:e.setReference,disabled:o,...d,...u.props})}return r?b.jsx("button",{type:"button",ref:e.setReference,className:n==null?void 0:n.inlineWrapper,disabled:o,...d,children:t}):b.jsx(Ck,{...l,disabled:o,type:"button",ref:e.setReference,...d,children:t})},U_=({children:e,className:t,dismissOnClick:r=!0,theme:n={},renderTrigger:o,...i})=>{const[s,a]=k.useState(!1),[l,c]=k.useState(null),[d,u]=k.useState(null),[f,h]=k.useState(void 0),g=k.useRef([]),p=k.useRef([]),m=G(se().dropdown,n),x=i,y=i["data-testid"]||"flowbite-dropdown-target",{placement:_=i.inline?"bottom-start":"bottom",trigger:v="click",label:w,inline:C,arrowIcon:M=!0,...N}=x,O=k.useCallback(B=>{u(B),a(!1)},[]),E=k.useCallback(B=>{s?c(B):O(B)},[s,O]),{context:z,floatingStyles:T,refs:P}=W_({open:s,setOpen:a,placement:_}),D=Sj(z,{listRef:g,activeIndex:l,selectedIndex:d,onNavigate:c}),S=Oj(z,{listRef:p,activeIndex:l,selectedIndex:d,onMatch:E}),{getReferenceProps:A,getFloatingProps:F,getItemProps:L}=H_({context:z,role:"menu",trigger:v,interactions:[D,S]}),j=k.useMemo(()=>{const[B]=_.split("-");return Ij[B]??ek},[_]);return b.jsxs($_.Provider,{value:{theme:m,activeIndex:l,dismissOnClick:r,getItemProps:L,handleSelect:O},children:[b.jsxs(Aj,{...N,refs:P,inline:C,theme:m,"data-testid":y,className:$(m.floating.target,N.className),setButtonWidth:h,getReferenceProps:A,renderTrigger:o,children:[w,M&&b.jsx(j,{className:m.arrowIcon})]}),s&&b.jsx(S_,{context:z,modal:!1,children:b.jsx("div",{ref:P.setFloating,style:{...T,minWidth:f},"data-testid":"flowbite-dropdown","aria-expanded":s,...F({className:$(m.floating.base,m.floating.animation,"duration-100",!s&&m.floating.hidden,m.floating.style.auto,t)}),children:b.jsx(ej,{elementsRef:g,labelsRef:p,children:b.jsx("ul",{className:m.content,tabIndex:-1,children:e})})})})]})};U_.displayName="Dropdown",V_.displayName="Dropdown.Header",Vh.displayName="Dropdown.Divider",Object.assign(U_,{Item:Y_,Header:V_,Divider:Vh});const R_=k.forwardRef(({className:e,color:t="gray",helperText:r,sizing:n="md",theme:o={},...i},s)=>{const a=G(se().fileInput,o);return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:$(a.root.base,e),children:b.jsx("div",{className:a.field.base,children:b.jsx("input",{className:$(a.field.input.base,a.field.input.colors[t],a.field.input.sizes[n]),...i,type:"file",ref:s})})}),r&&b.jsx(ea,{color:t,children:r})]})});R_.displayName="FileInput";const Lj=k.forwardRef(({label:e,helperText:t,color:r="default",sizing:n="md",variant:o,disabled:i=!1,theme:s={},className:a,...l},c)=>{const d=k.useId(),u=G(se().floatingLabel,s);return b.jsxs("div",{children:[b.jsxs("div",{className:$("relative",o==="standard"?"z-0":""),children:[b.jsx("input",{type:"text",id:l.id?l.id:"floatingLabel"+d,"aria-describedby":"outlined_success_help",className:$(u.input[r][o][n],a),placeholder:" ","data-testid":"floating-label",disabled:i,...l,ref:c}),b.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:$(u.label[r][o][n],a),children:e})]}),b.jsx("p",{id:"outlined_helper_text"+d,className:$(u.helperText[r],a),children:t})]})});Lj.displayName="FloatingLabel";const q_=({alt:e,className:t,children:r,href:n,name:o,src:i,theme:s={},...a})=>{const l=G(se().footer.brand,s);return b.jsx("div",{children:n?b.jsxs("a",{"data-testid":"flowbite-footer-brand",href:n,className:$(l.base,t),...a,children:[b.jsx("img",{alt:e,src:i,className:l.img}),b.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:o}),r]}):b.jsx("img",{alt:e,"data-testid":"flowbite-footer-brand",src:i,className:$(l.img,t),...a})})},X_=({by:e,className:t,href:r,theme:n={},year:o,...i})=>{const s=G(se().footer.copyright,n);return b.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:$(s.base,t),...i,children:["© ",o,r?b.jsx("a",{href:r,className:s.href,children:e}):b.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:s.span,children:e})]})},G_=({className:e,theme:t={},...r})=>{const n=G(se().footer.divider,t);return b.jsx("hr",{"data-testid":"footer-divider",className:$(n.base,e),...r})},K_=({ariaLabel:e,className:t,href:r,icon:n,theme:o={},...i})=>{const s=G(se().footer.icon,o);return b.jsx("div",{children:r?b.jsx("a",{"aria-label":e,"data-testid":"flowbite-footer-icon",href:r,className:$(s.base,t),...i,children:b.jsx(n,{className:s.size})}):b.jsx(n,{"data-testid":"flowbite-footer-icon",className:s.size,...i})})},Z_=({as:e="a",children:t,className:r,href:n,theme:o={},...i})=>{const s=G(se().footer.groupLink.link,o);return b.jsx("li",{className:$(s.base,r),children:b.jsx(e,{href:n,className:s.href,...i,children:t})})},Q_=({children:e,className:t,col:r=!1,theme:n={},...o})=>{const i=G(se().footer.groupLink,n);return b.jsx("ul",{"data-testid":"footer-groupLink",className:$(i.base,r&&i.col,t),...o,children:e})},J_=({as:e="h2",className:t,theme:r={},title:n,...o})=>{const i=G(se().footer.title,r);return b.jsx(e,{"data-testid":"flowbite-footer-title",className:$(i.base,t),...o,children:n})},e2=({bgDark:e=!1,children:t,className:r,container:n=!1,theme:o={},...i})=>{const s=G(se().footer,o);return b.jsx("footer",{"data-testid":"flowbite-footer",className:$(s.root.base,e&&s.root.bgDark,n&&s.root.container,r),...i,children:t})};e2.displayName="Footer",X_.displayName="Footer.Copyright",Z_.displayName="Footer.Link",q_.displayName="Footer.Brand",Q_.displayName="Footer.LinkGroup",K_.displayName="Footer.Icon",J_.displayName="Footer.Title",G_.displayName="Footer.Divider",Object.assign(e2,{Copyright:X_,Link:Z_,LinkGroup:Q_,Brand:q_,Icon:K_,Title:J_,Divider:G_});const t2=({children:e,className:t,color:r="default",disabled:n=!1,theme:o={},value:i,...s})=>{const a=G(se().label,o);return b.jsx("label",{className:$(a.root.base,a.root.colors[r],n&&a.root.disabled,t),"data-testid":"flowbite-label",...s,children:i??e??""})};t2.displayName="Label";const r2=({children:e,className:t,icon:r,theme:n={},...o})=>{const i=G(se().list.item,n);return b.jsxs("li",{className:$(i.withIcon[r?"on":"off"],t),...o,children:[r&&b.jsx(r,{className:$(i.icon)}),e]})},n2=({children:e,className:t,unstyled:r,nested:n,ordered:o,horizontal:i,theme:s={},...a})=>{const l=G(se().list,s),c=o?"ol":"ul";return b.jsx(c,{className:$(l.root.base,l.root.ordered[o?"on":"off"],r&&l.root.unstyled,n&&l.root.nested,i&&l.root.horizontal,t),...a,children:e})};n2.displayName="List",r2.displayName="List.Item",Object.assign(n2,{Item:r2});const o2=({active:e,children:t,className:r,href:n,icon:o,onClick:i,theme:s={},disabled:a,...l})=>{const c=G(se().listGroup.item,s),d=typeof n<"u",u=d?"a":"button";return b.jsx("li",{className:$(c.base,r),children:b.jsxs(u,{href:n,onClick:i,type:d?void 0:"button",disabled:a,className:$(c.link.active[e?"on":"off"],c.link.disabled[a?"on":"off"],c.link.base,c.link.href[d?"on":"off"]),...l,children:[o&&b.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),t]})})},i2=({children:e,className:t,theme:r={},...n})=>{const o=G(se().listGroup,r);return b.jsx("ul",{className:$(o.root.base,t),...n,children:e})};i2.displayName="ListGroup",o2.displayName="ListGroup.Item",Object.assign(i2,{Item:o2});const s2=k.createContext(void 0);function Yh(){const e=k.useContext(s2);if(!e)throw new Error("useModalContext should be used within the ModalContext provider!");return e}const a2=({children:e,className:t,theme:r={},...n})=>{const{theme:o,popup:i}=Yh(),s=G(o.body,r);return b.jsx("div",{className:$(s.base,i&&[s.popup],t),...n,children:e})},l2=({children:e,className:t,theme:r={},...n})=>{const{theme:o,popup:i}=Yh(),s=G(o.footer,r);return b.jsx("div",{className:$(s.base,!i&&s.popup,t),...n,children:e})},c2=({as:e="h3",children:t,className:r,theme:n={},id:o,...i})=>{const s=k.useId(),a=o||s,{theme:l,popup:c,onClose:d,setHeaderId:u}=Yh(),f=G(l.header,n);return k.useLayoutEffect(()=>(u(a),()=>u(void 0)),[a,u]),b.jsxs("div",{className:$(f.base,c&&f.popup,r),...i,children:[b.jsx(e,{id:a,className:f.title,children:t}),b.jsx("button",{"aria-label":"Close",className:f.close.base,type:"button",onClick:d,children:b.jsx(R9,{"aria-hidden":!0,className:f.close.icon})})]})},d2=k.forwardRef(({children:e,className:t,dismissible:r=!1,onClose:n,popup:o,position:i="center",root:s,show:a,size:l="2xl",theme:c={},initialFocus:d,...u},f)=>{const[h,g]=k.useState(void 0),p=G(se().modal,c),{context:m}=D_({open:a,onOpenChange:()=>n&&n()}),x=c_([m.refs.setFloating,f]),y=N_(m),_=T_(m,{outsidePressEvent:"mousedown",enabled:r}),v=j_(m),{getFloatingProps:w}=A_([y,_,v]);return a?b.jsx(s2.Provider,{value:{theme:p,popup:o,onClose:n,setHeaderId:g},children:b.jsx(mj,{root:s,children:b.jsx(xj,{lockScroll:!0,"data-testid":"modal-overlay",className:$(p.root.base,p.root.positions[i],a?p.root.show.on:p.root.show.off,t),...u,children:b.jsx(S_,{context:m,initialFocus:d,children:b.jsx("div",{ref:x,...w(u),"aria-labelledby":h,className:$(p.content.base,p.root.sizes[l]),children:b.jsx("div",{className:p.content.inner,children:e})})})})})}):null});d2.displayName="Modal",c2.displayName="Modal.Header",a2.displayName="Modal.Body",l2.displayName="Modal.Footer",Object.assign(d2,{Header:c2,Body:a2,Footer:l2});const u2=k.createContext(void 0);function ad(){const e=k.useContext(u2);if(!e)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return e}const f2=({as:e="a",children:t,className:r,theme:n={},...o})=>{const{theme:i}=ad(),s=G(i.brand,n);return b.jsx(e,{className:$(s.base,r),...o,children:t})},h2=({children:e,className:t,theme:r={},...n})=>{const{theme:o,isOpen:i}=ad(),s=G(o.collapse,r);return b.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:$(s.base,s.hidden[i?"off":"on"],t),...n,children:b.jsx("ul",{className:s.list,children:e})})},g2=({active:e,as:t="a",disabled:r,children:n,className:o,theme:i={},onClick:s,...a})=>{const{theme:l,setIsOpen:c}=ad(),d=G(l.link,i),u=f=>{c(!1),s==null||s(f)};return b.jsx("li",{children:b.jsx(t,{className:$(d.base,e&&d.active.on,!e&&!r&&d.active.off,d.disabled[r?"on":"off"],o),onClick:u,...a,children:n})})},p2=({barIcon:e=g5,className:t,theme:r={},...n})=>{const{theme:o,isOpen:i,setIsOpen:s}=ad(),a=G(o.toggle,r),l=()=>{s(!i)};return b.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:$(a.base,t),...n,children:[b.jsx("span",{className:"sr-only",children:"Open main menu"}),b.jsx(e,{"aria-hidden":!0,className:a.icon})]})},b2=({border:e,children:t,className:r,fluid:n=!1,menuOpen:o,rounded:i,theme:s={},...a})=>{const[l,c]=k.useState(o),d=G(se().navbar,s);return b.jsx(u2.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:b.jsx("nav",{className:$(d.root.base,d.root.bordered[e?"on":"off"],d.root.rounded[i?"on":"off"],r),...a,children:b.jsx("div",{className:$(d.root.inner.base,d.root.inner.fluid[n?"on":"off"]),children:t})})})};b2.displayName="Navbar",f2.displayName="Navbar.Brand",h2.displayName="Navbar.Collapse",g2.displayName="Navbar.Link",p2.displayName="Navbar.Toggle",Object.assign(b2,{Brand:f2,Collapse:h2,Link:g2,Toggle:p2});const zj=(e,t)=>e>=t?[]:[...Array(t-e+1).keys()].map(r=>r+e),Uh=({active:e,children:t,className:r,onClick:n,theme:o={},...i})=>{const s=G(se().pagination,o);return b.jsx("button",{type:"button",className:$(e&&s.pages.selector.active,r),onClick:n,...i,children:t})};Uh.displayName="Pagination.Button";const Rh=({children:e,className:t,onClick:r,theme:n={},disabled:o=!1,...i})=>{const s=G(se().pagination,n);return b.jsx("button",{type:"button",className:$(o&&s.pages.selector.disabled,t),disabled:o,onClick:r,...i,children:e})};Rh.displayName="Pagination.Navigation";const m2=({className:e,currentPage:t,layout:r="pagination",nextLabel:n="Next",onPageChange:o,previousLabel:i="Previous",renderPaginationButton:s=u=>b.jsx(Uh,{...u}),showIcons:a=!1,theme:l={},totalPages:c,...d})=>{const u=G(se().pagination,l),f=Math.min(Math.max(r==="pagination"?t+2:t+4,5),c),h=Math.max(1,f-4),g=()=>{o(Math.min(t+1,c))},p=()=>{o(Math.max(t-1,1))};return b.jsxs("nav",{className:$(u.base,e),...d,children:[r==="table"&&b.jsxs("div",{className:u.layout.table.base,children:["Showing ",b.jsx("span",{className:u.layout.table.span,children:h})," to ",b.jsx("span",{className:u.layout.table.span,children:f})," of ",b.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),b.jsxs("ul",{className:u.pages.base,children:[b.jsx("li",{children:b.jsxs(Rh,{className:$(u.pages.previous.base,a&&u.pages.showIcon),onClick:p,disabled:t===1,children:[a&&b.jsx(Z1,{"aria-hidden":!0,className:u.pages.previous.icon}),i]})}),r==="pagination"&&zj(h,f).map(m=>b.jsx("li",{"aria-current":m===t?"page":void 0,children:s({className:$(u.pages.selector.base,t===m&&u.pages.selector.active),active:m===t,onClick:()=>o(m),children:m})},m)),b.jsx("li",{children:b.jsxs(Rh,{className:$(u.pages.next.base,a&&u.pages.showIcon),onClick:g,disabled:t===c,children:[n,a&&b.jsx(Q1,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};m2.displayName="Pagination",Object.assign(m2,{Button:Uh});const Fj=k.forwardRef(({className:e,theme:t={},...r},n)=>{const o=G(se().radio,t);return b.jsx("input",{ref:n,type:"radio",className:$(o.root.base,e),...r})});Fj.displayName="Radio";const jj=k.forwardRef(({className:e,sizing:t="md",theme:r={},...n},o)=>{const i=G(se().rangeSlider,r);return b.jsx(b.Fragment,{children:b.jsx("div",{"data-testid":"flowbite-range-slider",className:$(i.root.base,e),children:b.jsx("div",{className:i.field.base,children:b.jsx("input",{ref:o,type:"range",className:$(i.field.input.base,i.field.input.sizes[t]),...n})})})})});jj.displayName="RangeSlider";const y2=({children:e,className:t,percentFilled:r=0,theme:n={},...o})=>{const i=G(se().ratingAdvanced,n);return b.jsxs("div",{className:$(i.base,t),...o,children:[b.jsx("span",{className:i.label,children:e}),b.jsx("div",{className:i.progress.base,children:b.jsx("div",{className:i.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${r}%`}})}),b.jsx("span",{className:i.progress.label,children:`${r}%`})]})},v2=k.createContext(void 0);function Bj(){const e=k.useContext(v2);if(!e)throw new Error("useRatingContext should be used within the RatingContext provider!");return e}const x2=({className:e,filled:t=!0,starIcon:r=$9,theme:n={},...o})=>{const{theme:i,size:s="sm"}=Bj(),a=G(i.star,n);return b.jsx(r,{"data-testid":"flowbite-rating-star",className:$(a.sizes[s],a[t?"filled":"empty"],e),...o})},w2=({children:e,className:t,size:r="sm",theme:n={},...o})=>{const i=G(se().rating,n);return b.jsx(v2.Provider,{value:{theme:i,size:r},children:b.jsx("div",{className:$(i.root.base,t),...o,children:e})})};w2.displayName="Rating",x2.displayName="Rating.Star",y2.displayName="Rating.Advanced",Object.assign(w2,{Star:x2,Advanced:y2});const Wj=k.forwardRef(({addon:e,children:t,className:r,color:n="gray",helperText:o,icon:i,shadow:s,sizing:a="md",theme:l={},...c},d)=>{const u=G(se().select,l);return b.jsxs("div",{className:$(u.base,r),children:[e&&b.jsx("span",{className:u.addon,children:e}),b.jsxs("div",{className:u.field.base,children:[i&&b.jsx("div",{className:u.field.icon.base,children:b.jsx(i,{className:u.field.icon.svg})}),b.jsx("select",{className:$(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[e?"on":"off"],u.field.select.withShadow[s?"on":"off"]),...c,ref:d,children:t}),o&&b.jsx(ea,{color:n,children:o})]})]})});Wj.displayName="Select";const Hj=({animation:e="duration-300",arrow:t=!0,children:r,className:n,content:o,placement:i="top",style:s="dark",theme:a,trigger:l="hover",minWidth:c,...d})=>{const u=k.useRef(null),[f,h]=k.useState(!1),g=W_({open:f,placement:i,arrowRef:u,setOpen:h}),{context:p,middlewareData:{arrow:{x:m,y:x}={}},refs:y,strategy:_,update:v,x:w,y:C}=g,M=_j(p),{getFloatingProps:N,getReferenceProps:O}=H_({context:p,role:"tooltip",trigger:l,interactions:[M]});return k.useEffect(()=>{if(y.reference.current&&y.floating.current&&f)return e_(y.reference.current,y.floating.current,v)},[f,y.floating,y.reference,v]),b.jsxs(b.Fragment,{children:[b.jsx("div",{ref:y.setReference,className:a.target,"data-testid":"flowbite-tooltip-target",...O(),children:r}),b.jsxs("div",{ref:y.setFloating,"data-testid":"flowbite-tooltip",...N({className:$(a.base,e&&`${a.animation} ${e}`,!f&&a.hidden,a.style[s],n),style:{position:_,top:C??" ",left:w??" ",minWidth:c},...d}),children:[b.jsx("div",{className:a.content,children:o}),t&&b.jsx("div",{className:$(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:x??" ",left:m??" ",right:" ",bottom:" ",[Pj({placement:g.placement})]:a.arrow.placement},children:" "})]})]})},qh=({animation:e="duration-300",arrow:t=!0,children:r,className:n,content:o,placement:i="top",style:s="dark",theme:a={},trigger:l="hover",...c})=>{const d=G(se().tooltip,a);return b.jsx(Hj,{animation:e,arrow:t,content:o,placement:i,style:s,theme:d,trigger:l,className:n,...c,children:r})};qh.displayName="Tooltip";const k2=k.createContext(void 0);function yi(){const e=k.useContext(k2);if(!e)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return e}const Xh=k.createContext(void 0);function $j(){const e=k.useContext(Xh);if(!e)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return e}const _2=({children:e,className:t,icon:r,label:n,chevronIcon:o=K1,renderChevronIcon:i,open:s=!1,theme:a={},...l})=>{const c=k.useId(),[d,u]=k.useState(s),{theme:f,isCollapsed:h}=yi(),g=G(f.collapse,a);k.useEffect(()=>u(s),[s]);const p=({children:m})=>b.jsx("li",{children:h&&!d?b.jsx(qh,{content:n,placement:"right",children:m}):m});return b.jsxs(p,{children:[b.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:n,type:"button",className:$(g.button,t),...l,children:[r&&b.jsx(r,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:$(g.icon.base,g.icon.open[d?"on":"off"])}),h?b.jsx("span",{className:"sr-only",children:n}):b.jsxs(b.Fragment,{children:[b.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:g.label.base,children:n}),i?i(g,d):b.jsx(o,{"aria-hidden":!0,className:$(g.label.icon.base,g.label.icon.open[d?"on":"off"])})]})]}),b.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:g.list,children:b.jsx(Xh.Provider,{value:{isInsideCollapse:!0},children:e})})]})};_2.displayName="Sidebar.Collapse";const C2=({children:e,color:t="info",className:r,theme:n={},...o})=>{const{theme:i,isCollapsed:s}=yi(),a=G(i.cta,n);return b.jsx("div",{"data-testid":"sidebar-cta",hidden:s,className:$(a.base,a.color[t],r),...o,children:e})};C2.displayName="Sidebar.CTA";const Vj=({id:e,theme:t,isCollapsed:r,tooltipChildren:n,children:o,...i})=>b.jsx("li",{...i,children:r?b.jsx(qh,{content:b.jsx(S2,{id:e,theme:t,children:n}),placement:"right",children:o}):o}),S2=({id:e,theme:t,children:r})=>b.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${e}`,className:$(t.content.base),children:r}),E2=k.forwardRef(({active:e,as:t="a",children:r,className:n,icon:o,label:i,labelColor:s="info",theme:a={},...l},c)=>{var p,m,x,y;const d=k.useId(),{theme:u,isCollapsed:f}=yi(),{isInsideCollapse:h}=$j(),g=G(u.item,a);return b.jsx(Vj,{theme:g,className:g.listItem,id:d,isCollapsed:f,tooltipChildren:r,children:b.jsxs(t,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:$(g.base,e&&g.active,!f&&h&&((p=g.collapsed)==null?void 0:p.insideCollapse),n),...l,children:[o&&b.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:$((m=g.icon)==null?void 0:m.base,e&&((x=g.icon)==null?void 0:x.active))}),f&&!o&&b.jsx("span",{className:(y=g.collapsed)==null?void 0:y.noIcon,children:r.charAt(0).toLocaleUpperCase()??"?"}),!f&&b.jsx(S2,{id:d,theme:g,children:r}),!f&&i&&b.jsx(yk,{color:s,"data-testid":"flowbite-sidebar-label",hidden:f,className:g.label,children:i})]})})});E2.displayName="Sidebar.Item";const O2=({children:e,className:t,theme:r={},...n})=>{const{theme:o}=yi(),i=G(o.itemGroup,r);return b.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:$(i.base,t),...n,children:b.jsx(Xh.Provider,{value:{isInsideCollapse:!1},children:e})})};O2.displayName="Sidebar.ItemGroup";const N2=({children:e,className:t,theme:r={},...n})=>{const{theme:o}=yi(),i=G(o.items,r);return b.jsx("div",{className:$(i.base,t),"data-testid":"flowbite-sidebar-items",...n,children:e})};N2.displayName="Sidebar.Items";const M2=({children:e,className:t,href:r,img:n,imgAlt:o="",theme:i={},...s})=>{const a=k.useId(),{theme:l,isCollapsed:c}=yi(),d=G(l.logo,i);return b.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${a}`,href:r,className:$(d.base,t),...s,children:[b.jsx("img",{alt:o,src:n,className:d.img}),b.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${a}`,children:e})]})};M2.displayName="Sidebar.Logo";const T2=({children:e,as:t="nav",collapseBehavior:r="collapse",collapsed:n=!1,theme:o={},className:i,...s})=>{const a=G(se().sidebar,o);return b.jsx(k2.Provider,{value:{theme:a,isCollapsed:n},children:b.jsx(t,{"aria-label":"Sidebar",hidden:n&&r==="hide",className:$(a.root.base,a.root.collapsed[n?"on":"off"],i),...s,children:b.jsx("div",{className:a.root.inner,children:e})})})};T2.displayName="Sidebar",Object.assign(T2,{Collapse:_2,CTA:C2,Item:E2,Items:N2,ItemGroup:O2,Logo:M2});const D2=k.createContext(void 0);function Yj(){const e=k.useContext(D2);if(!e)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return e}const P2=k.createContext(void 0);function Gh(){const e=k.useContext(P2);if(!e)throw new Error("useTableContext should be used within the TableContext provider!");return e}const I2=k.forwardRef(({children:e,className:t,theme:r={},...n},o)=>{const{theme:i}=Gh(),s=G(i.body,r);return b.jsx(D2.Provider,{value:{theme:s},children:b.jsx("tbody",{className:$(s.base,t),ref:o,...n,children:e})})});I2.displayName="Table.Body";const A2=k.forwardRef(({children:e,className:t,theme:r={},...n},o)=>{const{theme:i}=Yj(),s=G(i.cell,r);return b.jsx("td",{className:$(s.base,t),ref:o,...n,children:e})});A2.displayName="Table.Cell";const L2=k.createContext(void 0);function Uj(){const e=k.useContext(L2);if(!e)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return e}const z2=k.forwardRef(({children:e,className:t,theme:r={},...n},o)=>{const{theme:i}=Gh(),s=G(i.head,r);return b.jsx(L2.Provider,{value:{theme:s},children:b.jsx("thead",{className:$(s.base,t),ref:o,...n,children:b.jsx("tr",{children:e})})})});z2.displayName="Table.Head";const F2=k.forwardRef(({children:e,className:t,theme:r={},...n},o)=>{const{theme:i}=Uj(),s=G(i.cell,r);return b.jsx("th",{className:$(s.base,t),ref:o,...n,children:e})});F2.displayName="Table.HeadCell";const j2=k.forwardRef(({children:e,className:t,theme:r={},...n},o)=>{const{theme:i,hoverable:s,striped:a}=Gh(),l=G(i.row,r);return b.jsx("tr",{ref:o,"data-testid":"table-row-element",className:$(l.base,a&&l.striped,s&&l.hovered,t),...n,children:e})});j2.displayName="Table.Row";const B2=k.forwardRef(({children:e,className:t,striped:r,hoverable:n,theme:o={},...i},s)=>{const a=G(se().table,o);return b.jsx("div",{"data-testid":"table-element",className:$(a.root.wrapper),children:b.jsxs(P2.Provider,{value:{theme:a,striped:r,hoverable:n},children:[b.jsx("div",{className:$(a.root.shadow,t)}),b.jsx("table",{className:$(a.root.base,t),...i,ref:s,children:e})]})})});B2.displayName="Table";const vi=Object.assign(B2,{Head:z2,Body:I2,Row:j2,Cell:A2,HeadCell:F2}),xi=({children:e,className:t})=>b.jsx("div",{className:t,children:e});xi.displayName="Tabs.Item";const W2=k.forwardRef(({children:e,className:t,onActiveTabChange:r,style:n="default",theme:o={},...i},s)=>{const a=G(se().tabs,o),l=k.useId(),c=k.useMemo(()=>k.Children.map(k.Children.toArray(e),({props:v})=>v),[e]),d=k.useRef([]),[u,f]=k.useState(Math.max(0,c.findIndex(v=>v.active))),[h,g]=k.useState(-1),p=v=>{f(v),r&&r(v)},m=({target:v})=>{p(v),g(v)},x=({event:v,target:w})=>{v.key==="ArrowLeft"&&g(Math.max(0,h-1)),v.key==="ArrowRight"&&g(Math.min(c.length-1,h+1)),v.key==="Enter"&&(p(w),g(w))},y=a.tablist.tabitem.styles[n],_=a.tabitemcontainer.styles[n];return k.useEffect(()=>{var v;(v=d.current[h])==null||v.focus()},[h]),k.useImperativeHandle(s,()=>({setActiveTab:p})),b.jsxs("div",{className:$(a.base,t),children:[b.jsx("div",{"aria-label":"Tabs",role:"tablist",className:$(a.tablist.base,a.tablist.styles[n],t),...i,children:c.map((v,w)=>b.jsxs("button",{type:"button","aria-controls":`${l}-tabpanel-${w}`,"aria-selected":w===u,className:$(a.tablist.tabitem.base,y.base,w===u&&y.active.on,w!==u&&!v.disabled&&y.active.off),disabled:v.disabled,id:`${l}-tab-${w}`,onClick:()=>m({target:w}),onKeyDown:C=>x({event:C,target:w}),ref:C=>d.current[w]=C,role:"tab",tabIndex:w===h?0:-1,style:{zIndex:w===h?2:1},children:[v.icon&&b.jsx(v.icon,{className:a.tablist.tabitem.icon}),v.title]},w))}),b.jsx("div",{className:$(a.tabitemcontainer.base,_),children:c.map((v,w)=>b.jsx("div",{"aria-labelledby":`${l}-tab-${w}`,className:a.tabpanel,hidden:w!==u,id:`${l}-tabpanel-${w}`,role:"tabpanel",tabIndex:0,children:v.children},w))})]})});W2.displayName="Tabs";const Rj=Object.assign(W2,{Item:xi}),qj=k.forwardRef(({className:e,color:t="gray",helperText:r,shadow:n,theme:o={},...i},s)=>{const a=G(se().textarea,o);return b.jsxs(b.Fragment,{children:[b.jsx("textarea",{ref:s,className:$(a.base,a.colors[t],a.withShadow[n?"on":"off"],e),...i}),r&&b.jsx(ea,{color:t,children:r})]})});qj.displayName="Textarea";const H2=k.createContext(void 0);function Kh(){const e=k.useContext(H2);if(!e)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return e}const $2=({children:e,className:t,theme:r={},...n})=>{const{theme:o}=Kh(),i=G(o.body,r);return b.jsx("div",{className:$(i.base,t),...n,children:e})},V2=k.createContext(void 0);function Zh(){const e=k.useContext(V2);if(!e)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return e}const Y2=k.createContext(void 0);function U2(){const e=k.useContext(Y2);if(!e)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return e}const R2=({children:e,className:t,theme:r={},...n})=>{const{horizontal:o}=Zh(),{theme:i}=U2(),s=G(i.content,r);return b.jsx(H2.Provider,{value:{theme:s},children:b.jsx("div",{"data-testid":"timeline-content",className:$(o&&s.root.base,t),...n,children:e})})},q2=({children:e,className:t,theme:r={},...n})=>{const{theme:o,horizontal:i}=Zh(),s=G(o.item,r);return b.jsx(Y2.Provider,{value:{theme:s},children:b.jsx("li",{"data-testid":"timeline-item",className:$(i&&s.root.horizontal,!i&&s.root.vertical,t),...n,children:e})})},X2=({children:e,className:t,icon:r,theme:n={},...o})=>{const{horizontal:i}=Zh(),{theme:s}=U2(),a=G(s.point,n);return b.jsxs("div",{"data-testid":"timeline-point",className:$(i&&a.horizontal,!i&&a.vertical,t),...o,children:[e,r?b.jsx("span",{className:$(a.marker.icon.wrapper),children:b.jsx(r,{"aria-hidden":!0,className:$(a.marker.icon.base)})}):b.jsx("div",{className:$(i&&a.marker.base.horizontal,!i&&a.marker.base.vertical)}),i&&b.jsx("div",{className:$(a.line)})]})},G2=({children:e,className:t,theme:r={},...n})=>{const{theme:o}=Kh(),i=G(o.time,r);return b.jsx("time",{className:$(i.base,t),...n,children:e})},K2=({as:e="h3",children:t,className:r,theme:n={},...o})=>{const{theme:i}=Kh(),s=G(i.title,n);return b.jsx(e,{className:$(s.base,r),...o,children:t})},Z2=({children:e,className:t,horizontal:r,theme:n={},...o})=>{const i=G(se().timeline,n);return b.jsx(V2.Provider,{value:{theme:i,horizontal:r},children:b.jsx("ol",{"data-testid":"timeline-component",className:$(r&&i.root.direction.horizontal,!r&&i.root.direction.vertical,t),...o,children:e})})};Z2.displayName="Timeline",q2.displayName="Timeline.Item",X2.displayName="Timeline.Point",R2.displayName="Timeline.Content",G2.displayName="Timeline.Time",K2.displayName="Timeline.Title",$2.displayName="Timeline.Body",Object.assign(Z2,{Item:q2,Point:X2,Content:R2,Time:G2,Title:K2,Body:$2});const Q2=k.createContext(void 0);function Xj(){const e=k.useContext(Q2);if(!e)throw new Error("useToastContext should be used within the ToastContext provider!");return e}const J2=({className:e,onClick:t,theme:r={},xIcon:n=V9,onDismiss:o,...i})=>{const{theme:s,duration:a,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=Xj(),f=G(s.toggle,r),h=g=>{if(t&&t(g),o){o();return}d(!l),setTimeout(()=>u(!c),a)};return b.jsx("button",{"aria-label":"Close",onClick:h,type:"button",className:$(f.base,e),...i,children:b.jsx(n,{"aria-hidden":!0,className:f.icon})})},Gj={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},e5=({children:e,className:t,duration:r=300,theme:n={},...o})=>{const[i,s]=k.useState(!1),[a,l]=k.useState(!1),c=G(se().toast,n);return a?null:b.jsx(Q2.Provider,{value:{theme:c,duration:r,isClosed:i,isRemoved:a,setIsClosed:s,setIsRemoved:l},children:b.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:$(c.root.base,Gj[r],i&&c.root.closed,t),...o,children:e})})};e5.displayName="Toast",J2.displayName="Toast.Toggle",Object.assign(e5,{Toggle:J2});const Kj=k.forwardRef(({checked:e,className:t,color:r="blue",sizing:n="md",disabled:o,label:i,name:s,onChange:a,theme:l={},...c},d)=>{const u=k.useId(),f=G(se().toggleSwitch,l),h=()=>a(!e),g=()=>{h()},p=m=>{m.code=="Enter"&&m.preventDefault()};return b.jsxs(b.Fragment,{children:[s&&e?b.jsx("input",{ref:d,checked:e,hidden:!0,name:s,readOnly:!0,type:"checkbox",className:"sr-only"}):null,b.jsxs("button",{"aria-checked":e,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:o,id:`${u}-flowbite-toggleswitch`,onClick:g,onKeyDown:p,role:"switch",tabIndex:0,type:"button",className:$(f.root.base,f.root.active[o?"off":"on"],t),...c,children:[b.jsx("div",{"data-testid":"flowbite-toggleswitch-toggle",className:$(f.toggle.base,f.toggle.checked[e?"on":"off"],e&&f.toggle.checked.color[r],f.toggle.sizes[n])}),i!=null&&i.length?b.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:f.root.label,children:i}):null]})]})});Kj.displayName="ToggleSwitch";const Zj=({currentPage:e,totalPages:t,onPageChange:r})=>b.jsxs("div",{className:"flex items-center justify-center gap-4",children:[b.jsx("button",{onClick:()=>r(e-1),disabled:e===1,className:"p-2 text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:b.jsx(Z1,{className:"h-5 w-5"})}),b.jsxs("span",{className:"text-sm text-gray-700",children:[e," de ",t]}),b.jsx("button",{onClick:()=>r(e+1),disabled:e===t,className:"p-2 text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:b.jsx(Q1,{className:"h-5 w-5"})})]});function Qj({label:e,checked:t=!1,disabled:r=!1,onChange:n}){const[o,i]=k.useState(t),s=a=>{if(r)return;const l=a.target.checked;i(l),n==null||n(l)};return b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsxs("label",{className:`inline-flex items-center ${r?"cursor-not-allowed opacity-60":"cursor-pointer"}`,children:[b.jsx("input",{type:"checkbox",className:"peer sr-only",checked:o,onChange:s,disabled:r}),b.jsx("div",{className:`peer relative h-6 w-11 rounded-full bg-gray-200
|
|
488
974
|
after:absolute after:start-[2px]
|
|
489
975
|
after:top-0.5 after:h-5
|
|
490
976
|
after:w-5 after:rounded-full
|
|
@@ -493,9 +979,9 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
493
979
|
peer-checked:bg-blue-600 peer-checked:after:translate-x-full peer-checked:after:border-white
|
|
494
980
|
peer-focus:ring-4 peer-focus:ring-blue-300 dark:border-gray-600
|
|
495
981
|
dark:bg-gray-700 dark:peer-checked:bg-blue-600
|
|
496
|
-
dark:peer-focus:ring-blue-800 rtl:peer-checked:after:-translate-x-full`})]}),
|
|
982
|
+
dark:peer-focus:ring-blue-800 rtl:peer-checked:after:-translate-x-full`})]}),e&&b.jsx("span",{className:`text-sm ${r?"text-gray-500":"text-gray-700"}`,children:e})]})}const Jj=({columns:e,data:t,showSearch:r=!1,itemsPerPage:n=5,title:o,onToggleChange:i})=>{const[s,a]=I.useState(""),[l,c]=I.useState(1),[d,u]=I.useState(null),f=I.useMemo(()=>d?[...t].sort((y,_)=>{const v=y[d.key],w=_[d.key];return v==null||w==null?0:typeof v=="string"&&typeof w=="string"?d.direction==="asc"?v.localeCompare(w):w.localeCompare(v):d.direction==="asc"?Number(v)-Number(w):Number(w)-Number(v)}):t,[t,d]),h=I.useMemo(()=>s.trim()?f.filter(y=>e.some(_=>{const v=y[_.relation];return v!=null&&String(v).toLowerCase().includes(s.toLowerCase().trim())})):f,[f,s,e]),g=I.useMemo(()=>{const y=(l-1)*n,_=y+n;return h.slice(y,_)},[h,l,n]),p=Math.ceil(h.length/n),m=y=>{u(_=>!_||_.key!==y?{key:y,direction:"asc"}:{key:y,direction:_.direction==="asc"?"desc":"asc"})},x=(y,_)=>{const v=_[y.relation];if(y.isToggle){const w=!!v;return b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Qj,{checked:w,onChange:C=>i==null?void 0:i({rowId:_.id,checked:C,row:_,columnKey:y.relation}),disabled:!1}),y.toggleText&&b.jsx("span",{className:"text-sm text-gray-600",children:w?y.toggleText.active:y.toggleText.inactive})]})}return y.cell?y.cell(_):v!=null?String(v):""};return b.jsxs("div",{className:"w-full",children:[b.jsx("div",{className:"mb-4 flex items-center justify-between",children:o&&b.jsx("h2",{className:"text-xl font-bold",children:o})}),b.jsxs("div",{className:"mb-4 flex",children:[r&&b.jsx("div",{className:"w-1/2",children:b.jsx(dh,{rightIcon:W9,placeholder:"Buscar",value:s,onChange:y=>a(y.target.value)})}),p>1&&b.jsx("div",{className:"flex w-full justify-end",children:b.jsx(Zj,{currentPage:l,totalPages:p,onPageChange:c})})]}),b.jsx("div",{className:"overflow-x-auto",children:b.jsxs(vi,{striped:!0,children:[b.jsx(vi.Head,{children:e.map((y,_)=>b.jsx(vi.HeadCell,{className:"cursor-pointer",onClick:()=>y.sortable!==!1&&m(y.relation),children:b.jsxs("div",{className:"flex items-center gap-2",children:[y.header,y.sortable!==!1&&b.jsx("span",{children:(d==null?void 0:d.key)===y.relation?d.direction==="asc"?b.jsx(J1,{className:"size-4"}):b.jsx(H9,{className:"size-4"}):b.jsx(J1,{className:"size-4 opacity-50"})})]})},_))}),b.jsx("hr",{}),b.jsx(vi.Body,{className:"divide-y",children:g.map(y=>b.jsx(vi.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:e.map((_,v)=>b.jsx(vi.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:x(_,y)},`${y.id}-${v}`))},y.id))})]})})]})},t5={"m-image-container":"layoutOutside-module__m-image-container__sCvFu","m-image":"layoutOutside-module__m-image__kZHyH"},eB=()=>b.jsxs("div",{className:"mt-32",children:[b.jsx(Fn,{classIm:"mx-auto",src:"https://ftp.mathilde-ads.com/151-41415c0c026df82dbb391c09db474cfa.png",alt:"Logo Mathilde ads",width:400,height:250}),b.jsx("div",{className:t5["m-image-container"],children:b.jsx(Fn,{classIm:t5["m-image"],src:"https://ftp.mathilde-ads.com/151-3f28d319ba5adbe318c58ef38b858e50.png",alt:"Logo Mathilde ads",width:400,height:300})})]}),tB=({onOpenModal:e,checked:t,onChange:r,label:n,...o})=>{const i=()=>{t||e(),r(!1)};return b.jsx("div",{className:"mb-5",children:b.jsxs("label",{className:fa["checkbox-container"],children:[b.jsx("input",{type:"checkbox",...o,checked:t,onChange:i,required:!0}),b.jsx("span",{className:fa.checkmark}),n&&b.jsx("span",{children:n})]})})},r5=({validations:e})=>{const t=({isValid:n})=>b.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:b.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 b.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})=>b.jsxs("li",{className:"flex items-center",children:[b.jsx(t,{isValid:e[n]}),o]},n))})},rB=()=>{const[e,t]=k.useState(""),[r,n]=k.useState(""),[o,i]=k.useState({hasMinLength:!1,hasNumber:!1,hasUpperCase:!1,hasLowerCase:!1,hasSpecialChar:!1});k.useEffect(()=>{i({hasMinLength:e.length>=8,hasNumber:/\d/.test(e),hasUpperCase:/[A-Z]/.test(e),hasLowerCase:/[a-z]/.test(e),hasSpecialChar:/[!@#$%^&*(),.?":{}|<>]/.test(e)})},[e]);const s=()=>e.trim()&&r.trim()&&e===r&&Object.values(o).every(l=>l);return{password:e,setPassword:t,confirmPassword:r,setConfirmPassword:n,showError:()=>!s()&&e.trim()&&r.trim(),validations:o}},nB=({formik:e})=>{const{password:t,setPassword:r,confirmPassword:n,setConfirmPassword:o,validations:i}=rB();return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"block",children:[b.jsx(dd,{placeholder:"Contraseña",value:t,onChange:s=>{r(s.target.value),e.setFieldValue("password",s.target.value)},onBlur:e.handleBlur("password")}),e.errors.password&&e.touched.password&&b.jsx("div",{className:"my-2 text-sm text-red-500",children:String(e.errors.password)})]}),b.jsxs("div",{className:"block",children:[b.jsx(dd,{placeholder:"Confirmar contraseña",value:n,onChange:s=>{o(s.target.value),e.setFieldValue("confirmPassword",s.target.value)},onBlur:e.handleBlur("confirmPassword")}),e.errors.confirmPassword&&e.touched.confirmPassword&&b.jsx("div",{className:"my-2 text-sm text-red-500",children:String(e.errors.confirmPassword)})]}),b.jsx(r5,{validations:i})]})},oB={cardFormat:"card-module__cardFormat__LNrgl"},n5=k.forwardRef((e,t)=>{const{image:r,icon:n,title:o,description:i}=e;return b.jsxs("div",{className:`${oB.cardFormat} border px-3.5 py-7`,ref:t,children:[(r==null?void 0:r.type)==="image"?b.jsx(Fn,{classIm:"mx-auto",src:`../../../../public/assets/images/${r.name}.svg`,alt:r.name,width:74,height:74}):n?b.jsx("div",{className:"flex justify-center",children:b.jsx(n,{size:74})}):null,b.jsx("h3",{className:"my-3 font-bold",children:o}),b.jsx("p",{children:i})]})});n5.displayName="CardFormat";const iB=({items:e})=>{const[t,r]=k.useState([]),n=i=>{r(s=>s.includes(i)?s.filter(a=>a!==i):[...s,i])},o=(i,s=0)=>b.jsx("ul",{className:"list-none space-y-2",children:i.map(a=>{const l=a.subItems&&a.subItems.length>0,c=t.includes(a.id);return b.jsxs("li",{className:`
|
|
497
983
|
${s>0?"ml-7":""}
|
|
498
|
-
`,children:[
|
|
984
|
+
`,children:[b.jsxs("div",{className:"flex items-center gap-2 py-1",children:[b.jsxs("div",{className:"flex min-w-[48px] items-center gap-1",children:[l&&b.jsx("button",{onClick:()=>n(a.id),className:"rounded-full p-1 transition-transform duration-200 hover:bg-gray-100",children:c?b.jsx(b5,{className:"text-sm text-gray-500"}):b.jsx(p5,{className:"text-sm text-gray-500"})}),!l&&b.jsx("div",{className:"w-[28px]"})," ",a.icon&&b.jsx(a.icon,{className:`text-lg ${a.isActive?"text-blue-700 dark:text-blue-500":"text-gray-600"}`})]}),b.jsx("a",{href:a.href,className:`
|
|
499
985
|
flex-grow transition-colors duration-200
|
|
500
986
|
${a.isActive?"font-medium text-blue-700 dark:text-blue-500":"text-gray-700 hover:text-blue-600 dark:text-gray-300"}
|
|
501
|
-
`,children:a.title})]}),l&&c&&o(a.subItems||[],s+1)]},a.id)})});return
|
|
987
|
+
`,children:a.title})]}),l&&c&&o(a.subItems||[],s+1)]},a.id)})});return b.jsx("nav",{id:"TableOfContents",children:o(e)})},o5={"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"},sB=({onChange:e,accept:t="application/pdf",maxSize:r=10,multiple:n=!1,helperText:o=""})=>{const[i,s]=k.useState(!1),a=Array.isArray(t)?t.join(","):t,l=()=>Array.isArray(t)?t.map(g=>o5[g]||g).join(", "):o5[t]||t,c=k.useCallback(g=>{g.preventDefault(),g.stopPropagation(),s(!0)},[]),d=k.useCallback(g=>{g.preventDefault(),g.stopPropagation(),s(!1)},[]),u=k.useCallback(g=>{g.preventDefault(),g.stopPropagation(),s(!1);const p=Array.from(g.dataTransfer.files);p.length>0&&h(p)},[t,r,n,e]),f=k.useCallback(g=>{const p=Array.from(g.target.files||[]);p.length>0&&h(p)},[t,r,n,e]),h=k.useCallback(g=>{if(!n&&g.length>1){alert("Solo se permite un archivo");return}const p=g.filter(x=>Array.isArray(t)?t.some(y=>y==="image/*"?x.type.startsWith("image/"):x.type===y):t==="image/*"?x.type.startsWith("image/"):x.type===t);if(p.length===0){alert(`Tipo de archivo no permitido. Tipos permitidos: ${l()}`);return}const m=p.filter(x=>x.size<=r*1024*1024);m.length!==p.length&&alert(`Algunos archivos exceden el tamaño máximo de ${r}MB`),m.length>0&&(e==null||e(m))},[t,r,n,e]);return b.jsx("div",{className:"flex w-full items-center justify-center",children:b.jsxs(t2,{htmlFor:"dropzone-file",className:`flex h-64 w-full cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed ${i?"border-blue-500 bg-blue-50":"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`,onDragOver:c,onDragLeave:d,onDrop:u,children:[b.jsxs("div",{className:"flex w-2/4 items-center justify-center pb-6 pt-5",children:[b.jsx(Fn,{classIm:"mr-3",src:"https://ftp.mathilde-ads.com/151-e44e2ee2d56e5997506c6365eb4d87d3.svg",alt:"icon dropzone",width:74,height:74}),b.jsxs("div",{className:"flex flex-col",children:[b.jsxs("p",{className:"mb-2 text-sm font-light text-gray-400 dark:text-gray-400",children:[b.jsx("span",{className:"font-bold text-gray-500",children:"Arrastra"})," el feed de datos de tu campaña o"," ",b.jsx("span",{className:"font-bold text-gray-500",children:"selecciona el archivo de tu computadora"})," ",o]}),b.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:[b.jsx("span",{className:"font-semibold",children:"Tipos permitidos:"})," ",l()," |"," ",b.jsx("span",{className:"font-semibold",children:"Tamaño máximo:"})," ",r," MB"]})]})]}),b.jsx(R_,{id:"dropzone-file",className:"hidden",onChange:f,accept:a,multiple:n})]})})};function aB(e){return Ve({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:[]}]})(e)}const lB=e=>{const t=Math.floor(Math.log(e)/Math.log(1024)),r=["Bytes","KB","MB","GB","TB"];return`${(e/Math.pow(1024,t)).toFixed(2)} ${r[t]}`},cB=({files:e,onDelete:t})=>b.jsx("div",{className:"mt-4",children:b.jsx("ul",{className:"list-disc",children:e.map((r,n)=>b.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:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(Fn,{classIm:"mr-3",src:"https://ftp.mathilde-ads.com/151-1dcc25481e8c72ed21c720c94adfdec6.svg",alt:"icon dropzone",width:50}),b.jsx("li",{className:"text-base font-semibold text-gray-700",children:r.name})]}),b.jsxs("div",{className:"mx-4 flex items-center",children:[b.jsx("span",{className:"flex text-sm",children:lB(r.size)}),b.jsx(aB,{className:"ml-2 cursor-pointer text-4xl text-gray-400",onClick:()=>t(r)})]})]},n))})}),dB=({description:e=""})=>b.jsxs("div",{className:"flex flex-col items-center justify-center",children:[b.jsx("img",{src:"https://ftp.mathilde-ads.com/151-82821df9d4f7bd2662418d3147880fba.svg",alt:e.replace(/<[^>]*>/g,"")}),e&&b.jsx("p",{className:"text-center",dangerouslySetInnerHTML:{__html:e}})]});function uB(){return b.jsxs(Rj,{"aria-label":"Default tabs",children:[b.jsxs(xi,{active:!0,title:"Profile",children:["This is"," ",b.jsx("span",{className:"font-medium text-gray-800 dark:text-white",children:"Profile tab's associated content"}),". Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the content visibility and styling."]}),b.jsxs(xi,{title:"Dashboard",children:["This is"," ",b.jsx("span",{className:"font-medium text-gray-800 dark:text-white",children:"Dashboard tab's associated content"}),". Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the content visibility and styling."]}),b.jsxs(xi,{title:"Settings",children:["This is"," ",b.jsx("span",{className:"font-medium text-gray-800 dark:text-white",children:"Settings tab's associated content"}),". Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the content visibility and styling."]}),b.jsxs(xi,{title:"Contacts",children:["This is"," ",b.jsx("span",{className:"font-medium text-gray-800 dark:text-white",children:"Contacts tab's associated content"}),". Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the content visibility and styling."]})]})}me.ButtonFormat=i5,me.CardFormat=n5,me.CardIndicator=w5,me.Checkbox=s5,me.Dropzone=sB,me.ImageFormat=Fn,me.InputForm=rg,me.LayoutOutside=eB,me.ListFile=cB,me.ModalFormat=XE,me.MyDoughnutChart=UE,me.PasswordInput=dd,me.PasswordValidationList=r5,me.ProgressBar=lg,me.SelectForm=cg,me.SidebarPro=z9,me.Spinner=dB,me.TableComponent=Jj,me.TableOfContents=iB,me.TabsComponent=uB,me.TermsCheckbox=tB,me.ValidationPassword=nB,Object.defineProperty(me,Symbol.toStringTag,{value:"Module"})});
|