ui-mathilde-web 0.10.20 → 0.10.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,28 +1,28 @@
1
- (function(le,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],f):(le=typeof globalThis<"u"?globalThis:le||self,f(le["ui-mathilde-web"]={},le.jsxRuntime,le.React,le.ReactDOM))})(this,function(le,f,_,bf){"use strict";var GL=Object.defineProperty;var QL=(le,f,_)=>f in le?GL(le,f,{enumerable:!0,configurable:!0,writable:!0,value:_}):le[f]=_;var $=(le,f,_)=>QL(le,typeof f!="symbol"?f+"":f,_);var Vl,_r;function yf(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const H=yf(_),gx=yf(bf),vo={"mth-btn-white":"button-module__mth-btn-white__nTgLW",mthBtnWhite:"button-module__mth-btn-white__nTgLW","mth-btn-blue":"button-module__mth-btn-blue__yw5Zv",mthBtnBlue:"button-module__mth-btn-blue__yw5Zv","mth-btn-gray":"button-module__mth-btn-gray__l3gnX",mthBtnGray:"button-module__mth-btn-gray__l3gnX","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","mth-btn-disabled":"button-module__mth-btn-disabled__sY2Vx",mthBtnDisabled:"button-module__mth-btn-disabled__sY2Vx"},tr=({txtBtn:t,typeButton:e,full:n,onClick:r,disabled:s,type:a,leftIcon:o,rightIcon:i,iconSize:l=20,classes:c})=>{const d=u=>{if(!u)return null;if(typeof u=="string")return f.jsx("img",{src:u,alt:"icon",width:l,height:l});const h=u;return f.jsx(h,{size:l})};return f.jsx("div",{className:`${n?vo["mth-btn-full"]:""}`,children:f.jsxs("button",{type:a,className:`${c} ${vo["mth-btn"]} ${vo[`mth-btn-${e}`]} ${n?vo["mth-btn-full"]:""} flex items-center justify-center gap-2`,onClick:r,disabled:s,children:[d(o),t,d(i)]})})},ta={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY","checkbox-container-terms":"checkbox-module__checkbox-container-terms__3htmx"},mx=({label:t,value:e,checked:n,onChange:r,isTerms:s=!1})=>f.jsxs("label",{className:`${ta["checkbox-container"]} ${s?ta["checkbox-container-terms"]:""}`,children:[f.jsx("input",{type:"checkbox",value:e,checked:n,onChange:r}),f.jsx("span",{className:ta.checkmark}),t&&f.jsx("span",{className:"ml-1",children:t})]}),Or=({src:t,alt:e,width:n,height:r,classIm:s})=>f.jsx("img",{className:s,src:t,alt:e,width:n,height:r});var wf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},vf=_.createContext&&_.createContext(wf),px=["attr","size","title"];function bx(t,e){if(t==null)return{};var n=yx(t,e),r,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(s=0;s<a.length;s++)r=a[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function yx(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,a;for(a=0;a<r.length;a++)s=r[a],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function xo(){return xo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xo.apply(this,arguments)}function xf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function ko(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xf(Object(n),!0).forEach(function(r){wx(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function wx(t,e,n){return e=vx(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vx(t){var e=xx(t,"string");return typeof e=="symbol"?e:String(e)}function xx(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function kf(t){return t&&t.map((e,n)=>_.createElement(e.tag,ko({key:n},e.attr),kf(e.child)))}function De(t){return e=>_.createElement(kx,xo({attr:ko({},t.attr)},e),kf(t.child))}function kx(t){var e=n=>{var{attr:r,size:s,title:a}=t,o=bx(t,px),i=s||n.size||"1em",l;return n.className&&(l=n.className),t.className&&(l=(l?l+" ":"")+t.className),_.createElement("svg",xo({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:ko(ko({color:t.color||n.color},n.style),t.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),a&&_.createElement("title",null,a),t.children)};return vf!==void 0?_.createElement(vf.Consumer,null,n=>e(n)):e(wf)}function _x(t){return De({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 Sx(t){return De({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 Ox(t){return De({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 Xl(t){return De({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 Cx(t){return De({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 Dx(t){return De({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 _f(t){return De({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 Mx(t){return De({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 Ex(t){return De({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 Sf(t){return De({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 Px(t){return De({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 Of(t){return De({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 Tx(t){return De({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 Nx(t){return De({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 Kl="-";function jx(t){const e=Ax(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;function s(o){const i=o.split(Kl);return i[0]===""&&i.length!==1&&i.shift(),Cf(i,e)||Ix(o)}function a(o,i){const l=n[o]||[];return i&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:s,getConflictingClassGroupIds:a}}function Cf(t,e){var o;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?Cf(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const a=t.join(Kl);return(o=e.validators.find(({validator:i})=>i(a)))==null?void 0:o.classGroupId}const Df=/^\[(.+)\]$/;function Ix(t){if(Df.test(t)){const e=Df.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}}function Ax(t){const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return Lx(Object.entries(t.classGroups),n).forEach(([a,o])=>{Gl(o,r,a,e)}),r}function Gl(t,e,n,r){t.forEach(s=>{if(typeof s=="string"){const a=s===""?e:Mf(e,s);a.classGroupId=n;return}if(typeof s=="function"){if(Rx(s)){Gl(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([a,o])=>{Gl(o,Mf(e,a),n,r)})})}function Mf(t,e){let n=t;return e.split(Kl).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Rx(t){return t.isThemeGetter}function Lx(t,e){return e?t.map(([n,r])=>{const s=r.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,i])=>[e+o,i])):a);return[n,s]}):t}function Fx(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;function s(a,o){n.set(a,o),e++,e>t&&(e=0,r=n,n=new Map)}return{get(a){let o=n.get(a);if(o!==void 0)return o;if((o=r.get(a))!==void 0)return s(a,o),o},set(a,o){n.has(a)?n.set(a,o):s(a,o)}}}const Ef="!";function Bx(t){const e=t.separator,n=e.length===1,r=e[0],s=e.length;return function(o){const i=[];let l=0,c=0,d;for(let p=0;p<o.length;p++){let b=o[p];if(l===0){if(b===r&&(n||o.slice(p,p+s)===e)){i.push(o.slice(c,p)),c=p+s;continue}if(b==="/"){d=p;continue}}b==="["?l++:b==="]"&&l--}const u=i.length===0?o:o.substring(c),h=u.startsWith(Ef),g=h?u.substring(1):u,m=d&&d>c?d-c:void 0;return{modifiers:i,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:m}}}function Wx(t){if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e}function zx(t){return{cache:Fx(t.cacheSize),splitModifiers:Bx(t),...jx(t)}}const Hx=/\s+/;function Yx(t,e){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,a=new Set;return t.trim().split(Hx).map(o=>{const{modifiers:i,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:d}=n(o);let u=r(d?c.substring(0,d):c),h=!!d;if(!u){if(!d)return{isTailwindClass:!1,originalClassName:o};if(u=r(c),!u)return{isTailwindClass:!1,originalClassName:o};h=!1}const g=Wx(i).join(":");return{isTailwindClass:!0,modifierId:l?g+Ef:g,classGroupId:u,originalClassName:o,hasPostfixModifier:h}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:i,classGroupId:l,hasPostfixModifier:c}=o,d=i+l;return a.has(d)?!1:(a.add(d),s(l,c).forEach(u=>a.add(i+u)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function Vx(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=Pf(e))&&(r&&(r+=" "),r+=n);return r}function Pf(t){if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=Pf(t[r]))&&(n&&(n+=" "),n+=e);return n}function Ux(t,...e){let n,r,s,a=o;function o(l){const c=e.reduce((d,u)=>u(d),t());return n=zx(c),r=n.cache.get,s=n.cache.set,a=i,i(l)}function i(l){const c=r(l);if(c)return c;const d=Yx(l,n);return s(l,d),d}return function(){return a(Vx.apply(null,arguments))}}function Le(t){const e=n=>n[t]||[];return e.isThemeGetter=!0,e}const Tf=/^\[(?:([a-z-]+):)?(.+)\]$/i,Xx=/^\d+\/\d+$/,Kx=new Set(["px","full","screen"]),Gx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qx=/\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$/,Zx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Jx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Rn(t){return Cr(t)||Kx.has(t)||Xx.test(t)}function nr(t){return cs(t,"length",ok)}function Cr(t){return!!t&&!Number.isNaN(Number(t))}function _o(t){return cs(t,"number",Cr)}function na(t){return!!t&&Number.isInteger(Number(t))}function $x(t){return t.endsWith("%")&&Cr(t.slice(0,-1))}function me(t){return Tf.test(t)}function rr(t){return Gx.test(t)}const ek=new Set(["length","size","percentage"]);function tk(t){return cs(t,ek,Nf)}function nk(t){return cs(t,"position",Nf)}const rk=new Set(["image","url"]);function sk(t){return cs(t,rk,lk)}function ak(t){return cs(t,"",ik)}function ra(){return!0}function cs(t,e,n){const r=Tf.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1}function ok(t){return Qx.test(t)&&!Zx.test(t)}function Nf(){return!1}function ik(t){return Jx.test(t)}function lk(t){return qx.test(t)}function ck(){const t=Le("colors"),e=Le("spacing"),n=Le("blur"),r=Le("brightness"),s=Le("borderColor"),a=Le("borderRadius"),o=Le("borderSpacing"),i=Le("borderWidth"),l=Le("contrast"),c=Le("grayscale"),d=Le("hueRotate"),u=Le("invert"),h=Le("gap"),g=Le("gradientColorStops"),m=Le("gradientColorStopPositions"),p=Le("inset"),b=Le("margin"),y=Le("opacity"),v=Le("padding"),k=Le("saturate"),x=Le("scale"),w=Le("sepia"),S=Le("skew"),N=Le("space"),M=Le("translate"),T=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",me,e],F=()=>[me,e],O=()=>["",Rn,nr],C=()=>["auto",Cr,me],E=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],K=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",me],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[Cr,_o],L=()=>[Cr,me];return{cacheSize:500,separator:":",theme:{colors:[ra],spacing:[Rn,nr],blur:["none","",rr,me],brightness:V(),borderColor:[t],borderRadius:["none","","full",rr,me],borderSpacing:F(),borderWidth:O(),contrast:V(),grayscale:ee(),hueRotate:L(),invert:ee(),gap:F(),gradientColorStops:[t],gradientColorStopPositions:[$x,nr],inset:z(),margin:z(),opacity:V(),padding:F(),saturate:V(),scale:V(),sepia:ee(),skew:L(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",me]}],container:["container"],columns:[{columns:[rr]}],"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:[...E(),me]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],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",na,me]}],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",me]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",na,me]}],"grid-cols":[{"grid-cols":[ra]}],"col-start-end":[{col:["auto",{span:["full",na,me]},me]}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[ra]}],"row-start-end":[{row:["auto",{span:[na,me]},me]}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",me]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",me]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",me,e]}],"min-w":[{"min-w":[me,e,"min","max","fit"]}],"max-w":[{"max-w":[me,e,"none","full","min","max","fit","prose",{screen:[rr]},rr]}],h:[{h:[me,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[me,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[me,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[me,e,"auto","min","max","fit"]}],"font-size":[{text:["base",rr,nr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_o]}],"font-family":[{font:[ra]}],"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",me]}],"line-clamp":[{"line-clamp":["none",Cr,_o]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Rn,me]}],"list-image":[{"list-image":["none",me]}],"list-style-type":[{list:["none","disc","decimal",me]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Rn,nr]}],"underline-offset":[{"underline-offset":["auto",Rn,me]}],"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:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me]}],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",me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...E(),nk]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",tk]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},sk]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:W()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[Rn,me]}],"outline-w":[{outline:[Rn,nr]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Rn,nr]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",rr,ak]}],"shadow-color":[{shadow:[ra]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":U()}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",rr,me]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[k]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"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":[y]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",me]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",me]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[na,me]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",me]}],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",me]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",me]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Rn,nr,_o]}],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 Q=Ux(ck);function Dr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function sa(t){if(!Dr(t))return t;const e={};for(const n in t)e[n]=sa(t[n]);return e}function ne(t,e){if(Dr(e)&&Object.keys(e).length===0)return sa({...t,...e});const n={...t,...e};if(Dr(e)&&Dr(t))for(const r in e)Dr(e[r])&&r in t&&Dr(t[r])?n[r]=ne(t[r],e[r]):n[r]=Dr(e[r])?sa(e[r]):e[r];return n}function r6(t){return t}const dk={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"}}},uk={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"},fk={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"}},hk={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"}}},gk={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},mk={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"}},pk={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"}},bk={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"}},yk={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"}}},wk={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"}},vk={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"}}},xk={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"}},kk={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"}}}}},_k={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"},Sk={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"}}}},Ok={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"}},Ck={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"}},Dk={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"}}},Mk={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"}},Ek={root:{base:"text-sm font-medium",disabled:"opacity-50",colors:{default:"text-gray-900 dark:text-white",info:"text-cyan-500 dark:text-cyan-600",failure:"text-red-700 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600",success:"text-green-700 dark:text-green-500"}}},Pk={root:{base:"list-inside space-y-1 text-gray-500 dark:text-gray-400",ordered:{off:"list-disc",on:"list-decimal"},horizontal:"flex list-none flex-wrap items-center justify-center space-x-4 space-y-0",unstyled:"list-none",nested:"mt-2 ps-5"},item:{withIcon:{off:"",on:"flex items-center"},icon:"me-2 h-3.5 w-3.5 flex-shrink-0"}},Tk={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"}}},Nk={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"}},jk={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"}},Ik={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"}}},Ak={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"}},Rk={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"}},Lk={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"}},Fk={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"}}}},Bk={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"}}},Wk={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"}},zk={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"}}}},Hk={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"}},Yk={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"}},Vk={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"}},Uk={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"},Xk={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:""}},Kk={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:""}}}},Gk={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:""}}},Qk={root:{base:"flex w-full max-w-xs items-center rounded-lg bg-white p-4 text-gray-500 shadow dark:bg-gray-800 dark:text-gray-400",closed:"opacity-0 ease-out"},toggle:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",icon:"h-5 w-5 shrink-0"}},Zk={root:{base:"group relative flex items-center rounded-lg focus:outline-none",active:{on:"cursor-pointer",off:"cursor-not-allowed opacity-50"},label:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300"},toggle:{base:"rounded-full border group-focus:ring-4 group-focus:ring-cyan-500/25",checked:{on:"after:translate-x-full after:border-white",off:"border-gray-200 bg-gray-200 dark:border-gray-600 dark:bg-gray-700",color:{blue:"border-cyan-700 bg-cyan-700",dark:"bg-dark-700 border-dark-900",failure:"border-red-900 bg-red-700",gray:"border-gray-600 bg-gray-500",green:"border-green-700 bg-green-600",light:"bg-light-700 border-light-900",red:"border-red-900 bg-red-700",purple:"border-purple-900 bg-purple-700",success:"border-green-500 bg-green-500",yellow:"border-yellow-400 bg-yellow-400",warning:"border-yellow-600 bg-yellow-600",cyan:"border-cyan-500 bg-cyan-500",lime:"border-lime-400 bg-lime-400",indigo:"border-indigo-400 bg-indigo-400",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 hover:bg-gradient-to-br focus:ring-4",info:"border-cyan-600 bg-cyan-600",pink:"border-pink-600 bg-pink-600"}},sizes:{sm:"h-5 w-9 after:absolute after:left-[2px] after:top-[2px] after:h-4 after:w-4",md:"h-6 w-11 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5",lg:"h-7 w-14 after:absolute after:left-[4px] after:top-0.5 after:h-6 after:w-6"}}},Jk={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"},qk={theme:sa({accordion:dk,alert:uk,avatar:fk,badge:hk,blockquote:gk,breadcrumb:mk,button:pk,buttonGroup:bk,card:yk,carousel:wk,checkbox:vk,datepicker:kk,darkThemeToggle:xk,dropdown:_k,fileInput:Sk,floatingLabel:Ok,footer:Ck,helperText:Dk,kbd:Mk,label:Ek,listGroup:Tk,list:Pk,modal:Nk,navbar:jk,pagination:Ik,popover:Ak,progress:Rk,radio:Lk,rangeSlider:Fk,rating:Bk,ratingAdvanced:Wk,select:zk,textInput:Kk,textarea:Xk,toggleSwitch:Zk,sidebar:Hk,spinner:Yk,table:Vk,tabs:Uk,timeline:Gk,toast:Qk,tooltip:Jk})};function he(){return sa(qk.theme)}const jf=_.createContext(void 0);function If(){const t=_.useContext(jf);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const Af=({children:t,className:e,theme:n={},...r})=>{const{isOpen:s}=If(),a=ne(he().accordion.content,n);return f.jsx("div",{className:Q(a.base,e),"data-testid":"flowbite-accordion-content",hidden:!s,...r,children:t})},Rf=({children:t,...e})=>{const{alwaysOpen:n}=e,[r,s]=_.useState(e.isOpen),a=n?{...e,isOpen:r,setOpen:()=>s(!r)}:e;return f.jsx(jf.Provider,{value:a,children:t})},Lf=({as:t="h2",children:e,className:n,theme:r={},...s})=>{const{arrowIcon:a,flush:o,isOpen:i,setOpen:l}=If(),c=()=>typeof l<"u"&&l(),d=ne(he().accordion.title,r);return f.jsxs("button",{className:Q(d.base,d.flush[o?"on":"off"],d.open[i?"on":"off"],n),onClick:c,type:"button",...s,children:[f.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),a&&f.jsx(a,{"aria-hidden":!0,className:Q(d.arrow.base,d.arrow.open[i?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},Ff=({alwaysOpen:t=!1,arrowIcon:e=Xl,children:n,flush:r=!1,collapseAll:s=!1,className:a,theme:o={},...i})=>{const[l,c]=_.useState(s?-1:0),d=_.useMemo(()=>_.Children.map(n,(h,g)=>_.cloneElement(h,{alwaysOpen:t,arrowIcon:e,flush:r,isOpen:l===g,setOpen:()=>c(l===g?-1:g)})),[t,e,n,r,l]),u=ne(he().accordion.root,o);return f.jsx("div",{className:Q(u.base,u.flush[r?"on":"off"],a),"data-testid":"flowbite-accordion",...i,children:d})};Ff.displayName="Accordion",Rf.displayName="Accordion.Panel",Lf.displayName="Accordion.Title",Af.displayName="Accordion.Content",Object.assign(Ff,{Panel:Rf,Title:Lf,Content:Af});const Bf=({children:t,className:e,theme:n={},...r})=>{const s=ne(he().avatar.group,n);return f.jsx("div",{"data-testid":"avatar-group-element",className:Q(s.base,e),...r,children:t})};Bf.displayName="Avatar.Group";const Wf=({className:t,href:e,theme:n={},total:r,...s})=>{const a=ne(he().avatar.groupCounter,n);return f.jsxs("a",{href:e,className:Q(a.base,t),...s,children:["+",r]})};Wf.displayName="Avatar.GroupCounter";const zf=({alt:t="",bordered:e=!1,children:n,className:r,color:s="light",img:a,placeholderInitials:o="",rounded:i=!1,size:l="md",stacked:c=!1,status:d,statusPosition:u="top-left",theme:h={},...g})=>{const m=ne(he().avatar,h),p=Q(m.root.img.base,e&&m.root.bordered,e&&m.root.color[s],i&&m.root.rounded,c&&m.root.stacked,m.root.img.on,m.root.size[l]),b={className:Q(p,m.root.img.on),"data-testid":"flowbite-avatar-img"};return f.jsxs("div",{className:Q(m.root.base,r),"data-testid":"flowbite-avatar",...g,children:[f.jsxs("div",{className:"relative",children:[a?typeof a=="string"?f.jsx("img",{alt:t,src:a,...b}):a({alt:t,...b}):o?f.jsx("div",{className:Q(m.root.img.off,m.root.initials.base,c&&m.root.stacked,e&&m.root.bordered,e&&m.root.color[s],m.root.size[l],i&&m.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:f.jsx("span",{className:Q(m.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:o})}):f.jsx("div",{className:Q(p,m.root.img.off),"data-testid":"flowbite-avatar-img",children:f.jsx("svg",{className:m.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:f.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&&f.jsx("span",{"data-testid":"flowbite-avatar-status",className:Q(m.root.status.base,m.root.status[d],m.root.statusPosition[u])})]}),n&&f.jsx("div",{children:n})]})};zf.displayName="Avatar",Object.assign(zf,{Group:Bf,Counter:Wf});const Hf=({children:t,color:e="info",href:n,icon:r,size:s="xs",className:a,theme:o={},...i})=>{const l=ne(he().badge,o),c=()=>f.jsxs("span",{className:Q(l.root.base,l.root.color[e],l.root.size[s],l.icon[r?"on":"off"],a),"data-testid":"flowbite-badge",...i,children:[r&&f.jsx(r,{"aria-hidden":!0,className:l.icon.size[s],"data-testid":"flowbite-badge-icon"}),t&&f.jsx("span",{children:t})]});return n?f.jsx("a",{className:l.root.href,href:n,children:f.jsx(c,{})}):f.jsx(c,{})};Hf.displayName="Badge";const Yf=({className:t,color:e="info",light:n,size:r="md",theme:s={},...a})=>{const o=ne(he().spinner,s);return f.jsx("span",{role:"status",...a,children:f.jsxs("svg",{fill:"none",viewBox:"0 0 100 101",className:Q(o.base,o.color[e],o.light[n?"on":"off"].base,o.light[n?"on":"off"].color[e],o.size[r],t),children:[f.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"}),f.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"})]})})};Yf.displayName="Spinner";const Ql=_.forwardRef(({children:t,as:e,href:n,type:r="button",...s},a)=>{const o=e||(n?"a":"button");return _.createElement(o,{ref:a,href:n,type:r,...s},t)});Ql.displayName="ButtonBaseComponent";const Vf=(t,e,n)=>_.Children.map(t,(r,s)=>_.isValidElement(r)?r.props.children?_.cloneElement(r,{...r.props,children:Vf(r.props.children,e,n),positionInGroup:Uf(s,_.Children.count(t))}):_.cloneElement(r,{outline:e,pill:n,positionInGroup:Uf(s,_.Children.count(t))}):r),Uf=(t,e)=>t===0?"start":t===e-1?"end":"middle",Xf=({children:t,className:e,outline:n,pill:r,theme:s={},...a})=>{const o=_.useMemo(()=>Vf(t,n,r),[t,n,r]),i=ne(he().buttonGroup,s);return f.jsx("div",{className:Q(i.base,e),role:"group",...a,children:o})};Xf.displayName="Button.Group";const Kf=_.forwardRef(({children:t,className:e,color:n="info",disabled:r,fullSized:s,isProcessing:a=!1,processingLabel:o="Loading...",processingSpinner:i,gradientDuoTone:l,gradientMonochrome:c,label:d,outline:u=!1,pill:h=!1,positionInGroup:g="none",size:m="md",theme:p={},...b},y)=>{const{buttonGroup:v,button:k}=he(),x=ne(k,p),w=b;return f.jsx(Ql,{ref:y,disabled:r,className:Q(x.base,r&&x.disabled,!l&&!c&&x.color[n],l&&!c&&x.gradientDuoTone[l],!l&&c&&x.gradient[c],u&&(x.outline.color[n]??x.outline.color.default),x.pill[h?"on":"off"],s&&x.fullSized,v.position[g],e),...w,children:f.jsx("span",{className:Q(x.inner.base,x.outline[u?"on":"off"],x.outline.pill[u&&h?"on":"off"],x.size[m],u&&!x.outline.color[n]&&x.inner.outline,a&&x.isProcessing,a&&x.inner.isProcessingPadding[m],x.inner.position[g]),children:f.jsxs(f.Fragment,{children:[a&&f.jsx("span",{className:Q(x.spinnerSlot,x.spinnerLeftPosition[m]),children:i||f.jsx(Yf,{size:m})}),typeof t<"u"?t:f.jsx("span",{"data-testid":"flowbite-button-label",className:Q(x.label),children:a?o:d})]})})})});Kf.displayName="Button";const Gf=Object.assign(Kf,{Group:Xf}),Qf=({children:t,...e})=>{const n=r=>{const a=r.target.closest('[role="banner"]');a==null||a.remove()};return f.jsx(Gf,{onClick:n,...e,children:t})};Qf.displayName="Banner.CollapseButton";const Zf=({children:t,...e})=>f.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});Zf.displayName="Banner",Object.assign(Zf,{CollapseButton:Qf});const Jf=_.forwardRef(({children:t,className:e,href:n,icon:r,theme:s={},...a},o)=>{const i=typeof n<"u",l=i?"a":"span",c=ne(he().breadcrumb.item,s);return f.jsxs("li",{className:Q(c.base,e),...a,children:[f.jsx(Of,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),f.jsxs(l,{ref:o,className:c.href[i?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:n,children:[r&&f.jsx(r,{"aria-hidden":!0,className:c.icon}),t]})]})});Jf.displayName="Breadcrumb.Item";const qf=({children:t,className:e,theme:n={},...r})=>{const s=ne(he().breadcrumb.root,n);return f.jsx("nav",{"aria-label":"Breadcrumb",className:Q(s.base,e),...r,children:f.jsx("ol",{className:s.list,children:t})})};qf.displayName="Breadcrumb",Object.assign(qf,{Item:Jf});var $k=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $f(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function eh(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var th={exports:{}};/*!
1
+ (function(le,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],f):(le=typeof globalThis<"u"?globalThis:le||self,f(le["ui-mathilde-web"]={},le.jsxRuntime,le.React,le.ReactDOM))})(this,function(le,f,_,pf){"use strict";var ZL=Object.defineProperty;var JL=(le,f,_)=>f in le?ZL(le,f,{enumerable:!0,configurable:!0,writable:!0,value:_}):le[f]=_;var $=(le,f,_)=>JL(le,typeof f!="symbol"?f+"":f,_);var Vl,_r;function bf(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const H=bf(_),hx=bf(pf),vo={"mth-btn-white":"button-module__mth-btn-white__nTgLW",mthBtnWhite:"button-module__mth-btn-white__nTgLW","mth-btn-blue":"button-module__mth-btn-blue__yw5Zv",mthBtnBlue:"button-module__mth-btn-blue__yw5Zv","mth-btn-gray":"button-module__mth-btn-gray__l3gnX",mthBtnGray:"button-module__mth-btn-gray__l3gnX","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","mth-btn-disabled":"button-module__mth-btn-disabled__sY2Vx",mthBtnDisabled:"button-module__mth-btn-disabled__sY2Vx"},tr=({txtBtn:t,typeButton:e,full:n,onClick:r,disabled:s,type:a,leftIcon:o,rightIcon:i,iconSize:l=20,classes:c})=>{const d=u=>{if(!u)return null;if(typeof u=="string")return f.jsx("img",{src:u,alt:"icon",width:l,height:l});const h=u;return f.jsx(h,{size:l})};return f.jsx("div",{className:`${n?vo["mth-btn-full"]:""}`,children:f.jsxs("button",{type:a,className:`${c} ${vo["mth-btn"]} ${vo[`mth-btn-${e}`]} ${n?vo["mth-btn-full"]:""} flex items-center justify-center gap-2`,onClick:r,disabled:s,children:[d(o),t,d(i)]})})},ta={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY","checkbox-container-terms":"checkbox-module__checkbox-container-terms__3htmx"},gx=({label:t,value:e,checked:n,onChange:r,isTerms:s=!1})=>f.jsxs("label",{className:`${ta["checkbox-container"]} ${s?ta["checkbox-container-terms"]:""}`,children:[f.jsx("input",{type:"checkbox",value:e,checked:n,onChange:r}),f.jsx("span",{className:ta.checkmark}),t&&f.jsx("span",{className:"ml-1",children:t})]}),Or=({src:t,alt:e,width:n,height:r,classIm:s})=>f.jsx("img",{className:s,src:t,alt:e,width:n,height:r});var yf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},wf=_.createContext&&_.createContext(yf),mx=["attr","size","title"];function px(t,e){if(t==null)return{};var n=bx(t,e),r,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(s=0;s<a.length;s++)r=a[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function bx(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,a;for(a=0;a<r.length;a++)s=r[a],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function xo(){return xo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xo.apply(this,arguments)}function vf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function ko(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vf(Object(n),!0).forEach(function(r){yx(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function yx(t,e,n){return e=wx(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wx(t){var e=vx(t,"string");return typeof e=="symbol"?e:String(e)}function vx(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xf(t){return t&&t.map((e,n)=>_.createElement(e.tag,ko({key:n},e.attr),xf(e.child)))}function De(t){return e=>_.createElement(xx,xo({attr:ko({},t.attr)},e),xf(t.child))}function xx(t){var e=n=>{var{attr:r,size:s,title:a}=t,o=px(t,mx),i=s||n.size||"1em",l;return n.className&&(l=n.className),t.className&&(l=(l?l+" ":"")+t.className),_.createElement("svg",xo({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:ko(ko({color:t.color||n.color},n.style),t.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),a&&_.createElement("title",null,a),t.children)};return wf!==void 0?_.createElement(wf.Consumer,null,n=>e(n)):e(yf)}function kx(t){return De({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 _x(t){return De({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 Sx(t){return De({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 Xl(t){return De({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 Ox(t){return De({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 Cx(t){return De({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 kf(t){return De({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 Dx(t){return De({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 Mx(t){return De({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 _f(t){return De({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 Ex(t){return De({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 Sf(t){return De({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 Px(t){return De({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 Tx(t){return De({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 Gl="-";function Nx(t){const e=Ix(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;function s(o){const i=o.split(Gl);return i[0]===""&&i.length!==1&&i.shift(),Of(i,e)||jx(o)}function a(o,i){const l=n[o]||[];return i&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:s,getConflictingClassGroupIds:a}}function Of(t,e){var o;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?Of(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const a=t.join(Gl);return(o=e.validators.find(({validator:i})=>i(a)))==null?void 0:o.classGroupId}const Cf=/^\[(.+)\]$/;function jx(t){if(Cf.test(t)){const e=Cf.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}}function Ix(t){const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return Rx(Object.entries(t.classGroups),n).forEach(([a,o])=>{Kl(o,r,a,e)}),r}function Kl(t,e,n,r){t.forEach(s=>{if(typeof s=="string"){const a=s===""?e:Df(e,s);a.classGroupId=n;return}if(typeof s=="function"){if(Ax(s)){Kl(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([a,o])=>{Kl(o,Df(e,a),n,r)})})}function Df(t,e){let n=t;return e.split(Gl).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Ax(t){return t.isThemeGetter}function Rx(t,e){return e?t.map(([n,r])=>{const s=r.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,i])=>[e+o,i])):a);return[n,s]}):t}function Lx(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;function s(a,o){n.set(a,o),e++,e>t&&(e=0,r=n,n=new Map)}return{get(a){let o=n.get(a);if(o!==void 0)return o;if((o=r.get(a))!==void 0)return s(a,o),o},set(a,o){n.has(a)?n.set(a,o):s(a,o)}}}const Mf="!";function Fx(t){const e=t.separator,n=e.length===1,r=e[0],s=e.length;return function(o){const i=[];let l=0,c=0,d;for(let p=0;p<o.length;p++){let b=o[p];if(l===0){if(b===r&&(n||o.slice(p,p+s)===e)){i.push(o.slice(c,p)),c=p+s;continue}if(b==="/"){d=p;continue}}b==="["?l++:b==="]"&&l--}const u=i.length===0?o:o.substring(c),h=u.startsWith(Mf),g=h?u.substring(1):u,m=d&&d>c?d-c:void 0;return{modifiers:i,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:m}}}function Bx(t){if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e}function Wx(t){return{cache:Lx(t.cacheSize),splitModifiers:Fx(t),...Nx(t)}}const zx=/\s+/;function Hx(t,e){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,a=new Set;return t.trim().split(zx).map(o=>{const{modifiers:i,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:d}=n(o);let u=r(d?c.substring(0,d):c),h=!!d;if(!u){if(!d)return{isTailwindClass:!1,originalClassName:o};if(u=r(c),!u)return{isTailwindClass:!1,originalClassName:o};h=!1}const g=Bx(i).join(":");return{isTailwindClass:!0,modifierId:l?g+Mf:g,classGroupId:u,originalClassName:o,hasPostfixModifier:h}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:i,classGroupId:l,hasPostfixModifier:c}=o,d=i+l;return a.has(d)?!1:(a.add(d),s(l,c).forEach(u=>a.add(i+u)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function Yx(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=Ef(e))&&(r&&(r+=" "),r+=n);return r}function Ef(t){if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=Ef(t[r]))&&(n&&(n+=" "),n+=e);return n}function Vx(t,...e){let n,r,s,a=o;function o(l){const c=e.reduce((d,u)=>u(d),t());return n=Wx(c),r=n.cache.get,s=n.cache.set,a=i,i(l)}function i(l){const c=r(l);if(c)return c;const d=Hx(l,n);return s(l,d),d}return function(){return a(Yx.apply(null,arguments))}}function Le(t){const e=n=>n[t]||[];return e.isThemeGetter=!0,e}const Pf=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ux=/^\d+\/\d+$/,Xx=new Set(["px","full","screen"]),Gx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kx=/\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$/,Qx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Zx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Rn(t){return Cr(t)||Xx.has(t)||Ux.test(t)}function nr(t){return cs(t,"length",ak)}function Cr(t){return!!t&&!Number.isNaN(Number(t))}function _o(t){return cs(t,"number",Cr)}function na(t){return!!t&&Number.isInteger(Number(t))}function qx(t){return t.endsWith("%")&&Cr(t.slice(0,-1))}function me(t){return Pf.test(t)}function rr(t){return Gx.test(t)}const $x=new Set(["length","size","percentage"]);function ek(t){return cs(t,$x,Tf)}function tk(t){return cs(t,"position",Tf)}const nk=new Set(["image","url"]);function rk(t){return cs(t,nk,ik)}function sk(t){return cs(t,"",ok)}function ra(){return!0}function cs(t,e,n){const r=Pf.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1}function ak(t){return Kx.test(t)&&!Qx.test(t)}function Tf(){return!1}function ok(t){return Zx.test(t)}function ik(t){return Jx.test(t)}function lk(){const t=Le("colors"),e=Le("spacing"),n=Le("blur"),r=Le("brightness"),s=Le("borderColor"),a=Le("borderRadius"),o=Le("borderSpacing"),i=Le("borderWidth"),l=Le("contrast"),c=Le("grayscale"),d=Le("hueRotate"),u=Le("invert"),h=Le("gap"),g=Le("gradientColorStops"),m=Le("gradientColorStopPositions"),p=Le("inset"),b=Le("margin"),y=Le("opacity"),v=Le("padding"),k=Le("saturate"),x=Le("scale"),w=Le("sepia"),S=Le("skew"),N=Le("space"),M=Le("translate"),T=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",me,e],F=()=>[me,e],O=()=>["",Rn,nr],C=()=>["auto",Cr,me],E=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],G=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",me],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[Cr,_o],L=()=>[Cr,me];return{cacheSize:500,separator:":",theme:{colors:[ra],spacing:[Rn,nr],blur:["none","",rr,me],brightness:V(),borderColor:[t],borderRadius:["none","","full",rr,me],borderSpacing:F(),borderWidth:O(),contrast:V(),grayscale:ee(),hueRotate:L(),invert:ee(),gap:F(),gradientColorStops:[t],gradientColorStopPositions:[qx,nr],inset:z(),margin:z(),opacity:V(),padding:F(),saturate:V(),scale:V(),sepia:ee(),skew:L(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",me]}],container:["container"],columns:[{columns:[rr]}],"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:[...E(),me]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],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",na,me]}],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",me]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",na,me]}],"grid-cols":[{"grid-cols":[ra]}],"col-start-end":[{col:["auto",{span:["full",na,me]},me]}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[ra]}],"row-start-end":[{row:["auto",{span:[na,me]},me]}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",me]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",me]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",me,e]}],"min-w":[{"min-w":[me,e,"min","max","fit"]}],"max-w":[{"max-w":[me,e,"none","full","min","max","fit","prose",{screen:[rr]},rr]}],h:[{h:[me,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[me,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[me,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[me,e,"auto","min","max","fit"]}],"font-size":[{text:["base",rr,nr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_o]}],"font-family":[{font:[ra]}],"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",me]}],"line-clamp":[{"line-clamp":["none",Cr,_o]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Rn,me]}],"list-image":[{"list-image":["none",me]}],"list-style-type":[{list:["none","disc","decimal",me]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Rn,nr]}],"underline-offset":[{"underline-offset":["auto",Rn,me]}],"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:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me]}],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",me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...E(),tk]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ek]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},rk]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:W()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[Rn,me]}],"outline-w":[{outline:[Rn,nr]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Rn,nr]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",rr,sk]}],"shadow-color":[{shadow:[ra]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":U()}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",rr,me]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[k]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"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":[y]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",me]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",me]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[na,me]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",me]}],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",me]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",me]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Rn,nr,_o]}],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 Q=Vx(lk);function Dr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function sa(t){if(!Dr(t))return t;const e={};for(const n in t)e[n]=sa(t[n]);return e}function ne(t,e){if(Dr(e)&&Object.keys(e).length===0)return sa({...t,...e});const n={...t,...e};if(Dr(e)&&Dr(t))for(const r in e)Dr(e[r])&&r in t&&Dr(t[r])?n[r]=ne(t[r],e[r]):n[r]=Dr(e[r])?sa(e[r]):e[r];return n}function a6(t){return t}const ck={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"}}},dk={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"},uk={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"}},fk={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"}}},hk={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},gk={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"}},mk={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"}},pk={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"}},bk={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"}}},yk={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"}},wk={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"}}},vk={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"}},xk={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"}}}}},kk={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"},_k={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"}}}},Sk={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"}},Ok={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"}},Ck={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"}}},Dk={root:{base:"rounded-lg border border-gray-200 bg-gray-100 px-2 py-1.5 text-xs font-semibold text-gray-800 dark:border-gray-500 dark:bg-gray-600 dark:text-gray-100",icon:"inline-block"}},Mk={root:{base:"text-sm font-medium",disabled:"opacity-50",colors:{default:"text-gray-900 dark:text-white",info:"text-cyan-500 dark:text-cyan-600",failure:"text-red-700 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600",success:"text-green-700 dark:text-green-500"}}},Ek={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"}},Pk={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"}}},Tk={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"}},Nk={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"}},jk={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"}}},Ik={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"}},Ak={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"}},Rk={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"}},Lk={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"}}}},Fk={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"}}},Bk={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"}},Wk={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"}}}},zk={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"}},Hk={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"}},Yk={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"}},Vk={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"},Uk={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:""}},Xk={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:""}}}},Gk={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:""}}},Kk={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"}},Qk={root:{base:"group relative flex items-center rounded-lg focus:outline-none",active:{on:"cursor-pointer",off:"cursor-not-allowed opacity-50"},label:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300"},toggle:{base:"rounded-full border group-focus:ring-4 group-focus:ring-cyan-500/25",checked:{on:"after:translate-x-full after:border-white",off:"border-gray-200 bg-gray-200 dark:border-gray-600 dark:bg-gray-700",color:{blue:"border-cyan-700 bg-cyan-700",dark:"bg-dark-700 border-dark-900",failure:"border-red-900 bg-red-700",gray:"border-gray-600 bg-gray-500",green:"border-green-700 bg-green-600",light:"bg-light-700 border-light-900",red:"border-red-900 bg-red-700",purple:"border-purple-900 bg-purple-700",success:"border-green-500 bg-green-500",yellow:"border-yellow-400 bg-yellow-400",warning:"border-yellow-600 bg-yellow-600",cyan:"border-cyan-500 bg-cyan-500",lime:"border-lime-400 bg-lime-400",indigo:"border-indigo-400 bg-indigo-400",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 hover:bg-gradient-to-br focus:ring-4",info:"border-cyan-600 bg-cyan-600",pink:"border-pink-600 bg-pink-600"}},sizes:{sm:"h-5 w-9 after:absolute after:left-[2px] after:top-[2px] after:h-4 after:w-4",md:"h-6 w-11 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5",lg:"h-7 w-14 after:absolute after:left-[4px] after:top-0.5 after:h-6 after:w-6"}}},Zk={target:"w-fit",animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"absolute z-10 inline-block rounded-lg px-3 py-2 text-sm font-medium shadow-sm",hidden:"invisible opacity-0",style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},content:"relative z-20"},Jk={theme:sa({accordion:ck,alert:dk,avatar:uk,badge:fk,blockquote:hk,breadcrumb:gk,button:mk,buttonGroup:pk,card:bk,carousel:yk,checkbox:wk,datepicker:xk,darkThemeToggle:vk,dropdown:kk,fileInput:_k,floatingLabel:Sk,footer:Ok,helperText:Ck,kbd:Dk,label:Mk,listGroup:Pk,list:Ek,modal:Tk,navbar:Nk,pagination:jk,popover:Ik,progress:Ak,radio:Rk,rangeSlider:Lk,rating:Fk,ratingAdvanced:Bk,select:Wk,textInput:Xk,textarea:Uk,toggleSwitch:Qk,sidebar:zk,spinner:Hk,table:Yk,tabs:Vk,timeline:Gk,toast:Kk,tooltip:Zk})};function he(){return sa(Jk.theme)}const Nf=_.createContext(void 0);function jf(){const t=_.useContext(Nf);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const If=({children:t,className:e,theme:n={},...r})=>{const{isOpen:s}=jf(),a=ne(he().accordion.content,n);return f.jsx("div",{className:Q(a.base,e),"data-testid":"flowbite-accordion-content",hidden:!s,...r,children:t})},Af=({children:t,...e})=>{const{alwaysOpen:n}=e,[r,s]=_.useState(e.isOpen),a=n?{...e,isOpen:r,setOpen:()=>s(!r)}:e;return f.jsx(Nf.Provider,{value:a,children:t})},Rf=({as:t="h2",children:e,className:n,theme:r={},...s})=>{const{arrowIcon:a,flush:o,isOpen:i,setOpen:l}=jf(),c=()=>typeof l<"u"&&l(),d=ne(he().accordion.title,r);return f.jsxs("button",{className:Q(d.base,d.flush[o?"on":"off"],d.open[i?"on":"off"],n),onClick:c,type:"button",...s,children:[f.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),a&&f.jsx(a,{"aria-hidden":!0,className:Q(d.arrow.base,d.arrow.open[i?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},Lf=({alwaysOpen:t=!1,arrowIcon:e=Xl,children:n,flush:r=!1,collapseAll:s=!1,className:a,theme:o={},...i})=>{const[l,c]=_.useState(s?-1:0),d=_.useMemo(()=>_.Children.map(n,(h,g)=>_.cloneElement(h,{alwaysOpen:t,arrowIcon:e,flush:r,isOpen:l===g,setOpen:()=>c(l===g?-1:g)})),[t,e,n,r,l]),u=ne(he().accordion.root,o);return f.jsx("div",{className:Q(u.base,u.flush[r?"on":"off"],a),"data-testid":"flowbite-accordion",...i,children:d})};Lf.displayName="Accordion",Af.displayName="Accordion.Panel",Rf.displayName="Accordion.Title",If.displayName="Accordion.Content",Object.assign(Lf,{Panel:Af,Title:Rf,Content:If});const Ff=({children:t,className:e,theme:n={},...r})=>{const s=ne(he().avatar.group,n);return f.jsx("div",{"data-testid":"avatar-group-element",className:Q(s.base,e),...r,children:t})};Ff.displayName="Avatar.Group";const Bf=({className:t,href:e,theme:n={},total:r,...s})=>{const a=ne(he().avatar.groupCounter,n);return f.jsxs("a",{href:e,className:Q(a.base,t),...s,children:["+",r]})};Bf.displayName="Avatar.GroupCounter";const Wf=({alt:t="",bordered:e=!1,children:n,className:r,color:s="light",img:a,placeholderInitials:o="",rounded:i=!1,size:l="md",stacked:c=!1,status:d,statusPosition:u="top-left",theme:h={},...g})=>{const m=ne(he().avatar,h),p=Q(m.root.img.base,e&&m.root.bordered,e&&m.root.color[s],i&&m.root.rounded,c&&m.root.stacked,m.root.img.on,m.root.size[l]),b={className:Q(p,m.root.img.on),"data-testid":"flowbite-avatar-img"};return f.jsxs("div",{className:Q(m.root.base,r),"data-testid":"flowbite-avatar",...g,children:[f.jsxs("div",{className:"relative",children:[a?typeof a=="string"?f.jsx("img",{alt:t,src:a,...b}):a({alt:t,...b}):o?f.jsx("div",{className:Q(m.root.img.off,m.root.initials.base,c&&m.root.stacked,e&&m.root.bordered,e&&m.root.color[s],m.root.size[l],i&&m.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:f.jsx("span",{className:Q(m.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:o})}):f.jsx("div",{className:Q(p,m.root.img.off),"data-testid":"flowbite-avatar-img",children:f.jsx("svg",{className:m.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:f.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&&f.jsx("span",{"data-testid":"flowbite-avatar-status",className:Q(m.root.status.base,m.root.status[d],m.root.statusPosition[u])})]}),n&&f.jsx("div",{children:n})]})};Wf.displayName="Avatar",Object.assign(Wf,{Group:Ff,Counter:Bf});const zf=({children:t,color:e="info",href:n,icon:r,size:s="xs",className:a,theme:o={},...i})=>{const l=ne(he().badge,o),c=()=>f.jsxs("span",{className:Q(l.root.base,l.root.color[e],l.root.size[s],l.icon[r?"on":"off"],a),"data-testid":"flowbite-badge",...i,children:[r&&f.jsx(r,{"aria-hidden":!0,className:l.icon.size[s],"data-testid":"flowbite-badge-icon"}),t&&f.jsx("span",{children:t})]});return n?f.jsx("a",{className:l.root.href,href:n,children:f.jsx(c,{})}):f.jsx(c,{})};zf.displayName="Badge";const Hf=({className:t,color:e="info",light:n,size:r="md",theme:s={},...a})=>{const o=ne(he().spinner,s);return f.jsx("span",{role:"status",...a,children:f.jsxs("svg",{fill:"none",viewBox:"0 0 100 101",className:Q(o.base,o.color[e],o.light[n?"on":"off"].base,o.light[n?"on":"off"].color[e],o.size[r],t),children:[f.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"}),f.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"})]})})};Hf.displayName="Spinner";const Ql=_.forwardRef(({children:t,as:e,href:n,type:r="button",...s},a)=>{const o=e||(n?"a":"button");return _.createElement(o,{ref:a,href:n,type:r,...s},t)});Ql.displayName="ButtonBaseComponent";const Yf=(t,e,n)=>_.Children.map(t,(r,s)=>_.isValidElement(r)?r.props.children?_.cloneElement(r,{...r.props,children:Yf(r.props.children,e,n),positionInGroup:Vf(s,_.Children.count(t))}):_.cloneElement(r,{outline:e,pill:n,positionInGroup:Vf(s,_.Children.count(t))}):r),Vf=(t,e)=>t===0?"start":t===e-1?"end":"middle",Uf=({children:t,className:e,outline:n,pill:r,theme:s={},...a})=>{const o=_.useMemo(()=>Yf(t,n,r),[t,n,r]),i=ne(he().buttonGroup,s);return f.jsx("div",{className:Q(i.base,e),role:"group",...a,children:o})};Uf.displayName="Button.Group";const Xf=_.forwardRef(({children:t,className:e,color:n="info",disabled:r,fullSized:s,isProcessing:a=!1,processingLabel:o="Loading...",processingSpinner:i,gradientDuoTone:l,gradientMonochrome:c,label:d,outline:u=!1,pill:h=!1,positionInGroup:g="none",size:m="md",theme:p={},...b},y)=>{const{buttonGroup:v,button:k}=he(),x=ne(k,p),w=b;return f.jsx(Ql,{ref:y,disabled:r,className:Q(x.base,r&&x.disabled,!l&&!c&&x.color[n],l&&!c&&x.gradientDuoTone[l],!l&&c&&x.gradient[c],u&&(x.outline.color[n]??x.outline.color.default),x.pill[h?"on":"off"],s&&x.fullSized,v.position[g],e),...w,children:f.jsx("span",{className:Q(x.inner.base,x.outline[u?"on":"off"],x.outline.pill[u&&h?"on":"off"],x.size[m],u&&!x.outline.color[n]&&x.inner.outline,a&&x.isProcessing,a&&x.inner.isProcessingPadding[m],x.inner.position[g]),children:f.jsxs(f.Fragment,{children:[a&&f.jsx("span",{className:Q(x.spinnerSlot,x.spinnerLeftPosition[m]),children:i||f.jsx(Hf,{size:m})}),typeof t<"u"?t:f.jsx("span",{"data-testid":"flowbite-button-label",className:Q(x.label),children:a?o:d})]})})})});Xf.displayName="Button";const Gf=Object.assign(Xf,{Group:Uf}),Kf=({children:t,...e})=>{const n=r=>{const a=r.target.closest('[role="banner"]');a==null||a.remove()};return f.jsx(Gf,{onClick:n,...e,children:t})};Kf.displayName="Banner.CollapseButton";const Qf=({children:t,...e})=>f.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});Qf.displayName="Banner",Object.assign(Qf,{CollapseButton:Kf});const Zf=_.forwardRef(({children:t,className:e,href:n,icon:r,theme:s={},...a},o)=>{const i=typeof n<"u",l=i?"a":"span",c=ne(he().breadcrumb.item,s);return f.jsxs("li",{className:Q(c.base,e),...a,children:[f.jsx(Sf,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),f.jsxs(l,{ref:o,className:c.href[i?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:n,children:[r&&f.jsx(r,{"aria-hidden":!0,className:c.icon}),t]})]})});Zf.displayName="Breadcrumb.Item";const Jf=({children:t,className:e,theme:n={},...r})=>{const s=ne(he().breadcrumb.root,n);return f.jsx("nav",{"aria-label":"Breadcrumb",className:Q(s.base,e),...r,children:f.jsx("ol",{className:s.list,children:t})})};Jf.displayName="Breadcrumb",Object.assign(Jf,{Item:Zf});var qk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function $f(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var eh={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(a=s(a,r(i)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var i in a)e.call(a,i)&&a[i]&&(o=s(o,i));return o}function s(a,o){return o?a?a+" "+o:a+o:a}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(th);var sr=th.exports;const e2=$f(sr);var Zl={exports:{}};function nh(t,e=100,n={}){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:r}=typeof n=="boolean"?{immediate:n}:n;let s,a,o,i,l;function c(){const u=Date.now()-i;if(u<e&&u>=0)o=setTimeout(c,e-u);else if(o=void 0,!r){const h=s,g=a;s=void 0,a=void 0,l=t.apply(h,g)}}const d=function(...u){if(s&&this!==s)throw new Error("Debounced method called with different contexts.");s=this,a=u,i=Date.now();const h=r&&!o;if(o||(o=setTimeout(c,e)),h){const g=s,m=a;s=void 0,a=void 0,l=t.apply(g,m)}return l};return d.clear=()=>{o&&(clearTimeout(o),o=void 0)},d.flush=()=>{if(!o)return;const u=s,h=a;s=void 0,a=void 0,l=t.apply(u,h),clearTimeout(o),o=void 0},d}Zl.exports.debounce=nh,Zl.exports=nh;var t2=Zl.exports;const n2=$f(t2);var r2=Object.defineProperty,s2=(t,e,n)=>e in t?r2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ot=(t,e,n)=>(s2(t,typeof e!="symbol"?e+"":e,n),n);const a2=300,o2=0;class i2 extends _.PureComponent{constructor(e){super(e),ot(this,"container"),ot(this,"scrolling"),ot(this,"started"),ot(this,"pressed"),ot(this,"isMobile",!1),ot(this,"internal"),ot(this,"scrollLeft"),ot(this,"scrollTop"),ot(this,"clientX"),ot(this,"clientY"),ot(this,"onEndScroll",()=>{this.scrolling=!1,!this.pressed&&this.started&&this.processEnd()}),ot(this,"onScroll",()=>{const n=this.container.current;(n.scrollLeft!==this.scrollLeft||n.scrollTop!==this.scrollTop)&&(this.scrolling=!0,this.processScroll(),this.onEndScroll())}),ot(this,"onTouchStart",n=>{const{nativeMobileScroll:r}=this.props;if(this.isDraggable(n.target))if(this.internal=!0,r&&this.scrolling)this.pressed=!0;else{const s=n.touches[0];this.processClick(s.clientX,s.clientY),!r&&this.props.stopPropagation&&n.stopPropagation()}}),ot(this,"onTouchEnd",()=>{const{nativeMobileScroll:n}=this.props;this.pressed&&(this.started&&(!this.scrolling||!n)?this.processEnd():this.pressed=!1,this.forceUpdate())}),ot(this,"onTouchMove",n=>{const{nativeMobileScroll:r}=this.props;if(this.pressed&&(!r||!this.isMobile)){const s=n.touches[0];s&&this.processMove(s.clientX,s.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation()}}),ot(this,"onMouseDown",n=>{var r,s;this.isDraggable(n.target)&&this.isScrollable()&&(this.internal=!0,((s=(r=this.props)==null?void 0:r.buttons)==null?void 0:s.indexOf(n.button))!==-1&&(this.processClick(n.clientX,n.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation()))}),ot(this,"onMouseMove",n=>{this.pressed&&(this.processMove(n.clientX,n.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation())}),ot(this,"onMouseUp",n=>{this.pressed&&(this.started?this.processEnd():(this.internal=!1,this.pressed=!1,this.forceUpdate(),this.props.onClick&&this.props.onClick(n)),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation())}),this.container=_.createRef(),this.onEndScroll=n2(this.onEndScroll,a2),this.scrolling=!1,this.started=!1,this.pressed=!1,this.internal=!1,this.getRef=this.getRef.bind(this)}componentDidMount(){const{nativeMobileScroll:e}=this.props,n=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),n.addEventListener("touchstart",this.onTouchStart,{passive:!1}),n.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 n=this.props.ignoreElements;if(n){const r=e.closest(n);return r===null||r.contains(this.getElement())}else return!0}isScrollable(){const e=this.container.current;return e&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)}processClick(e,n){const r=this.container.current;this.scrollLeft=r==null?void 0:r.scrollLeft,this.scrollTop=r==null?void 0:r.scrollTop,this.clientX=e,this.clientY=n,this.pressed=!0}processStart(e=!0){const{onStartScroll:n}=this.props;this.started=!0,e&&document.body.classList.add("cursor-grab"),n&&n({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,n){const{horizontal:r,vertical:s,activationDistance:a,onScroll:o}=this.props,i=this.container.current;this.started?(r&&(i.scrollLeft-=e-this.clientX),s&&(i.scrollTop-=n-this.clientY),o&&o({external:!this.internal}),this.clientX=e,this.clientY=n,this.scrollLeft=i.scrollLeft,this.scrollTop=i.scrollTop):(r&&Math.abs(e-this.clientX)>a||s&&Math.abs(n-this.clientY)>a)&&(this.clientX=e,this.clientY=n,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(n=>{n&&(typeof n=="function"?n(e):n.current=e)})}render(){const{children:e,draggingClassName:n,className:r,style:s,hideScrollbars:a}=this.props;return f.jsx("div",{className:e2(r,this.pressed&&n,{"!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]":a,"[&::-webkit-scrollbar]:[-webkit-appearance:none !important] [&::-webkit-scrollbar]:!hidden [&::-webkit-scrollbar]:!h-0 [&::-webkit-scrollbar]:!w-0 [&::-webkit-scrollbar]:!bg-transparent":a}),style:s,ref:this.getRef,onScroll:this.onScroll,children:e})}}ot(i2,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[o2]});const aa=_.forwardRef(({className:t,color:e="default",theme:n={},...r},s)=>{const a=ne(he().checkbox,n);return f.jsx("input",{ref:s,type:"checkbox",className:Q(a.root.base,a.root.color[e],t),...r})});aa.displayName="Checkbox";const oa=({children:t,className:e,color:n="default",theme:r={},value:s,...a})=>{const o=ne(he().helperText,r);return f.jsx("p",{className:Q(o.root.base,o.root.colors[n],e),...a,children:s??t??""})};oa.displayName="HelperText";const ds=_.forwardRef(({addon:t,className:e,color:n="gray",helperText:r,icon:s,rightIcon:a,shadow:o,sizing:i="md",theme:l={},type:c="text",...d},u)=>{const h=ne(he().textInput,l);return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:Q(h.base,e),children:[t&&f.jsx("span",{className:h.addon,children:t}),f.jsxs("div",{className:h.field.base,children:[s&&f.jsx("div",{className:h.field.icon.base,children:f.jsx(s,{className:h.field.icon.svg})}),a&&f.jsx("div",{"data-testid":"right-icon",className:h.field.rightIcon.base,children:f.jsx(a,{className:h.field.rightIcon.svg})}),f.jsx("input",{className:Q(h.field.input.base,h.field.input.colors[n],h.field.input.sizes[i],h.field.input.withIcon[s?"on":"off"],h.field.input.withRightIcon[a?"on":"off"],h.field.input.withAddon[t?"on":"off"],h.field.input.withShadow[o?"on":"off"]),type:c,...d,ref:u})]})]}),r&&f.jsx(oa,{color:n,children:r})]})});ds.displayName="TextInput";const rh=_.createContext(void 0);function So(){const t=_.useContext(rh);if(!t)throw new Error("useDatePickerContext should be used within the DatePickerContext provider!");return t}var ze=(t=>(t[t.Days=0]="Days",t[t.Months=1]="Months",t[t.Years=2]="Years",t[t.Decades=3]="Decades",t))(ze||{}),sh=(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))(sh||{});const ia=(t,e,n)=>{const r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();if(e&&n){const s=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),a=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();return r>=s&&r<=a}if(e){const s=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();return r>=s}if(n){const s=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();return r<=s}return!0},Oo=(t,e)=>(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t.getTime()===e.getTime()),l2=(t,e,n)=>(ia(t,e,n)||(e&&t<e?t=e:n&&t>n&&(t=n)),t),c2=(t,e)=>{const n=new Date(t.getFullYear(),t.getMonth(),1);let s=n.getDay()-e;return s<0&&(s+=7),Jl(n,-s)},d2=(t,e)=>{const n=[],r=new Date(0);r.setDate(r.getDate()-r.getDay()+e);const s=new Intl.DateTimeFormat(t,{weekday:"short"});for(let a=0;a<7;a++)n.push(s.format(Jl(r,a)));return n},Jl=(t,e)=>{const n=new Date(t);return n.setDate(n.getDate()+e),n},u2=(t,e)=>{const n=new Date(t);return n.setMonth(n.getMonth()+e),n},us=(t,e)=>{const n=new Date(t);return n.setFullYear(n.getFullYear()+e),n},la=(t,e,n)=>{let r={day:"numeric",month:"long",year:"numeric"};return n&&(r=n),new Intl.DateTimeFormat(t,r).format(e)},fs=(t,e)=>{const n=t.getFullYear();return Math.floor(n/e)*e},f2=(t,e)=>{const n=t.getFullYear(),r=e+9;return n>=e&&n<=r},h2=({theme:t={}})=>{const{theme:e,weekStart:n,minDate:r,maxDate:s,viewDate:a,selectedDate:o,changeSelectedDate:i,language:l}=So(),c=ne(e.views.days,t),d=d2(l,n),u=c2(a,n);return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:c.header.base,children:d.map((h,g)=>f.jsx("span",{className:c.header.title,children:h},g))}),f.jsx("div",{className:c.items.base,children:[...Array(42)].map((h,g)=>{const m=Jl(u,g),p=la(l,m,{day:"numeric"}),b=Oo(o,m),y=!ia(m,r,s);return f.jsx("button",{disabled:y,type:"button",className:Q(c.items.item.base,b&&c.items.item.selected,y&&c.items.item.disabled),onClick:()=>{y||i(m,!0)},children:p},g)})})]})},g2=({theme:t={}})=>{const{theme:e,selectedDate:n,viewDate:r,setViewDate:s,setView:a}=So(),o=ne(e.views.decades,t);return f.jsx("div",{className:o.items.base,children:[...Array(12)].map((i,l)=>{const d=fs(r,100)-10+l*10,u=new Date(d,0,1),h=us(u,9),g=f2(r,d),m=!ia(r,u,h);return f.jsx("button",{disabled:m,type:"button",className:Q(o.items.item.base,g&&o.items.item.selected,m&&o.items.item.disabled),onClick:()=>{m||(s(us(r,d-n.getFullYear())),a(ze.Years))},children:d},l)})})},m2=({theme:t={}})=>{const{theme:e,minDate:n,maxDate:r,selectedDate:s,viewDate:a,language:o,setViewDate:i,setView:l}=So(),c=ne(e.views.months,t);return f.jsx("div",{className:c.items.base,children:[...Array(12)].map((d,u)=>{const h=new Date(a.getTime());h.setMonth(u);const g=la(o,h,{month:"short"}),m=Oo(s,h),p=!ia(h,n,r);return f.jsx("button",{disabled:p,type:"button",className:Q(c.items.item.base,m&&c.items.item.selected,p&&c.items.item.disabled),onClick:()=>{p||(i(h),l(ze.Days))},children:g},u)})})},p2=({theme:t={}})=>{const{theme:e,selectedDate:n,minDate:r,maxDate:s,viewDate:a,setViewDate:o,setView:i}=So(),l=ne(e.views.years,t);return f.jsx("div",{className:l.items.base,children:[...Array(12)].map((c,d)=>{const h=fs(a,10)-1+d*1,g=new Date(a.getTime());g.setFullYear(h);const m=Oo(n,g),p=!ia(g,r,s);return f.jsx("button",{disabled:p,type:"button",className:Q(l.items.item.base,m&&l.items.item.selected,p&&l.items.item.disabled),onClick:()=>{p||(o(g),i(ze.Months))},children:h},d)})})},b2=({title:t,open:e,inline:n=!1,autoHide:r=!0,showClearButton:s=!0,labelClearButton:a="Clear",showTodayButton:o=!0,labelTodayButton:i="Today",defaultDate:l=new Date,minDate:c,maxDate:d,language:u="en",weekStart:h=sh.Sunday,className:g,theme:m={},onSelectedDateChanged:p,...b},y)=>{const v=ne(he().datepicker,m);l=l2(l,c,d);const[k,x]=_.useState(e),[w,S]=_.useState(ze.Days),[N,M]=_.useState(l),[T,P]=_.useState(l),z=_.useRef(null),F=_.useRef(null),O=(ee,j)=>{M(ee),p&&p(ee),r&&w===ze.Days&&j==!0&&!n&&x(!1)},C=()=>{O(l,!0),l&&P(l)};_.useImperativeHandle(y,()=>({focus(){var ee;(ee=z.current)==null||ee.focus()},clear(){C()}}));const E=ee=>{switch(ee){case ze.Decades:return f.jsx(g2,{theme:v.views.decades});case ze.Years:return f.jsx(p2,{theme:v.views.years});case ze.Months:return f.jsx(m2,{theme:v.views.months});case ze.Days:default:return f.jsx(h2,{theme:v.views.days})}},W=()=>{switch(w){case ze.Days:return ze.Months;case ze.Months:return ze.Years;case ze.Years:return ze.Decades}return w},U=()=>{switch(w){case ze.Decades:return`${fs(T,100)} - ${fs(T,100)+90}`;case ze.Years:return`${fs(T,10)} - ${fs(T,10)+9}`;case ze.Months:return la(u,T,{year:"numeric"});case ze.Days:default:return la(u,T,{month:"long",year:"numeric"})}},K=(ee,j,V)=>{switch(ee){case ze.Days:return new Date(u2(j,V));case ze.Months:return new Date(us(j,V));case ze.Years:return new Date(us(j,V*10));case ze.Decades:return new Date(us(j,V*100));default:return new Date(us(j,V*10))}};return _.useEffect(()=>{const ee=j=>{var R,A;const V=(R=F==null?void 0:F.current)==null?void 0:R.contains(j.target),L=(A=z==null?void 0:z.current)==null?void 0:A.contains(j.target);!V&&!L&&x(!1)};return document.addEventListener("mousedown",ee),()=>{document.removeEventListener("mousedown",ee)}},[z,F,x]),f.jsx(rh.Provider,{value:{theme:v,language:u,minDate:c,maxDate:d,weekStart:h,isOpen:k,setIsOpen:x,view:w,setView:S,viewDate:T,setViewDate:P,selectedDate:N,setSelectedDate:M,changeSelectedDate:O},children:f.jsxs("div",{className:Q(v.root.base,g),children:[!n&&f.jsx(ds,{theme:v.root.input,icon:Ox,ref:z,onFocus:()=>{Oo(T,N)||P(N),x(!0)},value:N&&la(u,N),readOnly:!0,...b}),(k||n)&&f.jsx("div",{ref:F,className:Q(v.popup.root.base,n&&v.popup.root.inline),children:f.jsxs("div",{className:v.popup.root.inner,children:[f.jsxs("div",{className:v.popup.header.base,children:[t&&f.jsx("div",{className:v.popup.header.title,children:t}),f.jsxs("div",{className:v.popup.header.selectors.base,children:[f.jsx("button",{type:"button",className:Q(v.popup.header.selectors.button.base,v.popup.header.selectors.button.prev),onClick:()=>P(K(w,T,-1)),children:f.jsx(_x,{})}),f.jsx("button",{type:"button",className:Q(v.popup.header.selectors.button.base,v.popup.header.selectors.button.view),onClick:()=>S(W()),children:U()}),f.jsx("button",{type:"button",className:Q(v.popup.header.selectors.button.base,v.popup.header.selectors.button.next),onClick:()=>P(K(w,T,1)),children:f.jsx(Sx,{})})]})]}),f.jsx("div",{className:v.popup.view.base,children:E(w)}),(s||o)&&f.jsxs("div",{className:v.popup.footer.base,children:[o&&f.jsx("button",{type:"button",className:Q(v.popup.footer.button.base,v.popup.footer.button.today),onClick:()=>{const ee=new Date;O(ee,!0),P(ee)},children:i}),s&&f.jsx("button",{type:"button",className:Q(v.popup.footer.button.base,v.popup.footer.button.clear),onClick:()=>{O(l,!0),l&&P(l)},children:a})]})]})})]})})},ah=_.forwardRef(b2);ah.displayName="Datepicker";function Co(){return typeof window<"u"}function Mr(t){return oh(t)?(t.nodeName||"").toLowerCase():"#document"}function Mt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function fn(t){var e;return(e=(oh(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function oh(t){return Co()?t instanceof Node||t instanceof Mt(t).Node:!1}function Pe(t){return Co()?t instanceof Element||t instanceof Mt(t).Element:!1}function ht(t){return Co()?t instanceof HTMLElement||t instanceof Mt(t).HTMLElement:!1}function ql(t){return!Co()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Mt(t).ShadowRoot}function ca(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=Zt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(s)}function y2(t){return["table","td","th"].includes(Mr(t))}function Do(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function $l(t){const e=ec(),n=Pe(t)?Zt(t):t;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function w2(t){let e=Ln(t);for(;ht(e)&&!ar(e);){if($l(e))return e;if(Do(e))return null;e=Ln(e)}return null}function ec(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ar(t){return["html","body","#document"].includes(Mr(t))}function Zt(t){return Mt(t).getComputedStyle(t)}function Mo(t){return Pe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ln(t){if(Mr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ql(t)&&t.host||fn(t);return ql(e)?e.host:e}function ih(t){const e=Ln(t);return ar(e)?t.ownerDocument?t.ownerDocument.body:t.body:ht(e)&&ca(e)?e:ih(e)}function or(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=ih(t),a=s===((r=t.ownerDocument)==null?void 0:r.body),o=Mt(s);if(a){const i=tc(o);return e.concat(o,o.visualViewport||[],ca(s)?s:[],i&&n?or(i):[])}return e.concat(s,or(s,[],n))}function tc(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function hn(t){let e=t.activeElement;for(;((n=e)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;e=e.shadowRoot.activeElement}return e}function et(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&ql(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function nc(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function lh(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:n,version:r}=e;return n+"/"+r}).join(" "):navigator.userAgent}function ch(t){return t.mozInputSource===0&&t.isTrusted?!0:ac()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function rc(t){return v2()?!1:!ac()&&t.width===0&&t.height===0||ac()&&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 sc(){return/apple/i.test(navigator.vendor)}function ac(){const t=/android/i;return t.test(nc())||t.test(lh())}function dh(){return nc().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function v2(){return lh().includes("jsdom/")}function Eo(t,e){const n=["mouse","pen"];return e||n.push("",void 0),n.includes(t)}function x2(t){return"nativeEvent"in t}function k2(t){return t.matches("html,body")}function _t(t){return(t==null?void 0:t.ownerDocument)||document}function oc(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const n=t;return n.target!=null&&e.contains(n.target)}function ir(t){return"composedPath"in t?t.composedPath()[0]:t.target}const _2="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function ic(t){return ht(t)&&t.matches(_2)}function gt(t){t.preventDefault(),t.stopPropagation()}function uh(t){return t?t.getAttribute("role")==="combobox"&&ic(t):!1}const S2=["top","right","bottom","left"],fh=["start","end"],hh=S2.reduce((t,e)=>t.concat(e,e+"-"+fh[0],e+"-"+fh[1]),[]),hs=Math.min,Er=Math.max,Po=Math.round,gs=Math.floor,gn=t=>({x:t,y:t}),O2={left:"right",right:"left",bottom:"top",top:"bottom"},C2={start:"end",end:"start"};function lc(t,e,n){return Er(t,hs(e,n))}function ms(t,e){return typeof t=="function"?t(e):t}function Fn(t){return t.split("-")[0]}function mn(t){return t.split("-")[1]}function gh(t){return t==="x"?"y":"x"}function cc(t){return t==="y"?"height":"width"}function To(t){return["top","bottom"].includes(Fn(t))?"y":"x"}function dc(t){return gh(To(t))}function mh(t,e,n){n===void 0&&(n=!1);const r=mn(t),s=dc(t),a=cc(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=jo(o)),[o,jo(o)]}function D2(t){const e=jo(t);return[No(t),e,No(e)]}function No(t){return t.replace(/start|end/g,e=>C2[e])}function M2(t,e,n){const r=["left","right"],s=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?s:r:e?r:s;case"left":case"right":return e?a:o;default:return[]}}function E2(t,e,n,r){const s=mn(t);let a=M2(Fn(t),n==="start",r);return s&&(a=a.map(o=>o+"-"+s),e&&(a=a.concat(a.map(No)))),a}function jo(t){return t.replace(/left|right|bottom|top/g,e=>O2[e])}function P2(t){return{top:0,right:0,bottom:0,left:0,...t}}function ph(t){return typeof t!="number"?P2(t):{top:t,right:t,bottom:t,left:t}}function Io(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function bh(t,e,n){let{reference:r,floating:s}=t;const a=To(e),o=dc(e),i=cc(o),l=Fn(e),c=a==="y",d=r.x+r.width/2-s.width/2,u=r.y+r.height/2-s.height/2,h=r[i]/2-s[i]/2;let g;switch(l){case"top":g={x:d,y:r.y-s.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:u};break;case"left":g={x:r.x-s.width,y:u};break;default:g={x:r.x,y:r.y}}switch(mn(e)){case"start":g[o]-=h*(n&&c?-1:1);break;case"end":g[o]+=h*(n&&c?-1:1);break}return g}const T2=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:a=[],platform:o}=n,i=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:u}=bh(c,r,l),h=r,g={},m=0;for(let p=0;p<i.length;p++){const{name:b,fn:y}=i[p],{x:v,y:k,data:x,reset:w}=await y({x:d,y:u,initialPlacement:r,placement:h,strategy:s,middlewareData:g,rects:c,platform:o,elements:{reference:t,floating:e}});d=v??d,u=k??u,g={...g,[b]:{...g[b],...x}},w&&m<=50&&(m++,typeof w=="object"&&(w.placement&&(h=w.placement),w.rects&&(c=w.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):w.rects),{x:d,y:u}=bh(c,h,l)),p=-1)}return{x:d,y:u,placement:h,strategy:s,middlewareData:g}};async function uc(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:a,rects:o,elements:i,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:g=0}=ms(e,t),m=ph(g),b=i[h?u==="floating"?"reference":"floating":u],y=Io(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:l})),v=u==="floating"?{...o.floating,x:r,y:s}:o.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),x=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},w=Io(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:v,offsetParent:k,strategy:l}):v);return{top:(y.top-w.top+m.top)/x.y,bottom:(w.bottom-y.bottom+m.bottom)/x.y,left:(y.left-w.left+m.left)/x.x,right:(w.right-y.right+m.right)/x.x}}const N2=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:a,platform:o,elements:i,middlewareData:l}=e,{element:c,padding:d=0}=ms(t,e)||{};if(c==null)return{};const u=ph(d),h={x:n,y:r},g=dc(s),m=cc(g),p=await o.getDimensions(c),b=g==="y",y=b?"top":"left",v=b?"bottom":"right",k=b?"clientHeight":"clientWidth",x=a.reference[m]+a.reference[g]-h[g]-a.floating[m],w=h[g]-a.reference[g],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let N=S?S[k]:0;(!N||!await(o.isElement==null?void 0:o.isElement(S)))&&(N=i.floating[k]||a.floating[m]);const M=x/2-w/2,T=N/2-p[m]/2-1,P=hs(u[y],T),z=hs(u[v],T),F=P,O=N-p[m]-z,C=N/2-p[m]/2+M,E=lc(F,C,O),W=!l.arrow&&mn(s)!=null&&C!==E&&a.reference[m]/2-(C<F?P:z)-p[m]/2<0,U=W?C<F?C-F:C-O:0;return{[g]:h[g]+U,data:{[g]:E,centerOffset:C-E-U,...W&&{alignmentOffset:U}},reset:W}}});function j2(t,e,n){return(t?[...n.filter(s=>mn(s)===t),...n.filter(s=>mn(s)!==t)]:n.filter(s=>Fn(s)===s)).filter(s=>t?mn(s)===t||(e?No(s)!==s:!1):!0)}const I2=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,r,s;const{rects:a,middlewareData:o,placement:i,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:h=hh,autoAlignment:g=!0,...m}=ms(t,e),p=u!==void 0||h===hh?j2(u||null,g,h):h,b=await uc(e,m),y=((n=o.autoPlacement)==null?void 0:n.index)||0,v=p[y];if(v==null)return{};const k=mh(v,a,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(i!==v)return{reset:{placement:p[0]}};const x=[b[Fn(v)],b[k[0]],b[k[1]]],w=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:x}],S=p[y+1];if(S)return{data:{index:y+1,overflows:w},reset:{placement:S}};const N=w.map(P=>{const z=mn(P.placement);return[P.placement,z&&d?P.overflows.slice(0,2).reduce((F,O)=>F+O,0):P.overflows[0],P.overflows]}).sort((P,z)=>P[1]-z[1]),T=((s=N.filter(P=>P[2].slice(0,mn(P[0])?2:3).every(z=>z<=0))[0])==null?void 0:s[0])||N[0][0];return T!==i?{data:{index:y+1,overflows:w},reset:{placement:T}}:{}}}},A2=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:a,rects:o,initialPlacement:i,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...b}=ms(t,e);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Fn(s),v=Fn(i)===i,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=h||(v||!p?[jo(i)]:D2(i));!h&&m!=="none"&&x.push(...E2(i,p,m,k));const w=[i,...x],S=await uc(e,b),N=[];let M=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&N.push(S[y]),u){const F=mh(s,o,k);N.push(S[F[0]],S[F[1]])}if(M=[...M,{placement:s,overflows:N}],!N.every(F=>F<=0)){var T,P;const F=(((T=a.flip)==null?void 0:T.index)||0)+1,O=w[F];if(O)return{data:{index:F,overflows:M},reset:{placement:O}};let C=(P=M.filter(E=>E.overflows[0]<=0).sort((E,W)=>E.overflows[1]-W.overflows[1])[0])==null?void 0:P.placement;if(!C)switch(g){case"bestFit":{var z;const E=(z=M.map(W=>[W.placement,W.overflows.filter(U=>U>0).reduce((U,K)=>U+K,0)]).sort((W,U)=>W[1]-U[1])[0])==null?void 0:z[0];E&&(C=E);break}case"initialPlacement":C=i;break}if(s!==C)return{reset:{placement:C}}}return{}}}};async function R2(t,e){const{placement:n,platform:r,elements:s}=t,a=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Fn(n),i=mn(n),l=To(n)==="y",c=["left","top"].includes(o)?-1:1,d=a&&l?-1:1,u=ms(e,t);let{mainAxis:h,crossAxis:g,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return i&&typeof m=="number"&&(g=i==="end"?m*-1:m),l?{x:g*d,y:h*c}:{x:h*c,y:g*d}}const L2=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:a,placement:o,middlewareData:i}=e,l=await R2(e,t);return o===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:a+l.y,data:{...l,placement:o}}}}},F2=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:a=!0,crossAxis:o=!1,limiter:i={fn:b=>{let{x:y,y:v}=b;return{x:y,y:v}}},...l}=ms(t,e),c={x:n,y:r},d=await uc(e,l),u=To(Fn(s)),h=gh(u);let g=c[h],m=c[u];if(a){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",v=g+d[b],k=g-d[y];g=lc(v,g,k)}if(o){const b=u==="y"?"top":"left",y=u==="y"?"bottom":"right",v=m+d[b],k=m-d[y];m=lc(v,m,k)}const p=i.fn({...e,[h]:g,[u]:m});return{...p,data:{x:p.x-n,y:p.y-r}}}}};function yh(t){const e=Zt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=ht(t),a=s?t.offsetWidth:n,o=s?t.offsetHeight:r,i=Po(n)!==a||Po(r)!==o;return i&&(n=a,r=o),{width:n,height:r,$:i}}function fc(t){return Pe(t)?t:t.contextElement}function ps(t){const e=fc(t);if(!ht(e))return gn(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:a}=yh(e);let o=(a?Po(n.width):n.width)/r,i=(a?Po(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!i||!Number.isFinite(i))&&(i=1),{x:o,y:i}}const B2=gn(0);function wh(t){const e=Mt(t);return!ec()||!e.visualViewport?B2:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function W2(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Mt(t)?!1:e}function Pr(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),a=fc(t);let o=gn(1);e&&(r?Pe(r)&&(o=ps(r)):o=ps(t));const i=W2(a,n,r)?wh(a):gn(0);let l=(s.left+i.x)/o.x,c=(s.top+i.y)/o.y,d=s.width/o.x,u=s.height/o.y;if(a){const h=Mt(a),g=r&&Pe(r)?Mt(r):r;let m=h,p=tc(m);for(;p&&r&&g!==m;){const b=ps(p),y=p.getBoundingClientRect(),v=Zt(p),k=y.left+(p.clientLeft+parseFloat(v.paddingLeft))*b.x,x=y.top+(p.clientTop+parseFloat(v.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,u*=b.y,l+=k,c+=x,m=Mt(p),p=tc(m)}}return Io({width:d,height:u,x:l,y:c})}function hc(t,e){const n=Mo(t).scrollLeft;return e?e.left+n:Pr(fn(t)).left+n}function vh(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=r.left+e.scrollLeft-(n?0:hc(t,r)),a=r.top+e.scrollTop;return{x:s,y:a}}function z2(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const a=s==="fixed",o=fn(r),i=e?Do(e.floating):!1;if(r===o||i&&a)return n;let l={scrollLeft:0,scrollTop:0},c=gn(1);const d=gn(0),u=ht(r);if((u||!u&&!a)&&((Mr(r)!=="body"||ca(o))&&(l=Mo(r)),ht(r))){const g=Pr(r);c=ps(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const h=o&&!u&&!a?vh(o,l,!0):gn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}}function H2(t){return Array.from(t.getClientRects())}function Y2(t){const e=fn(t),n=Mo(t),r=t.ownerDocument.body,s=Er(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=Er(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+hc(t);const i=-n.scrollTop;return Zt(r).direction==="rtl"&&(o+=Er(e.clientWidth,r.clientWidth)-s),{width:s,height:a,x:o,y:i}}function V2(t,e){const n=Mt(t),r=fn(t),s=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,i=0,l=0;if(s){a=s.width,o=s.height;const c=ec();(!c||c&&e==="fixed")&&(i=s.offsetLeft,l=s.offsetTop)}return{width:a,height:o,x:i,y:l}}function U2(t,e){const n=Pr(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,a=ht(t)?ps(t):gn(1),o=t.clientWidth*a.x,i=t.clientHeight*a.y,l=s*a.x,c=r*a.y;return{width:o,height:i,x:l,y:c}}function xh(t,e,n){let r;if(e==="viewport")r=V2(t,n);else if(e==="document")r=Y2(fn(t));else if(Pe(e))r=U2(e,n);else{const s=wh(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Io(r)}function kh(t,e){const n=Ln(t);return n===e||!Pe(n)||ar(n)?!1:Zt(n).position==="fixed"||kh(n,e)}function X2(t,e){const n=e.get(t);if(n)return n;let r=or(t,[],!1).filter(i=>Pe(i)&&Mr(i)!=="body"),s=null;const a=Zt(t).position==="fixed";let o=a?Ln(t):t;for(;Pe(o)&&!ar(o);){const i=Zt(o),l=$l(o);!l&&i.position==="fixed"&&(s=null),(a?!l&&!s:!l&&i.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||ca(o)&&!l&&kh(t,o))?r=r.filter(d=>d!==o):s=i,o=Ln(o)}return e.set(t,r),r}function K2(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?Do(e)?[]:X2(e,this._c):[].concat(n),r],i=o[0],l=o.reduce((c,d)=>{const u=xh(e,d,s);return c.top=Er(u.top,c.top),c.right=hs(u.right,c.right),c.bottom=hs(u.bottom,c.bottom),c.left=Er(u.left,c.left),c},xh(e,i,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function G2(t){const{width:e,height:n}=yh(t);return{width:e,height:n}}function Q2(t,e,n){const r=ht(e),s=fn(e),a=n==="fixed",o=Pr(t,!0,a,e);let i={scrollLeft:0,scrollTop:0};const l=gn(0);if(r||!r&&!a)if((Mr(e)!=="body"||ca(s))&&(i=Mo(e)),r){const h=Pr(e,!0,a,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else s&&(l.x=hc(s));const c=s&&!r&&!a?vh(s,i):gn(0),d=o.left+i.scrollLeft-l.x-c.x,u=o.top+i.scrollTop-l.y-c.y;return{x:d,y:u,width:o.width,height:o.height}}function gc(t){return Zt(t).position==="static"}function _h(t,e){if(!ht(t)||Zt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return fn(t)===n&&(n=n.ownerDocument.body),n}function Sh(t,e){const n=Mt(t);if(Do(t))return n;if(!ht(t)){let s=Ln(t);for(;s&&!ar(s);){if(Pe(s)&&!gc(s))return s;s=Ln(s)}return n}let r=_h(t,e);for(;r&&y2(r)&&gc(r);)r=_h(r,e);return r&&ar(r)&&gc(r)&&!$l(r)?n:r||w2(t)||n}const Z2=async function(t){const e=this.getOffsetParent||Sh,n=this.getDimensions,r=await n(t.floating);return{reference:Q2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function J2(t){return Zt(t).direction==="rtl"}const q2={convertOffsetParentRelativeRectToViewportRelativeRect:z2,getDocumentElement:fn,getClippingRect:K2,getOffsetParent:Sh,getElementRects:Z2,getClientRects:H2,getDimensions:G2,getScale:ps,isElement:Pe,isRTL:J2};function Oh(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function $2(t,e){let n=null,r;const s=fn(t);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function o(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const c=t.getBoundingClientRect(),{left:d,top:u,width:h,height:g}=c;if(i||e(),!h||!g)return;const m=gs(u),p=gs(s.clientWidth-(d+h)),b=gs(s.clientHeight-(u+g)),y=gs(d),k={rootMargin:-m+"px "+-p+"px "+-b+"px "+-y+"px",threshold:Er(0,hs(1,l))||1};let x=!0;function w(S){const N=S[0].intersectionRatio;if(N!==l){if(!x)return o();N?o(!1,N):r=setTimeout(()=>{o(!1,1e-7)},1e3)}N===1&&!Oh(c,t.getBoundingClientRect())&&o(),x=!1}try{n=new IntersectionObserver(w,{...k,root:s.ownerDocument})}catch{n=new IntersectionObserver(w,k)}n.observe(t)}return o(!0),a}function Ch(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=fc(t),d=s||a?[...c?or(c):[],...or(e)]:[];d.forEach(y=>{s&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const u=c&&i?$2(c,n):null;let h=-1,g=null;o&&(g=new ResizeObserver(y=>{let[v]=y;v&&v.target===c&&g&&(g.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var k;(k=g)==null||k.observe(e)})),n()}),c&&!l&&g.observe(c),g.observe(e));let m,p=l?Pr(t):null;l&&b();function b(){const y=Pr(t);p&&!Oh(p,y)&&n(),p=y,m=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(v=>{s&&v.removeEventListener("scroll",n),a&&v.removeEventListener("resize",n)}),u==null||u(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(m)}}const e1=L2,t1=I2,n1=F2,r1=A2,Dh=N2,s1=(t,e,n)=>{const r=new Map,s={platform:q2,...n},a={...s.platform,_c:r};return T2(t,e,{...s,platform:a})};var Ao=typeof document<"u"?_.useLayoutEffect:_.useEffect;function Ro(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 n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Ro(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const a=s[r];if(!(a==="_owner"&&t.$$typeof)&&!Ro(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Mh(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Eh(t,e){const n=Mh(t);return Math.round(e*n)/n}function mc(t){const e=H.useRef(t);return Ao(()=>{e.current=t}),e}function a1(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:a,floating:o}={},transform:i=!0,whileElementsMounted:l,open:c}=t,[d,u]=H.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,g]=H.useState(r);Ro(h,r)||g(r);const[m,p]=H.useState(null),[b,y]=H.useState(null),v=H.useCallback(K=>{K!==S.current&&(S.current=K,p(K))},[]),k=H.useCallback(K=>{K!==N.current&&(N.current=K,y(K))},[]),x=a||m,w=o||b,S=H.useRef(null),N=H.useRef(null),M=H.useRef(d),T=l!=null,P=mc(l),z=mc(s),F=mc(c),O=H.useCallback(()=>{if(!S.current||!N.current)return;const K={placement:e,strategy:n,middleware:h};z.current&&(K.platform=z.current),s1(S.current,N.current,K).then(ee=>{const j={...ee,isPositioned:F.current!==!1};C.current&&!Ro(M.current,j)&&(M.current=j,gx.flushSync(()=>{u(j)}))})},[h,e,n,z,F]);Ao(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(K=>({...K,isPositioned:!1})))},[c]);const C=H.useRef(!1);Ao(()=>(C.current=!0,()=>{C.current=!1}),[]),Ao(()=>{if(x&&(S.current=x),w&&(N.current=w),x&&w){if(P.current)return P.current(x,w,O);O()}},[x,w,O,P,T]);const E=H.useMemo(()=>({reference:S,floating:N,setReference:v,setFloating:k}),[v,k]),W=H.useMemo(()=>({reference:x,floating:w}),[x,w]),U=H.useMemo(()=>{const K={position:n,left:0,top:0};if(!W.floating)return K;const ee=Eh(W.floating,d.x),j=Eh(W.floating,d.y);return i?{...K,transform:"translate("+ee+"px, "+j+"px)",...Mh(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ee,top:j}},[n,i,W.floating,d.x,d.y]);return H.useMemo(()=>({...d,update:O,refs:E,elements:W,floatingStyles:U}),[d,O,E,W,U])}const o1=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?Dh({element:r.current,padding:s}).fn(n):{}:r?Dh({element:r,padding:s}).fn(n):{}}}},i1=(t,e)=>({...e1(t),options:[t,e]}),l1=(t,e)=>({...n1(t),options:[t,e]}),c1=(t,e)=>({...r1(t),options:[t,e]}),d1=(t,e)=>({...t1(t),options:[t,e]}),u1=(t,e)=>({...o1(t),options:[t,e]});/*!
5
+ */(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(a=s(a,r(i)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var i in a)e.call(a,i)&&a[i]&&(o=s(o,i));return o}function s(a,o){return o?a?a+" "+o:a+o:a}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(eh);var sr=eh.exports;const $k=qf(sr);var Zl={exports:{}};function th(t,e=100,n={}){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:r}=typeof n=="boolean"?{immediate:n}:n;let s,a,o,i,l;function c(){const u=Date.now()-i;if(u<e&&u>=0)o=setTimeout(c,e-u);else if(o=void 0,!r){const h=s,g=a;s=void 0,a=void 0,l=t.apply(h,g)}}const d=function(...u){if(s&&this!==s)throw new Error("Debounced method called with different contexts.");s=this,a=u,i=Date.now();const h=r&&!o;if(o||(o=setTimeout(c,e)),h){const g=s,m=a;s=void 0,a=void 0,l=t.apply(g,m)}return l};return d.clear=()=>{o&&(clearTimeout(o),o=void 0)},d.flush=()=>{if(!o)return;const u=s,h=a;s=void 0,a=void 0,l=t.apply(u,h),clearTimeout(o),o=void 0},d}Zl.exports.debounce=th,Zl.exports=th;var e2=Zl.exports;const t2=qf(e2);var n2=Object.defineProperty,r2=(t,e,n)=>e in t?n2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ot=(t,e,n)=>(r2(t,typeof e!="symbol"?e+"":e,n),n);const s2=300,a2=0;class o2 extends _.PureComponent{constructor(e){super(e),ot(this,"container"),ot(this,"scrolling"),ot(this,"started"),ot(this,"pressed"),ot(this,"isMobile",!1),ot(this,"internal"),ot(this,"scrollLeft"),ot(this,"scrollTop"),ot(this,"clientX"),ot(this,"clientY"),ot(this,"onEndScroll",()=>{this.scrolling=!1,!this.pressed&&this.started&&this.processEnd()}),ot(this,"onScroll",()=>{const n=this.container.current;(n.scrollLeft!==this.scrollLeft||n.scrollTop!==this.scrollTop)&&(this.scrolling=!0,this.processScroll(),this.onEndScroll())}),ot(this,"onTouchStart",n=>{const{nativeMobileScroll:r}=this.props;if(this.isDraggable(n.target))if(this.internal=!0,r&&this.scrolling)this.pressed=!0;else{const s=n.touches[0];this.processClick(s.clientX,s.clientY),!r&&this.props.stopPropagation&&n.stopPropagation()}}),ot(this,"onTouchEnd",()=>{const{nativeMobileScroll:n}=this.props;this.pressed&&(this.started&&(!this.scrolling||!n)?this.processEnd():this.pressed=!1,this.forceUpdate())}),ot(this,"onTouchMove",n=>{const{nativeMobileScroll:r}=this.props;if(this.pressed&&(!r||!this.isMobile)){const s=n.touches[0];s&&this.processMove(s.clientX,s.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation()}}),ot(this,"onMouseDown",n=>{var r,s;this.isDraggable(n.target)&&this.isScrollable()&&(this.internal=!0,((s=(r=this.props)==null?void 0:r.buttons)==null?void 0:s.indexOf(n.button))!==-1&&(this.processClick(n.clientX,n.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation()))}),ot(this,"onMouseMove",n=>{this.pressed&&(this.processMove(n.clientX,n.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation())}),ot(this,"onMouseUp",n=>{this.pressed&&(this.started?this.processEnd():(this.internal=!1,this.pressed=!1,this.forceUpdate(),this.props.onClick&&this.props.onClick(n)),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation())}),this.container=_.createRef(),this.onEndScroll=t2(this.onEndScroll,s2),this.scrolling=!1,this.started=!1,this.pressed=!1,this.internal=!1,this.getRef=this.getRef.bind(this)}componentDidMount(){const{nativeMobileScroll:e}=this.props,n=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),n.addEventListener("touchstart",this.onTouchStart,{passive:!1}),n.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 n=this.props.ignoreElements;if(n){const r=e.closest(n);return r===null||r.contains(this.getElement())}else return!0}isScrollable(){const e=this.container.current;return e&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)}processClick(e,n){const r=this.container.current;this.scrollLeft=r==null?void 0:r.scrollLeft,this.scrollTop=r==null?void 0:r.scrollTop,this.clientX=e,this.clientY=n,this.pressed=!0}processStart(e=!0){const{onStartScroll:n}=this.props;this.started=!0,e&&document.body.classList.add("cursor-grab"),n&&n({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,n){const{horizontal:r,vertical:s,activationDistance:a,onScroll:o}=this.props,i=this.container.current;this.started?(r&&(i.scrollLeft-=e-this.clientX),s&&(i.scrollTop-=n-this.clientY),o&&o({external:!this.internal}),this.clientX=e,this.clientY=n,this.scrollLeft=i.scrollLeft,this.scrollTop=i.scrollTop):(r&&Math.abs(e-this.clientX)>a||s&&Math.abs(n-this.clientY)>a)&&(this.clientX=e,this.clientY=n,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(n=>{n&&(typeof n=="function"?n(e):n.current=e)})}render(){const{children:e,draggingClassName:n,className:r,style:s,hideScrollbars:a}=this.props;return f.jsx("div",{className:$k(r,this.pressed&&n,{"!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]":a,"[&::-webkit-scrollbar]:[-webkit-appearance:none !important] [&::-webkit-scrollbar]:!hidden [&::-webkit-scrollbar]:!h-0 [&::-webkit-scrollbar]:!w-0 [&::-webkit-scrollbar]:!bg-transparent":a}),style:s,ref:this.getRef,onScroll:this.onScroll,children:e})}}ot(o2,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[a2]});const aa=_.forwardRef(({className:t,color:e="default",theme:n={},...r},s)=>{const a=ne(he().checkbox,n);return f.jsx("input",{ref:s,type:"checkbox",className:Q(a.root.base,a.root.color[e],t),...r})});aa.displayName="Checkbox";const oa=({children:t,className:e,color:n="default",theme:r={},value:s,...a})=>{const o=ne(he().helperText,r);return f.jsx("p",{className:Q(o.root.base,o.root.colors[n],e),...a,children:s??t??""})};oa.displayName="HelperText";const ds=_.forwardRef(({addon:t,className:e,color:n="gray",helperText:r,icon:s,rightIcon:a,shadow:o,sizing:i="md",theme:l={},type:c="text",...d},u)=>{const h=ne(he().textInput,l);return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:Q(h.base,e),children:[t&&f.jsx("span",{className:h.addon,children:t}),f.jsxs("div",{className:h.field.base,children:[s&&f.jsx("div",{className:h.field.icon.base,children:f.jsx(s,{className:h.field.icon.svg})}),a&&f.jsx("div",{"data-testid":"right-icon",className:h.field.rightIcon.base,children:f.jsx(a,{className:h.field.rightIcon.svg})}),f.jsx("input",{className:Q(h.field.input.base,h.field.input.colors[n],h.field.input.sizes[i],h.field.input.withIcon[s?"on":"off"],h.field.input.withRightIcon[a?"on":"off"],h.field.input.withAddon[t?"on":"off"],h.field.input.withShadow[o?"on":"off"]),type:c,...d,ref:u})]})]}),r&&f.jsx(oa,{color:n,children:r})]})});ds.displayName="TextInput";const nh=_.createContext(void 0);function So(){const t=_.useContext(nh);if(!t)throw new Error("useDatePickerContext should be used within the DatePickerContext provider!");return t}var ze=(t=>(t[t.Days=0]="Days",t[t.Months=1]="Months",t[t.Years=2]="Years",t[t.Decades=3]="Decades",t))(ze||{}),rh=(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))(rh||{});const ia=(t,e,n)=>{const r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();if(e&&n){const s=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),a=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();return r>=s&&r<=a}if(e){const s=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();return r>=s}if(n){const s=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();return r<=s}return!0},Oo=(t,e)=>(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t.getTime()===e.getTime()),i2=(t,e,n)=>(ia(t,e,n)||(e&&t<e?t=e:n&&t>n&&(t=n)),t),l2=(t,e)=>{const n=new Date(t.getFullYear(),t.getMonth(),1);let s=n.getDay()-e;return s<0&&(s+=7),Jl(n,-s)},c2=(t,e)=>{const n=[],r=new Date(0);r.setDate(r.getDate()-r.getDay()+e);const s=new Intl.DateTimeFormat(t,{weekday:"short"});for(let a=0;a<7;a++)n.push(s.format(Jl(r,a)));return n},Jl=(t,e)=>{const n=new Date(t);return n.setDate(n.getDate()+e),n},d2=(t,e)=>{const n=new Date(t);return n.setMonth(n.getMonth()+e),n},us=(t,e)=>{const n=new Date(t);return n.setFullYear(n.getFullYear()+e),n},la=(t,e,n)=>{let r={day:"numeric",month:"long",year:"numeric"};return n&&(r=n),new Intl.DateTimeFormat(t,r).format(e)},fs=(t,e)=>{const n=t.getFullYear();return Math.floor(n/e)*e},u2=(t,e)=>{const n=t.getFullYear(),r=e+9;return n>=e&&n<=r},f2=({theme:t={}})=>{const{theme:e,weekStart:n,minDate:r,maxDate:s,viewDate:a,selectedDate:o,changeSelectedDate:i,language:l}=So(),c=ne(e.views.days,t),d=c2(l,n),u=l2(a,n);return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:c.header.base,children:d.map((h,g)=>f.jsx("span",{className:c.header.title,children:h},g))}),f.jsx("div",{className:c.items.base,children:[...Array(42)].map((h,g)=>{const m=Jl(u,g),p=la(l,m,{day:"numeric"}),b=Oo(o,m),y=!ia(m,r,s);return f.jsx("button",{disabled:y,type:"button",className:Q(c.items.item.base,b&&c.items.item.selected,y&&c.items.item.disabled),onClick:()=>{y||i(m,!0)},children:p},g)})})]})},h2=({theme:t={}})=>{const{theme:e,selectedDate:n,viewDate:r,setViewDate:s,setView:a}=So(),o=ne(e.views.decades,t);return f.jsx("div",{className:o.items.base,children:[...Array(12)].map((i,l)=>{const d=fs(r,100)-10+l*10,u=new Date(d,0,1),h=us(u,9),g=u2(r,d),m=!ia(r,u,h);return f.jsx("button",{disabled:m,type:"button",className:Q(o.items.item.base,g&&o.items.item.selected,m&&o.items.item.disabled),onClick:()=>{m||(s(us(r,d-n.getFullYear())),a(ze.Years))},children:d},l)})})},g2=({theme:t={}})=>{const{theme:e,minDate:n,maxDate:r,selectedDate:s,viewDate:a,language:o,setViewDate:i,setView:l}=So(),c=ne(e.views.months,t);return f.jsx("div",{className:c.items.base,children:[...Array(12)].map((d,u)=>{const h=new Date(a.getTime());h.setMonth(u);const g=la(o,h,{month:"short"}),m=Oo(s,h),p=!ia(h,n,r);return f.jsx("button",{disabled:p,type:"button",className:Q(c.items.item.base,m&&c.items.item.selected,p&&c.items.item.disabled),onClick:()=>{p||(i(h),l(ze.Days))},children:g},u)})})},m2=({theme:t={}})=>{const{theme:e,selectedDate:n,minDate:r,maxDate:s,viewDate:a,setViewDate:o,setView:i}=So(),l=ne(e.views.years,t);return f.jsx("div",{className:l.items.base,children:[...Array(12)].map((c,d)=>{const h=fs(a,10)-1+d*1,g=new Date(a.getTime());g.setFullYear(h);const m=Oo(n,g),p=!ia(g,r,s);return f.jsx("button",{disabled:p,type:"button",className:Q(l.items.item.base,m&&l.items.item.selected,p&&l.items.item.disabled),onClick:()=>{p||(o(g),i(ze.Months))},children:h},d)})})},p2=({title:t,open:e,inline:n=!1,autoHide:r=!0,showClearButton:s=!0,labelClearButton:a="Clear",showTodayButton:o=!0,labelTodayButton:i="Today",defaultDate:l=new Date,minDate:c,maxDate:d,language:u="en",weekStart:h=rh.Sunday,className:g,theme:m={},onSelectedDateChanged:p,...b},y)=>{const v=ne(he().datepicker,m);l=i2(l,c,d);const[k,x]=_.useState(e),[w,S]=_.useState(ze.Days),[N,M]=_.useState(l),[T,P]=_.useState(l),z=_.useRef(null),F=_.useRef(null),O=(ee,j)=>{M(ee),p&&p(ee),r&&w===ze.Days&&j==!0&&!n&&x(!1)},C=()=>{O(l,!0),l&&P(l)};_.useImperativeHandle(y,()=>({focus(){var ee;(ee=z.current)==null||ee.focus()},clear(){C()}}));const E=ee=>{switch(ee){case ze.Decades:return f.jsx(h2,{theme:v.views.decades});case ze.Years:return f.jsx(m2,{theme:v.views.years});case ze.Months:return f.jsx(g2,{theme:v.views.months});case ze.Days:default:return f.jsx(f2,{theme:v.views.days})}},W=()=>{switch(w){case ze.Days:return ze.Months;case ze.Months:return ze.Years;case ze.Years:return ze.Decades}return w},U=()=>{switch(w){case ze.Decades:return`${fs(T,100)} - ${fs(T,100)+90}`;case ze.Years:return`${fs(T,10)} - ${fs(T,10)+9}`;case ze.Months:return la(u,T,{year:"numeric"});case ze.Days:default:return la(u,T,{month:"long",year:"numeric"})}},G=(ee,j,V)=>{switch(ee){case ze.Days:return new Date(d2(j,V));case ze.Months:return new Date(us(j,V));case ze.Years:return new Date(us(j,V*10));case ze.Decades:return new Date(us(j,V*100));default:return new Date(us(j,V*10))}};return _.useEffect(()=>{const ee=j=>{var R,A;const V=(R=F==null?void 0:F.current)==null?void 0:R.contains(j.target),L=(A=z==null?void 0:z.current)==null?void 0:A.contains(j.target);!V&&!L&&x(!1)};return document.addEventListener("mousedown",ee),()=>{document.removeEventListener("mousedown",ee)}},[z,F,x]),f.jsx(nh.Provider,{value:{theme:v,language:u,minDate:c,maxDate:d,weekStart:h,isOpen:k,setIsOpen:x,view:w,setView:S,viewDate:T,setViewDate:P,selectedDate:N,setSelectedDate:M,changeSelectedDate:O},children:f.jsxs("div",{className:Q(v.root.base,g),children:[!n&&f.jsx(ds,{theme:v.root.input,icon:Sx,ref:z,onFocus:()=>{Oo(T,N)||P(N),x(!0)},value:N&&la(u,N),readOnly:!0,...b}),(k||n)&&f.jsx("div",{ref:F,className:Q(v.popup.root.base,n&&v.popup.root.inline),children:f.jsxs("div",{className:v.popup.root.inner,children:[f.jsxs("div",{className:v.popup.header.base,children:[t&&f.jsx("div",{className:v.popup.header.title,children:t}),f.jsxs("div",{className:v.popup.header.selectors.base,children:[f.jsx("button",{type:"button",className:Q(v.popup.header.selectors.button.base,v.popup.header.selectors.button.prev),onClick:()=>P(G(w,T,-1)),children:f.jsx(kx,{})}),f.jsx("button",{type:"button",className:Q(v.popup.header.selectors.button.base,v.popup.header.selectors.button.view),onClick:()=>S(W()),children:U()}),f.jsx("button",{type:"button",className:Q(v.popup.header.selectors.button.base,v.popup.header.selectors.button.next),onClick:()=>P(G(w,T,1)),children:f.jsx(_x,{})})]})]}),f.jsx("div",{className:v.popup.view.base,children:E(w)}),(s||o)&&f.jsxs("div",{className:v.popup.footer.base,children:[o&&f.jsx("button",{type:"button",className:Q(v.popup.footer.button.base,v.popup.footer.button.today),onClick:()=>{const ee=new Date;O(ee,!0),P(ee)},children:i}),s&&f.jsx("button",{type:"button",className:Q(v.popup.footer.button.base,v.popup.footer.button.clear),onClick:()=>{O(l,!0),l&&P(l)},children:a})]})]})})]})})},sh=_.forwardRef(p2);sh.displayName="Datepicker";function Co(){return typeof window<"u"}function Mr(t){return ah(t)?(t.nodeName||"").toLowerCase():"#document"}function Mt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function fn(t){var e;return(e=(ah(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ah(t){return Co()?t instanceof Node||t instanceof Mt(t).Node:!1}function Pe(t){return Co()?t instanceof Element||t instanceof Mt(t).Element:!1}function ht(t){return Co()?t instanceof HTMLElement||t instanceof Mt(t).HTMLElement:!1}function ql(t){return!Co()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Mt(t).ShadowRoot}function ca(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=Zt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(s)}function b2(t){return["table","td","th"].includes(Mr(t))}function Do(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function $l(t){const e=ec(),n=Pe(t)?Zt(t):t;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function y2(t){let e=Ln(t);for(;ht(e)&&!ar(e);){if($l(e))return e;if(Do(e))return null;e=Ln(e)}return null}function ec(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ar(t){return["html","body","#document"].includes(Mr(t))}function Zt(t){return Mt(t).getComputedStyle(t)}function Mo(t){return Pe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ln(t){if(Mr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ql(t)&&t.host||fn(t);return ql(e)?e.host:e}function oh(t){const e=Ln(t);return ar(e)?t.ownerDocument?t.ownerDocument.body:t.body:ht(e)&&ca(e)?e:oh(e)}function or(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=oh(t),a=s===((r=t.ownerDocument)==null?void 0:r.body),o=Mt(s);if(a){const i=tc(o);return e.concat(o,o.visualViewport||[],ca(s)?s:[],i&&n?or(i):[])}return e.concat(s,or(s,[],n))}function tc(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function hn(t){let e=t.activeElement;for(;((n=e)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;e=e.shadowRoot.activeElement}return e}function et(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&ql(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function nc(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function ih(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:n,version:r}=e;return n+"/"+r}).join(" "):navigator.userAgent}function lh(t){return t.mozInputSource===0&&t.isTrusted?!0:ac()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function rc(t){return w2()?!1:!ac()&&t.width===0&&t.height===0||ac()&&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 sc(){return/apple/i.test(navigator.vendor)}function ac(){const t=/android/i;return t.test(nc())||t.test(ih())}function ch(){return nc().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function w2(){return ih().includes("jsdom/")}function Eo(t,e){const n=["mouse","pen"];return e||n.push("",void 0),n.includes(t)}function v2(t){return"nativeEvent"in t}function x2(t){return t.matches("html,body")}function _t(t){return(t==null?void 0:t.ownerDocument)||document}function oc(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const n=t;return n.target!=null&&e.contains(n.target)}function ir(t){return"composedPath"in t?t.composedPath()[0]:t.target}const k2="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function ic(t){return ht(t)&&t.matches(k2)}function gt(t){t.preventDefault(),t.stopPropagation()}function dh(t){return t?t.getAttribute("role")==="combobox"&&ic(t):!1}const _2=["top","right","bottom","left"],uh=["start","end"],fh=_2.reduce((t,e)=>t.concat(e,e+"-"+uh[0],e+"-"+uh[1]),[]),hs=Math.min,Er=Math.max,Po=Math.round,gs=Math.floor,gn=t=>({x:t,y:t}),S2={left:"right",right:"left",bottom:"top",top:"bottom"},O2={start:"end",end:"start"};function lc(t,e,n){return Er(t,hs(e,n))}function ms(t,e){return typeof t=="function"?t(e):t}function Fn(t){return t.split("-")[0]}function mn(t){return t.split("-")[1]}function hh(t){return t==="x"?"y":"x"}function cc(t){return t==="y"?"height":"width"}function To(t){return["top","bottom"].includes(Fn(t))?"y":"x"}function dc(t){return hh(To(t))}function gh(t,e,n){n===void 0&&(n=!1);const r=mn(t),s=dc(t),a=cc(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=jo(o)),[o,jo(o)]}function C2(t){const e=jo(t);return[No(t),e,No(e)]}function No(t){return t.replace(/start|end/g,e=>O2[e])}function D2(t,e,n){const r=["left","right"],s=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?s:r:e?r:s;case"left":case"right":return e?a:o;default:return[]}}function M2(t,e,n,r){const s=mn(t);let a=D2(Fn(t),n==="start",r);return s&&(a=a.map(o=>o+"-"+s),e&&(a=a.concat(a.map(No)))),a}function jo(t){return t.replace(/left|right|bottom|top/g,e=>S2[e])}function E2(t){return{top:0,right:0,bottom:0,left:0,...t}}function mh(t){return typeof t!="number"?E2(t):{top:t,right:t,bottom:t,left:t}}function Io(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function ph(t,e,n){let{reference:r,floating:s}=t;const a=To(e),o=dc(e),i=cc(o),l=Fn(e),c=a==="y",d=r.x+r.width/2-s.width/2,u=r.y+r.height/2-s.height/2,h=r[i]/2-s[i]/2;let g;switch(l){case"top":g={x:d,y:r.y-s.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:u};break;case"left":g={x:r.x-s.width,y:u};break;default:g={x:r.x,y:r.y}}switch(mn(e)){case"start":g[o]-=h*(n&&c?-1:1);break;case"end":g[o]+=h*(n&&c?-1:1);break}return g}const P2=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:a=[],platform:o}=n,i=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:u}=ph(c,r,l),h=r,g={},m=0;for(let p=0;p<i.length;p++){const{name:b,fn:y}=i[p],{x:v,y:k,data:x,reset:w}=await y({x:d,y:u,initialPlacement:r,placement:h,strategy:s,middlewareData:g,rects:c,platform:o,elements:{reference:t,floating:e}});d=v??d,u=k??u,g={...g,[b]:{...g[b],...x}},w&&m<=50&&(m++,typeof w=="object"&&(w.placement&&(h=w.placement),w.rects&&(c=w.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):w.rects),{x:d,y:u}=ph(c,h,l)),p=-1)}return{x:d,y:u,placement:h,strategy:s,middlewareData:g}};async function uc(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:a,rects:o,elements:i,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:g=0}=ms(e,t),m=mh(g),b=i[h?u==="floating"?"reference":"floating":u],y=Io(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:l})),v=u==="floating"?{...o.floating,x:r,y:s}:o.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),x=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},w=Io(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:v,offsetParent:k,strategy:l}):v);return{top:(y.top-w.top+m.top)/x.y,bottom:(w.bottom-y.bottom+m.bottom)/x.y,left:(y.left-w.left+m.left)/x.x,right:(w.right-y.right+m.right)/x.x}}const T2=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:a,platform:o,elements:i,middlewareData:l}=e,{element:c,padding:d=0}=ms(t,e)||{};if(c==null)return{};const u=mh(d),h={x:n,y:r},g=dc(s),m=cc(g),p=await o.getDimensions(c),b=g==="y",y=b?"top":"left",v=b?"bottom":"right",k=b?"clientHeight":"clientWidth",x=a.reference[m]+a.reference[g]-h[g]-a.floating[m],w=h[g]-a.reference[g],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let N=S?S[k]:0;(!N||!await(o.isElement==null?void 0:o.isElement(S)))&&(N=i.floating[k]||a.floating[m]);const M=x/2-w/2,T=N/2-p[m]/2-1,P=hs(u[y],T),z=hs(u[v],T),F=P,O=N-p[m]-z,C=N/2-p[m]/2+M,E=lc(F,C,O),W=!l.arrow&&mn(s)!=null&&C!==E&&a.reference[m]/2-(C<F?P:z)-p[m]/2<0,U=W?C<F?C-F:C-O:0;return{[g]:h[g]+U,data:{[g]:E,centerOffset:C-E-U,...W&&{alignmentOffset:U}},reset:W}}});function N2(t,e,n){return(t?[...n.filter(s=>mn(s)===t),...n.filter(s=>mn(s)!==t)]:n.filter(s=>Fn(s)===s)).filter(s=>t?mn(s)===t||(e?No(s)!==s:!1):!0)}const j2=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,r,s;const{rects:a,middlewareData:o,placement:i,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:h=fh,autoAlignment:g=!0,...m}=ms(t,e),p=u!==void 0||h===fh?N2(u||null,g,h):h,b=await uc(e,m),y=((n=o.autoPlacement)==null?void 0:n.index)||0,v=p[y];if(v==null)return{};const k=gh(v,a,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(i!==v)return{reset:{placement:p[0]}};const x=[b[Fn(v)],b[k[0]],b[k[1]]],w=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:x}],S=p[y+1];if(S)return{data:{index:y+1,overflows:w},reset:{placement:S}};const N=w.map(P=>{const z=mn(P.placement);return[P.placement,z&&d?P.overflows.slice(0,2).reduce((F,O)=>F+O,0):P.overflows[0],P.overflows]}).sort((P,z)=>P[1]-z[1]),T=((s=N.filter(P=>P[2].slice(0,mn(P[0])?2:3).every(z=>z<=0))[0])==null?void 0:s[0])||N[0][0];return T!==i?{data:{index:y+1,overflows:w},reset:{placement:T}}:{}}}},I2=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:a,rects:o,initialPlacement:i,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...b}=ms(t,e);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Fn(s),v=Fn(i)===i,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=h||(v||!p?[jo(i)]:C2(i));!h&&m!=="none"&&x.push(...M2(i,p,m,k));const w=[i,...x],S=await uc(e,b),N=[];let M=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&N.push(S[y]),u){const F=gh(s,o,k);N.push(S[F[0]],S[F[1]])}if(M=[...M,{placement:s,overflows:N}],!N.every(F=>F<=0)){var T,P;const F=(((T=a.flip)==null?void 0:T.index)||0)+1,O=w[F];if(O)return{data:{index:F,overflows:M},reset:{placement:O}};let C=(P=M.filter(E=>E.overflows[0]<=0).sort((E,W)=>E.overflows[1]-W.overflows[1])[0])==null?void 0:P.placement;if(!C)switch(g){case"bestFit":{var z;const E=(z=M.map(W=>[W.placement,W.overflows.filter(U=>U>0).reduce((U,G)=>U+G,0)]).sort((W,U)=>W[1]-U[1])[0])==null?void 0:z[0];E&&(C=E);break}case"initialPlacement":C=i;break}if(s!==C)return{reset:{placement:C}}}return{}}}};async function A2(t,e){const{placement:n,platform:r,elements:s}=t,a=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Fn(n),i=mn(n),l=To(n)==="y",c=["left","top"].includes(o)?-1:1,d=a&&l?-1:1,u=ms(e,t);let{mainAxis:h,crossAxis:g,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return i&&typeof m=="number"&&(g=i==="end"?m*-1:m),l?{x:g*d,y:h*c}:{x:h*c,y:g*d}}const R2=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:a,placement:o,middlewareData:i}=e,l=await A2(e,t);return o===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:a+l.y,data:{...l,placement:o}}}}},L2=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:a=!0,crossAxis:o=!1,limiter:i={fn:b=>{let{x:y,y:v}=b;return{x:y,y:v}}},...l}=ms(t,e),c={x:n,y:r},d=await uc(e,l),u=To(Fn(s)),h=hh(u);let g=c[h],m=c[u];if(a){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",v=g+d[b],k=g-d[y];g=lc(v,g,k)}if(o){const b=u==="y"?"top":"left",y=u==="y"?"bottom":"right",v=m+d[b],k=m-d[y];m=lc(v,m,k)}const p=i.fn({...e,[h]:g,[u]:m});return{...p,data:{x:p.x-n,y:p.y-r}}}}};function bh(t){const e=Zt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=ht(t),a=s?t.offsetWidth:n,o=s?t.offsetHeight:r,i=Po(n)!==a||Po(r)!==o;return i&&(n=a,r=o),{width:n,height:r,$:i}}function fc(t){return Pe(t)?t:t.contextElement}function ps(t){const e=fc(t);if(!ht(e))return gn(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:a}=bh(e);let o=(a?Po(n.width):n.width)/r,i=(a?Po(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!i||!Number.isFinite(i))&&(i=1),{x:o,y:i}}const F2=gn(0);function yh(t){const e=Mt(t);return!ec()||!e.visualViewport?F2:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function B2(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Mt(t)?!1:e}function Pr(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),a=fc(t);let o=gn(1);e&&(r?Pe(r)&&(o=ps(r)):o=ps(t));const i=B2(a,n,r)?yh(a):gn(0);let l=(s.left+i.x)/o.x,c=(s.top+i.y)/o.y,d=s.width/o.x,u=s.height/o.y;if(a){const h=Mt(a),g=r&&Pe(r)?Mt(r):r;let m=h,p=tc(m);for(;p&&r&&g!==m;){const b=ps(p),y=p.getBoundingClientRect(),v=Zt(p),k=y.left+(p.clientLeft+parseFloat(v.paddingLeft))*b.x,x=y.top+(p.clientTop+parseFloat(v.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,u*=b.y,l+=k,c+=x,m=Mt(p),p=tc(m)}}return Io({width:d,height:u,x:l,y:c})}function hc(t,e){const n=Mo(t).scrollLeft;return e?e.left+n:Pr(fn(t)).left+n}function wh(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=r.left+e.scrollLeft-(n?0:hc(t,r)),a=r.top+e.scrollTop;return{x:s,y:a}}function W2(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const a=s==="fixed",o=fn(r),i=e?Do(e.floating):!1;if(r===o||i&&a)return n;let l={scrollLeft:0,scrollTop:0},c=gn(1);const d=gn(0),u=ht(r);if((u||!u&&!a)&&((Mr(r)!=="body"||ca(o))&&(l=Mo(r)),ht(r))){const g=Pr(r);c=ps(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const h=o&&!u&&!a?wh(o,l,!0):gn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}}function z2(t){return Array.from(t.getClientRects())}function H2(t){const e=fn(t),n=Mo(t),r=t.ownerDocument.body,s=Er(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=Er(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+hc(t);const i=-n.scrollTop;return Zt(r).direction==="rtl"&&(o+=Er(e.clientWidth,r.clientWidth)-s),{width:s,height:a,x:o,y:i}}function Y2(t,e){const n=Mt(t),r=fn(t),s=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,i=0,l=0;if(s){a=s.width,o=s.height;const c=ec();(!c||c&&e==="fixed")&&(i=s.offsetLeft,l=s.offsetTop)}return{width:a,height:o,x:i,y:l}}function V2(t,e){const n=Pr(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,a=ht(t)?ps(t):gn(1),o=t.clientWidth*a.x,i=t.clientHeight*a.y,l=s*a.x,c=r*a.y;return{width:o,height:i,x:l,y:c}}function vh(t,e,n){let r;if(e==="viewport")r=Y2(t,n);else if(e==="document")r=H2(fn(t));else if(Pe(e))r=V2(e,n);else{const s=yh(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Io(r)}function xh(t,e){const n=Ln(t);return n===e||!Pe(n)||ar(n)?!1:Zt(n).position==="fixed"||xh(n,e)}function U2(t,e){const n=e.get(t);if(n)return n;let r=or(t,[],!1).filter(i=>Pe(i)&&Mr(i)!=="body"),s=null;const a=Zt(t).position==="fixed";let o=a?Ln(t):t;for(;Pe(o)&&!ar(o);){const i=Zt(o),l=$l(o);!l&&i.position==="fixed"&&(s=null),(a?!l&&!s:!l&&i.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||ca(o)&&!l&&xh(t,o))?r=r.filter(d=>d!==o):s=i,o=Ln(o)}return e.set(t,r),r}function X2(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?Do(e)?[]:U2(e,this._c):[].concat(n),r],i=o[0],l=o.reduce((c,d)=>{const u=vh(e,d,s);return c.top=Er(u.top,c.top),c.right=hs(u.right,c.right),c.bottom=hs(u.bottom,c.bottom),c.left=Er(u.left,c.left),c},vh(e,i,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function G2(t){const{width:e,height:n}=bh(t);return{width:e,height:n}}function K2(t,e,n){const r=ht(e),s=fn(e),a=n==="fixed",o=Pr(t,!0,a,e);let i={scrollLeft:0,scrollTop:0};const l=gn(0);if(r||!r&&!a)if((Mr(e)!=="body"||ca(s))&&(i=Mo(e)),r){const h=Pr(e,!0,a,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else s&&(l.x=hc(s));const c=s&&!r&&!a?wh(s,i):gn(0),d=o.left+i.scrollLeft-l.x-c.x,u=o.top+i.scrollTop-l.y-c.y;return{x:d,y:u,width:o.width,height:o.height}}function gc(t){return Zt(t).position==="static"}function kh(t,e){if(!ht(t)||Zt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return fn(t)===n&&(n=n.ownerDocument.body),n}function _h(t,e){const n=Mt(t);if(Do(t))return n;if(!ht(t)){let s=Ln(t);for(;s&&!ar(s);){if(Pe(s)&&!gc(s))return s;s=Ln(s)}return n}let r=kh(t,e);for(;r&&b2(r)&&gc(r);)r=kh(r,e);return r&&ar(r)&&gc(r)&&!$l(r)?n:r||y2(t)||n}const Q2=async function(t){const e=this.getOffsetParent||_h,n=this.getDimensions,r=await n(t.floating);return{reference:K2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Z2(t){return Zt(t).direction==="rtl"}const J2={convertOffsetParentRelativeRectToViewportRelativeRect:W2,getDocumentElement:fn,getClippingRect:X2,getOffsetParent:_h,getElementRects:Q2,getClientRects:z2,getDimensions:G2,getScale:ps,isElement:Pe,isRTL:Z2};function Sh(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function q2(t,e){let n=null,r;const s=fn(t);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function o(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const c=t.getBoundingClientRect(),{left:d,top:u,width:h,height:g}=c;if(i||e(),!h||!g)return;const m=gs(u),p=gs(s.clientWidth-(d+h)),b=gs(s.clientHeight-(u+g)),y=gs(d),k={rootMargin:-m+"px "+-p+"px "+-b+"px "+-y+"px",threshold:Er(0,hs(1,l))||1};let x=!0;function w(S){const N=S[0].intersectionRatio;if(N!==l){if(!x)return o();N?o(!1,N):r=setTimeout(()=>{o(!1,1e-7)},1e3)}N===1&&!Sh(c,t.getBoundingClientRect())&&o(),x=!1}try{n=new IntersectionObserver(w,{...k,root:s.ownerDocument})}catch{n=new IntersectionObserver(w,k)}n.observe(t)}return o(!0),a}function Oh(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=fc(t),d=s||a?[...c?or(c):[],...or(e)]:[];d.forEach(y=>{s&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const u=c&&i?q2(c,n):null;let h=-1,g=null;o&&(g=new ResizeObserver(y=>{let[v]=y;v&&v.target===c&&g&&(g.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var k;(k=g)==null||k.observe(e)})),n()}),c&&!l&&g.observe(c),g.observe(e));let m,p=l?Pr(t):null;l&&b();function b(){const y=Pr(t);p&&!Sh(p,y)&&n(),p=y,m=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(v=>{s&&v.removeEventListener("scroll",n),a&&v.removeEventListener("resize",n)}),u==null||u(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(m)}}const $2=R2,e1=j2,t1=L2,n1=I2,Ch=T2,r1=(t,e,n)=>{const r=new Map,s={platform:J2,...n},a={...s.platform,_c:r};return P2(t,e,{...s,platform:a})};var Ao=typeof document<"u"?_.useLayoutEffect:_.useEffect;function Ro(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 n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Ro(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const a=s[r];if(!(a==="_owner"&&t.$$typeof)&&!Ro(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Dh(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Mh(t,e){const n=Dh(t);return Math.round(e*n)/n}function mc(t){const e=H.useRef(t);return Ao(()=>{e.current=t}),e}function s1(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:a,floating:o}={},transform:i=!0,whileElementsMounted:l,open:c}=t,[d,u]=H.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,g]=H.useState(r);Ro(h,r)||g(r);const[m,p]=H.useState(null),[b,y]=H.useState(null),v=H.useCallback(G=>{G!==S.current&&(S.current=G,p(G))},[]),k=H.useCallback(G=>{G!==N.current&&(N.current=G,y(G))},[]),x=a||m,w=o||b,S=H.useRef(null),N=H.useRef(null),M=H.useRef(d),T=l!=null,P=mc(l),z=mc(s),F=mc(c),O=H.useCallback(()=>{if(!S.current||!N.current)return;const G={placement:e,strategy:n,middleware:h};z.current&&(G.platform=z.current),r1(S.current,N.current,G).then(ee=>{const j={...ee,isPositioned:F.current!==!1};C.current&&!Ro(M.current,j)&&(M.current=j,hx.flushSync(()=>{u(j)}))})},[h,e,n,z,F]);Ao(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(G=>({...G,isPositioned:!1})))},[c]);const C=H.useRef(!1);Ao(()=>(C.current=!0,()=>{C.current=!1}),[]),Ao(()=>{if(x&&(S.current=x),w&&(N.current=w),x&&w){if(P.current)return P.current(x,w,O);O()}},[x,w,O,P,T]);const E=H.useMemo(()=>({reference:S,floating:N,setReference:v,setFloating:k}),[v,k]),W=H.useMemo(()=>({reference:x,floating:w}),[x,w]),U=H.useMemo(()=>{const G={position:n,left:0,top:0};if(!W.floating)return G;const ee=Mh(W.floating,d.x),j=Mh(W.floating,d.y);return i?{...G,transform:"translate("+ee+"px, "+j+"px)",...Dh(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ee,top:j}},[n,i,W.floating,d.x,d.y]);return H.useMemo(()=>({...d,update:O,refs:E,elements:W,floatingStyles:U}),[d,O,E,W,U])}const a1=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?Ch({element:r.current,padding:s}).fn(n):{}:r?Ch({element:r,padding:s}).fn(n):{}}}},o1=(t,e)=>({...$2(t),options:[t,e]}),i1=(t,e)=>({...t1(t),options:[t,e]}),l1=(t,e)=>({...n1(t),options:[t,e]}),c1=(t,e)=>({...e1(t),options:[t,e]}),d1=(t,e)=>({...a1(t),options:[t,e]});/*!
6
6
  * tabbable 6.2.0
7
7
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
8
- */var f1=["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])"],Lo=f1.join(","),Ph=typeof Element>"u",bs=Ph?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Fo=!Ph&&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},Bo=function t(e,n){var r;n===void 0&&(n=!0);var s=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),a=s===""||s==="true",o=a||n&&e&&t(e.parentNode);return o},h1=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},g1=function(e,n,r){if(Bo(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(Lo));return n&&bs.call(e,Lo)&&s.unshift(e),s=s.filter(r),s},m1=function t(e,n,r){for(var s=[],a=Array.from(e);a.length;){var o=a.shift();if(!Bo(o,!1))if(o.tagName==="SLOT"){var i=o.assignedElements(),l=i.length?i:o.children,c=t(l,!0,r);r.flatten?s.push.apply(s,c):s.push({scopeParent:o,candidates:c})}else{var d=bs.call(o,Lo);d&&r.filter(o)&&(n||!e.includes(o))&&s.push(o);var u=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),h=!Bo(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(u&&h){var g=t(u===!0?o.children:u.children,!0,r);r.flatten?s.push.apply(s,g):s.push({scopeParent:o,candidates:g})}else a.unshift.apply(a,o.children)}}return s},Th=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Nh=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||h1(e))&&!Th(e)?0:e.tabIndex},p1=function(e,n){var r=Nh(e);return r<0&&n&&!Th(e)?0:r},b1=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},jh=function(e){return e.tagName==="INPUT"},y1=function(e){return jh(e)&&e.type==="hidden"},w1=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},v1=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},x1=function(e){if(!e.name)return!0;var n=e.form||Fo(e),r=function(i){return n.querySelectorAll('input[type="radio"][name="'+i+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=r(window.CSS.escape(e.name));else try{s=r(e.name)}catch(o){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",o.message),!1}var a=v1(s,e.form);return!a||a===e},k1=function(e){return jh(e)&&e.type==="radio"},_1=function(e){return k1(e)&&!x1(e)},S1=function(e){var n,r=e&&Fo(e),s=(n=r)===null||n===void 0?void 0:n.host,a=!1;if(r&&r!==e){var o,i,l;for(a=!!((o=s)!==null&&o!==void 0&&(i=o.ownerDocument)!==null&&i!==void 0&&i.contains(s)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!a&&s;){var c,d,u;r=Fo(s),s=(c=r)===null||c===void 0?void 0:c.host,a=!!((d=s)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(s))}}return a},Ih=function(e){var n=e.getBoundingClientRect(),r=n.width,s=n.height;return r===0&&s===0},O1=function(e,n){var r=n.displayCheck,s=n.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var a=bs.call(e,"details>summary:first-of-type"),o=a?e.parentElement:e;if(bs.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof s=="function"){for(var i=e;e;){var l=e.parentElement,c=Fo(e);if(l&&!l.shadowRoot&&s(l)===!0)return Ih(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=i}if(S1(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Ih(e);return!1},C1=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var s=n.children.item(r);if(s.tagName==="LEGEND")return bs.call(n,"fieldset[disabled] *")?!0:!s.contains(e)}return!0}n=n.parentElement}return!1},D1=function(e,n){return!(n.disabled||Bo(n)||y1(n)||O1(n,e)||w1(n)||C1(n))},pc=function(e,n){return!(_1(n)||Nh(n)<0||!D1(e,n))},M1=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},E1=function t(e){var n=[],r=[];return e.forEach(function(s,a){var o=!!s.scopeParent,i=o?s.scopeParent:s,l=p1(i,o),c=o?t(s.candidates):i;l===0?o?n.push.apply(n,c):n.push(i):r.push({documentOrder:a,tabIndex:l,item:s,isScope:o,content:c})}),r.sort(b1).reduce(function(s,a){return a.isScope?s.push.apply(s,a.content):s.push(a.content),s},[]).concat(n)},Wo=function(e,n){n=n||{};var r;return n.getShadowRoot?r=m1([e],n.includeContainer,{filter:pc.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:M1}):r=g1(e,n.includeContainer,pc.bind(null,n)),E1(r)},P1=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return bs.call(e,Lo)===!1?!1:pc(n,e)};function Ah(t){return H.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})},t)}const T1=H.useInsertionEffect||(t=>t());function pn(t){const e=H.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return T1(()=>{e.current=t}),H.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return e.current==null?void 0:e.current(...r)},[])}const bc="ArrowUp",da="ArrowDown",ys="ArrowLeft",ws="ArrowRight";function zo(t,e,n){return Math.floor(t/e)!==n}function ua(t,e){return e<0||e>=t.current.length}function yc(t,e){return yt(t,{disabledIndices:e})}function Rh(t,e){return yt(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function yt(t,e){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:s,amount:a=1}=e===void 0?{}:e;const o=t.current,i=s?c=>s.includes(c):c=>{const d=o[c];return d==null||d.hasAttribute("disabled")||d.getAttribute("aria-disabled")==="true"};let l=n;do l+=r?-a:a;while(l>=0&&l<=o.length-1&&i(l));return l}function N1(t,e){let{event:n,orientation:r,loop:s,cols:a,disabledIndices:o,minIndex:i,maxIndex:l,prevIndex:c,stopEvent:d=!1}=e,u=c;if(n.key===bc){if(d&&gt(n),c===-1)u=l;else if(u=yt(t,{startingIndex:u,amount:a,decrement:!0,disabledIndices:o}),s&&(c-a<i||u<0)){const h=c%a,g=l%a,m=l-(g-h);g===h?u=l:u=g>h?m:m-a}ua(t,u)&&(u=c)}if(n.key===da&&(d&&gt(n),c===-1?u=i:(u=yt(t,{startingIndex:c,amount:a,disabledIndices:o}),s&&c+a>l&&(u=yt(t,{startingIndex:c%a-a,amount:a,disabledIndices:o}))),ua(t,u)&&(u=c)),r==="both"){const h=gs(c/a);n.key===ws&&(d&&gt(n),c%a!==a-1?(u=yt(t,{startingIndex:c,disabledIndices:o}),s&&zo(u,a,h)&&(u=yt(t,{startingIndex:c-c%a-1,disabledIndices:o}))):s&&(u=yt(t,{startingIndex:c-c%a-1,disabledIndices:o})),zo(u,a,h)&&(u=c)),n.key===ys&&(d&&gt(n),c%a!==0?(u=yt(t,{startingIndex:c,disabledIndices:o,decrement:!0}),s&&zo(u,a,h)&&(u=yt(t,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:o}))):s&&(u=yt(t,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:o})),zo(u,a,h)&&(u=c));const g=gs(l/a)===h;ua(t,u)&&(s&&g?u=n.key===ys?l:yt(t,{startingIndex:c-c%a-1,disabledIndices:o}):u=c)}return u}function j1(t,e,n){const r=[];let s=0;return t.forEach((a,o)=>{let{width:i,height:l}=a;if(i>e&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+o+" is greater than grid columns");let c=!1;for(n&&(s=0);!c;){const d=[];for(let u=0;u<i;u++)for(let h=0;h<l;h++)d.push(s+u+h*e);s%e+i<=e&&d.every(u=>r[u]==null)?(d.forEach(u=>{r[u]=o}),c=!0):s++}}),[...r]}function I1(t,e,n,r,s){if(t===-1)return-1;const a=n.indexOf(t);switch(s){case"tl":return a;case"tr":return a+e[t].width-1;case"bl":return a+(e[t].height-1)*r;case"br":return n.lastIndexOf(t)}}function A1(t,e){return e.flatMap((n,r)=>t.includes(n)?[r]:[])}let Lh=0;function Bn(t,e){e===void 0&&(e={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:s=!1}=e;r&&cancelAnimationFrame(Lh);const a=()=>t==null?void 0:t.focus({preventScroll:n});s?a():Lh=requestAnimationFrame(a)}var Ie=typeof document<"u"?_.useLayoutEffect:_.useEffect;function R1(t,e){const n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function L1(t,e){if(t.size!==e.size)return!1;for(const[n,r]of t.entries())if(r!==e.get(n))return!1;return!0}const Fh=H.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function F1(t){let{children:e,elementsRef:n,labelsRef:r}=t;const[s,a]=H.useState(()=>new Map),o=H.useCallback(l=>{a(c=>new Map(c).set(l,null))},[]),i=H.useCallback(l=>{a(c=>{const d=new Map(c);return d.delete(l),d})},[]);return Ie(()=>{const l=new Map(s);Array.from(l.keys()).sort(R1).forEach((d,u)=>{l.set(d,u)}),L1(s,l)||a(l)},[s]),H.createElement(Fh.Provider,{value:H.useMemo(()=>({register:o,unregister:i,map:s,elementsRef:n,labelsRef:r}),[o,i,s,n,r])},e)}function B1(t){let{label:e}=t===void 0?{}:t;const[n,r]=H.useState(null),s=H.useRef(null),{register:a,unregister:o,map:i,elementsRef:l,labelsRef:c}=H.useContext(Fh),d=H.useCallback(u=>{if(s.current=u,n!==null&&(l.current[n]=u,c)){var h;const g=e!==void 0;c.current[n]=g?e:(h=u==null?void 0:u.textContent)!=null?h:null}},[n,l,c,e]);return Ie(()=>{const u=s.current;if(u)return a(u),()=>{o(u)}},[a,o]),Ie(()=>{const u=s.current?i.get(s.current):null;u!=null&&r(u)},[i]),H.useMemo(()=>({ref:d,index:n??-1}),[n,d])}function fa(){return fa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},fa.apply(this,arguments)}let wc=!1,W1=0;const Bh=()=>"floating-ui-"+W1++;function z1(){const[t,e]=H.useState(()=>wc?Bh():void 0);return Ie(()=>{t==null&&e(Bh())},[]),H.useEffect(()=>{wc||(wc=!0)},[]),t}const Ho=H.useId||z1;function H1(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(s=>s(n))},on(e,n){t.set(e,[...t.get(e)||[],n])},off(e,n){var r;t.set(e,((r=t.get(e))==null?void 0:r.filter(s=>s!==n))||[])}}}const Y1=H.createContext(null),V1=H.createContext(null),Yo=()=>{var t;return((t=H.useContext(Y1))==null?void 0:t.id)||null},ha=()=>H.useContext(V1);function Tr(t){return"data-floating-ui-"+t}function bn(t){const e=_.useRef(t);return Ie(()=>{e.current=t}),e}const Wh=Tr("safe-polygon");function vc(t,e,n){return n&&!Eo(n)?0:typeof t=="number"?t:t==null?void 0:t[e]}function U1(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:s,events:a,elements:{domReference:o,floating:i},refs:l}=t,{enabled:c=!0,delay:d=0,handleClose:u=null,mouseOnly:h=!1,restMs:g=0,move:m=!0}=e,p=ha(),b=Yo(),y=bn(u),v=bn(d),k=H.useRef(),x=H.useRef(),w=H.useRef(),S=H.useRef(),N=H.useRef(!0),M=H.useRef(!1),T=H.useRef(()=>{}),P=H.useCallback(()=>{var C;const E=(C=s.current.openEvent)==null?void 0:C.type;return(E==null?void 0:E.includes("mouse"))&&E!=="mousedown"},[s]);H.useEffect(()=>{if(!c)return;function C(E){let{open:W}=E;W||(clearTimeout(x.current),clearTimeout(S.current),N.current=!0)}return a.on("openchange",C),()=>{a.off("openchange",C)}},[c,a]),H.useEffect(()=>{if(!c||!y.current||!n)return;function C(W){P()&&r(!1,W,"hover")}const E=_t(i).documentElement;return E.addEventListener("mouseleave",C),()=>{E.removeEventListener("mouseleave",C)}},[i,n,r,c,y,P]);const z=H.useCallback(function(C,E,W){E===void 0&&(E=!0),W===void 0&&(W="hover");const U=vc(v.current,"close",k.current);U&&!w.current?(clearTimeout(x.current),x.current=setTimeout(()=>r(!1,C,W),U)):E&&(clearTimeout(x.current),r(!1,C,W))},[v,r]),F=H.useCallback(()=>{T.current(),w.current=void 0},[]),O=H.useCallback(()=>{if(M.current){const C=_t(l.floating.current).body;C.style.pointerEvents="",C.removeAttribute(Wh),M.current=!1}},[l]);return H.useEffect(()=>{if(!c)return;function C(){return s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1}function E(K){if(clearTimeout(x.current),N.current=!1,h&&!Eo(k.current)||g>0&&vc(v.current,"open")===0)return;const ee=vc(v.current,"open",k.current);ee?x.current=setTimeout(()=>{r(!0,K,"hover")},ee):r(!0,K,"hover")}function W(K){if(C())return;T.current();const ee=_t(i);if(clearTimeout(S.current),y.current){n||clearTimeout(x.current),w.current=y.current({...t,tree:p,x:K.clientX,y:K.clientY,onClose(){O(),F(),z(K,!0,"safe-polygon")}});const V=w.current;ee.addEventListener("mousemove",V),T.current=()=>{ee.removeEventListener("mousemove",V)};return}(k.current==="touch"?!et(i,K.relatedTarget):!0)&&z(K)}function U(K){C()||y.current==null||y.current({...t,tree:p,x:K.clientX,y:K.clientY,onClose(){O(),F(),z(K)}})(K)}if(Pe(o)){const K=o;return n&&K.addEventListener("mouseleave",U),i==null||i.addEventListener("mouseleave",U),m&&K.addEventListener("mousemove",E,{once:!0}),K.addEventListener("mouseenter",E),K.addEventListener("mouseleave",W),()=>{n&&K.removeEventListener("mouseleave",U),i==null||i.removeEventListener("mouseleave",U),m&&K.removeEventListener("mousemove",E),K.removeEventListener("mouseenter",E),K.removeEventListener("mouseleave",W)}}},[o,i,c,t,h,g,m,z,F,O,r,n,p,v,y,s]),Ie(()=>{var C;if(c&&n&&(C=y.current)!=null&&C.__options.blockPointerEvents&&P()){const W=_t(i).body;if(W.setAttribute(Wh,""),W.style.pointerEvents="none",M.current=!0,Pe(o)&&i){var E;const U=o,K=p==null||(E=p.nodesRef.current.find(ee=>ee.id===b))==null||(E=E.context)==null?void 0:E.elements.floating;return K&&(K.style.pointerEvents=""),U.style.pointerEvents="auto",i.style.pointerEvents="auto",()=>{U.style.pointerEvents="",i.style.pointerEvents=""}}}},[c,n,b,i,o,p,y,P]),Ie(()=>{n||(k.current=void 0,F(),O())},[n,F,O]),H.useEffect(()=>()=>{F(),clearTimeout(x.current),clearTimeout(S.current),O()},[c,o,F,O]),H.useMemo(()=>{if(!c)return{};function C(E){k.current=E.pointerType}return{reference:{onPointerDown:C,onPointerEnter:C,onMouseMove(E){n||g===0||(clearTimeout(S.current),S.current=setTimeout(()=>{N.current||r(!0,E.nativeEvent,"hover")},g))}},floating:{onMouseEnter(){clearTimeout(x.current)},onMouseLeave(E){z(E.nativeEvent,!1)}}}},[c,g,n,r,z])}function X1(t,e){var n;let r=[],s=(n=t.find(a=>a.id===e))==null?void 0:n.parentId;for(;s;){const a=t.find(o=>o.id===s);s=a==null?void 0:a.parentId,a&&(r=r.concat(a))}return r}function Nr(t,e){let n=t.filter(s=>{var a;return s.parentId===e&&((a=s.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=t.filter(s=>{var a;return(a=r)==null?void 0:a.some(o=>{var i;return s.parentId===o.id&&((i=s.context)==null?void 0:i.open)})}),n=n.concat(r);return n}function K1(t,e){let n,r=-1;function s(a,o){o>r&&(n=a,r=o),Nr(t,a).forEach(l=>{s(l.id,o+1)})}return s(e,0),t.find(a=>a.id===n)}let vs=new WeakMap,Vo=new WeakSet,Uo={},xc=0;const G1=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,zh=t=>t&&(t.host||zh(t.parentNode)),Q1=(t,e)=>e.map(n=>{if(t.contains(n))return n;const r=zh(n);return t.contains(r)?r:null}).filter(n=>n!=null);function Z1(t,e,n,r){const s="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,o=Q1(e,t),i=new Set,l=new Set(o),c=[];Uo[s]||(Uo[s]=new WeakMap);const d=Uo[s];o.forEach(u),h(e),i.clear();function u(g){!g||i.has(g)||(i.add(g),g.parentNode&&u(g.parentNode))}function h(g){!g||l.has(g)||Array.prototype.forEach.call(g.children,m=>{if(i.has(m))h(m);else{const p=a?m.getAttribute(a):null,b=p!==null&&p!=="false",y=(vs.get(m)||0)+1,v=(d.get(m)||0)+1;vs.set(m,y),d.set(m,v),c.push(m),y===1&&b&&Vo.add(m),v===1&&m.setAttribute(s,""),!b&&a&&m.setAttribute(a,"true")}})}return xc++,()=>{c.forEach(g=>{const m=(vs.get(g)||0)-1,p=(d.get(g)||0)-1;vs.set(g,m),d.set(g,p),m||(!Vo.has(g)&&a&&g.removeAttribute(a),Vo.delete(g)),p||g.removeAttribute(s)}),xc--,xc||(vs=new WeakMap,vs=new WeakMap,Vo=new WeakSet,Uo={})}}function Hh(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=_t(t[0]).body;return Z1(t.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,e,n)}const ga=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Yh(t,e){const n=Wo(t,ga());e==="prev"&&n.reverse();const r=n.indexOf(hn(_t(t)));return n.slice(r+1)[0]}function Vh(){return Yh(document.body,"next")}function Uh(){return Yh(document.body,"prev")}function ma(t,e){const n=e||t.currentTarget,r=t.relatedTarget;return!r||!et(n,r)}function J1(t){Wo(t,ga()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function q1(t){t.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const kc={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 $1;function Xh(t){t.key==="Tab"&&(t.target,clearTimeout($1))}const Xo=H.forwardRef(function(e,n){const[r,s]=H.useState();Ie(()=>(sc()&&s("button"),document.addEventListener("keydown",Xh),()=>{document.removeEventListener("keydown",Xh)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Tr("focus-guard")]:"",style:kc};return H.createElement("span",fa({},e,a))}),Kh=H.createContext(null),Gh=Tr("portal");function e_(t){let{id:e,root:n}=t===void 0?{}:t;const[r,s]=H.useState(null),a=Ho(),o=Qh(),i=H.useRef(null);return Ie(()=>()=>{r==null||r.remove(),queueMicrotask(()=>{i.current=null})},[r]),Ie(()=>{if(i.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=a,c.setAttribute(Gh,""),l.appendChild(c),i.current=c,s(c)},[e,a]),Ie(()=>{if(i.current)return;let l=n||(o==null?void 0:o.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=a,d.setAttribute(Gh,""),l=c||l,l.appendChild(d),i.current=d,s(d)},[e,n,a,o]),r}function t_(t){let{children:e,id:n,root:r=null,preserveTabOrder:s=!0}=t;const a=e_({id:n,root:r}),[o,i]=H.useState(null),l=H.useRef(null),c=H.useRef(null),d=H.useRef(null),u=H.useRef(null),h=!!o&&!o.modal&&o.open&&s&&!!(r||a);return H.useEffect(()=>{if(!a||!s||o!=null&&o.modal)return;function g(m){a&&ma(m)&&(m.type==="focusin"?q1:J1)(a)}return a.addEventListener("focusin",g,!0),a.addEventListener("focusout",g,!0),()=>{a.removeEventListener("focusin",g,!0),a.removeEventListener("focusout",g,!0)}},[a,s,o==null?void 0:o.modal]),H.createElement(Kh.Provider,{value:H.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:a,setFocusManagerState:i}),[s,a])},h&&a&&H.createElement(Xo,{"data-type":"outside",ref:l,onFocus:g=>{if(ma(g,a)){var m;(m=d.current)==null||m.focus()}else{const p=Uh()||(o==null?void 0:o.refs.domReference.current);p==null||p.focus()}}}),h&&a&&H.createElement("span",{"aria-owns":a.id,style:kc}),a&&bf.createPortal(e,a),h&&a&&H.createElement(Xo,{"data-type":"outside",ref:c,onFocus:g=>{if(ma(g,a)){var m;(m=u.current)==null||m.focus()}else{const p=Vh()||(o==null?void 0:o.refs.domReference.current);p==null||p.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,g.nativeEvent))}}}))}const Qh=()=>H.useContext(Kh),n_=20;let jr=[];function _c(t){jr=jr.filter(n=>n.isConnected);let e=t;if(!(!e||Mr(e)==="body")){if(!P1(e,ga())){const n=Wo(e,ga())[0];if(!n)return;e=n}jr.push(e),jr.length>n_&&(jr=jr.slice(-20))}}function Zh(){return jr.slice().reverse().find(t=>t.isConnected)}const r_=H.forwardRef(function(e,n){return H.createElement("button",fa({},e,{type:"button",ref:n,tabIndex:-1,style:kc}))});function Jh(t){const{context:e,children:n,disabled:r=!1,order:s=["content"],guards:a=!0,initialFocus:o=0,returnFocus:i=!0,modal:l=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=t,{open:u,refs:h,nodeId:g,onOpenChange:m,events:p,dataRef:b,elements:{domReference:y,floating:v}}=e,k=typeof o=="number"&&o<0,x=uh(y)&&k,w=G1()?a:!0,S=bn(s),N=bn(o),M=bn(i),T=ha(),P=Qh(),z=H.useRef(null),F=H.useRef(null),O=H.useRef(!1),C=H.useRef(!1),E=P!=null,W=H.useCallback(function(j){return j===void 0&&(j=v),j?Wo(j,ga()):[]},[v]),U=H.useCallback(j=>{const V=W(j);return S.current.map(L=>y&&L==="reference"?y:v&&L==="floating"?v:V).filter(Boolean).flat()},[y,v,S,W]);H.useEffect(()=>{if(r||!l)return;function j(L){if(L.key==="Tab"){et(v,hn(_t(v)))&&W().length===0&&!x&&gt(L);const R=U(),A=ir(L);S.current[0]==="reference"&&A===y&&(gt(L),L.shiftKey?Bn(R[R.length-1]):Bn(R[1])),S.current[1]==="floating"&&A===v&&L.shiftKey&&(gt(L),Bn(R[0]))}}const V=_t(v);return V.addEventListener("keydown",j),()=>{V.removeEventListener("keydown",j)}},[r,y,v,l,S,x,W,U]),H.useEffect(()=>{if(r||!d)return;function j(){C.current=!0,setTimeout(()=>{C.current=!1})}function V(L){const R=L.relatedTarget;queueMicrotask(()=>{const A=!(et(y,R)||et(v,R)||et(R,v)||et(P==null?void 0:P.portalNode,R)||R!=null&&R.hasAttribute(Tr("focus-guard"))||T&&(Nr(T.nodesRef.current,g).find(D=>{var Y,J;return et((Y=D.context)==null?void 0:Y.elements.floating,R)||et((J=D.context)==null?void 0:J.elements.domReference,R)})||X1(T.nodesRef.current,g).find(D=>{var Y,J;return((Y=D.context)==null?void 0:Y.elements.floating)===R||((J=D.context)==null?void 0:J.elements.domReference)===R})));R&&A&&!C.current&&R!==Zh()&&(O.current=!0,m(!1,L))})}if(v&&ht(y))return y.addEventListener("focusout",V),y.addEventListener("pointerdown",j),!l&&v.addEventListener("focusout",V),()=>{y.removeEventListener("focusout",V),y.removeEventListener("pointerdown",j),!l&&v.removeEventListener("focusout",V)}},[r,y,v,l,g,T,P,m,d]),H.useEffect(()=>{var j;if(r)return;const V=Array.from((P==null||(j=P.portalNode)==null?void 0:j.querySelectorAll("["+Tr("portal")+"]"))||[]);if(v){const L=[v,...V,z.current,F.current,S.current.includes("reference")||x?y:null].filter(A=>A!=null),R=l||x?Hh(L,w,!w):Hh(L);return()=>{R()}}},[r,y,v,l,S,P,x,w]),Ie(()=>{if(r||!v)return;const j=_t(v),V=hn(j);queueMicrotask(()=>{const L=U(v),R=N.current,A=(typeof R=="number"?L[R]:R.current)||v,D=et(v,V);!k&&!D&&u&&Bn(A,{preventScroll:A===v})})},[r,u,v,k,U,N]),Ie(()=>{if(r||!v)return;let j=!1;const V=_t(v),L=hn(V),R=b.current;_c(L);function A(D){let{reason:Y,event:J,nested:G}=D;Y==="escape-key"&&h.domReference.current&&_c(h.domReference.current),Y==="hover"&&J.type==="mouseleave"&&(O.current=!0),Y==="outside-press"&&(G?(O.current=!1,j=!0):O.current=!(ch(J)||rc(J)))}return p.on("openchange",A),()=>{p.off("openchange",A);const D=hn(V),Y=et(v,D)||T&&Nr(T.nodesRef.current,g).some(I=>{var q;return et((q=I.context)==null?void 0:q.elements.floating,D)});(Y||R.openEvent&&["click","mousedown"].includes(R.openEvent.type))&&h.domReference.current&&_c(h.domReference.current);const G=Zh();M.current&&!O.current&&ht(G)&&(!(G!==D&&D!==V.body)||Y)&&Bn(G,{cancelPrevious:!1,preventScroll:j})}},[r,v,M,b,h,p,T,g]),Ie(()=>{if(!(r||!P))return P.setFocusManagerState({modal:l,closeOnFocusOut:d,open:u,onOpenChange:m,refs:h}),()=>{P.setFocusManagerState(null)}},[r,P,l,u,m,h,d]),Ie(()=>{if(r||!v||typeof MutationObserver!="function"||k)return;const j=()=>{const L=v.getAttribute("tabindex");S.current.includes("floating")||hn(_t(v))!==h.domReference.current&&W().length===0?L!=="0"&&v.setAttribute("tabindex","0"):L!=="-1"&&v.setAttribute("tabindex","-1")};j();const V=new MutationObserver(j);return V.observe(v,{childList:!0,subtree:!0,attributes:!0}),()=>{V.disconnect()}},[r,v,h,S,W,k]);function K(j){return r||!c||!l?null:H.createElement(r_,{ref:j==="start"?z:F,onClick:V=>m(!1,V.nativeEvent)},typeof c=="string"?c:"Dismiss")}const ee=!r&&w&&(E||l);return H.createElement(H.Fragment,null,ee&&H.createElement(Xo,{"data-type":"inside",ref:P==null?void 0:P.beforeInsideRef,onFocus:j=>{if(l){const L=U();Bn(s[0]==="reference"?L[0]:L[L.length-1])}else if(P!=null&&P.preserveTabOrder&&P.portalNode)if(O.current=!1,ma(j,P.portalNode)){const L=Vh()||y;L==null||L.focus()}else{var V;(V=P.beforeOutsideRef.current)==null||V.focus()}}}),!x&&K("start"),n,K("end"),ee&&H.createElement(Xo,{"data-type":"inside",ref:P==null?void 0:P.afterInsideRef,onFocus:j=>{if(l)Bn(U()[0]);else if(P!=null&&P.preserveTabOrder&&P.portalNode)if(d&&(O.current=!0),ma(j,P.portalNode)){const L=Uh()||y;L==null||L.focus()}else{var V;(V=P.afterOutsideRef.current)==null||V.focus()}}}))}const Sc=new Set,s_=H.forwardRef(function(e,n){let{lockScroll:r=!1,...s}=e;const a=Ho();return Ie(()=>{if(!r)return;Sc.add(a);const o=/iP(hone|ad|od)|iOS/.test(nc()),i=document.body.style,c=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth,u=i.left?parseFloat(i.left):window.pageXOffset,h=i.top?parseFloat(i.top):window.pageYOffset;if(i.overflow="hidden",d&&(i[c]=d+"px"),o){var g,m;const p=((g=window.visualViewport)==null?void 0:g.offsetLeft)||0,b=((m=window.visualViewport)==null?void 0:m.offsetTop)||0;Object.assign(i,{position:"fixed",top:-(h-Math.floor(b))+"px",left:-(u-Math.floor(p))+"px",right:"0"})}return()=>{Sc.delete(a),Sc.size===0&&(Object.assign(i,{overflow:"",[c]:""}),o&&(Object.assign(i,{position:"",top:"",left:"",right:""}),window.scrollTo(u,h)))}},[a,r]),H.createElement("div",fa({ref:n},s,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...s.style}}))});function qh(t){return ht(t.target)&&t.target.tagName==="BUTTON"}function $h(t){return ic(t)}function eg(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:s,elements:{domReference:a}}=t,{enabled:o=!0,event:i="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=e,u=H.useRef(),h=H.useRef(!1);return H.useMemo(()=>o?{reference:{onPointerDown(g){u.current=g.pointerType},onMouseDown(g){g.button===0&&(Eo(u.current,!0)&&c||i!=="click"&&(n&&l&&(!s.current.openEvent||s.current.openEvent.type==="mousedown")?r(!1,g.nativeEvent,"click"):(g.preventDefault(),r(!0,g.nativeEvent,"click"))))},onClick(g){if(i==="mousedown"&&u.current){u.current=void 0;return}Eo(u.current,!0)&&c||(n&&l&&(!s.current.openEvent||s.current.openEvent.type==="click")?r(!1,g.nativeEvent,"click"):r(!0,g.nativeEvent,"click"))},onKeyDown(g){u.current=void 0,!(g.defaultPrevented||!d||qh(g))&&(g.key===" "&&!$h(a)&&(g.preventDefault(),h.current=!0),g.key==="Enter"&&r(!(n&&l),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!d||qh(g)||$h(a)||g.key===" "&&h.current&&(h.current=!1,r(!(n&&l),g.nativeEvent,"click"))}}}:{},[o,s,i,c,d,a,l,n,r])}const a_={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},o_={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},tg=t=>{var e,n;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(n=t==null?void 0:t.outsidePress)!=null?n:!0}};function ng(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,nodeId:s,elements:{reference:a,domReference:o,floating:i},dataRef:l}=t,{enabled:c=!0,escapeKey:d=!0,outsidePress:u=!0,outsidePressEvent:h="pointerdown",referencePress:g=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:b,capture:y}=e,v=ha(),k=pn(typeof u=="function"?u:()=>!1),x=typeof u=="function"?k:u,w=H.useRef(!1),S=H.useRef(!1),{escapeKey:N,outsidePress:M}=tg(b),{escapeKey:T,outsidePress:P}=tg(y),z=pn(E=>{if(!n||!c||!d||E.key!=="Escape")return;const W=v?Nr(v.nodesRef.current,s):[];if(!N&&(E.stopPropagation(),W.length>0)){let U=!0;if(W.forEach(K=>{var ee;if((ee=K.context)!=null&&ee.open&&!K.context.dataRef.current.__escapeKeyBubbles){U=!1;return}}),!U)return}r(!1,x2(E)?E.nativeEvent:E,"escape-key")}),F=pn(E=>{var W;const U=()=>{var K;z(E),(K=ir(E))==null||K.removeEventListener("keydown",U)};(W=ir(E))==null||W.addEventListener("keydown",U)}),O=pn(E=>{const W=w.current;w.current=!1;const U=S.current;if(S.current=!1,h==="click"&&U||W||typeof x=="function"&&!x(E))return;const K=ir(E),ee="["+Tr("inert")+"]",j=_t(i).querySelectorAll(ee);let V=Pe(K)?K:null;for(;V&&!ar(V);){const A=Ln(V);if(ar(A)||!Pe(A))break;V=A}if(j.length&&Pe(K)&&!k2(K)&&!et(K,i)&&Array.from(j).every(A=>!et(V,A)))return;if(ht(K)&&i){const A=K.clientWidth>0&&K.scrollWidth>K.clientWidth,D=K.clientHeight>0&&K.scrollHeight>K.clientHeight;let Y=D&&E.offsetX>K.clientWidth;if(D&&Zt(K).direction==="rtl"&&(Y=E.offsetX<=K.offsetWidth-K.clientWidth),Y||A&&E.offsetY>K.clientHeight)return}const L=v&&Nr(v.nodesRef.current,s).some(A=>{var D;return oc(E,(D=A.context)==null?void 0:D.elements.floating)});if(oc(E,i)||oc(E,o)||L)return;const R=v?Nr(v.nodesRef.current,s):[];if(R.length>0){let A=!0;if(R.forEach(D=>{var Y;if((Y=D.context)!=null&&Y.open&&!D.context.dataRef.current.__outsidePressBubbles){A=!1;return}}),!A)return}r(!1,E,"outside-press")}),C=pn(E=>{var W;const U=()=>{var K;O(E),(K=ir(E))==null||K.removeEventListener(h,U)};(W=ir(E))==null||W.addEventListener(h,U)});return H.useEffect(()=>{if(!n||!c)return;l.current.__escapeKeyBubbles=N,l.current.__outsidePressBubbles=M;function E(K){r(!1,K,"ancestor-scroll")}const W=_t(i);d&&W.addEventListener("keydown",T?F:z,T),x&&W.addEventListener(h,P?C:O,P);let U=[];return p&&(Pe(o)&&(U=or(o)),Pe(i)&&(U=U.concat(or(i))),!Pe(a)&&a&&a.contextElement&&(U=U.concat(or(a.contextElement)))),U=U.filter(K=>{var ee;return K!==((ee=W.defaultView)==null?void 0:ee.visualViewport)}),U.forEach(K=>{K.addEventListener("scroll",E,{passive:!0})}),()=>{d&&W.removeEventListener("keydown",T?F:z,T),x&&W.removeEventListener(h,P?C:O,P),U.forEach(K=>{K.removeEventListener("scroll",E)})}},[l,i,o,a,d,x,h,n,r,p,c,N,M,z,T,F,O,P,C]),H.useEffect(()=>{w.current=!1},[x,h]),H.useMemo(()=>c?{reference:{onKeyDown:z,[a_[m]]:E=>{g&&r(!1,E.nativeEvent,"reference-press")}},floating:{onKeyDown:z,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[o_[h]]:()=>{w.current=!0}}}:{},[c,g,h,m,r,z])}let Oc;process.env.NODE_ENV!=="production"&&(Oc=new Set);function rg(t){var e;t===void 0&&(t={});const{open:n=!1,onOpenChange:r,nodeId:s}=t;if(process.env.NODE_ENV!=="production"){var a;const M="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";if((a=t.elements)!=null&&a.reference&&!Pe(t.elements.reference)){var o;if(!((o=Oc)!=null&&o.has(M))){var i;(i=Oc)==null||i.add(M),console.error(M)}}}const[l,c]=H.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=a1(t),h=ha(),g=Yo()!=null,m=pn((M,T,P)=>{M&&(b.current.openEvent=T),y.emit("openchange",{open:M,event:T,reason:P,nested:g}),r==null||r(M,T,P)}),p=H.useRef(null),b=H.useRef({}),y=H.useState(()=>H1())[0],v=Ho(),k=H.useCallback(M=>{const T=Pe(M)?{getBoundingClientRect:()=>M.getBoundingClientRect(),contextElement:M}:M;u.refs.setReference(T)},[u.refs]),x=H.useCallback(M=>{(Pe(M)||M===null)&&(p.current=M,c(M)),(Pe(u.refs.reference.current)||u.refs.reference.current===null||M!==null&&!Pe(M))&&u.refs.setReference(M)},[u.refs]),w=H.useMemo(()=>({...u.refs,setReference:x,setPositionReference:k,domReference:p}),[u.refs,x,k]),S=H.useMemo(()=>({...u.elements,domReference:d}),[u.elements,d]),N=H.useMemo(()=>({...u,refs:w,elements:S,dataRef:b,nodeId:s,floatingId:v,events:y,open:n,onOpenChange:m}),[u,s,v,y,n,m,w,S]);return Ie(()=>{const M=h==null?void 0:h.nodesRef.current.find(T=>T.id===s);M&&(M.context=N)}),H.useMemo(()=>({...u,context:N,refs:w,elements:S}),[u,w,S,N])}function i_(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,events:s,refs:a,elements:{domReference:o}}=t,{enabled:i=!0,visibleOnly:l=!0}=e,c=H.useRef(!1),d=H.useRef(),u=H.useRef(!0);return H.useEffect(()=>{if(!i)return;const h=Mt(o);function g(){!n&&ht(o)&&o===hn(_t(o))&&(c.current=!0)}function m(){u.current=!0}return h.addEventListener("blur",g),h.addEventListener("keydown",m,!0),()=>{h.removeEventListener("blur",g),h.removeEventListener("keydown",m,!0)}},[o,n,i]),H.useEffect(()=>{if(!i)return;function h(g){let{reason:m}=g;(m==="reference-press"||m==="escape-key")&&(c.current=!0)}return s.on("openchange",h),()=>{s.off("openchange",h)}},[s,i]),H.useEffect(()=>()=>{clearTimeout(d.current)},[]),H.useMemo(()=>i?{reference:{onPointerDown(h){rc(h.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(h){if(c.current)return;const g=ir(h.nativeEvent);if(l&&Pe(g))try{if(sc()&&dh())throw Error();if(!g.matches(":focus-visible"))return}catch{if(!u.current&&!ic(g))return}r(!0,h.nativeEvent,"focus")},onBlur(h){c.current=!1;const g=h.relatedTarget,m=Pe(g)&&g.hasAttribute(Tr("focus-guard"))&&g.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{const p=hn(o?o.ownerDocument:document);!g&&p===o||et(a.floating.current,p)||et(o,p)||m||r(!1,h.nativeEvent,"focus")})}}}:{},[i,l,o,a,r])}const sg="active",ag="selected";function Cc(t,e,n){const r=new Map,s=n==="item";let a=t;if(s&&t){const{[sg]:o,[ag]:i,...l}=t;a=l}return{...n==="floating"&&{tabIndex:-1},...a,...e.map(o=>{const i=o?o[n]:null;return typeof i=="function"?t?i(t):null:i}).concat(t).reduce((o,i)=>(i&&Object.entries(i).forEach(l=>{let[c,d]=l;if(!(s&&[sg,ag].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof d=="function"){var u;(u=r.get(c))==null||u.push(d),o[c]=function(){for(var h,g=arguments.length,m=new Array(g),p=0;p<g;p++)m[p]=arguments[p];return(h=r.get(c))==null?void 0:h.map(b=>b(...m)).find(b=>b!==void 0)}}}else o[c]=d}),o),{})}}function og(t){t===void 0&&(t=[]);const e=t,n=H.useCallback(a=>Cc(a,t,"reference"),e),r=H.useCallback(a=>Cc(a,t,"floating"),e),s=H.useCallback(a=>Cc(a,t,"item"),t.map(a=>a==null?void 0:a.item));return H.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:s}),[n,r,s])}let ig=!1;function Ko(t,e,n){switch(t){case"vertical":return e;case"horizontal":return n;default:return e||n}}function lg(t,e){return Ko(e,t===bc||t===da,t===ys||t===ws)}function Dc(t,e,n){return Ko(e,t===da,n?t===ys:t===ws)||t==="Enter"||t===" "||t===""}function l_(t,e,n){return Ko(e,n?t===ys:t===ws,t===da)}function cg(t,e,n){return Ko(e,n?t===ws:t===ys,t===bc)}function c_(t,e){const{open:n,onOpenChange:r,refs:s,elements:{domReference:a,floating:o}}=t,{listRef:i,activeIndex:l,onNavigate:c=()=>{},enabled:d=!0,selectedIndex:u=null,allowEscape:h=!1,loop:g=!1,nested:m=!1,rtl:p=!1,virtual:b=!1,focusItemOnOpen:y="auto",focusItemOnHover:v=!0,openOnArrowKeyDown:k=!0,disabledIndices:x=void 0,orientation:w="vertical",cols:S=1,scrollItemIntoView:N=!0,virtualItemRef:M,itemSizes:T,dense:P=!1}=e;process.env.NODE_ENV!=="production"&&(h&&(g||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),b||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),w==="vertical"&&S>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const z=Yo(),F=ha(),O=pn(c),C=H.useRef(y),E=H.useRef(u??-1),W=H.useRef(null),U=H.useRef(!0),K=H.useRef(O),ee=H.useRef(!!o),j=H.useRef(!1),V=H.useRef(!1),L=bn(x),R=bn(n),A=bn(N),[D,Y]=H.useState(),[J,G]=H.useState(),I=pn(function(B,re,se){se===void 0&&(se=!1);const ie=B.current[re.current];ie&&(b?(Y(ie.id),F==null||F.events.emit("virtualfocus",ie),M&&(M.current=ie)):Bn(ie,{preventScroll:!0,sync:dh()&&sc()?ig||j.current:!1}),requestAnimationFrame(()=>{const ge=A.current;ge&&ie&&(se||!U.current)&&(ie.scrollIntoView==null||ie.scrollIntoView(typeof ge=="boolean"?{block:"nearest",inline:"nearest"}:ge))}))});Ie(()=>{document.createElement("div").focus({get preventScroll(){return ig=!0,!1}})},[]),Ie(()=>{d&&(n&&o?C.current&&u!=null&&(V.current=!0,E.current=u,O(u)):ee.current&&(E.current=-1,K.current(null)))},[d,n,o,u,O]),Ie(()=>{if(d&&n&&o)if(l==null){if(j.current=!1,u!=null)return;if(ee.current&&(E.current=-1,I(i,E)),!ee.current&&C.current&&(W.current!=null||C.current===!0&&W.current==null)){let B=0;const re=()=>{i.current[0]==null?(B<2&&(B?requestAnimationFrame:queueMicrotask)(re),B++):(E.current=W.current==null||Dc(W.current,w,p)||m?yc(i,L.current):Rh(i,L.current),W.current=null,O(E.current))};re()}}else ua(i,l)||(E.current=l,I(i,E,V.current),V.current=!1)},[d,n,o,l,u,m,i,w,p,O,I,L]),Ie(()=>{var B;if(!d||o||!F||b||!ee.current)return;const re=F.nodesRef.current,se=(B=re.find(fe=>fe.id===z))==null||(B=B.context)==null?void 0:B.elements.floating,ie=hn(_t(o)),ge=re.some(fe=>fe.context&&et(fe.context.elements.floating,ie));se&&!ge&&U.current&&se.focus({preventScroll:!0})},[d,o,F,z,b]),Ie(()=>{if(!d||!F||!b||z)return;function B(re){G(re.id),M&&(M.current=re)}return F.events.on("virtualfocus",B),()=>{F.events.off("virtualfocus",B)}},[d,F,b,z,M]),Ie(()=>{K.current=O,ee.current=!!o}),Ie(()=>{n||(W.current=null)},[n]);const q=l!=null,te=H.useMemo(()=>{function B(se){if(!n)return;const ie=i.current.indexOf(se);ie!==-1&&O(ie)}return{onFocus(se){let{currentTarget:ie}=se;B(ie)},onClick:se=>{let{currentTarget:ie}=se;return ie.focus({preventScroll:!0})},...v&&{onMouseMove(se){let{currentTarget:ie}=se;B(ie)},onPointerLeave(se){let{pointerType:ie}=se;!U.current||ie==="touch"||(E.current=-1,I(i,E),O(null),b||Bn(s.floating.current,{preventScroll:!0}))}}}},[n,s,I,v,i,O,b]);return H.useMemo(()=>{if(!d)return{};const B=L.current;function re(ae){if(U.current=!1,j.current=!0,!R.current&&ae.currentTarget===s.floating.current)return;if(m&&cg(ae.key,w,p)){gt(ae),r(!1,ae.nativeEvent,"list-navigation"),ht(a)&&!b&&a.focus();return}const Ve=E.current,pe=yc(i,B),He=Rh(i,B);if(ae.key==="Home"&&(gt(ae),E.current=pe,O(E.current)),ae.key==="End"&&(gt(ae),E.current=He,O(E.current)),S>1){const Ke=T||Array.from({length:i.current.length},()=>({width:1,height:1})),$e=j1(Ke,S,P),Xt=$e.findIndex(Gt=>Gt!=null&&!(B!=null&&B.includes(Gt))),Kt=$e.reduce((Gt,Sr,Qt)=>Sr!=null&&!(B!=null&&B.includes(Sr))?Qt:Gt,-1);if(E.current=$e[N1({current:$e.map(Gt=>Gt!=null?i.current[Gt]:null)},{event:ae,orientation:w,loop:g,cols:S,disabledIndices:A1([...B||[],void 0],$e),minIndex:Xt,maxIndex:Kt,prevIndex:I1(E.current,Ke,$e,S,ae.key===da?"bl":ae.key===ws?"tr":"tl"),stopEvent:!0})],O(E.current),w==="both")return}if(lg(ae.key,w)){if(gt(ae),n&&!b&&hn(ae.currentTarget.ownerDocument)===ae.currentTarget){E.current=Dc(ae.key,w,p)?pe:He,O(E.current);return}Dc(ae.key,w,p)?g?E.current=Ve>=He?h&&Ve!==i.current.length?-1:pe:yt(i,{startingIndex:Ve,disabledIndices:B}):E.current=Math.min(He,yt(i,{startingIndex:Ve,disabledIndices:B})):g?E.current=Ve<=pe?h&&Ve!==-1?i.current.length:He:yt(i,{startingIndex:Ve,decrement:!0,disabledIndices:B}):E.current=Math.max(pe,yt(i,{startingIndex:Ve,decrement:!0,disabledIndices:B})),ua(i,E.current)?O(null):O(E.current)}}function se(ae){y==="auto"&&ch(ae.nativeEvent)&&(C.current=!0)}function ie(ae){C.current=y,y==="auto"&&rc(ae.nativeEvent)&&(C.current=!0)}const ge=b&&n&&q&&{"aria-activedescendant":J||D},fe=i.current.find(ae=>(ae==null?void 0:ae.id)===D);return{reference:{...ge,onKeyDown(ae){U.current=!1;const Ve=ae.key.indexOf("Arrow")===0,pe=l_(ae.key,w,p),He=cg(ae.key,w,p),Ke=lg(ae.key,w),$e=(m?pe:Ke)||ae.key==="Enter"||ae.key.trim()==="";if(b&&n){const Sr=F==null?void 0:F.nodesRef.current.find(Ul=>Ul.parentId==null),Qt=F&&Sr?K1(F.nodesRef.current,Sr.id):null;if(Ve&&Qt&&M){const Ul=new KeyboardEvent("keydown",{key:ae.key,bubbles:!0});if(pe||He){var Xt,Kt;const KL=((Xt=Qt.context)==null?void 0:Xt.elements.domReference)===ae.currentTarget,hx=He&&!KL?(Kt=Qt.context)==null?void 0:Kt.elements.domReference:pe?fe:null;hx&&(gt(ae),hx.dispatchEvent(Ul),G(void 0))}if(Ke&&Qt.context&&Qt.context.open&&Qt.parentId&&ae.currentTarget!==Qt.context.elements.domReference){var Gt;gt(ae),(Gt=Qt.context.elements.domReference)==null||Gt.dispatchEvent(Ul);return}}return re(ae)}if(!(!n&&!k&&Ve)){if($e&&(W.current=m&&Ke?null:ae.key),m){pe&&(gt(ae),n?(E.current=yc(i,B),O(E.current)):r(!0,ae.nativeEvent,"list-navigation"));return}Ke&&(u!=null&&(E.current=u),gt(ae),!n&&k?r(!0,ae.nativeEvent,"list-navigation"):re(ae),n&&O(E.current))}},onFocus(){n&&O(null)},onPointerDown:ie,onMouseDown:se,onClick:se},floating:{"aria-orientation":w==="both"?void 0:w,...!uh(a)&&ge,onKeyDown:re,onPointerMove(){U.current=!0}},item:te}},[a,s,D,J,L,R,i,d,w,p,b,n,q,m,u,k,h,S,g,y,O,r,te,F,M,T,P])}const d_=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function dg(t,e){var n;e===void 0&&(e={});const{open:r,floatingId:s}=t,{enabled:a=!0,role:o="dialog"}=e,i=(n=d_.get(o))!=null?n:o,l=Ho(),d=Yo()!=null;return H.useMemo(()=>{if(!a)return{};const u={id:s,...i&&{role:i}};return i==="tooltip"||o==="label"?{reference:{["aria-"+(o==="label"?"labelledby":"describedby")]:r?s:void 0},floating:u}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":i==="alertdialog"?"dialog":i,"aria-controls":r?s:void 0,...i==="listbox"&&{role:"combobox"},...i==="menu"&&{id:l},...i==="menu"&&d&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},floating:{...u,...i==="menu"&&{"aria-labelledby":l}},item(h){let{active:g,selected:m}=h;const p={role:"option",...g&&{id:s+"-option"}};switch(o){case"select":return{...p,"aria-selected":g&&m};case"combobox":return{...p,...g&&{"aria-selected":!0}}}return{}}}},[a,o,i,r,s,l,d])}function u_(t,e){var n;const{open:r,dataRef:s}=t,{listRef:a,activeIndex:o,onMatch:i,onTypingChange:l,enabled:c=!0,findMatch:d=null,resetMs:u=750,ignoreKeys:h=[],selectedIndex:g=null}=e,m=H.useRef(),p=H.useRef(""),b=H.useRef((n=g??o)!=null?n:-1),y=H.useRef(null),v=pn(i),k=pn(l),x=bn(d),w=bn(h);return Ie(()=>{r&&(clearTimeout(m.current),y.current=null,p.current="")},[r]),Ie(()=>{if(r&&p.current===""){var S;b.current=(S=g??o)!=null?S:-1}},[r,g,o]),H.useMemo(()=>{if(!c)return{};function S(T){T?s.current.typing||(s.current.typing=T,k(T)):s.current.typing&&(s.current.typing=T,k(T))}function N(T,P,z){const F=x.current?x.current(P,z):P.find(O=>(O==null?void 0:O.toLocaleLowerCase().indexOf(z.toLocaleLowerCase()))===0);return F?T.indexOf(F):-1}function M(T){const P=a.current;if(p.current.length>0&&p.current[0]!==" "&&(N(P,P,p.current)===-1?S(!1):T.key===" "&&gt(T)),P==null||w.current.includes(T.key)||T.key.length!==1||T.ctrlKey||T.metaKey||T.altKey)return;r&&T.key!==" "&&(gt(T),S(!0)),P.every(C=>{var E,W;return C?((E=C[0])==null?void 0:E.toLocaleLowerCase())!==((W=C[1])==null?void 0:W.toLocaleLowerCase()):!0})&&p.current===T.key&&(p.current="",b.current=y.current),p.current+=T.key,clearTimeout(m.current),m.current=setTimeout(()=>{p.current="",b.current=y.current,S(!1)},u);const F=b.current,O=N(P,[...P.slice((F||0)+1),...P.slice(0,(F||0)+1)],p.current);O!==-1?(v(O),y.current=O):T.key!==" "&&(p.current="",S(!1))}return{reference:{onKeyDown:M},floating:{onKeyDown:M,onKeyUp(T){T.key===" "&&S(!1)}}}},[c,r,s,a,u,w,x,v,k])}function ug(t,e){const[n,r]=t;let s=!1;const a=e.length;for(let o=0,i=a-1;o<a;i=o++){const[l,c]=e[o]||[0,0],[d,u]=e[i]||[0,0];c>=r!=u>=r&&n<=(d-l)*(r-c)/(u-c)+l&&(s=!s)}return s}function f_(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function h_(t){t===void 0&&(t={});const{buffer:e=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=t;let s,a=!1,o=null,i=null,l=performance.now();function c(u,h){const g=performance.now(),m=g-l;if(o===null||i===null||m===0)return o=u,i=h,l=g,null;const p=u-o,b=h-i,v=Math.sqrt(p*p+b*b)/m;return o=u,i=h,l=g,v}const d=u=>{let{x:h,y:g,placement:m,elements:p,onClose:b,nodeId:y,tree:v}=u;return function(x){function w(){clearTimeout(s),b()}if(clearTimeout(s),!p.domReference||!p.floating||m==null||h==null||g==null)return;const{clientX:S,clientY:N}=x,M=[S,N],T=ir(x),P=x.type==="mouseleave",z=et(p.floating,T),F=et(p.domReference,T),O=p.domReference.getBoundingClientRect(),C=p.floating.getBoundingClientRect(),E=m.split("-")[0],W=h>C.right-C.width/2,U=g>C.bottom-C.height/2,K=f_(M,O),ee=C.width>O.width,j=C.height>O.height,V=(ee?O:C).left,L=(ee?O:C).right,R=(j?O:C).top,A=(j?O:C).bottom;if(z&&(a=!0,!P))return;if(F&&(a=!1),F&&!P){a=!0;return}if(P&&Pe(x.relatedTarget)&&et(p.floating,x.relatedTarget)||v&&Nr(v.nodesRef.current,y).some(J=>{let{context:G}=J;return G==null?void 0:G.open}))return;if(E==="top"&&g>=O.bottom-1||E==="bottom"&&g<=O.top+1||E==="left"&&h>=O.right-1||E==="right"&&h<=O.left+1)return w();let D=[];switch(E){case"top":D=[[V,O.top+1],[V,C.bottom-1],[L,C.bottom-1],[L,O.top+1]];break;case"bottom":D=[[V,C.top+1],[V,O.bottom-1],[L,O.bottom-1],[L,C.top+1]];break;case"left":D=[[C.right-1,A],[C.right-1,R],[O.left+1,R],[O.left+1,A]];break;case"right":D=[[O.right-1,A],[O.right-1,R],[C.left+1,R],[C.left+1,A]];break}function Y(J){let[G,I]=J;switch(E){case"top":{const q=[ee?G+e/2:W?G+e*4:G-e*4,I+e+1],te=[ee?G-e/2:W?G+e*4:G-e*4,I+e+1],B=[[C.left,W||ee?C.bottom-e:C.top],[C.right,W?ee?C.bottom-e:C.top:C.bottom-e]];return[q,te,...B]}case"bottom":{const q=[ee?G+e/2:W?G+e*4:G-e*4,I-e],te=[ee?G-e/2:W?G+e*4:G-e*4,I-e],B=[[C.left,W||ee?C.top+e:C.bottom],[C.right,W?ee?C.top+e:C.bottom:C.top+e]];return[q,te,...B]}case"left":{const q=[G+e+1,j?I+e/2:U?I+e*4:I-e*4],te=[G+e+1,j?I-e/2:U?I+e*4:I-e*4];return[...[[U||j?C.right-e:C.left,C.top],[U?j?C.right-e:C.left:C.right-e,C.bottom]],q,te]}case"right":{const q=[G-e,j?I+e/2:U?I+e*4:I-e*4],te=[G-e,j?I-e/2:U?I+e*4:I-e*4],B=[[U||j?C.left+e:C.right,C.top],[U?j?C.left+e:C.right:C.left+e,C.bottom]];return[q,te,...B]}}}if(!ug([S,N],D)){if(a&&!K)return w();if(!P&&r){const J=c(x.clientX,x.clientY);if(J!==null&&J<.1)return w()}ug([S,N],Y([h,g]))?!a&&r&&(s=window.setTimeout(w,40)):w()}}};return d.__options={blockPointerEvents:n},d}const g_=({arrowRef:t,placement:e})=>{const n=[];return n.push(i1(8)),n.push(e==="auto"?d1():c1()),n.push(l1({padding:8})),t!=null&&t.current&&n.push(u1({element:t.current})),n},m_=({placement:t})=>t==="auto"?void 0:t,p_=({placement:t})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[t.split("-")[0]],fg=({open:t,arrowRef:e,placement:n="top",setOpen:r})=>rg({placement:m_({placement:n}),open:t,onOpenChange:r,whileElementsMounted:Ch,middleware:g_({placement:n,arrowRef:e})}),hg=({context:t,trigger:e,role:n="tooltip",interactions:r=[]})=>og([eg(t,{enabled:e==="click"}),U1(t,{enabled:e==="hover",handleClose:h_()}),ng(t),dg(t,{role:n}),...r]),gg=_.createContext(void 0);function Mc(){const t=_.useContext(gg);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const Ec=({className:t,theme:e={},...n})=>{const{theme:r}=Mc(),s=e.divider??r.floating.divider;return f.jsx("div",{className:Q(s,t),...n})},mg=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=Mc(),a=n.header??s.floating.header;return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:Q(a,e),...r,children:t}),f.jsx(Ec,{})]})},Pc=_.forwardRef(({children:t,className:e,icon:n,onClick:r,theme:s={},...a},o)=>{const{ref:i,index:l}=B1({label:typeof t=="string"?t:void 0}),c=Ah([o,i]),{theme:d,activeIndex:u,dismissOnClick:h,getItemProps:g,handleSelect:m}=Mc(),p=u===l,b=ne(d.floating.item,s),y=a;return f.jsx("li",{role:"menuitem",className:b.container,children:f.jsxs(Ql,{ref:c,className:Q(b.base,e),...y,...g({onClick:()=>{r==null||r(),h&&m(null)}}),tabIndex:p?0:-1,children:[n&&f.jsx(n,{className:b.icon}),t]})})});Pc.displayName="DropdownItem";const b_={top:Tx,right:Of,bottom:Sf,left:Px},y_=({refs:t,children:e,inline:n,theme:r,disabled:s,setButtonWidth:a,getReferenceProps:o,renderTrigger:i,...l})=>{const c=t.reference,d=o();if(_.useEffect(()=>{c.current&&(a==null||a(c.current.clientWidth))},[c,a]),i){const u=i(r);return _.cloneElement(u,{ref:t.setReference,disabled:s,...d,...u.props})}return n?f.jsx("button",{type:"button",ref:t.setReference,className:r==null?void 0:r.inlineWrapper,disabled:s,...d,children:e}):f.jsx(Gf,{...l,disabled:s,type:"button",ref:t.setReference,...d,children:e})},pg=({children:t,className:e,dismissOnClick:n=!0,theme:r={},renderTrigger:s,...a})=>{const[o,i]=_.useState(!1),[l,c]=_.useState(null),[d,u]=_.useState(null),[h,g]=_.useState(void 0),m=_.useRef([]),p=_.useRef([]),b=ne(he().dropdown,r),y=a,v=a["data-testid"]||"flowbite-dropdown-target",{placement:k=a.inline?"bottom-start":"bottom",trigger:x="click",label:w,inline:S,arrowIcon:N=!0,...M}=y,T=_.useCallback(j=>{u(j),i(!1)},[]),P=_.useCallback(j=>{o?c(j):T(j)},[o,T]),{context:z,floatingStyles:F,refs:O}=fg({open:o,setOpen:i,placement:k}),C=c_(z,{listRef:m,activeIndex:l,selectedIndex:d,onNavigate:c}),E=u_(z,{listRef:p,activeIndex:l,selectedIndex:d,onMatch:P}),{getReferenceProps:W,getFloatingProps:U,getItemProps:K}=hg({context:z,role:"menu",trigger:x,interactions:[C,E]}),ee=_.useMemo(()=>{const[j]=k.split("-");return b_[j]??Sf},[k]);return f.jsxs(gg.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:n,getItemProps:K,handleSelect:T},children:[f.jsxs(y_,{...M,refs:O,inline:S,theme:b,"data-testid":v,className:Q(b.floating.target,M.className),setButtonWidth:g,getReferenceProps:W,renderTrigger:s,children:[w,N&&f.jsx(ee,{className:b.arrowIcon})]}),o&&f.jsx(Jh,{context:z,modal:!1,children:f.jsx("div",{ref:O.setFloating,style:{...F,minWidth:h},"data-testid":"flowbite-dropdown","aria-expanded":o,...U({className:Q(b.floating.base,b.floating.animation,"duration-100",!o&&b.floating.hidden,b.floating.style.auto,e)}),children:f.jsx(F1,{elementsRef:m,labelsRef:p,children:f.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};pg.displayName="Dropdown",mg.displayName="Dropdown.Header",Ec.displayName="Dropdown.Divider";const w_=Object.assign(pg,{Item:Pc,Header:mg,Divider:Ec}),bg=_.forwardRef(({className:t,color:e="gray",helperText:n,sizing:r="md",theme:s={},...a},o)=>{const i=ne(he().fileInput,s);return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:Q(i.root.base,t),children:f.jsx("div",{className:i.field.base,children:f.jsx("input",{className:Q(i.field.input.base,i.field.input.colors[e],i.field.input.sizes[r]),...a,type:"file",ref:o})})}),n&&f.jsx(oa,{color:e,children:n})]})});bg.displayName="FileInput";const v_=_.forwardRef(({label:t,helperText:e,color:n="default",sizing:r="md",variant:s,disabled:a=!1,theme:o={},className:i,...l},c)=>{const d=_.useId(),u=ne(he().floatingLabel,o);return f.jsxs("div",{children:[f.jsxs("div",{className:Q("relative",s==="standard"?"z-0":""),children:[f.jsx("input",{type:"text",id:l.id?l.id:"floatingLabel"+d,"aria-describedby":"outlined_success_help",className:Q(u.input[n][s][r],i),placeholder:" ","data-testid":"floating-label",disabled:a,...l,ref:c}),f.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:Q(u.label[n][s][r],i),children:t})]}),f.jsx("p",{id:"outlined_helper_text"+d,className:Q(u.helperText[n],i),children:e})]})});v_.displayName="FloatingLabel";const yg=({alt:t,className:e,children:n,href:r,name:s,src:a,theme:o={},...i})=>{const l=ne(he().footer.brand,o);return f.jsx("div",{children:r?f.jsxs("a",{"data-testid":"flowbite-footer-brand",href:r,className:Q(l.base,e),...i,children:[f.jsx("img",{alt:t,src:a,className:l.img}),f.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:s}),n]}):f.jsx("img",{alt:t,"data-testid":"flowbite-footer-brand",src:a,className:Q(l.img,e),...i})})},wg=({by:t,className:e,href:n,theme:r={},year:s,...a})=>{const o=ne(he().footer.copyright,r);return f.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:Q(o.base,e),...a,children:["© ",s,n?f.jsx("a",{href:n,className:o.href,children:t}):f.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:o.span,children:t})]})},vg=({className:t,theme:e={},...n})=>{const r=ne(he().footer.divider,e);return f.jsx("hr",{"data-testid":"footer-divider",className:Q(r.base,t),...n})},xg=({ariaLabel:t,className:e,href:n,icon:r,theme:s={},...a})=>{const o=ne(he().footer.icon,s);return f.jsx("div",{children:n?f.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:n,className:Q(o.base,e),...a,children:f.jsx(r,{className:o.size})}):f.jsx(r,{"data-testid":"flowbite-footer-icon",className:o.size,...a})})},kg=({as:t="a",children:e,className:n,href:r,theme:s={},...a})=>{const o=ne(he().footer.groupLink.link,s);return f.jsx("li",{className:Q(o.base,n),children:f.jsx(t,{href:r,className:o.href,...a,children:e})})},_g=({children:t,className:e,col:n=!1,theme:r={},...s})=>{const a=ne(he().footer.groupLink,r);return f.jsx("ul",{"data-testid":"footer-groupLink",className:Q(a.base,n&&a.col,e),...s,children:t})},Sg=({as:t="h2",className:e,theme:n={},title:r,...s})=>{const a=ne(he().footer.title,n);return f.jsx(t,{"data-testid":"flowbite-footer-title",className:Q(a.base,e),...s,children:r})},Og=({bgDark:t=!1,children:e,className:n,container:r=!1,theme:s={},...a})=>{const o=ne(he().footer,s);return f.jsx("footer",{"data-testid":"flowbite-footer",className:Q(o.root.base,t&&o.root.bgDark,r&&o.root.container,n),...a,children:e})};Og.displayName="Footer",wg.displayName="Footer.Copyright",kg.displayName="Footer.Link",yg.displayName="Footer.Brand",_g.displayName="Footer.LinkGroup",xg.displayName="Footer.Icon",Sg.displayName="Footer.Title",vg.displayName="Footer.Divider",Object.assign(Og,{Copyright:wg,Link:kg,LinkGroup:_g,Brand:yg,Icon:xg,Title:Sg,Divider:vg});const Tc=({children:t,className:e,color:n="default",disabled:r=!1,theme:s={},value:a,...o})=>{const i=ne(he().label,s);return f.jsx("label",{className:Q(i.root.base,i.root.colors[n],r&&i.root.disabled,e),"data-testid":"flowbite-label",...o,children:a??t??""})};Tc.displayName="Label";const Cg=({children:t,className:e,icon:n,theme:r={},...s})=>{const a=ne(he().list.item,r);return f.jsxs("li",{className:Q(a.withIcon[n?"on":"off"],e),...s,children:[n&&f.jsx(n,{className:Q(a.icon)}),t]})},Dg=({children:t,className:e,unstyled:n,nested:r,ordered:s,horizontal:a,theme:o={},...i})=>{const l=ne(he().list,o),c=s?"ol":"ul";return f.jsx(c,{className:Q(l.root.base,l.root.ordered[s?"on":"off"],n&&l.root.unstyled,r&&l.root.nested,a&&l.root.horizontal,e),...i,children:t})};Dg.displayName="List",Cg.displayName="List.Item",Object.assign(Dg,{Item:Cg});const Mg=({active:t,children:e,className:n,href:r,icon:s,onClick:a,theme:o={},disabled:i,...l})=>{const c=ne(he().listGroup.item,o),d=typeof r<"u",u=d?"a":"button";return f.jsx("li",{className:Q(c.base,n),children:f.jsxs(u,{href:r,onClick:a,type:d?void 0:"button",disabled:i,className:Q(c.link.active[t?"on":"off"],c.link.disabled[i?"on":"off"],c.link.base,c.link.href[d?"on":"off"]),...l,children:[s&&f.jsx(s,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},Eg=({children:t,className:e,theme:n={},...r})=>{const s=ne(he().listGroup,n);return f.jsx("ul",{className:Q(s.root.base,e),...r,children:t})};Eg.displayName="ListGroup",Mg.displayName="ListGroup.Item",Object.assign(Eg,{Item:Mg});const Pg=_.createContext(void 0);function Nc(){const t=_.useContext(Pg);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const Tg=({children:t,className:e,theme:n={},...r})=>{const{theme:s,popup:a}=Nc(),o=ne(s.body,n);return f.jsx("div",{className:Q(o.base,a&&[o.popup],e),...r,children:t})},Ng=({children:t,className:e,theme:n={},...r})=>{const{theme:s,popup:a}=Nc(),o=ne(s.footer,n);return f.jsx("div",{className:Q(o.base,!a&&o.popup,e),...r,children:t})},jg=({as:t="h3",children:e,className:n,theme:r={},id:s,...a})=>{const o=_.useId(),i=s||o,{theme:l,popup:c,onClose:d,setHeaderId:u}=Nc(),h=ne(l.header,r);return _.useLayoutEffect(()=>(u(i),()=>u(void 0)),[i,u]),f.jsxs("div",{className:Q(h.base,c&&h.popup,n),...a,children:[f.jsx(t,{id:i,className:h.title,children:e}),f.jsx("button",{"aria-label":"Close",className:h.close.base,type:"button",onClick:d,children:f.jsx(Nx,{"aria-hidden":!0,className:h.close.icon})})]})},Ig=_.forwardRef(({children:t,className:e,dismissible:n=!1,onClose:r,popup:s,position:a="center",root:o,show:i,size:l="2xl",theme:c={},initialFocus:d,...u},h)=>{const[g,m]=_.useState(void 0),p=ne(he().modal,c),{context:b}=rg({open:i,onOpenChange:()=>r&&r()}),y=Ah([b.refs.setFloating,h]),v=eg(b),k=ng(b,{outsidePressEvent:"mousedown",enabled:n}),x=dg(b),{getFloatingProps:w}=og([v,k,x]);return i?f.jsx(Pg.Provider,{value:{theme:p,popup:s,onClose:r,setHeaderId:m},children:f.jsx(t_,{root:o,children:f.jsx(s_,{lockScroll:!0,"data-testid":"modal-overlay",className:Q(p.root.base,p.root.positions[a],i?p.root.show.on:p.root.show.off,e),...u,children:f.jsx(Jh,{context:b,initialFocus:d,children:f.jsx("div",{ref:y,...w(u),"aria-labelledby":g,className:Q(p.content.base,p.root.sizes[l]),children:f.jsx("div",{className:p.content.inner,children:t})})})})})}):null});Ig.displayName="Modal",jg.displayName="Modal.Header",Tg.displayName="Modal.Body",Ng.displayName="Modal.Footer",Object.assign(Ig,{Header:jg,Body:Tg,Footer:Ng});const Ag=_.createContext(void 0);function Go(){const t=_.useContext(Ag);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const Rg=({as:t="a",children:e,className:n,theme:r={},...s})=>{const{theme:a}=Go(),o=ne(a.brand,r);return f.jsx(t,{className:Q(o.base,n),...s,children:e})},Lg=({children:t,className:e,theme:n={},...r})=>{const{theme:s,isOpen:a}=Go(),o=ne(s.collapse,n);return f.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:Q(o.base,o.hidden[a?"off":"on"],e),...r,children:f.jsx("ul",{className:o.list,children:t})})},Fg=({active:t,as:e="a",disabled:n,children:r,className:s,theme:a={},onClick:o,...i})=>{const{theme:l,setIsOpen:c}=Go(),d=ne(l.link,a),u=h=>{c(!1),o==null||o(h)};return f.jsx("li",{children:f.jsx(e,{className:Q(d.base,t&&d.active.on,!t&&!n&&d.active.off,d.disabled[n?"on":"off"],s),onClick:u,...i,children:r})})};function x_(t){return De({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 xs(t){return De({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 k_(t){return De({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},child:[]}]})(t)}function jc(t){return De({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 __(t){return De({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 S_(t){return De({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 O_(t){return De({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(t)}const Bg=({barIcon:t=x_,className:e,theme:n={},...r})=>{const{theme:s,isOpen:a,setIsOpen:o}=Go(),i=ne(s.toggle,n),l=()=>{o(!a)};return f.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:Q(i.base,e),...r,children:[f.jsx("span",{className:"sr-only",children:"Open main menu"}),f.jsx(t,{"aria-hidden":!0,className:i.icon})]})},Wg=({border:t,children:e,className:n,fluid:r=!1,menuOpen:s,rounded:a,theme:o={},...i})=>{const[l,c]=_.useState(s),d=ne(he().navbar,o);return f.jsx(Ag.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:f.jsx("nav",{className:Q(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[a?"on":"off"],n),...i,children:f.jsx("div",{className:Q(d.root.inner.base,d.root.inner.fluid[r?"on":"off"]),children:e})})})};Wg.displayName="Navbar",Rg.displayName="Navbar.Brand",Lg.displayName="Navbar.Collapse",Fg.displayName="Navbar.Link",Bg.displayName="Navbar.Toggle",Object.assign(Wg,{Brand:Rg,Collapse:Lg,Link:Fg,Toggle:Bg});const C_=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(n=>n+t),Ic=({active:t,children:e,className:n,onClick:r,theme:s={},...a})=>{const o=ne(he().pagination,s);return f.jsx("button",{type:"button",className:Q(t&&o.pages.selector.active,n),onClick:r,...a,children:e})};Ic.displayName="Pagination.Button";const Ac=({children:t,className:e,onClick:n,theme:r={},disabled:s=!1,...a})=>{const o=ne(he().pagination,r);return f.jsx("button",{type:"button",className:Q(s&&o.pages.selector.disabled,e),disabled:s,onClick:n,...a,children:t})};Ac.displayName="Pagination.Navigation";const zg=({className:t,currentPage:e,layout:n="pagination",nextLabel:r="Next",onPageChange:s,previousLabel:a="Previous",renderPaginationButton:o=u=>f.jsx(Ic,{...u}),showIcons:i=!1,theme:l={},totalPages:c,...d})=>{const u=ne(he().pagination,l),h=Math.min(Math.max(n==="pagination"?e+2:e+4,5),c),g=Math.max(1,h-4),m=()=>{s(Math.min(e+1,c))},p=()=>{s(Math.max(e-1,1))};return f.jsxs("nav",{className:Q(u.base,t),...d,children:[n==="table"&&f.jsxs("div",{className:u.layout.table.base,children:["Showing ",f.jsx("span",{className:u.layout.table.span,children:g})," to ",f.jsx("span",{className:u.layout.table.span,children:h})," of ",f.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),f.jsxs("ul",{className:u.pages.base,children:[f.jsx("li",{children:f.jsxs(Ac,{className:Q(u.pages.previous.base,i&&u.pages.showIcon),onClick:p,disabled:e===1,children:[i&&f.jsx(Cx,{"aria-hidden":!0,className:u.pages.previous.icon}),a]})}),n==="pagination"&&C_(g,h).map(b=>f.jsx("li",{"aria-current":b===e?"page":void 0,children:o({className:Q(u.pages.selector.base,e===b&&u.pages.selector.active),active:b===e,onClick:()=>s(b),children:b})},b)),f.jsx("li",{children:f.jsxs(Ac,{className:Q(u.pages.next.base,i&&u.pages.showIcon),onClick:m,disabled:e===c,children:[r,i&&f.jsx(Dx,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};zg.displayName="Pagination",Object.assign(zg,{Button:Ic});const Hg=_.forwardRef(({className:t,theme:e={},...n},r)=>{const s=ne(he().radio,e);return f.jsx("input",{ref:r,type:"radio",className:Q(s.root.base,t),...n})});Hg.displayName="Radio";const D_=_.forwardRef(({className:t,sizing:e="md",theme:n={},...r},s)=>{const a=ne(he().rangeSlider,n);return f.jsx(f.Fragment,{children:f.jsx("div",{"data-testid":"flowbite-range-slider",className:Q(a.root.base,t),children:f.jsx("div",{className:a.field.base,children:f.jsx("input",{ref:s,type:"range",className:Q(a.field.input.base,a.field.input.sizes[e]),...r})})})})});D_.displayName="RangeSlider";const Yg=({children:t,className:e,percentFilled:n=0,theme:r={},...s})=>{const a=ne(he().ratingAdvanced,r);return f.jsxs("div",{className:Q(a.base,e),...s,children:[f.jsx("span",{className:a.label,children:t}),f.jsx("div",{className:a.progress.base,children:f.jsx("div",{className:a.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${n}%`}})}),f.jsx("span",{className:a.progress.label,children:`${n}%`})]})},Vg=_.createContext(void 0);function M_(){const t=_.useContext(Vg);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const Ug=({className:t,filled:e=!0,starIcon:n=Mx,theme:r={},...s})=>{const{theme:a,size:o="sm"}=M_(),i=ne(a.star,r);return f.jsx(n,{"data-testid":"flowbite-rating-star",className:Q(i.sizes[o],i[e?"filled":"empty"],t),...s})},Xg=({children:t,className:e,size:n="sm",theme:r={},...s})=>{const a=ne(he().rating,r);return f.jsx(Vg.Provider,{value:{theme:a,size:n},children:f.jsx("div",{className:Q(a.root.base,e),...s,children:t})})};Xg.displayName="Rating",Ug.displayName="Rating.Star",Yg.displayName="Rating.Advanced",Object.assign(Xg,{Star:Ug,Advanced:Yg});const E_=_.forwardRef(({addon:t,children:e,className:n,color:r="gray",helperText:s,icon:a,shadow:o,sizing:i="md",theme:l={},...c},d)=>{const u=ne(he().select,l);return f.jsxs("div",{className:Q(u.base,n),children:[t&&f.jsx("span",{className:u.addon,children:t}),f.jsxs("div",{className:u.field.base,children:[a&&f.jsx("div",{className:u.field.icon.base,children:f.jsx(a,{className:u.field.icon.svg})}),f.jsx("select",{className:Q(u.field.select.base,u.field.select.colors[r],u.field.select.sizes[i],u.field.select.withIcon[a?"on":"off"],u.field.select.withAddon[t?"on":"off"],u.field.select.withShadow[o?"on":"off"]),...c,ref:d,children:e}),s&&f.jsx(oa,{color:r,children:s})]})]})});E_.displayName="Select";const P_=({animation:t="duration-300",arrow:e=!0,children:n,className:r,content:s,placement:a="top",style:o="dark",theme:i,trigger:l="hover",minWidth:c,...d})=>{const u=_.useRef(null),[h,g]=_.useState(!1),m=fg({open:h,placement:a,arrowRef:u,setOpen:g}),{context:p,middlewareData:{arrow:{x:b,y}={}},refs:v,strategy:k,update:x,x:w,y:S}=m,N=i_(p),{getFloatingProps:M,getReferenceProps:T}=hg({context:p,role:"tooltip",trigger:l,interactions:[N]});return _.useEffect(()=>{if(v.reference.current&&v.floating.current&&h)return Ch(v.reference.current,v.floating.current,x)},[h,v.floating,v.reference,x]),f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:v.setReference,className:i.target,"data-testid":"flowbite-tooltip-target",...T(),children:n}),f.jsxs("div",{ref:v.setFloating,"data-testid":"flowbite-tooltip",...M({className:Q(i.base,t&&`${i.animation} ${t}`,!h&&i.hidden,i.style[o],r),style:{position:k,top:S??" ",left:w??" ",minWidth:c},...d}),children:[f.jsx("div",{className:i.content,children:s}),e&&f.jsx("div",{className:Q(i.arrow.base,o==="dark"&&i.arrow.style.dark,o==="light"&&i.arrow.style.light,o==="auto"&&i.arrow.style.auto),"data-testid":"flowbite-tooltip-arrow",ref:u,style:{top:y??" ",left:b??" ",right:" ",bottom:" ",[p_({placement:m.placement})]:i.arrow.placement},children:" "})]})]})},Qo=({animation:t="duration-300",arrow:e=!0,children:n,className:r,content:s,placement:a="top",style:o="dark",theme:i={},trigger:l="hover",...c})=>{const d=ne(he().tooltip,i);return f.jsx(P_,{animation:t,arrow:e,content:s,placement:a,style:o,theme:d,trigger:l,className:r,...c,children:n})};Qo.displayName="Tooltip";const Kg=_.createContext(void 0);function ks(){const t=_.useContext(Kg);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const Rc=_.createContext(void 0);function T_(){const t=_.useContext(Rc);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const Gg=({children:t,className:e,icon:n,label:r,chevronIcon:s=Xl,renderChevronIcon:a,open:o=!1,theme:i={},...l})=>{const c=_.useId(),[d,u]=_.useState(o),{theme:h,isCollapsed:g}=ks(),m=ne(h.collapse,i);_.useEffect(()=>u(o),[o]);const p=({children:b})=>f.jsx("li",{children:g&&!d?f.jsx(Qo,{content:r,placement:"right",children:b}):b});return f.jsxs(p,{children:[f.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:r,type:"button",className:Q(m.button,e),...l,children:[n&&f.jsx(n,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:Q(m.icon.base,m.icon.open[d?"on":"off"])}),g?f.jsx("span",{className:"sr-only",children:r}):f.jsxs(f.Fragment,{children:[f.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:m.label.base,children:r}),a?a(m,d):f.jsx(s,{"aria-hidden":!0,className:Q(m.label.icon.base,m.label.icon.open[d?"on":"off"])})]})]}),f.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:m.list,children:f.jsx(Rc.Provider,{value:{isInsideCollapse:!0},children:t})})]})};Gg.displayName="Sidebar.Collapse";const Qg=({children:t,color:e="info",className:n,theme:r={},...s})=>{const{theme:a,isCollapsed:o}=ks(),i=ne(a.cta,r);return f.jsx("div",{"data-testid":"sidebar-cta",hidden:o,className:Q(i.base,i.color[e],n),...s,children:t})};Qg.displayName="Sidebar.CTA";const N_=({id:t,theme:e,isCollapsed:n,tooltipChildren:r,children:s,...a})=>f.jsx("li",{...a,children:n?f.jsx(Qo,{content:f.jsx(Zg,{id:t,theme:e,children:r}),placement:"right",children:s}):s}),Zg=({id:t,theme:e,children:n})=>f.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:Q(e.content.base),children:n}),Jg=_.forwardRef(({active:t,as:e="a",children:n,className:r,icon:s,label:a,labelColor:o="info",theme:i={},...l},c)=>{var p,b,y,v;const d=_.useId(),{theme:u,isCollapsed:h}=ks(),{isInsideCollapse:g}=T_(),m=ne(u.item,i);return f.jsx(N_,{theme:m,className:m.listItem,id:d,isCollapsed:h,tooltipChildren:n,children:f.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:Q(m.base,t&&m.active,!h&&g&&((p=m.collapsed)==null?void 0:p.insideCollapse),r),...l,children:[s&&f.jsx(s,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:Q((b=m.icon)==null?void 0:b.base,t&&((y=m.icon)==null?void 0:y.active))}),h&&!s&&f.jsx("span",{className:(v=m.collapsed)==null?void 0:v.noIcon,children:n.charAt(0).toLocaleUpperCase()??"?"}),!h&&f.jsx(Zg,{id:d,theme:m,children:n}),!h&&a&&f.jsx(Hf,{color:o,"data-testid":"flowbite-sidebar-label",hidden:h,className:m.label,children:a})]})})});Jg.displayName="Sidebar.Item";const qg=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=ks(),a=ne(s.itemGroup,n);return f.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:Q(a.base,e),...r,children:f.jsx(Rc.Provider,{value:{isInsideCollapse:!1},children:t})})};qg.displayName="Sidebar.ItemGroup";const $g=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=ks(),a=ne(s.items,n);return f.jsx("div",{className:Q(a.base,e),"data-testid":"flowbite-sidebar-items",...r,children:t})};$g.displayName="Sidebar.Items";const em=({children:t,className:e,href:n,img:r,imgAlt:s="",theme:a={},...o})=>{const i=_.useId(),{theme:l,isCollapsed:c}=ks(),d=ne(l.logo,a);return f.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${i}`,href:n,className:Q(d.base,e),...o,children:[f.jsx("img",{alt:s,src:r,className:d.img}),f.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${i}`,children:t})]})};em.displayName="Sidebar.Logo";const tm=({children:t,as:e="nav",collapseBehavior:n="collapse",collapsed:r=!1,theme:s={},className:a,...o})=>{const i=ne(he().sidebar,s);return f.jsx(Kg.Provider,{value:{theme:i,isCollapsed:r},children:f.jsx(e,{"aria-label":"Sidebar",hidden:r&&n==="hide",className:Q(i.root.base,i.root.collapsed[r?"on":"off"],a),...o,children:f.jsx("div",{className:i.root.inner,children:t})})})};tm.displayName="Sidebar",Object.assign(tm,{Collapse:Gg,CTA:Qg,Item:Jg,Items:$g,ItemGroup:qg,Logo:em});const nm=_.createContext(void 0);function j_(){const t=_.useContext(nm);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const rm=_.createContext(void 0);function Lc(){const t=_.useContext(rm);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const sm=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=Lc(),o=ne(a.body,n);return f.jsx(nm.Provider,{value:{theme:o},children:f.jsx("tbody",{className:Q(o.base,e),ref:s,...r,children:t})})});sm.displayName="Table.Body";const am=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=j_(),o=ne(a.cell,n);return f.jsx("td",{className:Q(o.base,e),ref:s,...r,children:t})});am.displayName="Table.Cell";const om=_.createContext(void 0);function I_(){const t=_.useContext(om);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const im=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=Lc(),o=ne(a.head,n);return f.jsx(om.Provider,{value:{theme:o},children:f.jsx("thead",{className:Q(o.base,e),ref:s,...r,children:f.jsx("tr",{children:t})})})});im.displayName="Table.Head";const lm=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=I_(),o=ne(a.cell,n);return f.jsx("th",{className:Q(o.base,e),ref:s,...r,children:t})});lm.displayName="Table.HeadCell";const cm=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a,hoverable:o,striped:i}=Lc(),l=ne(a.row,n);return f.jsx("tr",{ref:s,"data-testid":"table-row-element",className:Q(l.base,i&&l.striped,o&&l.hovered,e),...r,children:t})});cm.displayName="Table.Row";const dm=_.forwardRef(({children:t,className:e,striped:n,hoverable:r,theme:s={},...a},o)=>{const i=ne(he().table,s);return f.jsx("div",{"data-testid":"table-element",className:Q(i.root.wrapper),children:f.jsxs(rm.Provider,{value:{theme:i,striped:n,hoverable:r},children:[f.jsx("div",{className:Q(i.root.shadow,e)}),f.jsx("table",{className:Q(i.root.base,e),...a,ref:o,children:t})]})})});dm.displayName="Table";const tt=Object.assign(dm,{Head:im,Body:sm,Row:cm,Cell:am,HeadCell:lm}),um=({children:t,className:e})=>f.jsx("div",{className:e,children:t});um.displayName="Tabs.Item";const fm=_.forwardRef(({children:t,className:e,onActiveTabChange:n,style:r="default",theme:s={},...a},o)=>{const i=ne(he().tabs,s),l=_.useId(),c=_.useMemo(()=>_.Children.map(_.Children.toArray(t),({props:x})=>x),[t]),d=_.useRef([]),[u,h]=_.useState(Math.max(0,c.findIndex(x=>x.active))),[g,m]=_.useState(-1),p=x=>{h(x),n&&n(x)},b=({target:x})=>{p(x),m(x)},y=({event:x,target:w})=>{x.key==="ArrowLeft"&&m(Math.max(0,g-1)),x.key==="ArrowRight"&&m(Math.min(c.length-1,g+1)),x.key==="Enter"&&(p(w),m(w))},v=i.tablist.tabitem.styles[r],k=i.tabitemcontainer.styles[r];return _.useEffect(()=>{var x;(x=d.current[g])==null||x.focus()},[g]),_.useImperativeHandle(o,()=>({setActiveTab:p})),f.jsxs("div",{className:Q(i.base,e),children:[f.jsx("div",{"aria-label":"Tabs",role:"tablist",className:Q(i.tablist.base,i.tablist.styles[r],e),...a,children:c.map((x,w)=>f.jsxs("button",{type:"button","aria-controls":`${l}-tabpanel-${w}`,"aria-selected":w===u,className:Q(i.tablist.tabitem.base,v.base,w===u&&v.active.on,w!==u&&!x.disabled&&v.active.off),disabled:x.disabled,id:`${l}-tab-${w}`,onClick:()=>b({target:w}),onKeyDown:S=>y({event:S,target:w}),ref:S=>d.current[w]=S,role:"tab",tabIndex:w===g?0:-1,style:{zIndex:w===g?2:1},children:[x.icon&&f.jsx(x.icon,{className:i.tablist.tabitem.icon}),x.title]},w))}),f.jsx("div",{className:Q(i.tabitemcontainer.base,k),children:c.map((x,w)=>f.jsx("div",{"aria-labelledby":`${l}-tab-${w}`,className:i.tabpanel,hidden:w!==u,id:`${l}-tabpanel-${w}`,role:"tabpanel",tabIndex:0,children:x.children},w))})]})});fm.displayName="Tabs",Object.assign(fm,{Item:um});const A_=_.forwardRef(({className:t,color:e="gray",helperText:n,shadow:r,theme:s={},...a},o)=>{const i=ne(he().textarea,s);return f.jsxs(f.Fragment,{children:[f.jsx("textarea",{ref:o,className:Q(i.base,i.colors[e],i.withShadow[r?"on":"off"],t),...a}),n&&f.jsx(oa,{color:e,children:n})]})});A_.displayName="Textarea";const hm=_.createContext(void 0);function Fc(){const t=_.useContext(hm);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const gm=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=Fc(),a=ne(s.body,n);return f.jsx("div",{className:Q(a.base,e),...r,children:t})},mm=_.createContext(void 0);function Bc(){const t=_.useContext(mm);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const pm=_.createContext(void 0);function bm(){const t=_.useContext(pm);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const ym=({children:t,className:e,theme:n={},...r})=>{const{horizontal:s}=Bc(),{theme:a}=bm(),o=ne(a.content,n);return f.jsx(hm.Provider,{value:{theme:o},children:f.jsx("div",{"data-testid":"timeline-content",className:Q(s&&o.root.base,e),...r,children:t})})},wm=({children:t,className:e,theme:n={},...r})=>{const{theme:s,horizontal:a}=Bc(),o=ne(s.item,n);return f.jsx(pm.Provider,{value:{theme:o},children:f.jsx("li",{"data-testid":"timeline-item",className:Q(a&&o.root.horizontal,!a&&o.root.vertical,e),...r,children:t})})},vm=({children:t,className:e,icon:n,theme:r={},...s})=>{const{horizontal:a}=Bc(),{theme:o}=bm(),i=ne(o.point,r);return f.jsxs("div",{"data-testid":"timeline-point",className:Q(a&&i.horizontal,!a&&i.vertical,e),...s,children:[t,n?f.jsx("span",{className:Q(i.marker.icon.wrapper),children:f.jsx(n,{"aria-hidden":!0,className:Q(i.marker.icon.base)})}):f.jsx("div",{className:Q(a&&i.marker.base.horizontal,!a&&i.marker.base.vertical)}),a&&f.jsx("div",{className:Q(i.line)})]})},xm=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=Fc(),a=ne(s.time,n);return f.jsx("time",{className:Q(a.base,e),...r,children:t})},km=({as:t="h3",children:e,className:n,theme:r={},...s})=>{const{theme:a}=Fc(),o=ne(a.title,r);return f.jsx(t,{className:Q(o.base,n),...s,children:e})},_m=({children:t,className:e,horizontal:n,theme:r={},...s})=>{const a=ne(he().timeline,r);return f.jsx(mm.Provider,{value:{theme:a,horizontal:n},children:f.jsx("ol",{"data-testid":"timeline-component",className:Q(n&&a.root.direction.horizontal,!n&&a.root.direction.vertical,e),...s,children:t})})};_m.displayName="Timeline",wm.displayName="Timeline.Item",vm.displayName="Timeline.Point",ym.displayName="Timeline.Content",xm.displayName="Timeline.Time",km.displayName="Timeline.Title",gm.displayName="Timeline.Body",Object.assign(_m,{Item:wm,Point:vm,Content:ym,Time:xm,Title:km,Body:gm});const Sm=_.createContext(void 0);function R_(){const t=_.useContext(Sm);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const Om=({className:t,onClick:e,theme:n={},xIcon:r=Ex,onDismiss:s,...a})=>{const{theme:o,duration:i,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=R_(),h=ne(o.toggle,n),g=m=>{if(e&&e(m),s){s();return}d(!l),setTimeout(()=>u(!c),i)};return f.jsx("button",{"aria-label":"Close",onClick:g,type:"button",className:Q(h.base,t),...a,children:f.jsx(r,{"aria-hidden":!0,className:h.icon})})},L_={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},Cm=({children:t,className:e,duration:n=300,theme:r={},...s})=>{const[a,o]=_.useState(!1),[i,l]=_.useState(!1),c=ne(he().toast,r);return i?null:f.jsx(Sm.Provider,{value:{theme:c,duration:n,isClosed:a,isRemoved:i,setIsClosed:o,setIsRemoved:l},children:f.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:Q(c.root.base,L_[n],a&&c.root.closed,e),...s,children:t})})};Cm.displayName="Toast",Om.displayName="Toast.Toggle",Object.assign(Cm,{Toggle:Om});const F_=_.forwardRef(({checked:t,className:e,color:n="blue",sizing:r="md",disabled:s,label:a,name:o,onChange:i,theme:l={},...c},d)=>{const u=_.useId(),h=ne(he().toggleSwitch,l),g=()=>i(!t),m=()=>{g()},p=b=>{b.code=="Enter"&&b.preventDefault()};return f.jsxs(f.Fragment,{children:[o&&t?f.jsx("input",{ref:d,checked:t,hidden:!0,name:o,readOnly:!0,type:"checkbox",className:"sr-only"}):null,f.jsxs("button",{"aria-checked":t,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:s,id:`${u}-flowbite-toggleswitch`,onClick:m,onKeyDown:p,role:"switch",tabIndex:0,type:"button",className:Q(h.root.base,h.root.active[s?"off":"on"],e),...c,children:[f.jsx("div",{"data-testid":"flowbite-toggleswitch-toggle",className:Q(h.toggle.base,h.toggle.checked[t?"on":"off"],t&&h.toggle.checked.color[n],h.toggle.sizes[r])}),a!=null&&a.length?f.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:h.root.label,children:a}):null]})]})});F_.displayName="ToggleSwitch";const B_="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.5096%203.7321C17.4858%206.70824%2017.4858%2011.5335%2014.5096%2014.5096C11.5335%2017.4858%206.70824%2017.4858%203.7321%2014.5096C0.755965%2011.5335%200.755965%206.70824%203.7321%203.7321C6.70824%200.755965%2011.5335%200.755965%2014.5096%203.7321Z'%20stroke='%23191960'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M18.4999%2018.4999L14.5049%2014.5049'%20stroke='%23191960'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",pa=_.forwardRef(({icon:t,placeholder:e,label:n,error:r,type:s,classInclude:a,maxLength:o,onChange:i,classLabel:l,...c},d)=>f.jsxs("div",{className:`${n?"mb-3":""}`,children:[n&&f.jsx("label",{className:`mb-1 block font-semibold ${l??""}`,children:n}),t===!0?f.jsx(ds,{className:`${a}`,sizing:"sm",maxLength:o,ref:d,type:s,rightIcon:()=>f.jsx("img",{src:B_,alt:"search",width:17,height:17}),placeholder:e,onChange:i,...c}):f.jsx(ds,{className:`${a}`,sizing:"sm",maxLength:o,ref:d,type:s,placeholder:e,onChange:i,...c}),r&&f.jsx("p",{className:"mt-1 text-xs text-red-500",children:r})]}));pa.displayName="InputForm";const W_={"mth-password":"passwordInput-module__mth-password__R6DoN"},Wc=({placeholder:t,onChange:e,value:n,...r})=>{const[s,a]=_.useState(!1),o=()=>{a(!s)};return f.jsx("div",{className:"mb-5",children:f.jsxs("div",{className:"relative inline-block w-full",children:[f.jsx("input",{type:s?"text":"password",value:n,className:"w-full border p-2 pr-10",onChange:e,placeholder:t,...r}),f.jsx("button",{type:"button",onClick:o,className:W_["mth-password"],children:s?f.jsx(__,{}):f.jsx(S_,{})})]})})},Dm={mth_progress_bar:"progressBar-module__mth_progress_bar__q2V2y",mth_progress_bar_thumb:"progressBar-module__mth_progress_bar_thumb__OTDNJ"},Mm=({start:t,end:e,current:n,type:r})=>{const s=(n-t)/(e-t)*100,a=Math.min(Math.max(s,0),100),o=()=>a<10?"left-0":a>90?"right-0":"left-1/2 transform -translate-x-1/2";return f.jsxs("div",{className:"w-full p-1",children:[f.jsxs("div",{className:"mb-2 flex justify-between text-xs text-gray-400",children:[f.jsx("span",{children:t.toLocaleString()}),f.jsx("span",{children:e.toLocaleString()})]}),f.jsxs("div",{className:"relative mb-5 h-1 w-full rounded-full bg-gray-200",children:[f.jsx("div",{className:`${Dm.mth_progress_bar} absolute left-0 top-0 h-full rounded-full transition-all duration-300`,style:{width:`${a}%`}}),f.jsxs("div",{className:"absolute top-1/2 transform -translate-y-1/2 -translate-x-1/2",style:{left:`${a}%`},children:[f.jsx("div",{className:`${Dm.mth_progress_bar_thumb} w-2 h-2 rounded-full shadow-lg`}),f.jsxs("div",{className:`absolute top-full mt-2 text-xs font-medium text-black whitespace-nowrap ${o()}`,children:[n.toLocaleString()," ",r==="percentage"?"%":""]})]})]})]})},Em=_.forwardRef(({options:t,label:e,error:n,value:r,onChange:s,id:a,classDiv:o,...i},l)=>f.jsxs("div",{className:o,children:[f.jsxs("select",{ref:l,id:a,className:"h-8 w-full rounded-lg border px-3 py-0.5",value:r,onChange:s,...i,children:[f.jsx("option",{value:"0",children:e||"Seleccione una opción"}),t==null?void 0:t.map(c=>f.jsx("option",{value:c.value,children:c.label},c.value))]}),n&&f.jsx("p",{className:"mt-1 text-sm text-red-500",children:n})]}));Em.displayName="SelectForm";const Pm={mth_card_indicator:"card-module__mth_card_indicator__lfgp3"},z_=({logo:t,number:e,title:n,start:r,end:s,current:a,type:o,classIm:i})=>{const l=c=>new Intl.NumberFormat("es-ES",{maximumFractionDigits:2,minimumFractionDigits:0}).format(c);return f.jsxs("div",{className:`${Pm.mth_card_indicator} flex flex-col border bg-white px-3.5 py-4`,children:[f.jsx("div",{className:"flex justify-end",children:f.jsx(Or,{src:t||"",alt:"Icon",width:30,height:30,classIm:i})}),f.jsx("h2",{className:"mt-2 font-bold mth_card_indicator_title",id:`mth_card_indicator_${n}_title`,children:n.toUpperCase()}),f.jsxs("small",{className:"text-2xl font-extrabold mth_card_indicator_number",children:[l(e)," ",o==="percentage"?"%":""]}),f.jsx("div",{className:"mt-2 mth_card_indicator_progress_bar",children:f.jsx(Mm,{start:r,end:s,current:a,type:o})})]})};/*!
8
+ */var u1=["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])"],Lo=u1.join(","),Eh=typeof Element>"u",bs=Eh?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Fo=!Eh&&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},Bo=function t(e,n){var r;n===void 0&&(n=!0);var s=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),a=s===""||s==="true",o=a||n&&e&&t(e.parentNode);return o},f1=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},h1=function(e,n,r){if(Bo(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(Lo));return n&&bs.call(e,Lo)&&s.unshift(e),s=s.filter(r),s},g1=function t(e,n,r){for(var s=[],a=Array.from(e);a.length;){var o=a.shift();if(!Bo(o,!1))if(o.tagName==="SLOT"){var i=o.assignedElements(),l=i.length?i:o.children,c=t(l,!0,r);r.flatten?s.push.apply(s,c):s.push({scopeParent:o,candidates:c})}else{var d=bs.call(o,Lo);d&&r.filter(o)&&(n||!e.includes(o))&&s.push(o);var u=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),h=!Bo(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(u&&h){var g=t(u===!0?o.children:u.children,!0,r);r.flatten?s.push.apply(s,g):s.push({scopeParent:o,candidates:g})}else a.unshift.apply(a,o.children)}}return s},Ph=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Th=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||f1(e))&&!Ph(e)?0:e.tabIndex},m1=function(e,n){var r=Th(e);return r<0&&n&&!Ph(e)?0:r},p1=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},Nh=function(e){return e.tagName==="INPUT"},b1=function(e){return Nh(e)&&e.type==="hidden"},y1=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},w1=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},v1=function(e){if(!e.name)return!0;var n=e.form||Fo(e),r=function(i){return n.querySelectorAll('input[type="radio"][name="'+i+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=r(window.CSS.escape(e.name));else try{s=r(e.name)}catch(o){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",o.message),!1}var a=w1(s,e.form);return!a||a===e},x1=function(e){return Nh(e)&&e.type==="radio"},k1=function(e){return x1(e)&&!v1(e)},_1=function(e){var n,r=e&&Fo(e),s=(n=r)===null||n===void 0?void 0:n.host,a=!1;if(r&&r!==e){var o,i,l;for(a=!!((o=s)!==null&&o!==void 0&&(i=o.ownerDocument)!==null&&i!==void 0&&i.contains(s)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!a&&s;){var c,d,u;r=Fo(s),s=(c=r)===null||c===void 0?void 0:c.host,a=!!((d=s)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(s))}}return a},jh=function(e){var n=e.getBoundingClientRect(),r=n.width,s=n.height;return r===0&&s===0},S1=function(e,n){var r=n.displayCheck,s=n.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var a=bs.call(e,"details>summary:first-of-type"),o=a?e.parentElement:e;if(bs.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof s=="function"){for(var i=e;e;){var l=e.parentElement,c=Fo(e);if(l&&!l.shadowRoot&&s(l)===!0)return jh(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=i}if(_1(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return jh(e);return!1},O1=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var s=n.children.item(r);if(s.tagName==="LEGEND")return bs.call(n,"fieldset[disabled] *")?!0:!s.contains(e)}return!0}n=n.parentElement}return!1},C1=function(e,n){return!(n.disabled||Bo(n)||b1(n)||S1(n,e)||y1(n)||O1(n))},pc=function(e,n){return!(k1(n)||Th(n)<0||!C1(e,n))},D1=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},M1=function t(e){var n=[],r=[];return e.forEach(function(s,a){var o=!!s.scopeParent,i=o?s.scopeParent:s,l=m1(i,o),c=o?t(s.candidates):i;l===0?o?n.push.apply(n,c):n.push(i):r.push({documentOrder:a,tabIndex:l,item:s,isScope:o,content:c})}),r.sort(p1).reduce(function(s,a){return a.isScope?s.push.apply(s,a.content):s.push(a.content),s},[]).concat(n)},Wo=function(e,n){n=n||{};var r;return n.getShadowRoot?r=g1([e],n.includeContainer,{filter:pc.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:D1}):r=h1(e,n.includeContainer,pc.bind(null,n)),M1(r)},E1=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return bs.call(e,Lo)===!1?!1:pc(n,e)};function Ih(t){return H.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})},t)}const P1=H.useInsertionEffect||(t=>t());function pn(t){const e=H.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return P1(()=>{e.current=t}),H.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return e.current==null?void 0:e.current(...r)},[])}const bc="ArrowUp",da="ArrowDown",ys="ArrowLeft",ws="ArrowRight";function zo(t,e,n){return Math.floor(t/e)!==n}function ua(t,e){return e<0||e>=t.current.length}function yc(t,e){return yt(t,{disabledIndices:e})}function Ah(t,e){return yt(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function yt(t,e){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:s,amount:a=1}=e===void 0?{}:e;const o=t.current,i=s?c=>s.includes(c):c=>{const d=o[c];return d==null||d.hasAttribute("disabled")||d.getAttribute("aria-disabled")==="true"};let l=n;do l+=r?-a:a;while(l>=0&&l<=o.length-1&&i(l));return l}function T1(t,e){let{event:n,orientation:r,loop:s,cols:a,disabledIndices:o,minIndex:i,maxIndex:l,prevIndex:c,stopEvent:d=!1}=e,u=c;if(n.key===bc){if(d&&gt(n),c===-1)u=l;else if(u=yt(t,{startingIndex:u,amount:a,decrement:!0,disabledIndices:o}),s&&(c-a<i||u<0)){const h=c%a,g=l%a,m=l-(g-h);g===h?u=l:u=g>h?m:m-a}ua(t,u)&&(u=c)}if(n.key===da&&(d&&gt(n),c===-1?u=i:(u=yt(t,{startingIndex:c,amount:a,disabledIndices:o}),s&&c+a>l&&(u=yt(t,{startingIndex:c%a-a,amount:a,disabledIndices:o}))),ua(t,u)&&(u=c)),r==="both"){const h=gs(c/a);n.key===ws&&(d&&gt(n),c%a!==a-1?(u=yt(t,{startingIndex:c,disabledIndices:o}),s&&zo(u,a,h)&&(u=yt(t,{startingIndex:c-c%a-1,disabledIndices:o}))):s&&(u=yt(t,{startingIndex:c-c%a-1,disabledIndices:o})),zo(u,a,h)&&(u=c)),n.key===ys&&(d&&gt(n),c%a!==0?(u=yt(t,{startingIndex:c,disabledIndices:o,decrement:!0}),s&&zo(u,a,h)&&(u=yt(t,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:o}))):s&&(u=yt(t,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:o})),zo(u,a,h)&&(u=c));const g=gs(l/a)===h;ua(t,u)&&(s&&g?u=n.key===ys?l:yt(t,{startingIndex:c-c%a-1,disabledIndices:o}):u=c)}return u}function N1(t,e,n){const r=[];let s=0;return t.forEach((a,o)=>{let{width:i,height:l}=a;if(i>e&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+o+" is greater than grid columns");let c=!1;for(n&&(s=0);!c;){const d=[];for(let u=0;u<i;u++)for(let h=0;h<l;h++)d.push(s+u+h*e);s%e+i<=e&&d.every(u=>r[u]==null)?(d.forEach(u=>{r[u]=o}),c=!0):s++}}),[...r]}function j1(t,e,n,r,s){if(t===-1)return-1;const a=n.indexOf(t);switch(s){case"tl":return a;case"tr":return a+e[t].width-1;case"bl":return a+(e[t].height-1)*r;case"br":return n.lastIndexOf(t)}}function I1(t,e){return e.flatMap((n,r)=>t.includes(n)?[r]:[])}let Rh=0;function Bn(t,e){e===void 0&&(e={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:s=!1}=e;r&&cancelAnimationFrame(Rh);const a=()=>t==null?void 0:t.focus({preventScroll:n});s?a():Rh=requestAnimationFrame(a)}var Ie=typeof document<"u"?_.useLayoutEffect:_.useEffect;function A1(t,e){const n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function R1(t,e){if(t.size!==e.size)return!1;for(const[n,r]of t.entries())if(r!==e.get(n))return!1;return!0}const Lh=H.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function L1(t){let{children:e,elementsRef:n,labelsRef:r}=t;const[s,a]=H.useState(()=>new Map),o=H.useCallback(l=>{a(c=>new Map(c).set(l,null))},[]),i=H.useCallback(l=>{a(c=>{const d=new Map(c);return d.delete(l),d})},[]);return Ie(()=>{const l=new Map(s);Array.from(l.keys()).sort(A1).forEach((d,u)=>{l.set(d,u)}),R1(s,l)||a(l)},[s]),H.createElement(Lh.Provider,{value:H.useMemo(()=>({register:o,unregister:i,map:s,elementsRef:n,labelsRef:r}),[o,i,s,n,r])},e)}function F1(t){let{label:e}=t===void 0?{}:t;const[n,r]=H.useState(null),s=H.useRef(null),{register:a,unregister:o,map:i,elementsRef:l,labelsRef:c}=H.useContext(Lh),d=H.useCallback(u=>{if(s.current=u,n!==null&&(l.current[n]=u,c)){var h;const g=e!==void 0;c.current[n]=g?e:(h=u==null?void 0:u.textContent)!=null?h:null}},[n,l,c,e]);return Ie(()=>{const u=s.current;if(u)return a(u),()=>{o(u)}},[a,o]),Ie(()=>{const u=s.current?i.get(s.current):null;u!=null&&r(u)},[i]),H.useMemo(()=>({ref:d,index:n??-1}),[n,d])}function fa(){return fa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},fa.apply(this,arguments)}let wc=!1,B1=0;const Fh=()=>"floating-ui-"+B1++;function W1(){const[t,e]=H.useState(()=>wc?Fh():void 0);return Ie(()=>{t==null&&e(Fh())},[]),H.useEffect(()=>{wc||(wc=!0)},[]),t}const Ho=H.useId||W1;function z1(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(s=>s(n))},on(e,n){t.set(e,[...t.get(e)||[],n])},off(e,n){var r;t.set(e,((r=t.get(e))==null?void 0:r.filter(s=>s!==n))||[])}}}const H1=H.createContext(null),Y1=H.createContext(null),Yo=()=>{var t;return((t=H.useContext(H1))==null?void 0:t.id)||null},ha=()=>H.useContext(Y1);function Tr(t){return"data-floating-ui-"+t}function bn(t){const e=_.useRef(t);return Ie(()=>{e.current=t}),e}const Bh=Tr("safe-polygon");function vc(t,e,n){return n&&!Eo(n)?0:typeof t=="number"?t:t==null?void 0:t[e]}function V1(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:s,events:a,elements:{domReference:o,floating:i},refs:l}=t,{enabled:c=!0,delay:d=0,handleClose:u=null,mouseOnly:h=!1,restMs:g=0,move:m=!0}=e,p=ha(),b=Yo(),y=bn(u),v=bn(d),k=H.useRef(),x=H.useRef(),w=H.useRef(),S=H.useRef(),N=H.useRef(!0),M=H.useRef(!1),T=H.useRef(()=>{}),P=H.useCallback(()=>{var C;const E=(C=s.current.openEvent)==null?void 0:C.type;return(E==null?void 0:E.includes("mouse"))&&E!=="mousedown"},[s]);H.useEffect(()=>{if(!c)return;function C(E){let{open:W}=E;W||(clearTimeout(x.current),clearTimeout(S.current),N.current=!0)}return a.on("openchange",C),()=>{a.off("openchange",C)}},[c,a]),H.useEffect(()=>{if(!c||!y.current||!n)return;function C(W){P()&&r(!1,W,"hover")}const E=_t(i).documentElement;return E.addEventListener("mouseleave",C),()=>{E.removeEventListener("mouseleave",C)}},[i,n,r,c,y,P]);const z=H.useCallback(function(C,E,W){E===void 0&&(E=!0),W===void 0&&(W="hover");const U=vc(v.current,"close",k.current);U&&!w.current?(clearTimeout(x.current),x.current=setTimeout(()=>r(!1,C,W),U)):E&&(clearTimeout(x.current),r(!1,C,W))},[v,r]),F=H.useCallback(()=>{T.current(),w.current=void 0},[]),O=H.useCallback(()=>{if(M.current){const C=_t(l.floating.current).body;C.style.pointerEvents="",C.removeAttribute(Bh),M.current=!1}},[l]);return H.useEffect(()=>{if(!c)return;function C(){return s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1}function E(G){if(clearTimeout(x.current),N.current=!1,h&&!Eo(k.current)||g>0&&vc(v.current,"open")===0)return;const ee=vc(v.current,"open",k.current);ee?x.current=setTimeout(()=>{r(!0,G,"hover")},ee):r(!0,G,"hover")}function W(G){if(C())return;T.current();const ee=_t(i);if(clearTimeout(S.current),y.current){n||clearTimeout(x.current),w.current=y.current({...t,tree:p,x:G.clientX,y:G.clientY,onClose(){O(),F(),z(G,!0,"safe-polygon")}});const V=w.current;ee.addEventListener("mousemove",V),T.current=()=>{ee.removeEventListener("mousemove",V)};return}(k.current==="touch"?!et(i,G.relatedTarget):!0)&&z(G)}function U(G){C()||y.current==null||y.current({...t,tree:p,x:G.clientX,y:G.clientY,onClose(){O(),F(),z(G)}})(G)}if(Pe(o)){const G=o;return n&&G.addEventListener("mouseleave",U),i==null||i.addEventListener("mouseleave",U),m&&G.addEventListener("mousemove",E,{once:!0}),G.addEventListener("mouseenter",E),G.addEventListener("mouseleave",W),()=>{n&&G.removeEventListener("mouseleave",U),i==null||i.removeEventListener("mouseleave",U),m&&G.removeEventListener("mousemove",E),G.removeEventListener("mouseenter",E),G.removeEventListener("mouseleave",W)}}},[o,i,c,t,h,g,m,z,F,O,r,n,p,v,y,s]),Ie(()=>{var C;if(c&&n&&(C=y.current)!=null&&C.__options.blockPointerEvents&&P()){const W=_t(i).body;if(W.setAttribute(Bh,""),W.style.pointerEvents="none",M.current=!0,Pe(o)&&i){var E;const U=o,G=p==null||(E=p.nodesRef.current.find(ee=>ee.id===b))==null||(E=E.context)==null?void 0:E.elements.floating;return G&&(G.style.pointerEvents=""),U.style.pointerEvents="auto",i.style.pointerEvents="auto",()=>{U.style.pointerEvents="",i.style.pointerEvents=""}}}},[c,n,b,i,o,p,y,P]),Ie(()=>{n||(k.current=void 0,F(),O())},[n,F,O]),H.useEffect(()=>()=>{F(),clearTimeout(x.current),clearTimeout(S.current),O()},[c,o,F,O]),H.useMemo(()=>{if(!c)return{};function C(E){k.current=E.pointerType}return{reference:{onPointerDown:C,onPointerEnter:C,onMouseMove(E){n||g===0||(clearTimeout(S.current),S.current=setTimeout(()=>{N.current||r(!0,E.nativeEvent,"hover")},g))}},floating:{onMouseEnter(){clearTimeout(x.current)},onMouseLeave(E){z(E.nativeEvent,!1)}}}},[c,g,n,r,z])}function U1(t,e){var n;let r=[],s=(n=t.find(a=>a.id===e))==null?void 0:n.parentId;for(;s;){const a=t.find(o=>o.id===s);s=a==null?void 0:a.parentId,a&&(r=r.concat(a))}return r}function Nr(t,e){let n=t.filter(s=>{var a;return s.parentId===e&&((a=s.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=t.filter(s=>{var a;return(a=r)==null?void 0:a.some(o=>{var i;return s.parentId===o.id&&((i=s.context)==null?void 0:i.open)})}),n=n.concat(r);return n}function X1(t,e){let n,r=-1;function s(a,o){o>r&&(n=a,r=o),Nr(t,a).forEach(l=>{s(l.id,o+1)})}return s(e,0),t.find(a=>a.id===n)}let vs=new WeakMap,Vo=new WeakSet,Uo={},xc=0;const G1=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,Wh=t=>t&&(t.host||Wh(t.parentNode)),K1=(t,e)=>e.map(n=>{if(t.contains(n))return n;const r=Wh(n);return t.contains(r)?r:null}).filter(n=>n!=null);function Q1(t,e,n,r){const s="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,o=K1(e,t),i=new Set,l=new Set(o),c=[];Uo[s]||(Uo[s]=new WeakMap);const d=Uo[s];o.forEach(u),h(e),i.clear();function u(g){!g||i.has(g)||(i.add(g),g.parentNode&&u(g.parentNode))}function h(g){!g||l.has(g)||Array.prototype.forEach.call(g.children,m=>{if(i.has(m))h(m);else{const p=a?m.getAttribute(a):null,b=p!==null&&p!=="false",y=(vs.get(m)||0)+1,v=(d.get(m)||0)+1;vs.set(m,y),d.set(m,v),c.push(m),y===1&&b&&Vo.add(m),v===1&&m.setAttribute(s,""),!b&&a&&m.setAttribute(a,"true")}})}return xc++,()=>{c.forEach(g=>{const m=(vs.get(g)||0)-1,p=(d.get(g)||0)-1;vs.set(g,m),d.set(g,p),m||(!Vo.has(g)&&a&&g.removeAttribute(a),Vo.delete(g)),p||g.removeAttribute(s)}),xc--,xc||(vs=new WeakMap,vs=new WeakMap,Vo=new WeakSet,Uo={})}}function zh(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=_t(t[0]).body;return Q1(t.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,e,n)}const ga=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Hh(t,e){const n=Wo(t,ga());e==="prev"&&n.reverse();const r=n.indexOf(hn(_t(t)));return n.slice(r+1)[0]}function Yh(){return Hh(document.body,"next")}function Vh(){return Hh(document.body,"prev")}function ma(t,e){const n=e||t.currentTarget,r=t.relatedTarget;return!r||!et(n,r)}function Z1(t){Wo(t,ga()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function J1(t){t.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const kc={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 q1;function Uh(t){t.key==="Tab"&&(t.target,clearTimeout(q1))}const Xo=H.forwardRef(function(e,n){const[r,s]=H.useState();Ie(()=>(sc()&&s("button"),document.addEventListener("keydown",Uh),()=>{document.removeEventListener("keydown",Uh)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Tr("focus-guard")]:"",style:kc};return H.createElement("span",fa({},e,a))}),Xh=H.createContext(null),Gh=Tr("portal");function $1(t){let{id:e,root:n}=t===void 0?{}:t;const[r,s]=H.useState(null),a=Ho(),o=Kh(),i=H.useRef(null);return Ie(()=>()=>{r==null||r.remove(),queueMicrotask(()=>{i.current=null})},[r]),Ie(()=>{if(i.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=a,c.setAttribute(Gh,""),l.appendChild(c),i.current=c,s(c)},[e,a]),Ie(()=>{if(i.current)return;let l=n||(o==null?void 0:o.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=a,d.setAttribute(Gh,""),l=c||l,l.appendChild(d),i.current=d,s(d)},[e,n,a,o]),r}function e_(t){let{children:e,id:n,root:r=null,preserveTabOrder:s=!0}=t;const a=$1({id:n,root:r}),[o,i]=H.useState(null),l=H.useRef(null),c=H.useRef(null),d=H.useRef(null),u=H.useRef(null),h=!!o&&!o.modal&&o.open&&s&&!!(r||a);return H.useEffect(()=>{if(!a||!s||o!=null&&o.modal)return;function g(m){a&&ma(m)&&(m.type==="focusin"?J1:Z1)(a)}return a.addEventListener("focusin",g,!0),a.addEventListener("focusout",g,!0),()=>{a.removeEventListener("focusin",g,!0),a.removeEventListener("focusout",g,!0)}},[a,s,o==null?void 0:o.modal]),H.createElement(Xh.Provider,{value:H.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:a,setFocusManagerState:i}),[s,a])},h&&a&&H.createElement(Xo,{"data-type":"outside",ref:l,onFocus:g=>{if(ma(g,a)){var m;(m=d.current)==null||m.focus()}else{const p=Vh()||(o==null?void 0:o.refs.domReference.current);p==null||p.focus()}}}),h&&a&&H.createElement("span",{"aria-owns":a.id,style:kc}),a&&pf.createPortal(e,a),h&&a&&H.createElement(Xo,{"data-type":"outside",ref:c,onFocus:g=>{if(ma(g,a)){var m;(m=u.current)==null||m.focus()}else{const p=Yh()||(o==null?void 0:o.refs.domReference.current);p==null||p.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,g.nativeEvent))}}}))}const Kh=()=>H.useContext(Xh),t_=20;let jr=[];function _c(t){jr=jr.filter(n=>n.isConnected);let e=t;if(!(!e||Mr(e)==="body")){if(!E1(e,ga())){const n=Wo(e,ga())[0];if(!n)return;e=n}jr.push(e),jr.length>t_&&(jr=jr.slice(-20))}}function Qh(){return jr.slice().reverse().find(t=>t.isConnected)}const n_=H.forwardRef(function(e,n){return H.createElement("button",fa({},e,{type:"button",ref:n,tabIndex:-1,style:kc}))});function Zh(t){const{context:e,children:n,disabled:r=!1,order:s=["content"],guards:a=!0,initialFocus:o=0,returnFocus:i=!0,modal:l=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=t,{open:u,refs:h,nodeId:g,onOpenChange:m,events:p,dataRef:b,elements:{domReference:y,floating:v}}=e,k=typeof o=="number"&&o<0,x=dh(y)&&k,w=G1()?a:!0,S=bn(s),N=bn(o),M=bn(i),T=ha(),P=Kh(),z=H.useRef(null),F=H.useRef(null),O=H.useRef(!1),C=H.useRef(!1),E=P!=null,W=H.useCallback(function(j){return j===void 0&&(j=v),j?Wo(j,ga()):[]},[v]),U=H.useCallback(j=>{const V=W(j);return S.current.map(L=>y&&L==="reference"?y:v&&L==="floating"?v:V).filter(Boolean).flat()},[y,v,S,W]);H.useEffect(()=>{if(r||!l)return;function j(L){if(L.key==="Tab"){et(v,hn(_t(v)))&&W().length===0&&!x&&gt(L);const R=U(),A=ir(L);S.current[0]==="reference"&&A===y&&(gt(L),L.shiftKey?Bn(R[R.length-1]):Bn(R[1])),S.current[1]==="floating"&&A===v&&L.shiftKey&&(gt(L),Bn(R[0]))}}const V=_t(v);return V.addEventListener("keydown",j),()=>{V.removeEventListener("keydown",j)}},[r,y,v,l,S,x,W,U]),H.useEffect(()=>{if(r||!d)return;function j(){C.current=!0,setTimeout(()=>{C.current=!1})}function V(L){const R=L.relatedTarget;queueMicrotask(()=>{const A=!(et(y,R)||et(v,R)||et(R,v)||et(P==null?void 0:P.portalNode,R)||R!=null&&R.hasAttribute(Tr("focus-guard"))||T&&(Nr(T.nodesRef.current,g).find(D=>{var Y,J;return et((Y=D.context)==null?void 0:Y.elements.floating,R)||et((J=D.context)==null?void 0:J.elements.domReference,R)})||U1(T.nodesRef.current,g).find(D=>{var Y,J;return((Y=D.context)==null?void 0:Y.elements.floating)===R||((J=D.context)==null?void 0:J.elements.domReference)===R})));R&&A&&!C.current&&R!==Qh()&&(O.current=!0,m(!1,L))})}if(v&&ht(y))return y.addEventListener("focusout",V),y.addEventListener("pointerdown",j),!l&&v.addEventListener("focusout",V),()=>{y.removeEventListener("focusout",V),y.removeEventListener("pointerdown",j),!l&&v.removeEventListener("focusout",V)}},[r,y,v,l,g,T,P,m,d]),H.useEffect(()=>{var j;if(r)return;const V=Array.from((P==null||(j=P.portalNode)==null?void 0:j.querySelectorAll("["+Tr("portal")+"]"))||[]);if(v){const L=[v,...V,z.current,F.current,S.current.includes("reference")||x?y:null].filter(A=>A!=null),R=l||x?zh(L,w,!w):zh(L);return()=>{R()}}},[r,y,v,l,S,P,x,w]),Ie(()=>{if(r||!v)return;const j=_t(v),V=hn(j);queueMicrotask(()=>{const L=U(v),R=N.current,A=(typeof R=="number"?L[R]:R.current)||v,D=et(v,V);!k&&!D&&u&&Bn(A,{preventScroll:A===v})})},[r,u,v,k,U,N]),Ie(()=>{if(r||!v)return;let j=!1;const V=_t(v),L=hn(V),R=b.current;_c(L);function A(D){let{reason:Y,event:J,nested:K}=D;Y==="escape-key"&&h.domReference.current&&_c(h.domReference.current),Y==="hover"&&J.type==="mouseleave"&&(O.current=!0),Y==="outside-press"&&(K?(O.current=!1,j=!0):O.current=!(lh(J)||rc(J)))}return p.on("openchange",A),()=>{p.off("openchange",A);const D=hn(V),Y=et(v,D)||T&&Nr(T.nodesRef.current,g).some(I=>{var q;return et((q=I.context)==null?void 0:q.elements.floating,D)});(Y||R.openEvent&&["click","mousedown"].includes(R.openEvent.type))&&h.domReference.current&&_c(h.domReference.current);const K=Qh();M.current&&!O.current&&ht(K)&&(!(K!==D&&D!==V.body)||Y)&&Bn(K,{cancelPrevious:!1,preventScroll:j})}},[r,v,M,b,h,p,T,g]),Ie(()=>{if(!(r||!P))return P.setFocusManagerState({modal:l,closeOnFocusOut:d,open:u,onOpenChange:m,refs:h}),()=>{P.setFocusManagerState(null)}},[r,P,l,u,m,h,d]),Ie(()=>{if(r||!v||typeof MutationObserver!="function"||k)return;const j=()=>{const L=v.getAttribute("tabindex");S.current.includes("floating")||hn(_t(v))!==h.domReference.current&&W().length===0?L!=="0"&&v.setAttribute("tabindex","0"):L!=="-1"&&v.setAttribute("tabindex","-1")};j();const V=new MutationObserver(j);return V.observe(v,{childList:!0,subtree:!0,attributes:!0}),()=>{V.disconnect()}},[r,v,h,S,W,k]);function G(j){return r||!c||!l?null:H.createElement(n_,{ref:j==="start"?z:F,onClick:V=>m(!1,V.nativeEvent)},typeof c=="string"?c:"Dismiss")}const ee=!r&&w&&(E||l);return H.createElement(H.Fragment,null,ee&&H.createElement(Xo,{"data-type":"inside",ref:P==null?void 0:P.beforeInsideRef,onFocus:j=>{if(l){const L=U();Bn(s[0]==="reference"?L[0]:L[L.length-1])}else if(P!=null&&P.preserveTabOrder&&P.portalNode)if(O.current=!1,ma(j,P.portalNode)){const L=Yh()||y;L==null||L.focus()}else{var V;(V=P.beforeOutsideRef.current)==null||V.focus()}}}),!x&&G("start"),n,G("end"),ee&&H.createElement(Xo,{"data-type":"inside",ref:P==null?void 0:P.afterInsideRef,onFocus:j=>{if(l)Bn(U()[0]);else if(P!=null&&P.preserveTabOrder&&P.portalNode)if(d&&(O.current=!0),ma(j,P.portalNode)){const L=Vh()||y;L==null||L.focus()}else{var V;(V=P.afterOutsideRef.current)==null||V.focus()}}}))}const Sc=new Set,r_=H.forwardRef(function(e,n){let{lockScroll:r=!1,...s}=e;const a=Ho();return Ie(()=>{if(!r)return;Sc.add(a);const o=/iP(hone|ad|od)|iOS/.test(nc()),i=document.body.style,c=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth,u=i.left?parseFloat(i.left):window.pageXOffset,h=i.top?parseFloat(i.top):window.pageYOffset;if(i.overflow="hidden",d&&(i[c]=d+"px"),o){var g,m;const p=((g=window.visualViewport)==null?void 0:g.offsetLeft)||0,b=((m=window.visualViewport)==null?void 0:m.offsetTop)||0;Object.assign(i,{position:"fixed",top:-(h-Math.floor(b))+"px",left:-(u-Math.floor(p))+"px",right:"0"})}return()=>{Sc.delete(a),Sc.size===0&&(Object.assign(i,{overflow:"",[c]:""}),o&&(Object.assign(i,{position:"",top:"",left:"",right:""}),window.scrollTo(u,h)))}},[a,r]),H.createElement("div",fa({ref:n},s,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...s.style}}))});function Jh(t){return ht(t.target)&&t.target.tagName==="BUTTON"}function qh(t){return ic(t)}function $h(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:s,elements:{domReference:a}}=t,{enabled:o=!0,event:i="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=e,u=H.useRef(),h=H.useRef(!1);return H.useMemo(()=>o?{reference:{onPointerDown(g){u.current=g.pointerType},onMouseDown(g){g.button===0&&(Eo(u.current,!0)&&c||i!=="click"&&(n&&l&&(!s.current.openEvent||s.current.openEvent.type==="mousedown")?r(!1,g.nativeEvent,"click"):(g.preventDefault(),r(!0,g.nativeEvent,"click"))))},onClick(g){if(i==="mousedown"&&u.current){u.current=void 0;return}Eo(u.current,!0)&&c||(n&&l&&(!s.current.openEvent||s.current.openEvent.type==="click")?r(!1,g.nativeEvent,"click"):r(!0,g.nativeEvent,"click"))},onKeyDown(g){u.current=void 0,!(g.defaultPrevented||!d||Jh(g))&&(g.key===" "&&!qh(a)&&(g.preventDefault(),h.current=!0),g.key==="Enter"&&r(!(n&&l),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!d||Jh(g)||qh(a)||g.key===" "&&h.current&&(h.current=!1,r(!(n&&l),g.nativeEvent,"click"))}}}:{},[o,s,i,c,d,a,l,n,r])}const s_={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},a_={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},eg=t=>{var e,n;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(n=t==null?void 0:t.outsidePress)!=null?n:!0}};function tg(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,nodeId:s,elements:{reference:a,domReference:o,floating:i},dataRef:l}=t,{enabled:c=!0,escapeKey:d=!0,outsidePress:u=!0,outsidePressEvent:h="pointerdown",referencePress:g=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:b,capture:y}=e,v=ha(),k=pn(typeof u=="function"?u:()=>!1),x=typeof u=="function"?k:u,w=H.useRef(!1),S=H.useRef(!1),{escapeKey:N,outsidePress:M}=eg(b),{escapeKey:T,outsidePress:P}=eg(y),z=pn(E=>{if(!n||!c||!d||E.key!=="Escape")return;const W=v?Nr(v.nodesRef.current,s):[];if(!N&&(E.stopPropagation(),W.length>0)){let U=!0;if(W.forEach(G=>{var ee;if((ee=G.context)!=null&&ee.open&&!G.context.dataRef.current.__escapeKeyBubbles){U=!1;return}}),!U)return}r(!1,v2(E)?E.nativeEvent:E,"escape-key")}),F=pn(E=>{var W;const U=()=>{var G;z(E),(G=ir(E))==null||G.removeEventListener("keydown",U)};(W=ir(E))==null||W.addEventListener("keydown",U)}),O=pn(E=>{const W=w.current;w.current=!1;const U=S.current;if(S.current=!1,h==="click"&&U||W||typeof x=="function"&&!x(E))return;const G=ir(E),ee="["+Tr("inert")+"]",j=_t(i).querySelectorAll(ee);let V=Pe(G)?G:null;for(;V&&!ar(V);){const A=Ln(V);if(ar(A)||!Pe(A))break;V=A}if(j.length&&Pe(G)&&!x2(G)&&!et(G,i)&&Array.from(j).every(A=>!et(V,A)))return;if(ht(G)&&i){const A=G.clientWidth>0&&G.scrollWidth>G.clientWidth,D=G.clientHeight>0&&G.scrollHeight>G.clientHeight;let Y=D&&E.offsetX>G.clientWidth;if(D&&Zt(G).direction==="rtl"&&(Y=E.offsetX<=G.offsetWidth-G.clientWidth),Y||A&&E.offsetY>G.clientHeight)return}const L=v&&Nr(v.nodesRef.current,s).some(A=>{var D;return oc(E,(D=A.context)==null?void 0:D.elements.floating)});if(oc(E,i)||oc(E,o)||L)return;const R=v?Nr(v.nodesRef.current,s):[];if(R.length>0){let A=!0;if(R.forEach(D=>{var Y;if((Y=D.context)!=null&&Y.open&&!D.context.dataRef.current.__outsidePressBubbles){A=!1;return}}),!A)return}r(!1,E,"outside-press")}),C=pn(E=>{var W;const U=()=>{var G;O(E),(G=ir(E))==null||G.removeEventListener(h,U)};(W=ir(E))==null||W.addEventListener(h,U)});return H.useEffect(()=>{if(!n||!c)return;l.current.__escapeKeyBubbles=N,l.current.__outsidePressBubbles=M;function E(G){r(!1,G,"ancestor-scroll")}const W=_t(i);d&&W.addEventListener("keydown",T?F:z,T),x&&W.addEventListener(h,P?C:O,P);let U=[];return p&&(Pe(o)&&(U=or(o)),Pe(i)&&(U=U.concat(or(i))),!Pe(a)&&a&&a.contextElement&&(U=U.concat(or(a.contextElement)))),U=U.filter(G=>{var ee;return G!==((ee=W.defaultView)==null?void 0:ee.visualViewport)}),U.forEach(G=>{G.addEventListener("scroll",E,{passive:!0})}),()=>{d&&W.removeEventListener("keydown",T?F:z,T),x&&W.removeEventListener(h,P?C:O,P),U.forEach(G=>{G.removeEventListener("scroll",E)})}},[l,i,o,a,d,x,h,n,r,p,c,N,M,z,T,F,O,P,C]),H.useEffect(()=>{w.current=!1},[x,h]),H.useMemo(()=>c?{reference:{onKeyDown:z,[s_[m]]:E=>{g&&r(!1,E.nativeEvent,"reference-press")}},floating:{onKeyDown:z,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[a_[h]]:()=>{w.current=!0}}}:{},[c,g,h,m,r,z])}let Oc;process.env.NODE_ENV!=="production"&&(Oc=new Set);function ng(t){var e;t===void 0&&(t={});const{open:n=!1,onOpenChange:r,nodeId:s}=t;if(process.env.NODE_ENV!=="production"){var a;const M="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";if((a=t.elements)!=null&&a.reference&&!Pe(t.elements.reference)){var o;if(!((o=Oc)!=null&&o.has(M))){var i;(i=Oc)==null||i.add(M),console.error(M)}}}const[l,c]=H.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=s1(t),h=ha(),g=Yo()!=null,m=pn((M,T,P)=>{M&&(b.current.openEvent=T),y.emit("openchange",{open:M,event:T,reason:P,nested:g}),r==null||r(M,T,P)}),p=H.useRef(null),b=H.useRef({}),y=H.useState(()=>z1())[0],v=Ho(),k=H.useCallback(M=>{const T=Pe(M)?{getBoundingClientRect:()=>M.getBoundingClientRect(),contextElement:M}:M;u.refs.setReference(T)},[u.refs]),x=H.useCallback(M=>{(Pe(M)||M===null)&&(p.current=M,c(M)),(Pe(u.refs.reference.current)||u.refs.reference.current===null||M!==null&&!Pe(M))&&u.refs.setReference(M)},[u.refs]),w=H.useMemo(()=>({...u.refs,setReference:x,setPositionReference:k,domReference:p}),[u.refs,x,k]),S=H.useMemo(()=>({...u.elements,domReference:d}),[u.elements,d]),N=H.useMemo(()=>({...u,refs:w,elements:S,dataRef:b,nodeId:s,floatingId:v,events:y,open:n,onOpenChange:m}),[u,s,v,y,n,m,w,S]);return Ie(()=>{const M=h==null?void 0:h.nodesRef.current.find(T=>T.id===s);M&&(M.context=N)}),H.useMemo(()=>({...u,context:N,refs:w,elements:S}),[u,w,S,N])}function o_(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,events:s,refs:a,elements:{domReference:o}}=t,{enabled:i=!0,visibleOnly:l=!0}=e,c=H.useRef(!1),d=H.useRef(),u=H.useRef(!0);return H.useEffect(()=>{if(!i)return;const h=Mt(o);function g(){!n&&ht(o)&&o===hn(_t(o))&&(c.current=!0)}function m(){u.current=!0}return h.addEventListener("blur",g),h.addEventListener("keydown",m,!0),()=>{h.removeEventListener("blur",g),h.removeEventListener("keydown",m,!0)}},[o,n,i]),H.useEffect(()=>{if(!i)return;function h(g){let{reason:m}=g;(m==="reference-press"||m==="escape-key")&&(c.current=!0)}return s.on("openchange",h),()=>{s.off("openchange",h)}},[s,i]),H.useEffect(()=>()=>{clearTimeout(d.current)},[]),H.useMemo(()=>i?{reference:{onPointerDown(h){rc(h.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(h){if(c.current)return;const g=ir(h.nativeEvent);if(l&&Pe(g))try{if(sc()&&ch())throw Error();if(!g.matches(":focus-visible"))return}catch{if(!u.current&&!ic(g))return}r(!0,h.nativeEvent,"focus")},onBlur(h){c.current=!1;const g=h.relatedTarget,m=Pe(g)&&g.hasAttribute(Tr("focus-guard"))&&g.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{const p=hn(o?o.ownerDocument:document);!g&&p===o||et(a.floating.current,p)||et(o,p)||m||r(!1,h.nativeEvent,"focus")})}}}:{},[i,l,o,a,r])}const rg="active",sg="selected";function Cc(t,e,n){const r=new Map,s=n==="item";let a=t;if(s&&t){const{[rg]:o,[sg]:i,...l}=t;a=l}return{...n==="floating"&&{tabIndex:-1},...a,...e.map(o=>{const i=o?o[n]:null;return typeof i=="function"?t?i(t):null:i}).concat(t).reduce((o,i)=>(i&&Object.entries(i).forEach(l=>{let[c,d]=l;if(!(s&&[rg,sg].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof d=="function"){var u;(u=r.get(c))==null||u.push(d),o[c]=function(){for(var h,g=arguments.length,m=new Array(g),p=0;p<g;p++)m[p]=arguments[p];return(h=r.get(c))==null?void 0:h.map(b=>b(...m)).find(b=>b!==void 0)}}}else o[c]=d}),o),{})}}function ag(t){t===void 0&&(t=[]);const e=t,n=H.useCallback(a=>Cc(a,t,"reference"),e),r=H.useCallback(a=>Cc(a,t,"floating"),e),s=H.useCallback(a=>Cc(a,t,"item"),t.map(a=>a==null?void 0:a.item));return H.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:s}),[n,r,s])}let og=!1;function Go(t,e,n){switch(t){case"vertical":return e;case"horizontal":return n;default:return e||n}}function ig(t,e){return Go(e,t===bc||t===da,t===ys||t===ws)}function Dc(t,e,n){return Go(e,t===da,n?t===ys:t===ws)||t==="Enter"||t===" "||t===""}function i_(t,e,n){return Go(e,n?t===ys:t===ws,t===da)}function lg(t,e,n){return Go(e,n?t===ws:t===ys,t===bc)}function l_(t,e){const{open:n,onOpenChange:r,refs:s,elements:{domReference:a,floating:o}}=t,{listRef:i,activeIndex:l,onNavigate:c=()=>{},enabled:d=!0,selectedIndex:u=null,allowEscape:h=!1,loop:g=!1,nested:m=!1,rtl:p=!1,virtual:b=!1,focusItemOnOpen:y="auto",focusItemOnHover:v=!0,openOnArrowKeyDown:k=!0,disabledIndices:x=void 0,orientation:w="vertical",cols:S=1,scrollItemIntoView:N=!0,virtualItemRef:M,itemSizes:T,dense:P=!1}=e;process.env.NODE_ENV!=="production"&&(h&&(g||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),b||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),w==="vertical"&&S>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const z=Yo(),F=ha(),O=pn(c),C=H.useRef(y),E=H.useRef(u??-1),W=H.useRef(null),U=H.useRef(!0),G=H.useRef(O),ee=H.useRef(!!o),j=H.useRef(!1),V=H.useRef(!1),L=bn(x),R=bn(n),A=bn(N),[D,Y]=H.useState(),[J,K]=H.useState(),I=pn(function(B,re,se){se===void 0&&(se=!1);const ie=B.current[re.current];ie&&(b?(Y(ie.id),F==null||F.events.emit("virtualfocus",ie),M&&(M.current=ie)):Bn(ie,{preventScroll:!0,sync:ch()&&sc()?og||j.current:!1}),requestAnimationFrame(()=>{const ge=A.current;ge&&ie&&(se||!U.current)&&(ie.scrollIntoView==null||ie.scrollIntoView(typeof ge=="boolean"?{block:"nearest",inline:"nearest"}:ge))}))});Ie(()=>{document.createElement("div").focus({get preventScroll(){return og=!0,!1}})},[]),Ie(()=>{d&&(n&&o?C.current&&u!=null&&(V.current=!0,E.current=u,O(u)):ee.current&&(E.current=-1,G.current(null)))},[d,n,o,u,O]),Ie(()=>{if(d&&n&&o)if(l==null){if(j.current=!1,u!=null)return;if(ee.current&&(E.current=-1,I(i,E)),!ee.current&&C.current&&(W.current!=null||C.current===!0&&W.current==null)){let B=0;const re=()=>{i.current[0]==null?(B<2&&(B?requestAnimationFrame:queueMicrotask)(re),B++):(E.current=W.current==null||Dc(W.current,w,p)||m?yc(i,L.current):Ah(i,L.current),W.current=null,O(E.current))};re()}}else ua(i,l)||(E.current=l,I(i,E,V.current),V.current=!1)},[d,n,o,l,u,m,i,w,p,O,I,L]),Ie(()=>{var B;if(!d||o||!F||b||!ee.current)return;const re=F.nodesRef.current,se=(B=re.find(fe=>fe.id===z))==null||(B=B.context)==null?void 0:B.elements.floating,ie=hn(_t(o)),ge=re.some(fe=>fe.context&&et(fe.context.elements.floating,ie));se&&!ge&&U.current&&se.focus({preventScroll:!0})},[d,o,F,z,b]),Ie(()=>{if(!d||!F||!b||z)return;function B(re){K(re.id),M&&(M.current=re)}return F.events.on("virtualfocus",B),()=>{F.events.off("virtualfocus",B)}},[d,F,b,z,M]),Ie(()=>{G.current=O,ee.current=!!o}),Ie(()=>{n||(W.current=null)},[n]);const q=l!=null,te=H.useMemo(()=>{function B(se){if(!n)return;const ie=i.current.indexOf(se);ie!==-1&&O(ie)}return{onFocus(se){let{currentTarget:ie}=se;B(ie)},onClick:se=>{let{currentTarget:ie}=se;return ie.focus({preventScroll:!0})},...v&&{onMouseMove(se){let{currentTarget:ie}=se;B(ie)},onPointerLeave(se){let{pointerType:ie}=se;!U.current||ie==="touch"||(E.current=-1,I(i,E),O(null),b||Bn(s.floating.current,{preventScroll:!0}))}}}},[n,s,I,v,i,O,b]);return H.useMemo(()=>{if(!d)return{};const B=L.current;function re(ae){if(U.current=!1,j.current=!0,!R.current&&ae.currentTarget===s.floating.current)return;if(m&&lg(ae.key,w,p)){gt(ae),r(!1,ae.nativeEvent,"list-navigation"),ht(a)&&!b&&a.focus();return}const Ve=E.current,pe=yc(i,B),He=Ah(i,B);if(ae.key==="Home"&&(gt(ae),E.current=pe,O(E.current)),ae.key==="End"&&(gt(ae),E.current=He,O(E.current)),S>1){const Ge=T||Array.from({length:i.current.length},()=>({width:1,height:1})),$e=N1(Ge,S,P),Xt=$e.findIndex(Kt=>Kt!=null&&!(B!=null&&B.includes(Kt))),Gt=$e.reduce((Kt,Sr,Qt)=>Sr!=null&&!(B!=null&&B.includes(Sr))?Qt:Kt,-1);if(E.current=$e[T1({current:$e.map(Kt=>Kt!=null?i.current[Kt]:null)},{event:ae,orientation:w,loop:g,cols:S,disabledIndices:I1([...B||[],void 0],$e),minIndex:Xt,maxIndex:Gt,prevIndex:j1(E.current,Ge,$e,S,ae.key===da?"bl":ae.key===ws?"tr":"tl"),stopEvent:!0})],O(E.current),w==="both")return}if(ig(ae.key,w)){if(gt(ae),n&&!b&&hn(ae.currentTarget.ownerDocument)===ae.currentTarget){E.current=Dc(ae.key,w,p)?pe:He,O(E.current);return}Dc(ae.key,w,p)?g?E.current=Ve>=He?h&&Ve!==i.current.length?-1:pe:yt(i,{startingIndex:Ve,disabledIndices:B}):E.current=Math.min(He,yt(i,{startingIndex:Ve,disabledIndices:B})):g?E.current=Ve<=pe?h&&Ve!==-1?i.current.length:He:yt(i,{startingIndex:Ve,decrement:!0,disabledIndices:B}):E.current=Math.max(pe,yt(i,{startingIndex:Ve,decrement:!0,disabledIndices:B})),ua(i,E.current)?O(null):O(E.current)}}function se(ae){y==="auto"&&lh(ae.nativeEvent)&&(C.current=!0)}function ie(ae){C.current=y,y==="auto"&&rc(ae.nativeEvent)&&(C.current=!0)}const ge=b&&n&&q&&{"aria-activedescendant":J||D},fe=i.current.find(ae=>(ae==null?void 0:ae.id)===D);return{reference:{...ge,onKeyDown(ae){U.current=!1;const Ve=ae.key.indexOf("Arrow")===0,pe=i_(ae.key,w,p),He=lg(ae.key,w,p),Ge=ig(ae.key,w),$e=(m?pe:Ge)||ae.key==="Enter"||ae.key.trim()==="";if(b&&n){const Sr=F==null?void 0:F.nodesRef.current.find(Ul=>Ul.parentId==null),Qt=F&&Sr?X1(F.nodesRef.current,Sr.id):null;if(Ve&&Qt&&M){const Ul=new KeyboardEvent("keydown",{key:ae.key,bubbles:!0});if(pe||He){var Xt,Gt;const QL=((Xt=Qt.context)==null?void 0:Xt.elements.domReference)===ae.currentTarget,fx=He&&!QL?(Gt=Qt.context)==null?void 0:Gt.elements.domReference:pe?fe:null;fx&&(gt(ae),fx.dispatchEvent(Ul),K(void 0))}if(Ge&&Qt.context&&Qt.context.open&&Qt.parentId&&ae.currentTarget!==Qt.context.elements.domReference){var Kt;gt(ae),(Kt=Qt.context.elements.domReference)==null||Kt.dispatchEvent(Ul);return}}return re(ae)}if(!(!n&&!k&&Ve)){if($e&&(W.current=m&&Ge?null:ae.key),m){pe&&(gt(ae),n?(E.current=yc(i,B),O(E.current)):r(!0,ae.nativeEvent,"list-navigation"));return}Ge&&(u!=null&&(E.current=u),gt(ae),!n&&k?r(!0,ae.nativeEvent,"list-navigation"):re(ae),n&&O(E.current))}},onFocus(){n&&O(null)},onPointerDown:ie,onMouseDown:se,onClick:se},floating:{"aria-orientation":w==="both"?void 0:w,...!dh(a)&&ge,onKeyDown:re,onPointerMove(){U.current=!0}},item:te}},[a,s,D,J,L,R,i,d,w,p,b,n,q,m,u,k,h,S,g,y,O,r,te,F,M,T,P])}const c_=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function cg(t,e){var n;e===void 0&&(e={});const{open:r,floatingId:s}=t,{enabled:a=!0,role:o="dialog"}=e,i=(n=c_.get(o))!=null?n:o,l=Ho(),d=Yo()!=null;return H.useMemo(()=>{if(!a)return{};const u={id:s,...i&&{role:i}};return i==="tooltip"||o==="label"?{reference:{["aria-"+(o==="label"?"labelledby":"describedby")]:r?s:void 0},floating:u}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":i==="alertdialog"?"dialog":i,"aria-controls":r?s:void 0,...i==="listbox"&&{role:"combobox"},...i==="menu"&&{id:l},...i==="menu"&&d&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},floating:{...u,...i==="menu"&&{"aria-labelledby":l}},item(h){let{active:g,selected:m}=h;const p={role:"option",...g&&{id:s+"-option"}};switch(o){case"select":return{...p,"aria-selected":g&&m};case"combobox":return{...p,...g&&{"aria-selected":!0}}}return{}}}},[a,o,i,r,s,l,d])}function d_(t,e){var n;const{open:r,dataRef:s}=t,{listRef:a,activeIndex:o,onMatch:i,onTypingChange:l,enabled:c=!0,findMatch:d=null,resetMs:u=750,ignoreKeys:h=[],selectedIndex:g=null}=e,m=H.useRef(),p=H.useRef(""),b=H.useRef((n=g??o)!=null?n:-1),y=H.useRef(null),v=pn(i),k=pn(l),x=bn(d),w=bn(h);return Ie(()=>{r&&(clearTimeout(m.current),y.current=null,p.current="")},[r]),Ie(()=>{if(r&&p.current===""){var S;b.current=(S=g??o)!=null?S:-1}},[r,g,o]),H.useMemo(()=>{if(!c)return{};function S(T){T?s.current.typing||(s.current.typing=T,k(T)):s.current.typing&&(s.current.typing=T,k(T))}function N(T,P,z){const F=x.current?x.current(P,z):P.find(O=>(O==null?void 0:O.toLocaleLowerCase().indexOf(z.toLocaleLowerCase()))===0);return F?T.indexOf(F):-1}function M(T){const P=a.current;if(p.current.length>0&&p.current[0]!==" "&&(N(P,P,p.current)===-1?S(!1):T.key===" "&&gt(T)),P==null||w.current.includes(T.key)||T.key.length!==1||T.ctrlKey||T.metaKey||T.altKey)return;r&&T.key!==" "&&(gt(T),S(!0)),P.every(C=>{var E,W;return C?((E=C[0])==null?void 0:E.toLocaleLowerCase())!==((W=C[1])==null?void 0:W.toLocaleLowerCase()):!0})&&p.current===T.key&&(p.current="",b.current=y.current),p.current+=T.key,clearTimeout(m.current),m.current=setTimeout(()=>{p.current="",b.current=y.current,S(!1)},u);const F=b.current,O=N(P,[...P.slice((F||0)+1),...P.slice(0,(F||0)+1)],p.current);O!==-1?(v(O),y.current=O):T.key!==" "&&(p.current="",S(!1))}return{reference:{onKeyDown:M},floating:{onKeyDown:M,onKeyUp(T){T.key===" "&&S(!1)}}}},[c,r,s,a,u,w,x,v,k])}function dg(t,e){const[n,r]=t;let s=!1;const a=e.length;for(let o=0,i=a-1;o<a;i=o++){const[l,c]=e[o]||[0,0],[d,u]=e[i]||[0,0];c>=r!=u>=r&&n<=(d-l)*(r-c)/(u-c)+l&&(s=!s)}return s}function u_(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function f_(t){t===void 0&&(t={});const{buffer:e=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=t;let s,a=!1,o=null,i=null,l=performance.now();function c(u,h){const g=performance.now(),m=g-l;if(o===null||i===null||m===0)return o=u,i=h,l=g,null;const p=u-o,b=h-i,v=Math.sqrt(p*p+b*b)/m;return o=u,i=h,l=g,v}const d=u=>{let{x:h,y:g,placement:m,elements:p,onClose:b,nodeId:y,tree:v}=u;return function(x){function w(){clearTimeout(s),b()}if(clearTimeout(s),!p.domReference||!p.floating||m==null||h==null||g==null)return;const{clientX:S,clientY:N}=x,M=[S,N],T=ir(x),P=x.type==="mouseleave",z=et(p.floating,T),F=et(p.domReference,T),O=p.domReference.getBoundingClientRect(),C=p.floating.getBoundingClientRect(),E=m.split("-")[0],W=h>C.right-C.width/2,U=g>C.bottom-C.height/2,G=u_(M,O),ee=C.width>O.width,j=C.height>O.height,V=(ee?O:C).left,L=(ee?O:C).right,R=(j?O:C).top,A=(j?O:C).bottom;if(z&&(a=!0,!P))return;if(F&&(a=!1),F&&!P){a=!0;return}if(P&&Pe(x.relatedTarget)&&et(p.floating,x.relatedTarget)||v&&Nr(v.nodesRef.current,y).some(J=>{let{context:K}=J;return K==null?void 0:K.open}))return;if(E==="top"&&g>=O.bottom-1||E==="bottom"&&g<=O.top+1||E==="left"&&h>=O.right-1||E==="right"&&h<=O.left+1)return w();let D=[];switch(E){case"top":D=[[V,O.top+1],[V,C.bottom-1],[L,C.bottom-1],[L,O.top+1]];break;case"bottom":D=[[V,C.top+1],[V,O.bottom-1],[L,O.bottom-1],[L,C.top+1]];break;case"left":D=[[C.right-1,A],[C.right-1,R],[O.left+1,R],[O.left+1,A]];break;case"right":D=[[O.right-1,A],[O.right-1,R],[C.left+1,R],[C.left+1,A]];break}function Y(J){let[K,I]=J;switch(E){case"top":{const q=[ee?K+e/2:W?K+e*4:K-e*4,I+e+1],te=[ee?K-e/2:W?K+e*4:K-e*4,I+e+1],B=[[C.left,W||ee?C.bottom-e:C.top],[C.right,W?ee?C.bottom-e:C.top:C.bottom-e]];return[q,te,...B]}case"bottom":{const q=[ee?K+e/2:W?K+e*4:K-e*4,I-e],te=[ee?K-e/2:W?K+e*4:K-e*4,I-e],B=[[C.left,W||ee?C.top+e:C.bottom],[C.right,W?ee?C.top+e:C.bottom:C.top+e]];return[q,te,...B]}case"left":{const q=[K+e+1,j?I+e/2:U?I+e*4:I-e*4],te=[K+e+1,j?I-e/2:U?I+e*4:I-e*4];return[...[[U||j?C.right-e:C.left,C.top],[U?j?C.right-e:C.left:C.right-e,C.bottom]],q,te]}case"right":{const q=[K-e,j?I+e/2:U?I+e*4:I-e*4],te=[K-e,j?I-e/2:U?I+e*4:I-e*4],B=[[U||j?C.left+e:C.right,C.top],[U?j?C.left+e:C.right:C.left+e,C.bottom]];return[q,te,...B]}}}if(!dg([S,N],D)){if(a&&!G)return w();if(!P&&r){const J=c(x.clientX,x.clientY);if(J!==null&&J<.1)return w()}dg([S,N],Y([h,g]))?!a&&r&&(s=window.setTimeout(w,40)):w()}}};return d.__options={blockPointerEvents:n},d}const h_=({arrowRef:t,placement:e})=>{const n=[];return n.push(o1(8)),n.push(e==="auto"?c1():l1()),n.push(i1({padding:8})),t!=null&&t.current&&n.push(d1({element:t.current})),n},g_=({placement:t})=>t==="auto"?void 0:t,m_=({placement:t})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[t.split("-")[0]],ug=({open:t,arrowRef:e,placement:n="top",setOpen:r})=>ng({placement:g_({placement:n}),open:t,onOpenChange:r,whileElementsMounted:Oh,middleware:h_({placement:n,arrowRef:e})}),fg=({context:t,trigger:e,role:n="tooltip",interactions:r=[]})=>ag([$h(t,{enabled:e==="click"}),V1(t,{enabled:e==="hover",handleClose:f_()}),tg(t),cg(t,{role:n}),...r]),hg=_.createContext(void 0);function Mc(){const t=_.useContext(hg);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const Ec=({className:t,theme:e={},...n})=>{const{theme:r}=Mc(),s=e.divider??r.floating.divider;return f.jsx("div",{className:Q(s,t),...n})},gg=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=Mc(),a=n.header??s.floating.header;return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:Q(a,e),...r,children:t}),f.jsx(Ec,{})]})},Pc=_.forwardRef(({children:t,className:e,icon:n,onClick:r,theme:s={},...a},o)=>{const{ref:i,index:l}=F1({label:typeof t=="string"?t:void 0}),c=Ih([o,i]),{theme:d,activeIndex:u,dismissOnClick:h,getItemProps:g,handleSelect:m}=Mc(),p=u===l,b=ne(d.floating.item,s),y=a;return f.jsx("li",{role:"menuitem",className:b.container,children:f.jsxs(Ql,{ref:c,className:Q(b.base,e),...y,...g({onClick:()=>{r==null||r(),h&&m(null)}}),tabIndex:p?0:-1,children:[n&&f.jsx(n,{className:b.icon}),t]})})});Pc.displayName="DropdownItem";const p_={top:Px,right:Sf,bottom:_f,left:Ex},b_=({refs:t,children:e,inline:n,theme:r,disabled:s,setButtonWidth:a,getReferenceProps:o,renderTrigger:i,...l})=>{const c=t.reference,d=o();if(_.useEffect(()=>{c.current&&(a==null||a(c.current.clientWidth))},[c,a]),i){const u=i(r);return _.cloneElement(u,{ref:t.setReference,disabled:s,...d,...u.props})}return n?f.jsx("button",{type:"button",ref:t.setReference,className:r==null?void 0:r.inlineWrapper,disabled:s,...d,children:e}):f.jsx(Gf,{...l,disabled:s,type:"button",ref:t.setReference,...d,children:e})},mg=({children:t,className:e,dismissOnClick:n=!0,theme:r={},renderTrigger:s,...a})=>{const[o,i]=_.useState(!1),[l,c]=_.useState(null),[d,u]=_.useState(null),[h,g]=_.useState(void 0),m=_.useRef([]),p=_.useRef([]),b=ne(he().dropdown,r),y=a,v=a["data-testid"]||"flowbite-dropdown-target",{placement:k=a.inline?"bottom-start":"bottom",trigger:x="click",label:w,inline:S,arrowIcon:N=!0,...M}=y,T=_.useCallback(j=>{u(j),i(!1)},[]),P=_.useCallback(j=>{o?c(j):T(j)},[o,T]),{context:z,floatingStyles:F,refs:O}=ug({open:o,setOpen:i,placement:k}),C=l_(z,{listRef:m,activeIndex:l,selectedIndex:d,onNavigate:c}),E=d_(z,{listRef:p,activeIndex:l,selectedIndex:d,onMatch:P}),{getReferenceProps:W,getFloatingProps:U,getItemProps:G}=fg({context:z,role:"menu",trigger:x,interactions:[C,E]}),ee=_.useMemo(()=>{const[j]=k.split("-");return p_[j]??_f},[k]);return f.jsxs(hg.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:n,getItemProps:G,handleSelect:T},children:[f.jsxs(b_,{...M,refs:O,inline:S,theme:b,"data-testid":v,className:Q(b.floating.target,M.className),setButtonWidth:g,getReferenceProps:W,renderTrigger:s,children:[w,N&&f.jsx(ee,{className:b.arrowIcon})]}),o&&f.jsx(Zh,{context:z,modal:!1,children:f.jsx("div",{ref:O.setFloating,style:{...F,minWidth:h},"data-testid":"flowbite-dropdown","aria-expanded":o,...U({className:Q(b.floating.base,b.floating.animation,"duration-100",!o&&b.floating.hidden,b.floating.style.auto,e)}),children:f.jsx(L1,{elementsRef:m,labelsRef:p,children:f.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};mg.displayName="Dropdown",gg.displayName="Dropdown.Header",Ec.displayName="Dropdown.Divider";const y_=Object.assign(mg,{Item:Pc,Header:gg,Divider:Ec}),pg=_.forwardRef(({className:t,color:e="gray",helperText:n,sizing:r="md",theme:s={},...a},o)=>{const i=ne(he().fileInput,s);return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:Q(i.root.base,t),children:f.jsx("div",{className:i.field.base,children:f.jsx("input",{className:Q(i.field.input.base,i.field.input.colors[e],i.field.input.sizes[r]),...a,type:"file",ref:o})})}),n&&f.jsx(oa,{color:e,children:n})]})});pg.displayName="FileInput";const w_=_.forwardRef(({label:t,helperText:e,color:n="default",sizing:r="md",variant:s,disabled:a=!1,theme:o={},className:i,...l},c)=>{const d=_.useId(),u=ne(he().floatingLabel,o);return f.jsxs("div",{children:[f.jsxs("div",{className:Q("relative",s==="standard"?"z-0":""),children:[f.jsx("input",{type:"text",id:l.id?l.id:"floatingLabel"+d,"aria-describedby":"outlined_success_help",className:Q(u.input[n][s][r],i),placeholder:" ","data-testid":"floating-label",disabled:a,...l,ref:c}),f.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:Q(u.label[n][s][r],i),children:t})]}),f.jsx("p",{id:"outlined_helper_text"+d,className:Q(u.helperText[n],i),children:e})]})});w_.displayName="FloatingLabel";const bg=({alt:t,className:e,children:n,href:r,name:s,src:a,theme:o={},...i})=>{const l=ne(he().footer.brand,o);return f.jsx("div",{children:r?f.jsxs("a",{"data-testid":"flowbite-footer-brand",href:r,className:Q(l.base,e),...i,children:[f.jsx("img",{alt:t,src:a,className:l.img}),f.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:s}),n]}):f.jsx("img",{alt:t,"data-testid":"flowbite-footer-brand",src:a,className:Q(l.img,e),...i})})},yg=({by:t,className:e,href:n,theme:r={},year:s,...a})=>{const o=ne(he().footer.copyright,r);return f.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:Q(o.base,e),...a,children:["© ",s,n?f.jsx("a",{href:n,className:o.href,children:t}):f.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:o.span,children:t})]})},wg=({className:t,theme:e={},...n})=>{const r=ne(he().footer.divider,e);return f.jsx("hr",{"data-testid":"footer-divider",className:Q(r.base,t),...n})},vg=({ariaLabel:t,className:e,href:n,icon:r,theme:s={},...a})=>{const o=ne(he().footer.icon,s);return f.jsx("div",{children:n?f.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:n,className:Q(o.base,e),...a,children:f.jsx(r,{className:o.size})}):f.jsx(r,{"data-testid":"flowbite-footer-icon",className:o.size,...a})})},xg=({as:t="a",children:e,className:n,href:r,theme:s={},...a})=>{const o=ne(he().footer.groupLink.link,s);return f.jsx("li",{className:Q(o.base,n),children:f.jsx(t,{href:r,className:o.href,...a,children:e})})},kg=({children:t,className:e,col:n=!1,theme:r={},...s})=>{const a=ne(he().footer.groupLink,r);return f.jsx("ul",{"data-testid":"footer-groupLink",className:Q(a.base,n&&a.col,e),...s,children:t})},_g=({as:t="h2",className:e,theme:n={},title:r,...s})=>{const a=ne(he().footer.title,n);return f.jsx(t,{"data-testid":"flowbite-footer-title",className:Q(a.base,e),...s,children:r})},Sg=({bgDark:t=!1,children:e,className:n,container:r=!1,theme:s={},...a})=>{const o=ne(he().footer,s);return f.jsx("footer",{"data-testid":"flowbite-footer",className:Q(o.root.base,t&&o.root.bgDark,r&&o.root.container,n),...a,children:e})};Sg.displayName="Footer",yg.displayName="Footer.Copyright",xg.displayName="Footer.Link",bg.displayName="Footer.Brand",kg.displayName="Footer.LinkGroup",vg.displayName="Footer.Icon",_g.displayName="Footer.Title",wg.displayName="Footer.Divider",Object.assign(Sg,{Copyright:yg,Link:xg,LinkGroup:kg,Brand:bg,Icon:vg,Title:_g,Divider:wg});const Tc=({children:t,className:e,color:n="default",disabled:r=!1,theme:s={},value:a,...o})=>{const i=ne(he().label,s);return f.jsx("label",{className:Q(i.root.base,i.root.colors[n],r&&i.root.disabled,e),"data-testid":"flowbite-label",...o,children:a??t??""})};Tc.displayName="Label";const Og=({children:t,className:e,icon:n,theme:r={},...s})=>{const a=ne(he().list.item,r);return f.jsxs("li",{className:Q(a.withIcon[n?"on":"off"],e),...s,children:[n&&f.jsx(n,{className:Q(a.icon)}),t]})},Cg=({children:t,className:e,unstyled:n,nested:r,ordered:s,horizontal:a,theme:o={},...i})=>{const l=ne(he().list,o),c=s?"ol":"ul";return f.jsx(c,{className:Q(l.root.base,l.root.ordered[s?"on":"off"],n&&l.root.unstyled,r&&l.root.nested,a&&l.root.horizontal,e),...i,children:t})};Cg.displayName="List",Og.displayName="List.Item",Object.assign(Cg,{Item:Og});const Dg=({active:t,children:e,className:n,href:r,icon:s,onClick:a,theme:o={},disabled:i,...l})=>{const c=ne(he().listGroup.item,o),d=typeof r<"u",u=d?"a":"button";return f.jsx("li",{className:Q(c.base,n),children:f.jsxs(u,{href:r,onClick:a,type:d?void 0:"button",disabled:i,className:Q(c.link.active[t?"on":"off"],c.link.disabled[i?"on":"off"],c.link.base,c.link.href[d?"on":"off"]),...l,children:[s&&f.jsx(s,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},Mg=({children:t,className:e,theme:n={},...r})=>{const s=ne(he().listGroup,n);return f.jsx("ul",{className:Q(s.root.base,e),...r,children:t})};Mg.displayName="ListGroup",Dg.displayName="ListGroup.Item",Object.assign(Mg,{Item:Dg});const Eg=_.createContext(void 0);function Nc(){const t=_.useContext(Eg);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const Pg=({children:t,className:e,theme:n={},...r})=>{const{theme:s,popup:a}=Nc(),o=ne(s.body,n);return f.jsx("div",{className:Q(o.base,a&&[o.popup],e),...r,children:t})},Tg=({children:t,className:e,theme:n={},...r})=>{const{theme:s,popup:a}=Nc(),o=ne(s.footer,n);return f.jsx("div",{className:Q(o.base,!a&&o.popup,e),...r,children:t})},Ng=({as:t="h3",children:e,className:n,theme:r={},id:s,...a})=>{const o=_.useId(),i=s||o,{theme:l,popup:c,onClose:d,setHeaderId:u}=Nc(),h=ne(l.header,r);return _.useLayoutEffect(()=>(u(i),()=>u(void 0)),[i,u]),f.jsxs("div",{className:Q(h.base,c&&h.popup,n),...a,children:[f.jsx(t,{id:i,className:h.title,children:e}),f.jsx("button",{"aria-label":"Close",className:h.close.base,type:"button",onClick:d,children:f.jsx(Tx,{"aria-hidden":!0,className:h.close.icon})})]})},jg=_.forwardRef(({children:t,className:e,dismissible:n=!1,onClose:r,popup:s,position:a="center",root:o,show:i,size:l="2xl",theme:c={},initialFocus:d,...u},h)=>{const[g,m]=_.useState(void 0),p=ne(he().modal,c),{context:b}=ng({open:i,onOpenChange:()=>r&&r()}),y=Ih([b.refs.setFloating,h]),v=$h(b),k=tg(b,{outsidePressEvent:"mousedown",enabled:n}),x=cg(b),{getFloatingProps:w}=ag([v,k,x]);return i?f.jsx(Eg.Provider,{value:{theme:p,popup:s,onClose:r,setHeaderId:m},children:f.jsx(e_,{root:o,children:f.jsx(r_,{lockScroll:!0,"data-testid":"modal-overlay",className:Q(p.root.base,p.root.positions[a],i?p.root.show.on:p.root.show.off,e),...u,children:f.jsx(Zh,{context:b,initialFocus:d,children:f.jsx("div",{ref:y,...w(u),"aria-labelledby":g,className:Q(p.content.base,p.root.sizes[l]),children:f.jsx("div",{className:p.content.inner,children:t})})})})})}):null});jg.displayName="Modal",Ng.displayName="Modal.Header",Pg.displayName="Modal.Body",Tg.displayName="Modal.Footer",Object.assign(jg,{Header:Ng,Body:Pg,Footer:Tg});const Ig=_.createContext(void 0);function Ko(){const t=_.useContext(Ig);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const Ag=({as:t="a",children:e,className:n,theme:r={},...s})=>{const{theme:a}=Ko(),o=ne(a.brand,r);return f.jsx(t,{className:Q(o.base,n),...s,children:e})},Rg=({children:t,className:e,theme:n={},...r})=>{const{theme:s,isOpen:a}=Ko(),o=ne(s.collapse,n);return f.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:Q(o.base,o.hidden[a?"off":"on"],e),...r,children:f.jsx("ul",{className:o.list,children:t})})},Lg=({active:t,as:e="a",disabled:n,children:r,className:s,theme:a={},onClick:o,...i})=>{const{theme:l,setIsOpen:c}=Ko(),d=ne(l.link,a),u=h=>{c(!1),o==null||o(h)};return f.jsx("li",{children:f.jsx(e,{className:Q(d.base,t&&d.active.on,!t&&!n&&d.active.off,d.disabled[n?"on":"off"],s),onClick:u,...i,children:r})})};function v_(t){return De({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 xs(t){return De({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 x_(t){return De({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},child:[]}]})(t)}function jc(t){return De({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 k_(t){return De({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 __(t){return De({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 S_(t){return De({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(t)}const Fg=({barIcon:t=v_,className:e,theme:n={},...r})=>{const{theme:s,isOpen:a,setIsOpen:o}=Ko(),i=ne(s.toggle,n),l=()=>{o(!a)};return f.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:Q(i.base,e),...r,children:[f.jsx("span",{className:"sr-only",children:"Open main menu"}),f.jsx(t,{"aria-hidden":!0,className:i.icon})]})},Bg=({border:t,children:e,className:n,fluid:r=!1,menuOpen:s,rounded:a,theme:o={},...i})=>{const[l,c]=_.useState(s),d=ne(he().navbar,o);return f.jsx(Ig.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:f.jsx("nav",{className:Q(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[a?"on":"off"],n),...i,children:f.jsx("div",{className:Q(d.root.inner.base,d.root.inner.fluid[r?"on":"off"]),children:e})})})};Bg.displayName="Navbar",Ag.displayName="Navbar.Brand",Rg.displayName="Navbar.Collapse",Lg.displayName="Navbar.Link",Fg.displayName="Navbar.Toggle",Object.assign(Bg,{Brand:Ag,Collapse:Rg,Link:Lg,Toggle:Fg});const O_=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(n=>n+t),Ic=({active:t,children:e,className:n,onClick:r,theme:s={},...a})=>{const o=ne(he().pagination,s);return f.jsx("button",{type:"button",className:Q(t&&o.pages.selector.active,n),onClick:r,...a,children:e})};Ic.displayName="Pagination.Button";const Ac=({children:t,className:e,onClick:n,theme:r={},disabled:s=!1,...a})=>{const o=ne(he().pagination,r);return f.jsx("button",{type:"button",className:Q(s&&o.pages.selector.disabled,e),disabled:s,onClick:n,...a,children:t})};Ac.displayName="Pagination.Navigation";const Wg=({className:t,currentPage:e,layout:n="pagination",nextLabel:r="Next",onPageChange:s,previousLabel:a="Previous",renderPaginationButton:o=u=>f.jsx(Ic,{...u}),showIcons:i=!1,theme:l={},totalPages:c,...d})=>{const u=ne(he().pagination,l),h=Math.min(Math.max(n==="pagination"?e+2:e+4,5),c),g=Math.max(1,h-4),m=()=>{s(Math.min(e+1,c))},p=()=>{s(Math.max(e-1,1))};return f.jsxs("nav",{className:Q(u.base,t),...d,children:[n==="table"&&f.jsxs("div",{className:u.layout.table.base,children:["Showing ",f.jsx("span",{className:u.layout.table.span,children:g})," to ",f.jsx("span",{className:u.layout.table.span,children:h})," of ",f.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),f.jsxs("ul",{className:u.pages.base,children:[f.jsx("li",{children:f.jsxs(Ac,{className:Q(u.pages.previous.base,i&&u.pages.showIcon),onClick:p,disabled:e===1,children:[i&&f.jsx(Ox,{"aria-hidden":!0,className:u.pages.previous.icon}),a]})}),n==="pagination"&&O_(g,h).map(b=>f.jsx("li",{"aria-current":b===e?"page":void 0,children:o({className:Q(u.pages.selector.base,e===b&&u.pages.selector.active),active:b===e,onClick:()=>s(b),children:b})},b)),f.jsx("li",{children:f.jsxs(Ac,{className:Q(u.pages.next.base,i&&u.pages.showIcon),onClick:m,disabled:e===c,children:[r,i&&f.jsx(Cx,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};Wg.displayName="Pagination",Object.assign(Wg,{Button:Ic});const zg=_.forwardRef(({className:t,theme:e={},...n},r)=>{const s=ne(he().radio,e);return f.jsx("input",{ref:r,type:"radio",className:Q(s.root.base,t),...n})});zg.displayName="Radio";const C_=_.forwardRef(({className:t,sizing:e="md",theme:n={},...r},s)=>{const a=ne(he().rangeSlider,n);return f.jsx(f.Fragment,{children:f.jsx("div",{"data-testid":"flowbite-range-slider",className:Q(a.root.base,t),children:f.jsx("div",{className:a.field.base,children:f.jsx("input",{ref:s,type:"range",className:Q(a.field.input.base,a.field.input.sizes[e]),...r})})})})});C_.displayName="RangeSlider";const Hg=({children:t,className:e,percentFilled:n=0,theme:r={},...s})=>{const a=ne(he().ratingAdvanced,r);return f.jsxs("div",{className:Q(a.base,e),...s,children:[f.jsx("span",{className:a.label,children:t}),f.jsx("div",{className:a.progress.base,children:f.jsx("div",{className:a.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${n}%`}})}),f.jsx("span",{className:a.progress.label,children:`${n}%`})]})},Yg=_.createContext(void 0);function D_(){const t=_.useContext(Yg);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const Vg=({className:t,filled:e=!0,starIcon:n=Dx,theme:r={},...s})=>{const{theme:a,size:o="sm"}=D_(),i=ne(a.star,r);return f.jsx(n,{"data-testid":"flowbite-rating-star",className:Q(i.sizes[o],i[e?"filled":"empty"],t),...s})},Ug=({children:t,className:e,size:n="sm",theme:r={},...s})=>{const a=ne(he().rating,r);return f.jsx(Yg.Provider,{value:{theme:a,size:n},children:f.jsx("div",{className:Q(a.root.base,e),...s,children:t})})};Ug.displayName="Rating",Vg.displayName="Rating.Star",Hg.displayName="Rating.Advanced",Object.assign(Ug,{Star:Vg,Advanced:Hg});const M_=_.forwardRef(({addon:t,children:e,className:n,color:r="gray",helperText:s,icon:a,shadow:o,sizing:i="md",theme:l={},...c},d)=>{const u=ne(he().select,l);return f.jsxs("div",{className:Q(u.base,n),children:[t&&f.jsx("span",{className:u.addon,children:t}),f.jsxs("div",{className:u.field.base,children:[a&&f.jsx("div",{className:u.field.icon.base,children:f.jsx(a,{className:u.field.icon.svg})}),f.jsx("select",{className:Q(u.field.select.base,u.field.select.colors[r],u.field.select.sizes[i],u.field.select.withIcon[a?"on":"off"],u.field.select.withAddon[t?"on":"off"],u.field.select.withShadow[o?"on":"off"]),...c,ref:d,children:e}),s&&f.jsx(oa,{color:r,children:s})]})]})});M_.displayName="Select";const E_=({animation:t="duration-300",arrow:e=!0,children:n,className:r,content:s,placement:a="top",style:o="dark",theme:i,trigger:l="hover",minWidth:c,...d})=>{const u=_.useRef(null),[h,g]=_.useState(!1),m=ug({open:h,placement:a,arrowRef:u,setOpen:g}),{context:p,middlewareData:{arrow:{x:b,y}={}},refs:v,strategy:k,update:x,x:w,y:S}=m,N=o_(p),{getFloatingProps:M,getReferenceProps:T}=fg({context:p,role:"tooltip",trigger:l,interactions:[N]});return _.useEffect(()=>{if(v.reference.current&&v.floating.current&&h)return Oh(v.reference.current,v.floating.current,x)},[h,v.floating,v.reference,x]),f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:v.setReference,className:i.target,"data-testid":"flowbite-tooltip-target",...T(),children:n}),f.jsxs("div",{ref:v.setFloating,"data-testid":"flowbite-tooltip",...M({className:Q(i.base,t&&`${i.animation} ${t}`,!h&&i.hidden,i.style[o],r),style:{position:k,top:S??" ",left:w??" ",minWidth:c},...d}),children:[f.jsx("div",{className:i.content,children:s}),e&&f.jsx("div",{className:Q(i.arrow.base,o==="dark"&&i.arrow.style.dark,o==="light"&&i.arrow.style.light,o==="auto"&&i.arrow.style.auto),"data-testid":"flowbite-tooltip-arrow",ref:u,style:{top:y??" ",left:b??" ",right:" ",bottom:" ",[m_({placement:m.placement})]:i.arrow.placement},children:" "})]})]})},Qo=({animation:t="duration-300",arrow:e=!0,children:n,className:r,content:s,placement:a="top",style:o="dark",theme:i={},trigger:l="hover",...c})=>{const d=ne(he().tooltip,i);return f.jsx(E_,{animation:t,arrow:e,content:s,placement:a,style:o,theme:d,trigger:l,className:r,...c,children:n})};Qo.displayName="Tooltip";const Xg=_.createContext(void 0);function ks(){const t=_.useContext(Xg);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const Rc=_.createContext(void 0);function P_(){const t=_.useContext(Rc);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const Gg=({children:t,className:e,icon:n,label:r,chevronIcon:s=Xl,renderChevronIcon:a,open:o=!1,theme:i={},...l})=>{const c=_.useId(),[d,u]=_.useState(o),{theme:h,isCollapsed:g}=ks(),m=ne(h.collapse,i);_.useEffect(()=>u(o),[o]);const p=({children:b})=>f.jsx("li",{children:g&&!d?f.jsx(Qo,{content:r,placement:"right",children:b}):b});return f.jsxs(p,{children:[f.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:r,type:"button",className:Q(m.button,e),...l,children:[n&&f.jsx(n,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:Q(m.icon.base,m.icon.open[d?"on":"off"])}),g?f.jsx("span",{className:"sr-only",children:r}):f.jsxs(f.Fragment,{children:[f.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:m.label.base,children:r}),a?a(m,d):f.jsx(s,{"aria-hidden":!0,className:Q(m.label.icon.base,m.label.icon.open[d?"on":"off"])})]})]}),f.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:m.list,children:f.jsx(Rc.Provider,{value:{isInsideCollapse:!0},children:t})})]})};Gg.displayName="Sidebar.Collapse";const Kg=({children:t,color:e="info",className:n,theme:r={},...s})=>{const{theme:a,isCollapsed:o}=ks(),i=ne(a.cta,r);return f.jsx("div",{"data-testid":"sidebar-cta",hidden:o,className:Q(i.base,i.color[e],n),...s,children:t})};Kg.displayName="Sidebar.CTA";const T_=({id:t,theme:e,isCollapsed:n,tooltipChildren:r,children:s,...a})=>f.jsx("li",{...a,children:n?f.jsx(Qo,{content:f.jsx(Qg,{id:t,theme:e,children:r}),placement:"right",children:s}):s}),Qg=({id:t,theme:e,children:n})=>f.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:Q(e.content.base),children:n}),Zg=_.forwardRef(({active:t,as:e="a",children:n,className:r,icon:s,label:a,labelColor:o="info",theme:i={},...l},c)=>{var p,b,y,v;const d=_.useId(),{theme:u,isCollapsed:h}=ks(),{isInsideCollapse:g}=P_(),m=ne(u.item,i);return f.jsx(T_,{theme:m,className:m.listItem,id:d,isCollapsed:h,tooltipChildren:n,children:f.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:Q(m.base,t&&m.active,!h&&g&&((p=m.collapsed)==null?void 0:p.insideCollapse),r),...l,children:[s&&f.jsx(s,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:Q((b=m.icon)==null?void 0:b.base,t&&((y=m.icon)==null?void 0:y.active))}),h&&!s&&f.jsx("span",{className:(v=m.collapsed)==null?void 0:v.noIcon,children:n.charAt(0).toLocaleUpperCase()??"?"}),!h&&f.jsx(Qg,{id:d,theme:m,children:n}),!h&&a&&f.jsx(zf,{color:o,"data-testid":"flowbite-sidebar-label",hidden:h,className:m.label,children:a})]})})});Zg.displayName="Sidebar.Item";const Jg=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=ks(),a=ne(s.itemGroup,n);return f.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:Q(a.base,e),...r,children:f.jsx(Rc.Provider,{value:{isInsideCollapse:!1},children:t})})};Jg.displayName="Sidebar.ItemGroup";const qg=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=ks(),a=ne(s.items,n);return f.jsx("div",{className:Q(a.base,e),"data-testid":"flowbite-sidebar-items",...r,children:t})};qg.displayName="Sidebar.Items";const $g=({children:t,className:e,href:n,img:r,imgAlt:s="",theme:a={},...o})=>{const i=_.useId(),{theme:l,isCollapsed:c}=ks(),d=ne(l.logo,a);return f.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${i}`,href:n,className:Q(d.base,e),...o,children:[f.jsx("img",{alt:s,src:r,className:d.img}),f.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${i}`,children:t})]})};$g.displayName="Sidebar.Logo";const em=({children:t,as:e="nav",collapseBehavior:n="collapse",collapsed:r=!1,theme:s={},className:a,...o})=>{const i=ne(he().sidebar,s);return f.jsx(Xg.Provider,{value:{theme:i,isCollapsed:r},children:f.jsx(e,{"aria-label":"Sidebar",hidden:r&&n==="hide",className:Q(i.root.base,i.root.collapsed[r?"on":"off"],a),...o,children:f.jsx("div",{className:i.root.inner,children:t})})})};em.displayName="Sidebar",Object.assign(em,{Collapse:Gg,CTA:Kg,Item:Zg,Items:qg,ItemGroup:Jg,Logo:$g});const tm=_.createContext(void 0);function N_(){const t=_.useContext(tm);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const nm=_.createContext(void 0);function Lc(){const t=_.useContext(nm);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const rm=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=Lc(),o=ne(a.body,n);return f.jsx(tm.Provider,{value:{theme:o},children:f.jsx("tbody",{className:Q(o.base,e),ref:s,...r,children:t})})});rm.displayName="Table.Body";const sm=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=N_(),o=ne(a.cell,n);return f.jsx("td",{className:Q(o.base,e),ref:s,...r,children:t})});sm.displayName="Table.Cell";const am=_.createContext(void 0);function j_(){const t=_.useContext(am);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const om=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=Lc(),o=ne(a.head,n);return f.jsx(am.Provider,{value:{theme:o},children:f.jsx("thead",{className:Q(o.base,e),ref:s,...r,children:f.jsx("tr",{children:t})})})});om.displayName="Table.Head";const im=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=j_(),o=ne(a.cell,n);return f.jsx("th",{className:Q(o.base,e),ref:s,...r,children:t})});im.displayName="Table.HeadCell";const lm=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a,hoverable:o,striped:i}=Lc(),l=ne(a.row,n);return f.jsx("tr",{ref:s,"data-testid":"table-row-element",className:Q(l.base,i&&l.striped,o&&l.hovered,e),...r,children:t})});lm.displayName="Table.Row";const cm=_.forwardRef(({children:t,className:e,striped:n,hoverable:r,theme:s={},...a},o)=>{const i=ne(he().table,s);return f.jsx("div",{"data-testid":"table-element",className:Q(i.root.wrapper),children:f.jsxs(nm.Provider,{value:{theme:i,striped:n,hoverable:r},children:[f.jsx("div",{className:Q(i.root.shadow,e)}),f.jsx("table",{className:Q(i.root.base,e),...a,ref:o,children:t})]})})});cm.displayName="Table";const tt=Object.assign(cm,{Head:om,Body:rm,Row:lm,Cell:sm,HeadCell:im}),dm=({children:t,className:e})=>f.jsx("div",{className:e,children:t});dm.displayName="Tabs.Item";const um=_.forwardRef(({children:t,className:e,onActiveTabChange:n,style:r="default",theme:s={},...a},o)=>{const i=ne(he().tabs,s),l=_.useId(),c=_.useMemo(()=>_.Children.map(_.Children.toArray(t),({props:x})=>x),[t]),d=_.useRef([]),[u,h]=_.useState(Math.max(0,c.findIndex(x=>x.active))),[g,m]=_.useState(-1),p=x=>{h(x),n&&n(x)},b=({target:x})=>{p(x),m(x)},y=({event:x,target:w})=>{x.key==="ArrowLeft"&&m(Math.max(0,g-1)),x.key==="ArrowRight"&&m(Math.min(c.length-1,g+1)),x.key==="Enter"&&(p(w),m(w))},v=i.tablist.tabitem.styles[r],k=i.tabitemcontainer.styles[r];return _.useEffect(()=>{var x;(x=d.current[g])==null||x.focus()},[g]),_.useImperativeHandle(o,()=>({setActiveTab:p})),f.jsxs("div",{className:Q(i.base,e),children:[f.jsx("div",{"aria-label":"Tabs",role:"tablist",className:Q(i.tablist.base,i.tablist.styles[r],e),...a,children:c.map((x,w)=>f.jsxs("button",{type:"button","aria-controls":`${l}-tabpanel-${w}`,"aria-selected":w===u,className:Q(i.tablist.tabitem.base,v.base,w===u&&v.active.on,w!==u&&!x.disabled&&v.active.off),disabled:x.disabled,id:`${l}-tab-${w}`,onClick:()=>b({target:w}),onKeyDown:S=>y({event:S,target:w}),ref:S=>d.current[w]=S,role:"tab",tabIndex:w===g?0:-1,style:{zIndex:w===g?2:1},children:[x.icon&&f.jsx(x.icon,{className:i.tablist.tabitem.icon}),x.title]},w))}),f.jsx("div",{className:Q(i.tabitemcontainer.base,k),children:c.map((x,w)=>f.jsx("div",{"aria-labelledby":`${l}-tab-${w}`,className:i.tabpanel,hidden:w!==u,id:`${l}-tabpanel-${w}`,role:"tabpanel",tabIndex:0,children:x.children},w))})]})});um.displayName="Tabs",Object.assign(um,{Item:dm});const I_=_.forwardRef(({className:t,color:e="gray",helperText:n,shadow:r,theme:s={},...a},o)=>{const i=ne(he().textarea,s);return f.jsxs(f.Fragment,{children:[f.jsx("textarea",{ref:o,className:Q(i.base,i.colors[e],i.withShadow[r?"on":"off"],t),...a}),n&&f.jsx(oa,{color:e,children:n})]})});I_.displayName="Textarea";const fm=_.createContext(void 0);function Fc(){const t=_.useContext(fm);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const hm=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=Fc(),a=ne(s.body,n);return f.jsx("div",{className:Q(a.base,e),...r,children:t})},gm=_.createContext(void 0);function Bc(){const t=_.useContext(gm);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const mm=_.createContext(void 0);function pm(){const t=_.useContext(mm);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const bm=({children:t,className:e,theme:n={},...r})=>{const{horizontal:s}=Bc(),{theme:a}=pm(),o=ne(a.content,n);return f.jsx(fm.Provider,{value:{theme:o},children:f.jsx("div",{"data-testid":"timeline-content",className:Q(s&&o.root.base,e),...r,children:t})})},ym=({children:t,className:e,theme:n={},...r})=>{const{theme:s,horizontal:a}=Bc(),o=ne(s.item,n);return f.jsx(mm.Provider,{value:{theme:o},children:f.jsx("li",{"data-testid":"timeline-item",className:Q(a&&o.root.horizontal,!a&&o.root.vertical,e),...r,children:t})})},wm=({children:t,className:e,icon:n,theme:r={},...s})=>{const{horizontal:a}=Bc(),{theme:o}=pm(),i=ne(o.point,r);return f.jsxs("div",{"data-testid":"timeline-point",className:Q(a&&i.horizontal,!a&&i.vertical,e),...s,children:[t,n?f.jsx("span",{className:Q(i.marker.icon.wrapper),children:f.jsx(n,{"aria-hidden":!0,className:Q(i.marker.icon.base)})}):f.jsx("div",{className:Q(a&&i.marker.base.horizontal,!a&&i.marker.base.vertical)}),a&&f.jsx("div",{className:Q(i.line)})]})},vm=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=Fc(),a=ne(s.time,n);return f.jsx("time",{className:Q(a.base,e),...r,children:t})},xm=({as:t="h3",children:e,className:n,theme:r={},...s})=>{const{theme:a}=Fc(),o=ne(a.title,r);return f.jsx(t,{className:Q(o.base,n),...s,children:e})},km=({children:t,className:e,horizontal:n,theme:r={},...s})=>{const a=ne(he().timeline,r);return f.jsx(gm.Provider,{value:{theme:a,horizontal:n},children:f.jsx("ol",{"data-testid":"timeline-component",className:Q(n&&a.root.direction.horizontal,!n&&a.root.direction.vertical,e),...s,children:t})})};km.displayName="Timeline",ym.displayName="Timeline.Item",wm.displayName="Timeline.Point",bm.displayName="Timeline.Content",vm.displayName="Timeline.Time",xm.displayName="Timeline.Title",hm.displayName="Timeline.Body",Object.assign(km,{Item:ym,Point:wm,Content:bm,Time:vm,Title:xm,Body:hm});const _m=_.createContext(void 0);function A_(){const t=_.useContext(_m);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const Sm=({className:t,onClick:e,theme:n={},xIcon:r=Mx,onDismiss:s,...a})=>{const{theme:o,duration:i,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=A_(),h=ne(o.toggle,n),g=m=>{if(e&&e(m),s){s();return}d(!l),setTimeout(()=>u(!c),i)};return f.jsx("button",{"aria-label":"Close",onClick:g,type:"button",className:Q(h.base,t),...a,children:f.jsx(r,{"aria-hidden":!0,className:h.icon})})},R_={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},Om=({children:t,className:e,duration:n=300,theme:r={},...s})=>{const[a,o]=_.useState(!1),[i,l]=_.useState(!1),c=ne(he().toast,r);return i?null:f.jsx(_m.Provider,{value:{theme:c,duration:n,isClosed:a,isRemoved:i,setIsClosed:o,setIsRemoved:l},children:f.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:Q(c.root.base,R_[n],a&&c.root.closed,e),...s,children:t})})};Om.displayName="Toast",Sm.displayName="Toast.Toggle",Object.assign(Om,{Toggle:Sm});const L_=_.forwardRef(({checked:t,className:e,color:n="blue",sizing:r="md",disabled:s,label:a,name:o,onChange:i,theme:l={},...c},d)=>{const u=_.useId(),h=ne(he().toggleSwitch,l),g=()=>i(!t),m=()=>{g()},p=b=>{b.code=="Enter"&&b.preventDefault()};return f.jsxs(f.Fragment,{children:[o&&t?f.jsx("input",{ref:d,checked:t,hidden:!0,name:o,readOnly:!0,type:"checkbox",className:"sr-only"}):null,f.jsxs("button",{"aria-checked":t,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:s,id:`${u}-flowbite-toggleswitch`,onClick:m,onKeyDown:p,role:"switch",tabIndex:0,type:"button",className:Q(h.root.base,h.root.active[s?"off":"on"],e),...c,children:[f.jsx("div",{"data-testid":"flowbite-toggleswitch-toggle",className:Q(h.toggle.base,h.toggle.checked[t?"on":"off"],t&&h.toggle.checked.color[n],h.toggle.sizes[r])}),a!=null&&a.length?f.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:h.root.label,children:a}):null]})]})});L_.displayName="ToggleSwitch";const F_="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.5096%203.7321C17.4858%206.70824%2017.4858%2011.5335%2014.5096%2014.5096C11.5335%2017.4858%206.70824%2017.4858%203.7321%2014.5096C0.755965%2011.5335%200.755965%206.70824%203.7321%203.7321C6.70824%200.755965%2011.5335%200.755965%2014.5096%203.7321Z'%20stroke='%23191960'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M18.4999%2018.4999L14.5049%2014.5049'%20stroke='%23191960'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",pa=_.forwardRef(({icon:t,placeholder:e,label:n,error:r,type:s,classInclude:a,maxLength:o,onChange:i,classLabel:l,...c},d)=>f.jsxs("div",{className:`${n?"mb-3":""}`,children:[n&&f.jsx("label",{className:`mb-1 block font-semibold ${l??""}`,children:n}),t===!0?f.jsx(ds,{className:`${a}`,sizing:"sm",maxLength:o,ref:d,type:s,rightIcon:()=>f.jsx("img",{src:F_,alt:"search",width:17,height:17}),placeholder:e,onChange:i,...c}):f.jsx(ds,{className:`${a}`,sizing:"sm",maxLength:o,ref:d,type:s,placeholder:e,onChange:i,...c}),r&&f.jsx("p",{className:"mt-1 text-xs text-red-500",children:r})]}));pa.displayName="InputForm";const B_={"mth-password":"passwordInput-module__mth-password__R6DoN"},Wc=({placeholder:t,onChange:e,value:n,...r})=>{const[s,a]=_.useState(!1),o=()=>{a(!s)};return f.jsx("div",{className:"mb-5",children:f.jsxs("div",{className:"relative inline-block w-full",children:[f.jsx("input",{type:s?"text":"password",value:n,className:"w-full border p-2 pr-10",onChange:e,placeholder:t,...r}),f.jsx("button",{type:"button",onClick:o,className:B_["mth-password"],children:s?f.jsx(k_,{}):f.jsx(__,{})})]})})},Cm={mth_progress_bar:"progressBar-module__mth_progress_bar__q2V2y",mth_progress_bar_thumb:"progressBar-module__mth_progress_bar_thumb__OTDNJ"},Dm=({start:t,end:e,current:n,type:r})=>{const s=(n-t)/(e-t)*100,a=Math.min(Math.max(s,0),100),o=()=>a<10?"left-0":a>90?"right-0":"left-1/2 transform -translate-x-1/2";return f.jsxs("div",{className:"w-full p-1",children:[f.jsxs("div",{className:"mb-2 flex justify-between text-xs text-gray-400",children:[f.jsx("span",{children:t.toLocaleString()}),f.jsx("span",{children:e.toLocaleString()})]}),f.jsxs("div",{className:"relative mb-5 h-1 w-full rounded-full bg-gray-200",children:[f.jsx("div",{className:`${Cm.mth_progress_bar} absolute left-0 top-0 h-full rounded-full transition-all duration-300`,style:{width:`${a}%`}}),f.jsxs("div",{className:"absolute top-1/2 transform -translate-y-1/2 -translate-x-1/2",style:{left:`${a}%`},children:[f.jsx("div",{className:`${Cm.mth_progress_bar_thumb} w-2 h-2 rounded-full shadow-lg`}),f.jsxs("div",{className:`absolute top-full mt-2 text-xs font-medium text-black whitespace-nowrap ${o()}`,children:[n.toLocaleString()," ",r==="percentage"?"%":""]})]})]})]})},Mm=_.forwardRef(({options:t,label:e,error:n,value:r,onChange:s,id:a,classDiv:o,...i},l)=>f.jsxs("div",{className:o,children:[f.jsxs("select",{ref:l,id:a,className:"h-8 w-full rounded-lg border px-3 py-0.5",value:r,onChange:s,...i,children:[f.jsx("option",{value:"0",children:e||"Seleccione una opción"}),t==null?void 0:t.map(c=>f.jsx("option",{value:c.value,children:c.label},c.value))]}),n&&f.jsx("p",{className:"mt-1 text-sm text-red-500",children:n})]}));Mm.displayName="SelectForm";const Em={mth_card_indicator:"card-module__mth_card_indicator__lfgp3"},W_=({logo:t,number:e,title:n,start:r,end:s,current:a,type:o,classIm:i})=>{const l=c=>new Intl.NumberFormat("es-ES",{maximumFractionDigits:2,minimumFractionDigits:0}).format(c);return f.jsxs("div",{className:`${Em.mth_card_indicator} flex flex-col border bg-white px-3.5 py-4`,children:[f.jsx("div",{className:"flex justify-end",children:f.jsx(Or,{src:t||"",alt:"Icon",width:30,height:30,classIm:i})}),f.jsx("h2",{className:"mt-2 font-bold mth_card_indicator_title",id:`mth_card_indicator_${n}_title`,children:n.toUpperCase()}),f.jsxs("small",{className:"text-2xl font-extrabold mth_card_indicator_number",children:[l(e)," ",o==="percentage"?"%":""]}),f.jsx("div",{className:"mt-2 mth_card_indicator_progress_bar",children:f.jsx(Dm,{start:r,end:s,current:a,type:o})})]})};/*!
9
9
  * @kurkle/color v0.3.4
10
10
  * https://github.com/kurkle/color#readme
11
11
  * (c) 2024 Jukka Kurkela
12
12
  * Released under the MIT License
13
- */function ba(t){return t+.5|0}const lr=(t,e,n)=>Math.max(Math.min(t,n),e);function ya(t){return lr(ba(t*2.55),0,255)}function cr(t){return lr(ba(t*255),0,255)}function Wn(t){return lr(ba(t/2.55)/100,0,1)}function Tm(t){return lr(ba(t*100),0,100)}const Jt={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},zc=[..."0123456789ABCDEF"],H_=t=>zc[t&15],Y_=t=>zc[(t&240)>>4]+zc[t&15],Zo=t=>(t&240)>>4===(t&15),V_=t=>Zo(t.r)&&Zo(t.g)&&Zo(t.b)&&Zo(t.a);function U_(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Jt[t[1]]*17,g:255&Jt[t[2]]*17,b:255&Jt[t[3]]*17,a:e===5?Jt[t[4]]*17:255}:(e===7||e===9)&&(n={r:Jt[t[1]]<<4|Jt[t[2]],g:Jt[t[3]]<<4|Jt[t[4]],b:Jt[t[5]]<<4|Jt[t[6]],a:e===9?Jt[t[7]]<<4|Jt[t[8]]:255})),n}const X_=(t,e)=>t<255?e(t):"";function K_(t){var e=V_(t)?H_:Y_;return t?"#"+e(t.r)+e(t.g)+e(t.b)+X_(t.a,e):void 0}const G_=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Nm(t,e,n){const r=e*Math.min(n,1-n),s=(a,o=(a+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[s(0),s(8),s(4)]}function Q_(t,e,n){const r=(s,a=(s+t/60)%6)=>n-n*e*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function Z_(t,e,n){const r=Nm(t,1,.5);let s;for(e+n>1&&(s=1/(e+n),e*=s,n*=s),s=0;s<3;s++)r[s]*=1-e-n,r[s]+=e;return r}function J_(t,e,n,r,s){return t===s?(e-n)/r+(e<n?6:0):e===s?(n-t)/r+2:(t-e)/r+4}function Hc(t){const n=t.r/255,r=t.g/255,s=t.b/255,a=Math.max(n,r,s),o=Math.min(n,r,s),i=(a+o)/2;let l,c,d;return a!==o&&(d=a-o,c=i>.5?d/(2-a-o):d/(a+o),l=J_(n,r,s,d,a),l=l*60+.5),[l|0,c||0,i]}function Yc(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(cr)}function Vc(t,e,n){return Yc(Nm,t,e,n)}function q_(t,e,n){return Yc(Z_,t,e,n)}function $_(t,e,n){return Yc(Q_,t,e,n)}function jm(t){return(t%360+360)%360}function eS(t){const e=G_.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?ya(+e[5]):cr(+e[5]));const s=jm(+e[2]),a=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?r=q_(s,a,o):e[1]==="hsv"?r=$_(s,a,o):r=Vc(s,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function tS(t,e){var n=Hc(t);n[0]=jm(n[0]+e),n=Vc(n),t.r=n[0],t.g=n[1],t.b=n[2]}function nS(t){if(!t)return;const e=Hc(t),n=e[0],r=Tm(e[1]),s=Tm(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${s}%, ${Wn(t.a)})`:`hsl(${n}, ${r}%, ${s}%)`}const Im={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"},Am={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 rS(){const t={},e=Object.keys(Am),n=Object.keys(Im);let r,s,a,o,i;for(r=0;r<e.length;r++){for(o=i=e[r],s=0;s<n.length;s++)a=n[s],i=i.replace(a,Im[a]);a=parseInt(Am[o],16),t[i]=[a>>16&255,a>>8&255,a&255]}return t}let Jo;function sS(t){Jo||(Jo=rS(),Jo.transparent=[0,0,0,0]);const e=Jo[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const aS=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function oS(t){const e=aS.exec(t);let n=255,r,s,a;if(e){if(e[7]!==r){const o=+e[7];n=e[8]?ya(o):lr(o*255,0,255)}return r=+e[1],s=+e[3],a=+e[5],r=255&(e[2]?ya(r):lr(r,0,255)),s=255&(e[4]?ya(s):lr(s,0,255)),a=255&(e[6]?ya(a):lr(a,0,255)),{r,g:s,b:a,a:n}}}function iS(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Wn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Uc=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,_s=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function lS(t,e,n){const r=_s(Wn(t.r)),s=_s(Wn(t.g)),a=_s(Wn(t.b));return{r:cr(Uc(r+n*(_s(Wn(e.r))-r))),g:cr(Uc(s+n*(_s(Wn(e.g))-s))),b:cr(Uc(a+n*(_s(Wn(e.b))-a))),a:t.a+n*(e.a-t.a)}}function qo(t,e,n){if(t){let r=Hc(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=Vc(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Rm(t,e){return t&&Object.assign(e||{},t)}function Lm(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=cr(t[3]))):(e=Rm(t,{r:0,g:0,b:0,a:1}),e.a=cr(e.a)),e}function cS(t){return t.charAt(0)==="r"?oS(t):eS(t)}class wa{constructor(e){if(e instanceof wa)return e;const n=typeof e;let r;n==="object"?r=Lm(e):n==="string"&&(r=U_(e)||sS(e)||cS(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=Rm(this._rgb);return e&&(e.a=Wn(e.a)),e}set rgb(e){this._rgb=Lm(e)}rgbString(){return this._valid?iS(this._rgb):void 0}hexString(){return this._valid?K_(this._rgb):void 0}hslString(){return this._valid?nS(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,s=e.rgb;let a;const o=n===a?.5:n,i=2*o-1,l=r.a-s.a,c=((i*l===-1?i:(i+l)/(1+i*l))+1)/2;a=1-c,r.r=255&c*r.r+a*s.r+.5,r.g=255&c*r.g+a*s.g+.5,r.b=255&c*r.b+a*s.b+.5,r.a=o*r.a+(1-o)*s.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=lS(this._rgb,e._rgb,n)),this}clone(){return new wa(this.rgb)}alpha(e){return this._rgb.a=cr(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=ba(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return qo(this._rgb,2,e),this}darken(e){return qo(this._rgb,2,-e),this}saturate(e){return qo(this._rgb,1,e),this}desaturate(e){return qo(this._rgb,1,-e),this}rotate(e){return tS(this._rgb,e),this}}/*!
13
+ */function ba(t){return t+.5|0}const lr=(t,e,n)=>Math.max(Math.min(t,n),e);function ya(t){return lr(ba(t*2.55),0,255)}function cr(t){return lr(ba(t*255),0,255)}function Wn(t){return lr(ba(t/2.55)/100,0,1)}function Pm(t){return lr(ba(t*100),0,100)}const Jt={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},zc=[..."0123456789ABCDEF"],z_=t=>zc[t&15],H_=t=>zc[(t&240)>>4]+zc[t&15],Zo=t=>(t&240)>>4===(t&15),Y_=t=>Zo(t.r)&&Zo(t.g)&&Zo(t.b)&&Zo(t.a);function V_(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Jt[t[1]]*17,g:255&Jt[t[2]]*17,b:255&Jt[t[3]]*17,a:e===5?Jt[t[4]]*17:255}:(e===7||e===9)&&(n={r:Jt[t[1]]<<4|Jt[t[2]],g:Jt[t[3]]<<4|Jt[t[4]],b:Jt[t[5]]<<4|Jt[t[6]],a:e===9?Jt[t[7]]<<4|Jt[t[8]]:255})),n}const U_=(t,e)=>t<255?e(t):"";function X_(t){var e=Y_(t)?z_:H_;return t?"#"+e(t.r)+e(t.g)+e(t.b)+U_(t.a,e):void 0}const G_=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Tm(t,e,n){const r=e*Math.min(n,1-n),s=(a,o=(a+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[s(0),s(8),s(4)]}function K_(t,e,n){const r=(s,a=(s+t/60)%6)=>n-n*e*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function Q_(t,e,n){const r=Tm(t,1,.5);let s;for(e+n>1&&(s=1/(e+n),e*=s,n*=s),s=0;s<3;s++)r[s]*=1-e-n,r[s]+=e;return r}function Z_(t,e,n,r,s){return t===s?(e-n)/r+(e<n?6:0):e===s?(n-t)/r+2:(t-e)/r+4}function Hc(t){const n=t.r/255,r=t.g/255,s=t.b/255,a=Math.max(n,r,s),o=Math.min(n,r,s),i=(a+o)/2;let l,c,d;return a!==o&&(d=a-o,c=i>.5?d/(2-a-o):d/(a+o),l=Z_(n,r,s,d,a),l=l*60+.5),[l|0,c||0,i]}function Yc(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(cr)}function Vc(t,e,n){return Yc(Tm,t,e,n)}function J_(t,e,n){return Yc(Q_,t,e,n)}function q_(t,e,n){return Yc(K_,t,e,n)}function Nm(t){return(t%360+360)%360}function $_(t){const e=G_.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?ya(+e[5]):cr(+e[5]));const s=Nm(+e[2]),a=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?r=J_(s,a,o):e[1]==="hsv"?r=q_(s,a,o):r=Vc(s,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function eS(t,e){var n=Hc(t);n[0]=Nm(n[0]+e),n=Vc(n),t.r=n[0],t.g=n[1],t.b=n[2]}function tS(t){if(!t)return;const e=Hc(t),n=e[0],r=Pm(e[1]),s=Pm(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${s}%, ${Wn(t.a)})`:`hsl(${n}, ${r}%, ${s}%)`}const jm={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"},Im={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 nS(){const t={},e=Object.keys(Im),n=Object.keys(jm);let r,s,a,o,i;for(r=0;r<e.length;r++){for(o=i=e[r],s=0;s<n.length;s++)a=n[s],i=i.replace(a,jm[a]);a=parseInt(Im[o],16),t[i]=[a>>16&255,a>>8&255,a&255]}return t}let Jo;function rS(t){Jo||(Jo=nS(),Jo.transparent=[0,0,0,0]);const e=Jo[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const sS=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function aS(t){const e=sS.exec(t);let n=255,r,s,a;if(e){if(e[7]!==r){const o=+e[7];n=e[8]?ya(o):lr(o*255,0,255)}return r=+e[1],s=+e[3],a=+e[5],r=255&(e[2]?ya(r):lr(r,0,255)),s=255&(e[4]?ya(s):lr(s,0,255)),a=255&(e[6]?ya(a):lr(a,0,255)),{r,g:s,b:a,a:n}}}function oS(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Wn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Uc=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,_s=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function iS(t,e,n){const r=_s(Wn(t.r)),s=_s(Wn(t.g)),a=_s(Wn(t.b));return{r:cr(Uc(r+n*(_s(Wn(e.r))-r))),g:cr(Uc(s+n*(_s(Wn(e.g))-s))),b:cr(Uc(a+n*(_s(Wn(e.b))-a))),a:t.a+n*(e.a-t.a)}}function qo(t,e,n){if(t){let r=Hc(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=Vc(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Am(t,e){return t&&Object.assign(e||{},t)}function Rm(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=cr(t[3]))):(e=Am(t,{r:0,g:0,b:0,a:1}),e.a=cr(e.a)),e}function lS(t){return t.charAt(0)==="r"?aS(t):$_(t)}class wa{constructor(e){if(e instanceof wa)return e;const n=typeof e;let r;n==="object"?r=Rm(e):n==="string"&&(r=V_(e)||rS(e)||lS(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=Am(this._rgb);return e&&(e.a=Wn(e.a)),e}set rgb(e){this._rgb=Rm(e)}rgbString(){return this._valid?oS(this._rgb):void 0}hexString(){return this._valid?X_(this._rgb):void 0}hslString(){return this._valid?tS(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,s=e.rgb;let a;const o=n===a?.5:n,i=2*o-1,l=r.a-s.a,c=((i*l===-1?i:(i+l)/(1+i*l))+1)/2;a=1-c,r.r=255&c*r.r+a*s.r+.5,r.g=255&c*r.g+a*s.g+.5,r.b=255&c*r.b+a*s.b+.5,r.a=o*r.a+(1-o)*s.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=iS(this._rgb,e._rgb,n)),this}clone(){return new wa(this.rgb)}alpha(e){return this._rgb.a=cr(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=ba(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return qo(this._rgb,2,e),this}darken(e){return qo(this._rgb,2,-e),this}saturate(e){return qo(this._rgb,1,e),this}desaturate(e){return qo(this._rgb,1,-e),this}rotate(e){return eS(this._rgb,e),this}}/*!
14
14
  * Chart.js v4.5.1
15
15
  * https://www.chartjs.org
16
16
  * (c) 2025 Chart.js Contributors
17
17
  * Released under the MIT License
18
- */function zn(){}const dS=(()=>{let t=0;return()=>t++})();function wt(t){return t==null}function mt(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 ye(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Hn(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function yn(t,e){return Hn(t)?t:e}function Me(t,e){return typeof t>"u"?e:t}const uS=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,Fm=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Fe(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Ee(t,e,n,r){let s,a,o;if(mt(t))for(a=t.length,s=0;s<a;s++)e.call(n,t[s],s);else if(ye(t))for(o=Object.keys(t),a=o.length,s=0;s<a;s++)e.call(n,t[o[s]],o[s])}function $o(t,e){let n,r,s,a;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(s=t[n],a=e[n],s.datasetIndex!==a.datasetIndex||s.index!==a.index)return!1;return!0}function ei(t){if(mt(t))return t.map(ei);if(ye(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let s=0;for(;s<r;++s)e[n[s]]=ei(t[n[s]]);return e}return t}function Bm(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function fS(t,e,n,r){if(!Bm(t))return;const s=e[t],a=n[t];ye(s)&&ye(a)?va(s,a,r):e[t]=ei(a)}function va(t,e,n){const r=mt(e)?e:[e],s=r.length;if(!ye(t))return t;n=n||{};const a=n.merger||fS;let o;for(let i=0;i<s;++i){if(o=r[i],!ye(o))continue;const l=Object.keys(o);for(let c=0,d=l.length;c<d;++c)a(l[c],t,o,n)}return t}function xa(t,e){return va(t,e,{merger:hS})}function hS(t,e,n){if(!Bm(t))return;const r=e[t],s=n[t];ye(r)&&ye(s)?xa(r,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ei(s))}const Wm={"":t=>t,x:t=>t.x,y:t=>t.y};function gS(t){const e=t.split("."),n=[];let r="";for(const s of e)r+=s,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function mS(t){const e=gS(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function ka(t,e){return(Wm[e]||(Wm[e]=mS(e)))(t)}function Xc(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ti=t=>typeof t<"u",dr=t=>typeof t=="function",zm=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function pS(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Be=Math.PI,nt=2*Be,ni=Number.POSITIVE_INFINITY,bS=Be/180,it=Be/2,Ir=Be/4,Hm=Be*2/3,Ym=Math.sign;function yS(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((s,a)=>s-a).pop(),e}function wS(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function ri(t){return!wS(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Ar(t){return t*(Be/180)}function vS(t){return t*(180/Be)}function Vm(t,e){const n=e.x-t.x,r=e.y-t.y,s=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*Be&&(a+=nt),{angle:a,distance:s}}function xS(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function wn(t){return(t%nt+nt)%nt}function si(t,e,n,r){const s=wn(t),a=wn(e),o=wn(n),i=wn(a-s),l=wn(o-s),c=wn(s-a),d=wn(s-o);return s===a||s===o||r&&a===o||i>l&&c<d}function qt(t,e,n){return Math.max(e,Math.min(n,t))}function kS(t){return qt(t,-32768,32767)}function _a(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function Kc(t,e,n){n=n||(o=>t[o]<e);let r=t.length-1,s=0,a;for(;r-s>1;)a=s+r>>1,n(a)?s=a:r=a;return{lo:s,hi:r}}const Gc=(t,e,n,r)=>Kc(t,n,r?s=>{const a=t[s][e];return a<n||a===n&&t[s+1][e]===n}:s=>t[s][e]<n),_S=(t,e,n)=>Kc(t,n,r=>t[r][e]>=n);function SS(t,e,n){let r=0,s=t.length;for(;r<s&&t[r]<e;)r++;for(;s>r&&t[s-1]>n;)s--;return r>0||s<t.length?t.slice(r,s):t}const Um=["push","pop","shift","splice","unshift"];function OS(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Um.forEach(n=>{const r="_onData"+Xc(n),s=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...a){const o=s.apply(this,a);return t._chartjs.listeners.forEach(i=>{typeof i[r]=="function"&&i[r](...a)}),o}})})}function Xm(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,s=r.indexOf(e);s!==-1&&r.splice(s,1),!(r.length>0)&&(Um.forEach(a=>{delete t[a]}),delete t._chartjs)}function CS(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Km=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function Gm(t,e){let n=[],r=!1;return function(...s){n=s,r||(r=!0,Km.call(window,()=>{r=!1,t.apply(e,n)}))}}function DS(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const Qm=t=>t==="start"?"left":t==="end"?"right":"center",Ft=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,MS=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e,ai=t=>t===0||t===1,Zm=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*nt/n)),Jm=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*nt/n)+1,Sa={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*it)+1,easeOutSine:t=>Math.sin(t*it),easeInOutSine:t=>-.5*(Math.cos(Be*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=>ai(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=>ai(t)?t:Zm(t,.075,.3),easeOutElastic:t=>ai(t)?t:Jm(t,.075,.3),easeInOutElastic(t){return ai(t)?t:t<.5?.5*Zm(t*2,.1125,.45):.5+.5*Jm(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-Sa.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?Sa.easeInBounce(t*2)*.5:Sa.easeOutBounce(t*2-1)*.5+.5};function qm(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function $m(t){return qm(t)?t:new wa(t)}function Qc(t){return qm(t)?t:new wa(t).saturate(.5).darken(.1).hexString()}const ES=["x","y","borderWidth","radius","tension"],PS=["color","borderColor","backgroundColor"];function TS(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:PS},numbers:{type:"number",properties:ES}}),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 NS(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const ep=new Map;function jS(t,e){e=e||{};const n=t+JSON.stringify(e);let r=ep.get(n);return r||(r=new Intl.NumberFormat(t,e),ep.set(n,r)),r}function IS(t,e,n){return jS(e,n).format(t)}var AS={formatters:{values(t){return mt(t)?t:""+t}}};function RS(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,n)=>n.lineWidth,tickColor:(e,n)=>n.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:AS.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),Zc=Object.create(null);function Oa(t,e){if(!e)return t;const n=e.split(".");for(let r=0,s=n.length;r<s;++r){const a=n[r];t=t[a]||(t[a]=Object.create(null))}return t}function Jc(t,e,n){return typeof e=="string"?va(Oa(t,e),n):va(Oa(t,""),e)}class LS{constructor(e,n){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=r=>r.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=(r,s)=>Qc(s.backgroundColor),this.hoverBorderColor=(r,s)=>Qc(s.borderColor),this.hoverColor=(r,s)=>Qc(s.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(n)}set(e,n){return Jc(this,e,n)}get(e){return Oa(this,e)}describe(e,n){return Jc(Zc,e,n)}override(e,n){return Jc(Rr,e,n)}route(e,n,r,s){const a=Oa(this,e),o=Oa(this,r),i="_"+n;Object.defineProperties(a,{[i]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[i],c=o[s];return ye(l)?Object.assign({},c,l):Me(l,c)},set(l){this[i]=l}}})}apply(e){e.forEach(n=>n(this))}}var Ge=new LS({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[TS,NS,RS]);function FS(t){return!t||wt(t.size)||wt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function tp(t,e,n,r,s){let a=e[s];return a||(a=e[s]=t.measureText(s).width,n.push(s)),a>r&&(r=a),r}function Lr(t,e,n){const r=t.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((e-s)*r)/r+s}function np(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function rp(t,e,n,r){sp(t,e,n,r,null)}function sp(t,e,n,r,s){let a,o,i,l,c,d,u,h;const g=e.pointStyle,m=e.rotation,p=e.radius;let b=(m||0)*bS;if(g&&typeof g=="object"&&(a=g.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),t.rotate(b),t.drawImage(g,-g.width/2,-g.height/2,g.width,g.height),t.restore();return}if(!(isNaN(p)||p<=0)){switch(t.beginPath(),g){default:s?t.ellipse(n,r,s/2,p,0,0,nt):t.arc(n,r,p,0,nt),t.closePath();break;case"triangle":d=s?s/2:p,t.moveTo(n+Math.sin(b)*d,r-Math.cos(b)*p),b+=Hm,t.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*p),b+=Hm,t.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*p),t.closePath();break;case"rectRounded":c=p*.516,l=p-c,o=Math.cos(b+Ir)*l,u=Math.cos(b+Ir)*(s?s/2-c:l),i=Math.sin(b+Ir)*l,h=Math.sin(b+Ir)*(s?s/2-c:l),t.arc(n-u,r-i,c,b-Be,b-it),t.arc(n+h,r-o,c,b-it,b),t.arc(n+u,r+i,c,b,b+it),t.arc(n-h,r+o,c,b+it,b+Be),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*p,d=s?s/2:l,t.rect(n-d,r-l,2*d,2*l);break}b+=Ir;case"rectRot":u=Math.cos(b)*(s?s/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,h=Math.sin(b)*(s?s/2:p),t.moveTo(n-u,r-i),t.lineTo(n+h,r-o),t.lineTo(n+u,r+i),t.lineTo(n-h,r+o),t.closePath();break;case"crossRot":b+=Ir;case"cross":u=Math.cos(b)*(s?s/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,h=Math.sin(b)*(s?s/2:p),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+h,r-o),t.lineTo(n-h,r+o);break;case"star":u=Math.cos(b)*(s?s/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,h=Math.sin(b)*(s?s/2:p),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+h,r-o),t.lineTo(n-h,r+o),b+=Ir,u=Math.cos(b)*(s?s/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,h=Math.sin(b)*(s?s/2:p),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+h,r-o),t.lineTo(n-h,r+o);break;case"line":o=s?s/2:Math.cos(b)*p,i=Math.sin(b)*p,t.moveTo(n-o,r-i),t.lineTo(n+o,r+i);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(b)*(s?s/2:p),r+Math.sin(b)*p);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function ap(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function qc(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function $c(t){t.restore()}function BS(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),wt(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 WS(t,e,n,r,s){if(s.strikethrough||s.underline){const a=t.measureText(r),o=e-a.actualBoundingBoxLeft,i=e+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,c=n+a.actualBoundingBoxDescent,d=s.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(o,d),t.lineTo(i,d),t.stroke()}}function zS(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function oi(t,e,n,r,s,a={}){const o=mt(e)?e:[e],i=a.strokeWidth>0&&a.strokeColor!=="";let l,c;for(t.save(),t.font=s.string,BS(t,a),l=0;l<o.length;++l)c=o[l],a.backdrop&&zS(t,a.backdrop),i&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),wt(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(c,n,r,a.maxWidth)),t.fillText(c,n,r,a.maxWidth),WS(t,n,r,c,a),r+=Number(s.lineHeight);t.restore()}function ed(t,e){const{x:n,y:r,w:s,h:a,radius:o}=e;t.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*Be,Be,!0),t.lineTo(n,r+a-o.bottomLeft),t.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,Be,it,!0),t.lineTo(n+s-o.bottomRight,r+a),t.arc(n+s-o.bottomRight,r+a-o.bottomRight,o.bottomRight,it,0,!0),t.lineTo(n+s,r+o.topRight),t.arc(n+s-o.topRight,r+o.topRight,o.topRight,0,-it,!0),t.lineTo(n+o.topLeft,r)}const HS=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,YS=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function VS(t,e){const n=(""+t).match(HS);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const US=t=>+t||0;function td(t,e){const n={},r=ye(e),s=r?Object.keys(e):e,a=ye(t)?r?o=>Me(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of s)n[o]=US(a(o));return n}function XS(t){return td(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ca(t){return td(t,["topLeft","topRight","bottomLeft","bottomRight"])}function an(t){const e=XS(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Et(t,e){t=t||{},e=e||Ge.font;let n=Me(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=Me(t.style,e.style);r&&!(""+r).match(YS)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const s={family:Me(t.family,e.family),lineHeight:VS(Me(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:Me(t.weight,e.weight),string:""};return s.string=FS(s),s}function ii(t,e,n,r){let s,a,o;for(s=0,a=t.length;s<a;++s)if(o=t[s],o!==void 0&&o!==void 0)return o}function KS(t,e,n){const{min:r,max:s}=t,a=Fm(e,(s-r)/2),o=(i,l)=>n&&i===0?0:i+l;return{min:o(r,-Math.abs(a)),max:o(s,a)}}function Ss(t,e){return Object.assign(Object.create(t),e)}function nd(t,e=[""],n,r,s=()=>t[0]){const a=n||t;typeof r>"u"&&(r=dp("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:a,_fallback:r,_getTarget:s,override:i=>nd([i,...t],e,a,r)};return new Proxy(o,{deleteProperty(i,l){return delete i[l],delete i._keys,delete t[0][l],!0},get(i,l){return ip(i,l,()=>tO(l,e,t,i))},getOwnPropertyDescriptor(i,l){return Reflect.getOwnPropertyDescriptor(i._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(i,l){return up(i).includes(l)},ownKeys(i){return up(i)},set(i,l,c){const d=i._storage||(i._storage=s());return i[l]=d[l]=c,delete i._keys,!0}})}function Os(t,e,n,r){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:op(t,r),setContext:a=>Os(t,a,n,r),override:a=>Os(t.override(a),e,n,r)};return new Proxy(s,{deleteProperty(a,o){return delete a[o],delete t[o],!0},get(a,o,i){return ip(a,o,()=>QS(a,o,i))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(a,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(a,o,i){return t[o]=i,delete a[o],!0}})}function op(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:n,indexable:r,isScriptable:dr(n)?n:()=>n,isIndexable:dr(r)?r:()=>r}}const GS=(t,e)=>t?t+Xc(e):e,rd=(t,e)=>ye(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function ip(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=n();return t[e]=r,r}function QS(t,e,n){const{_proxy:r,_context:s,_subProxy:a,_descriptors:o}=t;let i=r[e];return dr(i)&&o.isScriptable(e)&&(i=ZS(e,i,t,n)),mt(i)&&i.length&&(i=JS(e,i,t,o.isIndexable)),rd(e,i)&&(i=Os(i,s,a&&a[e],o)),i}function ZS(t,e,n,r){const{_proxy:s,_context:a,_subProxy:o,_stack:i}=n;if(i.has(t))throw new Error("Recursion detected: "+Array.from(i).join("->")+"->"+t);i.add(t);let l=e(a,o||r);return i.delete(t),rd(t,l)&&(l=sd(s._scopes,s,t,l)),l}function JS(t,e,n,r){const{_proxy:s,_context:a,_subProxy:o,_descriptors:i}=n;if(typeof a.index<"u"&&r(t))return e[a.index%e.length];if(ye(e[0])){const l=e,c=s._scopes.filter(d=>d!==l);e=[];for(const d of l){const u=sd(c,s,t,d);e.push(Os(u,a,o&&o[t],i))}}return e}function lp(t,e,n){return dr(t)?t(e,n):t}const qS=(t,e)=>t===!0?e:typeof t=="string"?ka(e,t):void 0;function $S(t,e,n,r,s){for(const a of e){const o=qS(n,a);if(o){t.add(o);const i=lp(o._fallback,n,s);if(typeof i<"u"&&i!==n&&i!==r)return i}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function sd(t,e,n,r){const s=e._rootScopes,a=lp(e._fallback,n,r),o=[...t,...s],i=new Set;i.add(r);let l=cp(i,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=cp(i,o,a,l,r),l===null)?!1:nd(Array.from(i),[""],s,a,()=>eO(e,n,r))}function cp(t,e,n,r,s){for(;n;)n=$S(t,e,n,r,s);return n}function eO(t,e,n){const r=t._getTarget();e in r||(r[e]={});const s=r[e];return mt(s)&&ye(n)?n:s||{}}function tO(t,e,n,r){let s;for(const a of e)if(s=dp(GS(a,t),n),typeof s<"u")return rd(t,s)?sd(n,r,t,s):s}function dp(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r<"u")return r}}function up(t){let e=t._keys;return e||(e=t._keys=nO(t._scopes)),e}function nO(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(s=>!s.startsWith("_")))e.add(r);return Array.from(e)}function ad(){return typeof window<"u"&&typeof document<"u"}function od(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function li(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const ci=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function rO(t,e){return ci(t).getPropertyValue(e)}const sO=["top","right","bottom","left"];function Fr(t,e,n){const r={};n=n?"-"+n:"";for(let s=0;s<4;s++){const a=sO[s];r[a]=parseFloat(t[e+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const aO=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function oO(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:s,offsetY:a}=r;let o=!1,i,l;if(aO(s,a,t.target))i=s,l=a;else{const c=e.getBoundingClientRect();i=r.clientX-c.left,l=r.clientY-c.top,o=!0}return{x:i,y:l,box:o}}function Br(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,s=ci(n),a=s.boxSizing==="border-box",o=Fr(s,"padding"),i=Fr(s,"border","width"),{x:l,y:c,box:d}=oO(t,n),u=o.left+(d&&i.left),h=o.top+(d&&i.top);let{width:g,height:m}=e;return a&&(g-=o.width+i.width,m-=o.height+i.height),{x:Math.round((l-u)/g*n.width/r),y:Math.round((c-h)/m*n.height/r)}}function iO(t,e,n){let r,s;if(e===void 0||n===void 0){const a=t&&od(t);if(!a)e=t.clientWidth,n=t.clientHeight;else{const o=a.getBoundingClientRect(),i=ci(a),l=Fr(i,"border","width"),c=Fr(i,"padding");e=o.width-c.width-l.width,n=o.height-c.height-l.height,r=li(i.maxWidth,a,"clientWidth"),s=li(i.maxHeight,a,"clientHeight")}}return{width:e,height:n,maxWidth:r||ni,maxHeight:s||ni}}const ur=t=>Math.round(t*10)/10;function lO(t,e,n,r){const s=ci(t),a=Fr(s,"margin"),o=li(s.maxWidth,t,"clientWidth")||ni,i=li(s.maxHeight,t,"clientHeight")||ni,l=iO(t,e,n);let{width:c,height:d}=l;if(s.boxSizing==="content-box"){const h=Fr(s,"border","width"),g=Fr(s,"padding");c-=g.width+h.width,d-=g.height+h.height}return c=Math.max(0,c-a.width),d=Math.max(0,r?c/r:d-a.height),c=ur(Math.min(c,o,l.maxWidth)),d=ur(Math.min(d,i,l.maxHeight)),c&&!d&&(d=ur(c/2)),(e!==void 0||n!==void 0)&&r&&l.height&&d>l.height&&(d=l.height,c=ur(Math.floor(d*r))),{width:c,height:d}}function fp(t,e,n){const r=e||1,s=ur(t.height*r),a=ur(t.width*r);t.height=ur(t.height),t.width=ur(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||o.height!==s||o.width!==a?(t.currentDevicePixelRatio=r,o.height=s,o.width=a,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const cO=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};ad()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function hp(t,e){const n=rO(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const dO=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},uO=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Cs(t,e,n){return t?dO(e,n):uO()}function gp(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function mp(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function di(t,e,n){return t.options.clip?t[n]:e[n]}function fO(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:di(n,e,"left"),right:di(n,e,"right"),top:di(r,e,"top"),bottom:di(r,e,"bottom")}:e}function hO(t,e){const n=e._clip;if(n.disabled)return!1;const r=fO(e,t.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?t.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?t.height:r.bottom+(n.bottom===!0?0:n.bottom)}}/*!
18
+ */function zn(){}const cS=(()=>{let t=0;return()=>t++})();function wt(t){return t==null}function mt(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 ye(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Hn(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function yn(t,e){return Hn(t)?t:e}function Me(t,e){return typeof t>"u"?e:t}const dS=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,Lm=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Fe(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Ee(t,e,n,r){let s,a,o;if(mt(t))for(a=t.length,s=0;s<a;s++)e.call(n,t[s],s);else if(ye(t))for(o=Object.keys(t),a=o.length,s=0;s<a;s++)e.call(n,t[o[s]],o[s])}function $o(t,e){let n,r,s,a;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(s=t[n],a=e[n],s.datasetIndex!==a.datasetIndex||s.index!==a.index)return!1;return!0}function ei(t){if(mt(t))return t.map(ei);if(ye(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let s=0;for(;s<r;++s)e[n[s]]=ei(t[n[s]]);return e}return t}function Fm(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function uS(t,e,n,r){if(!Fm(t))return;const s=e[t],a=n[t];ye(s)&&ye(a)?va(s,a,r):e[t]=ei(a)}function va(t,e,n){const r=mt(e)?e:[e],s=r.length;if(!ye(t))return t;n=n||{};const a=n.merger||uS;let o;for(let i=0;i<s;++i){if(o=r[i],!ye(o))continue;const l=Object.keys(o);for(let c=0,d=l.length;c<d;++c)a(l[c],t,o,n)}return t}function xa(t,e){return va(t,e,{merger:fS})}function fS(t,e,n){if(!Fm(t))return;const r=e[t],s=n[t];ye(r)&&ye(s)?xa(r,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ei(s))}const Bm={"":t=>t,x:t=>t.x,y:t=>t.y};function hS(t){const e=t.split("."),n=[];let r="";for(const s of e)r+=s,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function gS(t){const e=hS(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function ka(t,e){return(Bm[e]||(Bm[e]=gS(e)))(t)}function Xc(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ti=t=>typeof t<"u",dr=t=>typeof t=="function",Wm=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function mS(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Be=Math.PI,nt=2*Be,ni=Number.POSITIVE_INFINITY,pS=Be/180,it=Be/2,Ir=Be/4,zm=Be*2/3,Hm=Math.sign;function bS(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((s,a)=>s-a).pop(),e}function yS(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function ri(t){return!yS(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Ar(t){return t*(Be/180)}function wS(t){return t*(180/Be)}function Ym(t,e){const n=e.x-t.x,r=e.y-t.y,s=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*Be&&(a+=nt),{angle:a,distance:s}}function vS(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function wn(t){return(t%nt+nt)%nt}function si(t,e,n,r){const s=wn(t),a=wn(e),o=wn(n),i=wn(a-s),l=wn(o-s),c=wn(s-a),d=wn(s-o);return s===a||s===o||r&&a===o||i>l&&c<d}function qt(t,e,n){return Math.max(e,Math.min(n,t))}function xS(t){return qt(t,-32768,32767)}function _a(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function Gc(t,e,n){n=n||(o=>t[o]<e);let r=t.length-1,s=0,a;for(;r-s>1;)a=s+r>>1,n(a)?s=a:r=a;return{lo:s,hi:r}}const Kc=(t,e,n,r)=>Gc(t,n,r?s=>{const a=t[s][e];return a<n||a===n&&t[s+1][e]===n}:s=>t[s][e]<n),kS=(t,e,n)=>Gc(t,n,r=>t[r][e]>=n);function _S(t,e,n){let r=0,s=t.length;for(;r<s&&t[r]<e;)r++;for(;s>r&&t[s-1]>n;)s--;return r>0||s<t.length?t.slice(r,s):t}const Vm=["push","pop","shift","splice","unshift"];function SS(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Vm.forEach(n=>{const r="_onData"+Xc(n),s=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...a){const o=s.apply(this,a);return t._chartjs.listeners.forEach(i=>{typeof i[r]=="function"&&i[r](...a)}),o}})})}function Um(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,s=r.indexOf(e);s!==-1&&r.splice(s,1),!(r.length>0)&&(Vm.forEach(a=>{delete t[a]}),delete t._chartjs)}function OS(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Xm=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function Gm(t,e){let n=[],r=!1;return function(...s){n=s,r||(r=!0,Xm.call(window,()=>{r=!1,t.apply(e,n)}))}}function CS(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const Km=t=>t==="start"?"left":t==="end"?"right":"center",Ft=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,DS=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e,ai=t=>t===0||t===1,Qm=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*nt/n)),Zm=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*nt/n)+1,Sa={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*it)+1,easeOutSine:t=>Math.sin(t*it),easeInOutSine:t=>-.5*(Math.cos(Be*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=>ai(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=>ai(t)?t:Qm(t,.075,.3),easeOutElastic:t=>ai(t)?t:Zm(t,.075,.3),easeInOutElastic(t){return ai(t)?t:t<.5?.5*Qm(t*2,.1125,.45):.5+.5*Zm(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-Sa.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?Sa.easeInBounce(t*2)*.5:Sa.easeOutBounce(t*2-1)*.5+.5};function Jm(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function qm(t){return Jm(t)?t:new wa(t)}function Qc(t){return Jm(t)?t:new wa(t).saturate(.5).darken(.1).hexString()}const MS=["x","y","borderWidth","radius","tension"],ES=["color","borderColor","backgroundColor"];function PS(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:ES},numbers:{type:"number",properties:MS}}),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 TS(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const $m=new Map;function NS(t,e){e=e||{};const n=t+JSON.stringify(e);let r=$m.get(n);return r||(r=new Intl.NumberFormat(t,e),$m.set(n,r)),r}function jS(t,e,n){return NS(e,n).format(t)}var IS={formatters:{values(t){return mt(t)?t:""+t}}};function AS(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,n)=>n.lineWidth,tickColor:(e,n)=>n.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:IS.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),Zc=Object.create(null);function Oa(t,e){if(!e)return t;const n=e.split(".");for(let r=0,s=n.length;r<s;++r){const a=n[r];t=t[a]||(t[a]=Object.create(null))}return t}function Jc(t,e,n){return typeof e=="string"?va(Oa(t,e),n):va(Oa(t,""),e)}class RS{constructor(e,n){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=r=>r.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=(r,s)=>Qc(s.backgroundColor),this.hoverBorderColor=(r,s)=>Qc(s.borderColor),this.hoverColor=(r,s)=>Qc(s.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(n)}set(e,n){return Jc(this,e,n)}get(e){return Oa(this,e)}describe(e,n){return Jc(Zc,e,n)}override(e,n){return Jc(Rr,e,n)}route(e,n,r,s){const a=Oa(this,e),o=Oa(this,r),i="_"+n;Object.defineProperties(a,{[i]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[i],c=o[s];return ye(l)?Object.assign({},c,l):Me(l,c)},set(l){this[i]=l}}})}apply(e){e.forEach(n=>n(this))}}var Ke=new RS({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[PS,TS,AS]);function LS(t){return!t||wt(t.size)||wt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function ep(t,e,n,r,s){let a=e[s];return a||(a=e[s]=t.measureText(s).width,n.push(s)),a>r&&(r=a),r}function Lr(t,e,n){const r=t.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((e-s)*r)/r+s}function tp(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function np(t,e,n,r){rp(t,e,n,r,null)}function rp(t,e,n,r,s){let a,o,i,l,c,d,u,h;const g=e.pointStyle,m=e.rotation,p=e.radius;let b=(m||0)*pS;if(g&&typeof g=="object"&&(a=g.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),t.rotate(b),t.drawImage(g,-g.width/2,-g.height/2,g.width,g.height),t.restore();return}if(!(isNaN(p)||p<=0)){switch(t.beginPath(),g){default:s?t.ellipse(n,r,s/2,p,0,0,nt):t.arc(n,r,p,0,nt),t.closePath();break;case"triangle":d=s?s/2:p,t.moveTo(n+Math.sin(b)*d,r-Math.cos(b)*p),b+=zm,t.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*p),b+=zm,t.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*p),t.closePath();break;case"rectRounded":c=p*.516,l=p-c,o=Math.cos(b+Ir)*l,u=Math.cos(b+Ir)*(s?s/2-c:l),i=Math.sin(b+Ir)*l,h=Math.sin(b+Ir)*(s?s/2-c:l),t.arc(n-u,r-i,c,b-Be,b-it),t.arc(n+h,r-o,c,b-it,b),t.arc(n+u,r+i,c,b,b+it),t.arc(n-h,r+o,c,b+it,b+Be),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*p,d=s?s/2:l,t.rect(n-d,r-l,2*d,2*l);break}b+=Ir;case"rectRot":u=Math.cos(b)*(s?s/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,h=Math.sin(b)*(s?s/2:p),t.moveTo(n-u,r-i),t.lineTo(n+h,r-o),t.lineTo(n+u,r+i),t.lineTo(n-h,r+o),t.closePath();break;case"crossRot":b+=Ir;case"cross":u=Math.cos(b)*(s?s/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,h=Math.sin(b)*(s?s/2:p),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+h,r-o),t.lineTo(n-h,r+o);break;case"star":u=Math.cos(b)*(s?s/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,h=Math.sin(b)*(s?s/2:p),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+h,r-o),t.lineTo(n-h,r+o),b+=Ir,u=Math.cos(b)*(s?s/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,h=Math.sin(b)*(s?s/2:p),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+h,r-o),t.lineTo(n-h,r+o);break;case"line":o=s?s/2:Math.cos(b)*p,i=Math.sin(b)*p,t.moveTo(n-o,r-i),t.lineTo(n+o,r+i);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(b)*(s?s/2:p),r+Math.sin(b)*p);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function sp(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function qc(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function $c(t){t.restore()}function FS(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),wt(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 BS(t,e,n,r,s){if(s.strikethrough||s.underline){const a=t.measureText(r),o=e-a.actualBoundingBoxLeft,i=e+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,c=n+a.actualBoundingBoxDescent,d=s.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(o,d),t.lineTo(i,d),t.stroke()}}function WS(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function oi(t,e,n,r,s,a={}){const o=mt(e)?e:[e],i=a.strokeWidth>0&&a.strokeColor!=="";let l,c;for(t.save(),t.font=s.string,FS(t,a),l=0;l<o.length;++l)c=o[l],a.backdrop&&WS(t,a.backdrop),i&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),wt(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(c,n,r,a.maxWidth)),t.fillText(c,n,r,a.maxWidth),BS(t,n,r,c,a),r+=Number(s.lineHeight);t.restore()}function ed(t,e){const{x:n,y:r,w:s,h:a,radius:o}=e;t.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*Be,Be,!0),t.lineTo(n,r+a-o.bottomLeft),t.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,Be,it,!0),t.lineTo(n+s-o.bottomRight,r+a),t.arc(n+s-o.bottomRight,r+a-o.bottomRight,o.bottomRight,it,0,!0),t.lineTo(n+s,r+o.topRight),t.arc(n+s-o.topRight,r+o.topRight,o.topRight,0,-it,!0),t.lineTo(n+o.topLeft,r)}const zS=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,HS=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function YS(t,e){const n=(""+t).match(zS);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const VS=t=>+t||0;function td(t,e){const n={},r=ye(e),s=r?Object.keys(e):e,a=ye(t)?r?o=>Me(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of s)n[o]=VS(a(o));return n}function US(t){return td(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ca(t){return td(t,["topLeft","topRight","bottomLeft","bottomRight"])}function an(t){const e=US(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Et(t,e){t=t||{},e=e||Ke.font;let n=Me(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=Me(t.style,e.style);r&&!(""+r).match(HS)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const s={family:Me(t.family,e.family),lineHeight:YS(Me(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:Me(t.weight,e.weight),string:""};return s.string=LS(s),s}function ii(t,e,n,r){let s,a,o;for(s=0,a=t.length;s<a;++s)if(o=t[s],o!==void 0&&o!==void 0)return o}function XS(t,e,n){const{min:r,max:s}=t,a=Lm(e,(s-r)/2),o=(i,l)=>n&&i===0?0:i+l;return{min:o(r,-Math.abs(a)),max:o(s,a)}}function Ss(t,e){return Object.assign(Object.create(t),e)}function nd(t,e=[""],n,r,s=()=>t[0]){const a=n||t;typeof r>"u"&&(r=cp("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:a,_fallback:r,_getTarget:s,override:i=>nd([i,...t],e,a,r)};return new Proxy(o,{deleteProperty(i,l){return delete i[l],delete i._keys,delete t[0][l],!0},get(i,l){return op(i,l,()=>eO(l,e,t,i))},getOwnPropertyDescriptor(i,l){return Reflect.getOwnPropertyDescriptor(i._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(i,l){return dp(i).includes(l)},ownKeys(i){return dp(i)},set(i,l,c){const d=i._storage||(i._storage=s());return i[l]=d[l]=c,delete i._keys,!0}})}function Os(t,e,n,r){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:ap(t,r),setContext:a=>Os(t,a,n,r),override:a=>Os(t.override(a),e,n,r)};return new Proxy(s,{deleteProperty(a,o){return delete a[o],delete t[o],!0},get(a,o,i){return op(a,o,()=>KS(a,o,i))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(a,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(a,o,i){return t[o]=i,delete a[o],!0}})}function ap(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:n,indexable:r,isScriptable:dr(n)?n:()=>n,isIndexable:dr(r)?r:()=>r}}const GS=(t,e)=>t?t+Xc(e):e,rd=(t,e)=>ye(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function op(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=n();return t[e]=r,r}function KS(t,e,n){const{_proxy:r,_context:s,_subProxy:a,_descriptors:o}=t;let i=r[e];return dr(i)&&o.isScriptable(e)&&(i=QS(e,i,t,n)),mt(i)&&i.length&&(i=ZS(e,i,t,o.isIndexable)),rd(e,i)&&(i=Os(i,s,a&&a[e],o)),i}function QS(t,e,n,r){const{_proxy:s,_context:a,_subProxy:o,_stack:i}=n;if(i.has(t))throw new Error("Recursion detected: "+Array.from(i).join("->")+"->"+t);i.add(t);let l=e(a,o||r);return i.delete(t),rd(t,l)&&(l=sd(s._scopes,s,t,l)),l}function ZS(t,e,n,r){const{_proxy:s,_context:a,_subProxy:o,_descriptors:i}=n;if(typeof a.index<"u"&&r(t))return e[a.index%e.length];if(ye(e[0])){const l=e,c=s._scopes.filter(d=>d!==l);e=[];for(const d of l){const u=sd(c,s,t,d);e.push(Os(u,a,o&&o[t],i))}}return e}function ip(t,e,n){return dr(t)?t(e,n):t}const JS=(t,e)=>t===!0?e:typeof t=="string"?ka(e,t):void 0;function qS(t,e,n,r,s){for(const a of e){const o=JS(n,a);if(o){t.add(o);const i=ip(o._fallback,n,s);if(typeof i<"u"&&i!==n&&i!==r)return i}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function sd(t,e,n,r){const s=e._rootScopes,a=ip(e._fallback,n,r),o=[...t,...s],i=new Set;i.add(r);let l=lp(i,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=lp(i,o,a,l,r),l===null)?!1:nd(Array.from(i),[""],s,a,()=>$S(e,n,r))}function lp(t,e,n,r,s){for(;n;)n=qS(t,e,n,r,s);return n}function $S(t,e,n){const r=t._getTarget();e in r||(r[e]={});const s=r[e];return mt(s)&&ye(n)?n:s||{}}function eO(t,e,n,r){let s;for(const a of e)if(s=cp(GS(a,t),n),typeof s<"u")return rd(t,s)?sd(n,r,t,s):s}function cp(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r<"u")return r}}function dp(t){let e=t._keys;return e||(e=t._keys=tO(t._scopes)),e}function tO(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(s=>!s.startsWith("_")))e.add(r);return Array.from(e)}function ad(){return typeof window<"u"&&typeof document<"u"}function od(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function li(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const ci=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function nO(t,e){return ci(t).getPropertyValue(e)}const rO=["top","right","bottom","left"];function Fr(t,e,n){const r={};n=n?"-"+n:"";for(let s=0;s<4;s++){const a=rO[s];r[a]=parseFloat(t[e+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const sO=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function aO(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:s,offsetY:a}=r;let o=!1,i,l;if(sO(s,a,t.target))i=s,l=a;else{const c=e.getBoundingClientRect();i=r.clientX-c.left,l=r.clientY-c.top,o=!0}return{x:i,y:l,box:o}}function Br(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,s=ci(n),a=s.boxSizing==="border-box",o=Fr(s,"padding"),i=Fr(s,"border","width"),{x:l,y:c,box:d}=aO(t,n),u=o.left+(d&&i.left),h=o.top+(d&&i.top);let{width:g,height:m}=e;return a&&(g-=o.width+i.width,m-=o.height+i.height),{x:Math.round((l-u)/g*n.width/r),y:Math.round((c-h)/m*n.height/r)}}function oO(t,e,n){let r,s;if(e===void 0||n===void 0){const a=t&&od(t);if(!a)e=t.clientWidth,n=t.clientHeight;else{const o=a.getBoundingClientRect(),i=ci(a),l=Fr(i,"border","width"),c=Fr(i,"padding");e=o.width-c.width-l.width,n=o.height-c.height-l.height,r=li(i.maxWidth,a,"clientWidth"),s=li(i.maxHeight,a,"clientHeight")}}return{width:e,height:n,maxWidth:r||ni,maxHeight:s||ni}}const ur=t=>Math.round(t*10)/10;function iO(t,e,n,r){const s=ci(t),a=Fr(s,"margin"),o=li(s.maxWidth,t,"clientWidth")||ni,i=li(s.maxHeight,t,"clientHeight")||ni,l=oO(t,e,n);let{width:c,height:d}=l;if(s.boxSizing==="content-box"){const h=Fr(s,"border","width"),g=Fr(s,"padding");c-=g.width+h.width,d-=g.height+h.height}return c=Math.max(0,c-a.width),d=Math.max(0,r?c/r:d-a.height),c=ur(Math.min(c,o,l.maxWidth)),d=ur(Math.min(d,i,l.maxHeight)),c&&!d&&(d=ur(c/2)),(e!==void 0||n!==void 0)&&r&&l.height&&d>l.height&&(d=l.height,c=ur(Math.floor(d*r))),{width:c,height:d}}function up(t,e,n){const r=e||1,s=ur(t.height*r),a=ur(t.width*r);t.height=ur(t.height),t.width=ur(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||o.height!==s||o.width!==a?(t.currentDevicePixelRatio=r,o.height=s,o.width=a,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const lO=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};ad()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function fp(t,e){const n=nO(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const cO=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},dO=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Cs(t,e,n){return t?cO(e,n):dO()}function hp(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function gp(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function di(t,e,n){return t.options.clip?t[n]:e[n]}function uO(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:di(n,e,"left"),right:di(n,e,"right"),top:di(r,e,"top"),bottom:di(r,e,"bottom")}:e}function fO(t,e){const n=e._clip;if(n.disabled)return!1;const r=uO(e,t.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?t.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?t.height:r.bottom+(n.bottom===!0?0:n.bottom)}}/*!
19
19
  * Chart.js v4.5.1
20
20
  * https://www.chartjs.org
21
21
  * (c) 2025 Chart.js Contributors
22
22
  * Released under the MIT License
23
- */class gO{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,s){const a=n.listeners[s],o=n.duration;a.forEach(i=>i({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=Km.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,s)=>{if(!r.running||!r.items.length)return;const a=r.items;let o=a.length-1,i=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),i=!0):(a[o]=a[a.length-1],a.pop());i&&(s.draw(),this._notify(s,r,e,"progress")),a.length||(r.running=!1,this._notify(s,r,e,"complete"),r.initial=!1),n+=a.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,s)=>Math.max(r,s._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let s=r.length-1;for(;s>=0;--s)r[s].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Yn=new gO;const pp="transparent",mO={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=$m(t||pp),s=r.valid&&$m(e||pp);return s&&s.valid?s.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class pO{constructor(e,n,r,s){const a=n[r];s=ii([e.to,s,a,e.from]);const o=ii([e.from,a,s]);this._active=!0,this._fn=e.fn||mO[e.type||typeof o],this._easing=Sa[e.easing]||Sa.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const s=this._target[this._prop],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=ii([e.to,n,s,e.from]),this._from=ii([e.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,s=this._prop,a=this._from,o=this._loop,i=this._to;let l;if(this._active=a!==i&&(o||n<r),!this._active){this._target[s]=i,this._notify(!0);return}if(n<0){this._target[s]=a;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(a,i,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let s=0;s<r.length;s++)r[s][n]()}}class bp{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!ye(e))return;const n=Object.keys(Ge.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(s=>{const a=e[s];if(!ye(a))return;const o={};for(const i of n)o[i]=a[i];(mt(a.properties)&&a.properties||[s]).forEach(i=>{(i===s||!r.has(i))&&r.set(i,o)})})}_animateOptions(e,n){const r=n.options,s=yO(e,r);if(!s)return[];const a=this._createAnimations(s,r);return r.$shared&&bO(e.options.$animations,r).then(()=>{e.options=r},()=>{}),a}_createAnimations(e,n){const r=this._properties,s=[],a=e.$animations||(e.$animations={}),o=Object.keys(n),i=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(e,n));continue}const d=n[c];let u=a[c];const h=r.get(c);if(u)if(h&&u.active()){u.update(h,d,i);continue}else u.cancel();if(!h||!h.duration){e[c]=d;continue}a[c]=u=new pO(h,e,c,d),s.push(u)}return s}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return Yn.add(this._chart,r),!0}}function bO(t,e){const n=[],r=Object.keys(e);for(let s=0;s<r.length;s++){const a=t[r[s]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function yO(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function yp(t,e){const n=t&&t.options||{},r=n.reverse,s=n.min===void 0?e:0,a=n.max===void 0?e:0;return{start:r?a:s,end:r?s:a}}function wO(t,e,n){if(n===!1)return!1;const r=yp(t,n),s=yp(e,n);return{top:s.end,right:r.end,bottom:s.start,left:r.start}}function vO(t){let e,n,r,s;return ye(t)?(e=t.top,n=t.right,r=t.bottom,s=t.left):e=n=r=s=t,{top:e,right:n,bottom:r,left:s,disabled:t===!1}}function wp(t,e){const n=[],r=t._getSortedDatasetMetas(e);let s,a;for(s=0,a=r.length;s<a;++s)n.push(r[s].index);return n}function vp(t,e,n,r={}){const s=t.keys,a=r.mode==="single";let o,i,l,c;if(e===null)return;let d=!1;for(o=0,i=s.length;o<i;++o){if(l=+s[o],l===n){if(d=!0,r.all)continue;break}c=t.values[l],Hn(c)&&(a||e===0||Ym(e)===Ym(c))&&(e+=c)}return!d&&!r.all?0:e}function xO(t,e){const{iScale:n,vScale:r}=e,s=n.axis==="x"?"x":"y",a=r.axis==="x"?"x":"y",o=Object.keys(t),i=new Array(o.length);let l,c,d;for(l=0,c=o.length;l<c;++l)d=o[l],i[l]={[s]:d,[a]:t[d]};return i}function id(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function kO(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function _O(t){const{min:e,max:n,minDefined:r,maxDefined:s}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function SO(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function xp(t,e,n,r){for(const s of e.getMatchingVisibleMetas(r).reverse()){const a=t[s.index];if(n&&a>0||!n&&a<0)return s.index}return null}function kp(t,e){const{chart:n,_cachedMeta:r}=t,s=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:i}=r,l=a.axis,c=o.axis,d=kO(a,o,r),u=e.length;let h;for(let g=0;g<u;++g){const m=e[g],{[l]:p,[c]:b}=m,y=m._stacks||(m._stacks={});h=y[c]=SO(s,d,p),h[i]=b,h._top=xp(h,o,!0,r.type),h._bottom=xp(h,o,!1,r.type);const v=h._visualValues||(h._visualValues={});v[i]=b}}function ld(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function OO(t,e){return Ss(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function CO(t,e,n){return Ss(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function Da(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const s of e){const a=s._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const cd=t=>t==="reset"||t==="none",_p=(t,e)=>e?t:Object.assign({},t),DO=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:wp(n,!0),values:null};class Ma{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,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=id(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&&Da(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),s=(u,h,g,m)=>u==="x"?h:u==="r"?m:g,a=n.xAxisID=Me(r.xAxisID,ld(e,"x")),o=n.yAxisID=Me(r.yAxisID,ld(e,"y")),i=n.rAxisID=Me(r.rAxisID,ld(e,"r")),l=n.indexAxis,c=n.iAxisID=s(l,a,o,i),d=n.vAxisID=s(l,o,a,i);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(i),n.iScale=this.getScaleForId(c),n.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 n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Xm(this._data,this),e._stacked&&Da(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(ye(n)){const s=this._cachedMeta;this._data=xO(n,s)}else if(r!==n){if(r){Xm(r,this);const s=this._cachedMeta;Da(s),s._parsed=[]}n&&Object.isExtensible(n)&&OS(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let s=!1;this._dataCheck();const a=n._stacked;n._stacked=id(n.vScale,n),n.stack!==r.stack&&(s=!0,Da(n),n.stack=r.stack),this._resyncElements(e),(s||a!==n._stacked)&&(kp(this,n._parsed),n._stacked=id(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:s}=this,{iScale:a,_stacked:o}=r,i=a.axis;let l=e===0&&n===s.length?!0:r._sorted,c=e>0&&r._parsed[e-1],d,u,h;if(this._parsing===!1)r._parsed=s,r._sorted=!0,h=s;else{mt(s[e])?h=this.parseArrayData(r,s,e,n):ye(s[e])?h=this.parseObjectData(r,s,e,n):h=this.parsePrimitiveData(r,s,e,n);const g=()=>u[i]===null||c&&u[i]<c[i];for(d=0;d<n;++d)r._parsed[d+e]=u=h[d],l&&(g()&&(l=!1),c=u);r._sorted=l}o&&kp(this,h)}parsePrimitiveData(e,n,r,s){const{iScale:a,vScale:o}=e,i=a.axis,l=o.axis,c=a.getLabels(),d=a===o,u=new Array(s);let h,g,m;for(h=0,g=s;h<g;++h)m=h+r,u[h]={[i]:d||a.parse(c[m],m),[l]:o.parse(n[m],m)};return u}parseArrayData(e,n,r,s){const{xScale:a,yScale:o}=e,i=new Array(s);let l,c,d,u;for(l=0,c=s;l<c;++l)d=l+r,u=n[d],i[l]={x:a.parse(u[0],d),y:o.parse(u[1],d)};return i}parseObjectData(e,n,r,s){const{xScale:a,yScale:o}=e,{xAxisKey:i="x",yAxisKey:l="y"}=this._parsing,c=new Array(s);let d,u,h,g;for(d=0,u=s;d<u;++d)h=d+r,g=n[h],c[d]={x:a.parse(ka(g,i),h),y:o.parse(ka(g,l),h)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const s=this.chart,a=this._cachedMeta,o=n[e.axis],i={keys:wp(s,!0),values:n._stacks[e.axis]._visualValues};return vp(i,o,a.index,{mode:r})}updateRangeFromParsed(e,n,r,s){const a=r[n.axis];let o=a===null?NaN:a;const i=s&&r._stacks[n.axis];s&&i&&(s.values=i,o=vp(s,a,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,n){const r=this._cachedMeta,s=r._parsed,a=r._sorted&&e===r.iScale,o=s.length,i=this._getOtherScale(e),l=DO(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=_O(i);let h,g;function m(){g=s[h];const p=g[i.axis];return!Hn(g[e.axis])||d>p||u<p}for(h=0;h<o&&!(!m()&&(this.updateRangeFromParsed(c,e,g,l),a));++h);if(a){for(h=o-1;h>=0;--h)if(!m()){this.updateRangeFromParsed(c,e,g,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let s,a,o;for(s=0,a=n.length;s<a;++s)o=n[s][e.axis],Hn(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,s=n.vScale,a=this.getParsed(e);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:s?""+s.getLabelForValue(a[s.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=vO(Me(this.options.clip,wO(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,s=r.data||[],a=n.chartArea,o=[],i=this._drawStart||0,l=this._drawCount||s.length-i,c=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(e,a,i,l),d=i;d<i+l;++d){const u=s[d];u.hidden||(u.active&&c?o.push(u):u.draw(e,a))}for(d=0;d<o.length;++d)o[d].draw(e,a)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const s=this.getDataset();let a;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];a=o.$context||(o.$context=CO(this.getContext(),e,o)),a.parsed=this.getParsed(e),a.raw=s.data[e],a.index=a.dataIndex=e}else a=this.$context||(this.$context=OO(this.chart.getContext(),this.index)),a.dataset=s,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const s=n==="active",a=this._cachedDataOpts,o=e+"-"+n,i=a[o],l=this.enableOptionSharing&&ti(r);if(i)return _p(i,l);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,e),u=s?[`${e}Hover`,"hover",e,""]:[e,""],h=c.getOptionScopes(this.getDataset(),d),g=Object.keys(Ge.elements[e]),m=()=>this.getContext(r,s,n),p=c.resolveNamedOptions(h,g,m,u);return p.$shared&&(p.$shared=l,a[o]=Object.freeze(_p(p,l))),p}_resolveAnimations(e,n,r){const s=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,i=a[o];if(i)return i;let l;if(s.options.animation!==!1){const d=this.chart.config,u=d.datasetAnimationScopeKeys(this._type,n),h=d.getOptionScopes(this.getDataset(),u);l=d.createResolver(h,this.getContext(e,r,n))}const c=new bp(s,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||cd(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),s=this._sharedOptions,a=this.getSharedOptions(r),o=this.includeOptions(n,a)||a!==s;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:o}}updateElement(e,n,r,s){cd(s)?Object.assign(e,r):this._resolveAnimations(n,s).update(e,r)}updateSharedOptions(e,n,r){e&&!cd(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,s){e.active=s;const a=this.getStyle(n,s);this._resolveAnimations(n,r,s).update(e,{options:!s&&this.getSharedOptions(a)||a})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"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 n=this._data,r=this._cachedMeta.data;for(const[i,l,c]of this._syncList)this[i](l,c);this._syncList=[];const s=r.length,a=n.length,o=Math.min(a,s);o&&this.parse(0,o),a>s?this._insertElements(s,a-s,e):a<s&&this._removeElements(a,s-a)}_insertElements(e,n,r=!0){const s=this._cachedMeta,a=s.data,o=e+n;let i;const l=c=>{for(c.length+=n,i=c.length-1;i>=o;i--)c[i]=c[i-n]};for(l(a),i=e;i<o;++i)a[i]=new this.dataElementType;this._parsing&&l(s._parsed),this.parse(e,n),r&&this.updateElements(a,e,n,"reset")}updateElements(e,n,r,s){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const s=r._parsed.splice(e,n);r._stacked&&Da(r,s)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,s]=e;this[n](r,s)}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,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}$(Ma,"defaults",{}),$(Ma,"datasetElementType",null),$(Ma,"dataElementType",null);function MO(t,e,n){let r=1,s=1,a=0,o=0;if(e<nt){const i=t,l=i+e,c=Math.cos(i),d=Math.sin(i),u=Math.cos(l),h=Math.sin(l),g=(k,x,w)=>si(k,i,l,!0)?1:Math.max(x,x*n,w,w*n),m=(k,x,w)=>si(k,i,l,!0)?-1:Math.min(x,x*n,w,w*n),p=g(0,c,u),b=g(it,d,h),y=m(Be,c,u),v=m(Be+it,d,h);r=(p-y)/2,s=(b-v)/2,a=-(p+y)/2,o=-(b+v)/2}return{ratioX:r,ratioY:s,offsetX:a,offsetY:o}}class Ea extends Ma{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const r=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=r;else{let a=l=>+r[l];if(ye(r[e])){const{key:l="value"}=this._parsing;a=c=>+ka(r[c],l)}let o,i;for(o=e,i=e+n;o<i;++o)s._parsed[o]=a(o)}}_getRotation(){return Ar(this.options.rotation-90)}_getCircumference(){return Ar(this.options.circumference)}_getRotationExtents(){let e=nt,n=-nt;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const s=this.chart.getDatasetMeta(r).controller,a=s._getRotation(),o=s._getCircumference();e=Math.min(e,a),n=Math.max(n,a+o)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:r}=n,s=this._cachedMeta,a=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,i=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(uS(this.options.cutout,i),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:h,ratioY:g,offsetX:m,offsetY:p}=MO(u,d,l),b=(r.width-o)/h,y=(r.height-o)/g,v=Math.max(Math.min(b,y)/2,0),k=Fm(this.options.radius,v),x=Math.max(k*l,0),w=(k-x)/this._getVisibleDatasetWeightTotal();this.offsetX=m*k,this.offsetY=p*k,s.total=this.calculateTotal(),this.outerRadius=k-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(a,0,a.length,e)}_circumference(e,n){const r=this.options,s=this._cachedMeta,a=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||s._parsed[e]===null||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*a/nt)}updateElements(e,n,r,s){const a=s==="reset",o=this.chart,i=o.chartArea,c=o.options.animation,d=(i.left+i.right)/2,u=(i.top+i.bottom)/2,h=a&&c.animateScale,g=h?0:this.innerRadius,m=h?0:this.outerRadius,{sharedOptions:p,includeOptions:b}=this._getSharedOptions(n,s);let y=this._getRotation(),v;for(v=0;v<n;++v)y+=this._circumference(v,a);for(v=n;v<n+r;++v){const k=this._circumference(v,a),x=e[v],w={x:d+this.offsetX,y:u+this.offsetY,startAngle:y,endAngle:y+k,circumference:k,outerRadius:m,innerRadius:g};b&&(w.options=p||this.resolveDataElementOptions(v,x.active?"active":s)),y+=k,this.updateElement(x,v,w,s)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let r=0,s;for(s=0;s<n.length;s++){const a=e._parsed[s];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(s)&&!n[s].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?nt*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,s=r.data.labels||[],a=IS(n._parsed[e],r.options.locale);return{label:s[e]||"",value:a}}getMaxBorderWidth(e){let n=0;const r=this.chart;let s,a,o,i,l;if(!e){for(s=0,a=r.data.datasets.length;s<a;++s)if(r.isDatasetVisible(s)){o=r.getDatasetMeta(s),e=o.data,i=o.controller;break}}if(!e)return 0;for(s=0,a=e.length;s<a;++s)l=i.resolveDataElementOptions(s),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let r=0,s=e.length;r<s;++r){const a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(e){return Math.max(Me(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}$(Ea,"id","doughnut"),$(Ea,"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"}),$(Ea,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),$(Ea,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data,{labels:{pointStyle:r,textAlign:s,color:a,useBorderRadius:o,borderRadius:i}}=e.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((l,c)=>{const u=e.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:u.backgroundColor,fontColor:a,hidden:!e.getDataVisibility(c),lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:u.borderWidth,strokeStyle:u.borderColor,textAlign:s,pointStyle:r,borderRadius:o&&(i||u.borderRadius),index:c}}):[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});function Wr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class dd{constructor(e){$(this,"options");this.options=e||{}}static override(e){Object.assign(dd.prototype,e)}init(){}formats(){return Wr()}parse(){return Wr()}format(){return Wr()}add(){return Wr()}diff(){return Wr()}startOf(){return Wr()}endOf(){return Wr()}}var EO={_date:dd};function PO(t,e,n,r){const{controller:s,data:a,_sorted:o}=t,i=s._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(i&&e===i.axis&&e!=="r"&&o&&a.length){const c=i._reversePixels?_S:Gc;if(r){if(s._sharedOptions){const d=a[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const h=c(a,e,n-u),g=c(a,e,n+u);return{lo:h.lo,hi:g.hi}}}}else{const d=c(a,e,n);if(l){const{vScale:u}=s._cachedMeta,{_parsed:h}=t,g=h.slice(0,d.lo+1).reverse().findIndex(p=>!wt(p[u.axis]));d.lo-=Math.max(0,g);const m=h.slice(d.hi).findIndex(p=>!wt(p[u.axis]));d.hi+=Math.max(0,m)}return d}}return{lo:0,hi:a.length-1}}function ui(t,e,n,r,s){const a=t.getSortedVisibleDatasetMetas(),o=n[e];for(let i=0,l=a.length;i<l;++i){const{index:c,data:d}=a[i],{lo:u,hi:h}=PO(a[i],e,o,s);for(let g=u;g<=h;++g){const m=d[g];m.skip||r(m,c,g)}}}function TO(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,s){const a=e?Math.abs(r.x-s.x):0,o=n?Math.abs(r.y-s.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function ud(t,e,n,r,s){const a=[];return!s&&!t.isPointInArea(e)||ui(t,n,e,function(i,l,c){!s&&!ap(i,t.chartArea,0)||i.inRange(e.x,e.y,r)&&a.push({element:i,datasetIndex:l,index:c})},!0),a}function NO(t,e,n,r){let s=[];function a(o,i,l){const{startAngle:c,endAngle:d}=o.getProps(["startAngle","endAngle"],r),{angle:u}=Vm(o,{x:e.x,y:e.y});si(u,c,d)&&s.push({element:o,datasetIndex:i,index:l})}return ui(t,n,e,a),s}function jO(t,e,n,r,s,a){let o=[];const i=TO(n);let l=Number.POSITIVE_INFINITY;function c(d,u,h){const g=d.inRange(e.x,e.y,s);if(r&&!g)return;const m=d.getCenterPoint(s);if(!(!!a||t.isPointInArea(m))&&!g)return;const b=i(e,m);b<l?(o=[{element:d,datasetIndex:u,index:h}],l=b):b===l&&o.push({element:d,datasetIndex:u,index:h})}return ui(t,n,e,c),o}function fd(t,e,n,r,s,a){return!a&&!t.isPointInArea(e)?[]:n==="r"&&!r?NO(t,e,n,s):jO(t,e,n,r,s,a)}function Sp(t,e,n,r,s){const a=[],o=n==="x"?"inXRange":"inYRange";let i=!1;return ui(t,n,e,(l,c,d)=>{l[o]&&l[o](e[n],s)&&(a.push({element:l,datasetIndex:c,index:d}),i=i||l.inRange(e.x,e.y,s))}),r&&!i?[]:a}var IO={modes:{index(t,e,n,r){const s=Br(e,t),a=n.axis||"x",o=n.includeInvisible||!1,i=n.intersect?ud(t,s,a,r,o):fd(t,s,a,!1,r,o),l=[];return i.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const d=i[0].index,u=c.data[d];u&&!u.skip&&l.push({element:u,datasetIndex:c.index,index:d})}),l):[]},dataset(t,e,n,r){const s=Br(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;let i=n.intersect?ud(t,s,a,r,o):fd(t,s,a,!1,r,o);if(i.length>0){const l=i[0].datasetIndex,c=t.getDatasetMeta(l).data;i=[];for(let d=0;d<c.length;++d)i.push({element:c[d],datasetIndex:l,index:d})}return i},point(t,e,n,r){const s=Br(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;return ud(t,s,a,r,o)},nearest(t,e,n,r){const s=Br(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;return fd(t,s,a,n.intersect,r,o)},x(t,e,n,r){const s=Br(e,t);return Sp(t,s,"x",n.intersect,r)},y(t,e,n,r){const s=Br(e,t);return Sp(t,s,"y",n.intersect,r)}}};const Op=["left","top","right","bottom"];function Pa(t,e){return t.filter(n=>n.pos===e)}function Cp(t,e){return t.filter(n=>Op.indexOf(n.pos)===-1&&n.box.axis===e)}function Ta(t,e){return t.sort((n,r)=>{const s=e?r:n,a=e?n:r;return s.weight===a.weight?s.index-a.index:s.weight-a.weight})}function AO(t){const e=[];let n,r,s,a,o,i;for(n=0,r=(t||[]).length;n<r;++n)s=t[n],{position:a,options:{stack:o,stackWeight:i=1}}=s,e.push({index:n,box:s,pos:a,horizontal:s.isHorizontal(),weight:s.weight,stack:o&&a+o,stackWeight:i});return e}function RO(t){const e={};for(const n of t){const{stack:r,pos:s,stackWeight:a}=n;if(!r||!Op.includes(s))continue;const o=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return e}function LO(t,e){const n=RO(t),{vBoxMaxWidth:r,hBoxMaxHeight:s}=e;let a,o,i;for(a=0,o=t.length;a<o;++a){i=t[a];const{fullSize:l}=i.box,c=n[i.stack],d=c&&i.stackWeight/c.weight;i.horizontal?(i.width=d?d*r:l&&e.availableWidth,i.height=s):(i.width=r,i.height=d?d*s:l&&e.availableHeight)}return n}function FO(t){const e=AO(t),n=Ta(e.filter(c=>c.box.fullSize),!0),r=Ta(Pa(e,"left"),!0),s=Ta(Pa(e,"right")),a=Ta(Pa(e,"top"),!0),o=Ta(Pa(e,"bottom")),i=Cp(e,"x"),l=Cp(e,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:s.concat(l).concat(o).concat(i),chartArea:Pa(e,"chartArea"),vertical:r.concat(s).concat(l),horizontal:a.concat(o).concat(i)}}function Dp(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function Mp(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 BO(t,e,n,r){const{pos:s,box:a}=n,o=t.maxPadding;if(!ye(s)){n.size&&(t[s]-=n.size);const u=r[n.stack]||{size:0,count:1};u.size=Math.max(u.size,n.horizontal?a.height:a.width),n.size=u.size/u.count,t[s]+=n.size}a.getPadding&&Mp(o,a.getPadding());const i=Math.max(0,e.outerWidth-Dp(o,t,"left","right")),l=Math.max(0,e.outerHeight-Dp(o,t,"top","bottom")),c=i!==t.w,d=l!==t.h;return t.w=i,t.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function WO(t){const e=t.maxPadding;function n(r){const s=Math.max(e[r]-t[r],0);return t[r]+=s,s}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function zO(t,e){const n=e.maxPadding;function r(s){const a={left:0,top:0,right:0,bottom:0};return s.forEach(o=>{a[o]=Math.max(e[o],n[o])}),a}return r(t?["left","right"]:["top","bottom"])}function Na(t,e,n,r){const s=[];let a,o,i,l,c,d;for(a=0,o=t.length,c=0;a<o;++a){i=t[a],l=i.box,l.update(i.width||e.w,i.height||e.h,zO(i.horizontal,e));const{same:u,other:h}=BO(e,n,i,r);c|=u&&s.length,d=d||h,l.fullSize||s.push(i)}return c&&Na(s,e,n,r)||d}function fi(t,e,n,r,s){t.top=n,t.left=e,t.right=e+r,t.bottom=n+s,t.width=r,t.height=s}function Ep(t,e,n,r){const s=n.padding;let{x:a,y:o}=e;for(const i of t){const l=i.box,c=r[i.stack]||{placed:0,weight:1},d=i.stackWeight/c.weight||1;if(i.horizontal){const u=e.w*d,h=c.size||l.height;ti(c.start)&&(o=c.start),l.fullSize?fi(l,s.left,o,n.outerWidth-s.right-s.left,h):fi(l,e.left+c.placed,o,u,h),c.start=o,c.placed+=u,o=l.bottom}else{const u=e.h*d,h=c.size||l.width;ti(c.start)&&(a=c.start),l.fullSize?fi(l,a,s.top,h,n.outerHeight-s.bottom-s.top):fi(l,a,e.top+c.placed,h,u),c.start=a,c.placed+=u,a=l.right}}e.x=a,e.y=o}var fr={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(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const s=an(t.options.layout.padding),a=Math.max(e-s.width,0),o=Math.max(n-s.height,0),i=FO(t.boxes),l=i.vertical,c=i.horizontal;Ee(t.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const d=l.reduce((p,b)=>b.box.options&&b.box.options.display===!1?p:p+1,0)||1,u=Object.freeze({outerWidth:e,outerHeight:n,padding:s,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/d,hBoxMaxHeight:o/2}),h=Object.assign({},s);Mp(h,an(r));const g=Object.assign({maxPadding:h,w:a,h:o,x:s.left,y:s.top},s),m=LO(l.concat(c),u);Na(i.fullSize,g,u,m),Na(l,g,u,m),Na(c,g,u,m)&&Na(l,g,u,m),WO(g),Ep(i.leftAndTop,g,u,m),g.x+=g.w,g.y+=g.h,Ep(i.rightAndBottom,g,u,m),t.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},Ee(i.chartArea,p=>{const b=p.box;Object.assign(b,t.chartArea),b.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}};class Pp{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,s){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,s?Math.floor(n/s):r)}}isAttached(e){return!0}updateConfig(e){}}class HO extends Pp{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const hi="$chartjs",YO={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Tp=t=>t===null||t==="";function VO(t,e){const n=t.style,r=t.getAttribute("height"),s=t.getAttribute("width");if(t[hi]={initial:{height:r,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Tp(s)){const a=hp(t,"width");a!==void 0&&(t.width=a)}if(Tp(r))if(t.style.height==="")t.height=t.width/(e||2);else{const a=hp(t,"height");a!==void 0&&(t.height=a)}return t}const Np=cO?{passive:!0}:!1;function UO(t,e,n){t&&t.addEventListener(e,n,Np)}function XO(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Np)}function KO(t,e){const n=YO[t.type]||t.type,{x:r,y:s}=Br(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:s!==void 0?s:null}}function gi(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function GO(t,e,n){const r=t.canvas,s=new MutationObserver(a=>{let o=!1;for(const i of a)o=o||gi(i.addedNodes,r),o=o&&!gi(i.removedNodes,r);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function QO(t,e,n){const r=t.canvas,s=new MutationObserver(a=>{let o=!1;for(const i of a)o=o||gi(i.removedNodes,r),o=o&&!gi(i.addedNodes,r);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const ja=new Map;let jp=0;function Ip(){const t=window.devicePixelRatio;t!==jp&&(jp=t,ja.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function ZO(t,e){ja.size||window.addEventListener("resize",Ip),ja.set(t,e)}function JO(t){ja.delete(t),ja.size||window.removeEventListener("resize",Ip)}function qO(t,e,n){const r=t.canvas,s=r&&od(r);if(!s)return;const a=Gm((i,l)=>{const c=s.clientWidth;n(i,l),c<s.clientWidth&&n()},window),o=new ResizeObserver(i=>{const l=i[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||a(c,d)});return o.observe(s),ZO(t,a),o}function hd(t,e,n){n&&n.disconnect(),e==="resize"&&JO(t)}function $O(t,e,n){const r=t.canvas,s=Gm(a=>{t.ctx!==null&&n(KO(a,t))},t);return UO(r,e,s),s}class eC extends Pp{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(VO(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[hi])return!1;const r=n[hi].initial;["height","width"].forEach(a=>{const o=r[a];wt(o)?n.removeAttribute(a):n.setAttribute(a,o)});const s=r.style||{};return Object.keys(s).forEach(a=>{n.style[a]=s[a]}),n.width=n.width,delete n[hi],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const s=e.$proxies||(e.$proxies={}),o={attach:GO,detach:QO,resize:qO}[n]||$O;s[n]=o(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),s=r[n];if(!s)return;({attach:hd,detach:hd,resize:hd}[n]||XO)(e,n,s),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,s){return lO(e,n,r,s)}isAttached(e){const n=e&&od(e);return!!(n&&n.isConnected)}}function tC(t){return!ad()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?HO:eC}let Ia=(Vl=class{constructor(){$(this,"x");$(this,"y");$(this,"active",!1);$(this,"options");$(this,"$animations")}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return ri(this.x)&&ri(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const s={};return e.forEach(a=>{s[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),s}},$(Vl,"defaults",{}),$(Vl,"defaultRoutes"),Vl);function nC(t,e){const n=t.options.ticks,r=rC(t),s=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?aC(e):[],o=a.length,i=a[0],l=a[o-1],c=[];if(o>s)return oC(e,c,a,o/s),c;const d=sC(a,e,s);if(o>0){let u,h;const g=o>1?Math.round((l-i)/(o-1)):null;for(mi(e,c,d,wt(g)?0:i-g,i),u=0,h=o-1;u<h;u++)mi(e,c,d,a[u],a[u+1]);return mi(e,c,d,l,wt(g)?e.length:l+g),c}return mi(e,c,d),c}function rC(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),s=t._maxLength/n;return Math.floor(Math.min(r,s))}function sC(t,e,n){const r=iC(t),s=e.length/n;if(!r)return Math.max(s,1);const a=yS(r);for(let o=0,i=a.length-1;o<i;o++){const l=a[o];if(l>s)return l}return Math.max(s,1)}function aC(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function oC(t,e,n,r){let s=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<t.length;o++)o===a&&(e.push(t[o]),s++,a=n[s*r])}function mi(t,e,n,r,s){const a=Me(r,0),o=Math.min(Me(s,t.length),t.length);let i=0,l,c,d;for(n=Math.ceil(n),s&&(l=s-r,n=l/Math.floor(l/n)),d=a;d<0;)i++,d=Math.round(a+i*n);for(c=Math.max(a,0);c<o;c++)c===d&&(e.push(t[c]),i++,d=Math.round(a+i*n))}function iC(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const lC=t=>t==="left"?"right":t==="right"?"left":t,Ap=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,Rp=(t,e)=>Math.min(e||t,t);function Lp(t,e){const n=[],r=t.length/e,s=t.length;let a=0;for(;a<s;a+=r)n.push(t[Math.floor(a)]);return n}function cC(t,e,n){const r=t.ticks.length,s=Math.min(e,r-1),a=t._startPixel,o=t._endPixel,i=1e-6;let l=t.getPixelForTick(s),c;if(!(n&&(r===1?c=Math.max(l-a,o-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(s-1))/2,l+=s<e?c:-c,l<a-i||l>o+i)))return l}function dC(t,e){Ee(t,n=>{const r=n.gc,s=r.length/2;let a;if(s>e){for(a=0;a<s;++a)delete n.data[r[a]];r.splice(0,s)}})}function Aa(t){return t.drawTicks?t.tickLength:0}function Fp(t,e){if(!t.display)return 0;const n=Et(t.font,e),r=an(t.padding);return(mt(t.text)?t.text.length:1)*n.lineHeight+r.height}function uC(t,e){return Ss(t,{scale:e,type:"scale"})}function fC(t,e,n){return Ss(t,{tick:n,index:e,type:"tick"})}function hC(t,e,n){let r=Qm(t);return(n&&e!=="right"||!n&&e==="right")&&(r=lC(r)),r}function gC(t,e,n,r){const{top:s,left:a,bottom:o,right:i,chart:l}=t,{chartArea:c,scales:d}=l;let u=0,h,g,m;const p=o-s,b=i-a;if(t.isHorizontal()){if(g=Ft(r,a,i),ye(n)){const y=Object.keys(n)[0],v=n[y];m=d[y].getPixelForValue(v)+p-e}else n==="center"?m=(c.bottom+c.top)/2+p-e:m=Ap(t,n,e);h=i-a}else{if(ye(n)){const y=Object.keys(n)[0],v=n[y];g=d[y].getPixelForValue(v)-b+e}else n==="center"?g=(c.left+c.right)/2-b+e:g=Ap(t,n,e);m=Ft(r,o,s),u=n==="left"?-it:it}return{titleX:g,titleY:m,maxWidth:h,rotation:u}}class pi extends Ia{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,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:s}=this;return e=yn(e,Number.POSITIVE_INFINITY),n=yn(n,Number.NEGATIVE_INFINITY),r=yn(r,Number.POSITIVE_INFINITY),s=yn(s,Number.NEGATIVE_INFINITY),{min:yn(e,r),max:yn(n,s),minDefined:Hn(e),maxDefined:Hn(n)}}getMinMax(e){let{min:n,max:r,minDefined:s,maxDefined:a}=this.getUserBounds(),o;if(s&&a)return{min:n,max:r};const i=this.getMatchingVisibleMetas();for(let l=0,c=i.length;l<c;++l)o=i[l].controller.getMinMax(this,e),s||(n=Math.min(n,o.min)),a||(r=Math.max(r,o.max));return n=a&&n>r?r:n,r=s&&n>r?n:r,{min:yn(n,yn(r,n)),max:yn(r,yn(n,r))}}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(){Fe(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:s,grace:a,ticks:o}=this.options,i=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=KS(this,a,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=i<this.ticks.length;this._convertTicksToLabels(l?Lp(this.ticks,i):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=nC(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,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,e=!e),this._startPixel=n,this._endPixel=r,this._reversePixels=e,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Fe(this.options.afterUpdate,[this])}beforeSetDimensions(){Fe(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(){Fe(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Fe(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Fe(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,s,a;for(r=0,s=e.length;r<s;r++)a=e[r],a.label=Fe(n.callback,[a.value,r,e],this)}afterTickToLabelConversion(){Fe(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Fe(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=Rp(this.ticks.length,e.ticks.maxTicksLimit),s=n.minRotation||0,a=n.maxRotation;let o=s,i,l,c;if(!this._isVisible()||!n.display||s>=a||r<=1||!this.isHorizontal()){this.labelRotation=s;return}const d=this._getLabelSizes(),u=d.widest.width,h=d.highest.height,g=qt(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/r:g/(r-1),u+6>i&&(i=g/(r-(e.offset?.5:1)),l=this.maxHeight-Aa(e.grid)-n.padding-Fp(e.title,this.chart.options.font),c=Math.sqrt(u*u+h*h),o=vS(Math.min(Math.asin(qt((d.highest.height+6)/i,-1,1)),Math.asin(qt(l/c,-1,1))-Math.asin(qt(h/c,-1,1)))),o=Math.max(s,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){Fe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Fe(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:s,grid:a}}=this,o=this._isVisible(),i=this.isHorizontal();if(o){const l=Fp(s,n.options.font);if(i?(e.width=this.maxWidth,e.height=Aa(a)+l):(e.height=this.maxHeight,e.width=Aa(a)+l),r.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:h}=this._getLabelSizes(),g=r.padding*2,m=Ar(this.labelRotation),p=Math.cos(m),b=Math.sin(m);if(i){const y=r.mirror?0:b*u.width+p*h.height;e.height=Math.min(this.maxHeight,e.height+y+g)}else{const y=r.mirror?0:p*u.width+b*h.height;e.width=Math.min(this.maxWidth,e.width+y+g)}this._calculatePadding(c,d,b,p)}}this._handleMargins(),i?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,s){const{ticks:{align:a,padding:o},position:i}=this.options,l=this.labelRotation!==0,c=i!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,g=0;l?c?(h=s*e.width,g=r*n.height):(h=r*e.height,g=s*n.width):a==="start"?g=n.width:a==="end"?h=e.width:a!=="inner"&&(h=e.width/2,g=n.width/2),this.paddingLeft=Math.max((h-d+o)*this.width/(this.width-d),0),this.paddingRight=Math.max((g-u+o)*this.width/(this.width-u),0)}else{let d=n.height/2,u=e.height/2;a==="start"?(d=0,u=e.height):a==="end"&&(d=n.height,u=0),this.paddingTop=d+o,this.paddingBottom=u+o}}_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(){Fe(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n<r;n++)wt(e[n].label)&&(e.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=Lp(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,r){const{ctx:s,_longestTextCache:a}=this,o=[],i=[],l=Math.floor(n/Rp(n,r));let c=0,d=0,u,h,g,m,p,b,y,v,k,x,w;for(u=0;u<n;u+=l){if(m=e[u].label,p=this._resolveTickFontOptions(u),s.font=b=p.string,y=a[b]=a[b]||{data:{},gc:[]},v=p.lineHeight,k=x=0,!wt(m)&&!mt(m))k=tp(s,y.data,y.gc,k,m),x=v;else if(mt(m))for(h=0,g=m.length;h<g;++h)w=m[h],!wt(w)&&!mt(w)&&(k=tp(s,y.data,y.gc,k,w),x+=v);o.push(k),i.push(x),c=Math.max(k,c),d=Math.max(x,d)}dC(a,n);const S=o.indexOf(c),N=i.indexOf(d),M=T=>({width:o[T]||0,height:i[T]||0});return{first:M(0),last:M(n-1),widest:M(S),highest:M(N),widths:o,heights:i}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return kS(this._alignToPixels?Lr(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const r=n[e];return r.$context||(r.$context=fC(this.getContext(),e,r))}return this.$context||(this.$context=uC(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Ar(this.labelRotation),r=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=e.autoSkipPadding||0,i=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return this.isHorizontal()?l*r>i*s?i/r:l/s:l*s<i*r?l/r:i/s}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,s=this.options,{grid:a,position:o,border:i}=s,l=a.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),h=Aa(a),g=[],m=i.setContext(this.getContext()),p=m.display?m.width:0,b=p/2,y=function(W){return Lr(r,W,p)};let v,k,x,w,S,N,M,T,P,z,F,O;if(o==="top")v=y(this.bottom),N=this.bottom-h,T=v-b,z=y(e.top)+b,O=e.bottom;else if(o==="bottom")v=y(this.top),z=e.top,O=y(e.bottom)-b,N=v+b,T=this.top+h;else if(o==="left")v=y(this.right),S=this.right-h,M=v-b,P=y(e.left)+b,F=e.right;else if(o==="right")v=y(this.left),P=e.left,F=y(e.right)-b,S=v+b,M=this.left+h;else if(n==="x"){if(o==="center")v=y((e.top+e.bottom)/2+.5);else if(ye(o)){const W=Object.keys(o)[0],U=o[W];v=y(this.chart.scales[W].getPixelForValue(U))}z=e.top,O=e.bottom,N=v+b,T=N+h}else if(n==="y"){if(o==="center")v=y((e.left+e.right)/2);else if(ye(o)){const W=Object.keys(o)[0],U=o[W];v=y(this.chart.scales[W].getPixelForValue(U))}S=v-b,M=S-h,P=e.left,F=e.right}const C=Me(s.ticks.maxTicksLimit,u),E=Math.max(1,Math.ceil(u/C));for(k=0;k<u;k+=E){const W=this.getContext(k),U=a.setContext(W),K=i.setContext(W),ee=U.lineWidth,j=U.color,V=K.dash||[],L=K.dashOffset,R=U.tickWidth,A=U.tickColor,D=U.tickBorderDash||[],Y=U.tickBorderDashOffset;x=cC(this,k,l),x!==void 0&&(w=Lr(r,x,ee),c?S=M=P=F=w:N=T=z=O=w,g.push({tx1:S,ty1:N,tx2:M,ty2:T,x1:P,y1:z,x2:F,y2:O,width:ee,color:j,borderDash:V,borderDashOffset:L,tickWidth:R,tickColor:A,tickBorderDash:D,tickBorderDashOffset:Y}))}return this._ticksLength=u,this._borderValue=v,g}_computeLabelItems(e){const n=this.axis,r=this.options,{position:s,ticks:a}=r,o=this.isHorizontal(),i=this.ticks,{align:l,crossAlign:c,padding:d,mirror:u}=a,h=Aa(r.grid),g=h+d,m=u?-d:g,p=-Ar(this.labelRotation),b=[];let y,v,k,x,w,S,N,M,T,P,z,F,O="middle";if(s==="top")S=this.bottom-m,N=this._getXAxisLabelAlignment();else if(s==="bottom")S=this.top+m,N=this._getXAxisLabelAlignment();else if(s==="left"){const E=this._getYAxisLabelAlignment(h);N=E.textAlign,w=E.x}else if(s==="right"){const E=this._getYAxisLabelAlignment(h);N=E.textAlign,w=E.x}else if(n==="x"){if(s==="center")S=(e.top+e.bottom)/2+g;else if(ye(s)){const E=Object.keys(s)[0],W=s[E];S=this.chart.scales[E].getPixelForValue(W)+g}N=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")w=(e.left+e.right)/2-g;else if(ye(s)){const E=Object.keys(s)[0],W=s[E];w=this.chart.scales[E].getPixelForValue(W)}N=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?O="top":l==="end"&&(O="bottom"));const C=this._getLabelSizes();for(y=0,v=i.length;y<v;++y){k=i[y],x=k.label;const E=a.setContext(this.getContext(y));M=this.getPixelForTick(y)+a.labelOffset,T=this._resolveTickFontOptions(y),P=T.lineHeight,z=mt(x)?x.length:1;const W=z/2,U=E.color,K=E.textStrokeColor,ee=E.textStrokeWidth;let j=N;o?(w=M,N==="inner"&&(y===v-1?j=this.options.reverse?"left":"right":y===0?j=this.options.reverse?"right":"left":j="center"),s==="top"?c==="near"||p!==0?F=-z*P+P/2:c==="center"?F=-C.highest.height/2-W*P+P:F=-C.highest.height+P/2:c==="near"||p!==0?F=P/2:c==="center"?F=C.highest.height/2-W*P:F=C.highest.height-z*P,u&&(F*=-1),p!==0&&!E.showLabelBackdrop&&(w+=P/2*Math.sin(p))):(S=M,F=(1-z)*P/2);let V;if(E.showLabelBackdrop){const L=an(E.backdropPadding),R=C.heights[y],A=C.widths[y];let D=F-L.top,Y=0-L.left;switch(O){case"middle":D-=R/2;break;case"bottom":D-=R;break}switch(N){case"center":Y-=A/2;break;case"right":Y-=A;break;case"inner":y===v-1?Y-=A:y>0&&(Y-=A/2);break}V={left:Y,top:D,width:A+L.width,height:R+L.height,color:E.backdropColor}}b.push({label:x,font:T,textOffset:F,options:{rotation:p,color:U,strokeColor:K,strokeWidth:ee,textAlign:j,textBaseline:O,translation:[w,S],backdrop:V}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Ar(this.labelRotation))return e==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:s,padding:a}}=this.options,o=this._getLabelSizes(),i=e+a,l=o.widest.width;let c,d;return n==="left"?s?(d=this.right+a,r==="near"?c="left":r==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-i,r==="near"?c="right":r==="center"?(c="center",d-=l/2):(c="left",d=this.left)):n==="right"?s?(d=this.left+a,r==="near"?c="right":r==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+i,r==="near"?c="left":r==="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,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:s,width:a,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,s,a,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(a=>a.value===e);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let a,o;const i=(l,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(a=0,o=s.length;a<o;++a){const l=s[a];n.drawOnChartArea&&i({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&i({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:n,options:{border:r,grid:s}}=this,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(!o)return;const i=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,d,u,h;this.isHorizontal()?(c=Lr(e,this.left,o)-o/2,d=Lr(e,this.right,i)+i/2,u=h=l):(u=Lr(e,this.top,o)-o/2,h=Lr(e,this.bottom,i)+i/2,c=d=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.beginPath(),n.moveTo(c,u),n.lineTo(d,h),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,s=this._computeLabelArea();s&&qc(r,s);const a=this.getLabelItems(e);for(const o of a){const i=o.options,l=o.font,c=o.label,d=o.textOffset;oi(r,c,0,d,l,i)}s&&$c(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:s}}=this;if(!r.display)return;const a=Et(r.font),o=an(r.padding),i=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||ye(n)?(l+=o.bottom,mt(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:c,titleY:d,maxWidth:u,rotation:h}=gC(this,l,n,i);oi(e,r.text,0,0,a,{color:r.color,maxWidth:u,rotation:h,textAlign:hC(i,n,s),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,n=e.ticks&&e.ticks.z||0,r=Me(e.grid&&e.grid.z,-1),s=Me(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==pi.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",s=[];let a,o;for(a=0,o=n.length;a<o;++a){const i=n[a];i[r]===this.id&&(!e||i.type===e)&&s.push(i)}return s}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return Et(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class bi{constructor(e,n,r){this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let r;bC(n)&&(r=this.register(n));const s=this.items,a=e.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+e);return a in s||(s[a]=e,mC(e,o,r),this.override&&Ge.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,s=this.scope;r in n&&delete n[r],s&&r in Ge[s]&&(delete Ge[s][r],this.override&&delete Rr[r])}}function mC(t,e,n){const r=va(Object.create(null),[n?Ge.get(n):{},Ge.get(e),t.defaults]);Ge.set(e,r),t.defaultRoutes&&pC(e,t.defaultRoutes),t.descriptors&&Ge.describe(e,t.descriptors)}function pC(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),s=r.pop(),a=[t].concat(r).join("."),o=e[n].split("."),i=o.pop(),l=o.join(".");Ge.route(a,s,l,i)})}function bC(t){return"id"in t&&"defaults"in t}class yC{constructor(){this.controllers=new bi(Ma,"datasets",!0),this.elements=new bi(Ia,"elements"),this.plugins=new bi(Object,"plugins"),this.scales=new bi(pi,"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,n,r){[...n].forEach(s=>{const a=r||this._getRegistryForType(s);r||a.isForType(s)||a===this.plugins&&s.id?this._exec(e,a,s):Ee(s,o=>{const i=r||this._getRegistryForType(o);this._exec(e,i,o)})})}_exec(e,n,r){const s=Xc(e);Fe(r["before"+s],[],r),n[e](r),Fe(r["after"+s],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const s=n.get(e);if(s===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return s}}var vn=new yC;class wC{constructor(){this._init=void 0}notify(e,n,r,s){if(n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),this._init===void 0)return;const a=s?this._descriptors(e).filter(s):this._descriptors(e),o=this._notify(a,e,n,r);return n==="afterDestroy"&&(this._notify(a,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),o}_notify(e,n,r,s){s=s||{};for(const a of e){const o=a.plugin,i=o[r],l=[n,s,a.options];if(Fe(i,l,o)===!1&&s.cancelable)return!1}return!0}invalidate(){wt(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,s=Me(r.options&&r.options.plugins,{}),a=vC(r);return s===!1&&!n?[]:kC(e,a,s,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,s=(a,o)=>a.filter(i=>!o.some(l=>i.plugin.id===l.plugin.id));this._notify(s(n,r),e,"stop"),this._notify(s(r,n),e,"start")}}function vC(t){const e={},n=[],r=Object.keys(vn.plugins.items);for(let a=0;a<r.length;a++)n.push(vn.getPlugin(r[a]));const s=t.plugins||[];for(let a=0;a<s.length;a++){const o=s[a];n.indexOf(o)===-1&&(n.push(o),e[o.id]=!0)}return{plugins:n,localIds:e}}function xC(t,e){return!e&&t===!1?null:t===!0?{}:t}function kC(t,{plugins:e,localIds:n},r,s){const a=[],o=t.getContext();for(const i of e){const l=i.id,c=xC(r[l],s);c!==null&&a.push({plugin:i,options:_C(t.config,{plugin:i,local:n[l]},c,o)})}return a}function _C(t,{plugin:e,local:n},r,s){const a=t.pluginScopeKeys(e),o=t.getOptionScopes(r,a);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function gd(t,e){const n=Ge.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function SC(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function OC(t,e){return t===e?"_index_":"_value_"}function Bp(t){if(t==="x"||t==="y"||t==="r")return t}function CC(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function md(t,...e){if(Bp(t))return t;for(const n of e){const r=n.axis||CC(n.position)||t.length>1&&Bp(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Wp(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function DC(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(n.length)return Wp(t,"x",n[0])||Wp(t,"y",n[0])}return{}}function MC(t,e){const n=Rr[t.type]||{scales:{}},r=e.scales||{},s=gd(t.type,e),a=Object.create(null);return Object.keys(r).forEach(o=>{const i=r[o];if(!ye(i))return console.error(`Invalid scale configuration for scale: ${o}`);if(i._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=md(o,i,DC(o,t),Ge.scales[i.type]),c=OC(l,s),d=n.scales||{};a[o]=xa(Object.create(null),[{axis:l},i,d[l],d[c]])}),t.data.datasets.forEach(o=>{const i=o.type||t.type,l=o.indexAxis||gd(i,e),d=(Rr[i]||{}).scales||{};Object.keys(d).forEach(u=>{const h=SC(u,l),g=o[h+"AxisID"]||h;a[g]=a[g]||Object.create(null),xa(a[g],[{axis:h},r[g],d[u]])})}),Object.keys(a).forEach(o=>{const i=a[o];xa(i,[Ge.scales[i.type],Ge.scale])}),a}function zp(t){const e=t.options||(t.options={});e.plugins=Me(e.plugins,{}),e.scales=MC(t,e)}function Hp(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function EC(t){return t=t||{},t.data=Hp(t.data),zp(t),t}const Yp=new Map,Vp=new Set;function yi(t,e){let n=Yp.get(t);return n||(n=e(),Yp.set(t,n),Vp.add(n)),n}const Ra=(t,e,n)=>{const r=ka(e,n);r!==void 0&&t.add(r)};class PC{constructor(e){this._config=EC(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=Hp(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(),zp(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return yi(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return yi(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return yi(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return yi(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let s=r.get(e);return(!s||n)&&(s=new Map,r.set(e,s)),s}getOptionScopes(e,n,r){const{options:s,type:a}=this,o=this._cachedScopes(e,r),i=o.get(n);if(i)return i;const l=new Set;n.forEach(d=>{e&&(l.add(e),d.forEach(u=>Ra(l,e,u))),d.forEach(u=>Ra(l,s,u)),d.forEach(u=>Ra(l,Rr[a]||{},u)),d.forEach(u=>Ra(l,Ge,u)),d.forEach(u=>Ra(l,Zc,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Vp.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,Rr[n]||{},Ge.datasets[n]||{},{type:n},Ge,Zc]}resolveNamedOptions(e,n,r,s=[""]){const a={$shared:!0},{resolver:o,subPrefixes:i}=Up(this._resolverCache,e,s);let l=o;if(NC(o,n)){a.$shared=!1,r=dr(r)?r():r;const c=this.createResolver(e,r,i);l=Os(o,r,c)}for(const c of n)a[c]=l[c];return a}createResolver(e,n,r=[""],s){const{resolver:a}=Up(this._resolverCache,e,r);return ye(n)?Os(a,n,void 0,s):a}}function Up(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const s=n.join();let a=r.get(s);return a||(a={resolver:nd(e,n),subPrefixes:n.filter(i=>!i.toLowerCase().includes("hover"))},r.set(s,a)),a}const TC=t=>ye(t)&&Object.getOwnPropertyNames(t).some(e=>dr(t[e]));function NC(t,e){const{isScriptable:n,isIndexable:r}=op(t);for(const s of e){const a=n(s),o=r(s),i=(o||a)&&t[s];if(a&&(dr(i)||TC(i))||o&&mt(i))return!0}return!1}var jC="4.5.1";const IC=["top","bottom","left","right","chartArea"];function Xp(t,e){return t==="top"||t==="bottom"||IC.indexOf(t)===-1&&e==="x"}function Kp(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function Gp(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Fe(n&&n.onComplete,[t],e)}function AC(t){const e=t.chart,n=e.options.animation;Fe(n&&n.onProgress,[t],e)}function Qp(t){return ad()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const wi={},Zp=t=>{const e=Qp(t);return Object.values(wi).filter(n=>n.canvas===e).pop()};function RC(t,e,n){const r=Object.keys(t);for(const s of r){const a=+s;if(a>=e){const o=t[s];delete t[s],(n>0||a>e)&&(t[a+n]=o)}}}function LC(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}let vi=(_r=class{static register(...e){vn.add(...e),Jp()}static unregister(...e){vn.remove(...e),Jp()}constructor(e,n){const r=this.config=new PC(n),s=Qp(e),a=Zp(s);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||tC(s)),this.platform.updateConfig(r);const i=this.platform.acquireContext(s,o.aspectRatio),l=i&&i.canvas,c=l&&l.height,d=l&&l.width;if(this.id=dS(),this.ctx=i,this.canvas=l,this.width=d,this.height=c,this._options=o,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 wC,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=DS(u=>this.update(u),o.resizeDelay||0),this._dataChanges=[],wi[this.id]=this,!i||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Yn.listen(this,"complete",Gp),Yn.listen(this,"progress",AC),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:s,_aspectRatio:a}=this;return wt(e)?n&&a?a:s?r/s: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 vn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():fp(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return np(this.canvas,this.ctx),this}stop(){return Yn.stop(this),this}resize(e,n){Yn.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,s=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,e,n,a),i=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,fp(this,i,!0)&&(this.notifyPlugins("resize",{size:o}),Fe(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ee(n,(r,s)=>{r.id=s})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,s=Object.keys(r).reduce((o,i)=>(o[i]=!1,o),{});let a=[];n&&(a=a.concat(Object.keys(n).map(o=>{const i=n[o],l=md(o,i),c=l==="r",d=l==="x";return{options:i,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),Ee(a,o=>{const i=o.options,l=i.id,c=md(l,i),d=Me(i.type,o.dtype);(i.position===void 0||Xp(i.position,c)!==Xp(o.dposition))&&(i.position=o.dposition),s[l]=!0;let u=null;if(l in r&&r[l].type===d)u=r[l];else{const h=vn.getScale(d);u=new h({id:l,type:d,ctx:this.ctx,chart:this}),r[u.id]=u}u.init(i,e)}),Ee(s,(o,i)=>{o||delete r[i]}),Ee(r,o=>{fr.configure(this,o,o.options),fr.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((s,a)=>s.index-a.index),r>n){for(let s=n;s<r;++s)this._destroyDatasetMeta(s);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(Kp("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,s)=>{n.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,s;for(this._removeUnreferencedMetasets(),r=0,s=n.length;r<s;r++){const a=n[r];let o=this.getDatasetMeta(r);const i=a.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=i,o.indexAxis=a.indexAxis||gd(i,this.options),o.order=a.order||0,o.index=r,o.label=""+a.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=vn.getController(i),{datasetElementType:c,dataElementType:d}=Ge.datasets[i];Object.assign(l,{dataElementType:vn.getElement(d),datasetElementType:c&&vn.getElement(c)}),o.controller=new l(this,r),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){Ee(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,d=this.data.datasets.length;c<d;c++){const{controller:u}=this.getDatasetMeta(c),h=!s&&a.indexOf(u)===-1;u.buildOrUpdateElements(h),o=Math.max(+u.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),s||Ee(a,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Kp("z","_idx"));const{_active:i,_lastEvent:l}=this;l?this._eventHandler(l,!0):i.length&&this._updateHoverStyles(i,i,!0),this.render()}_updateScales(){Ee(this.scales,e=>{fr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!zm(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:s,count:a}of n){const o=r==="_removeElements"?-a:a;RC(e,s,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(e.filter(o=>o[0]===a).map((o,i)=>i+","+o.splice(1).join(","))),s=r(0);for(let a=1;a<n;a++)if(!zm(s,r(a)))return;return Array.from(s).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;fr.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Ee(this.boxes,s=>{r&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,a)=>{s._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,dr(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),s={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(r.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Yn.has(this)?this.attached&&!Yn.running(this)&&Yn.start(this):(this.draw(),Gp({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,s)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let s,a;for(s=0,a=n.length;s<a;++s){const o=n[s];(!e||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r={meta:e,index:e.index,cancelable:!0},s=hO(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&qc(n,s),e.controller.draw(),s&&$c(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return ap(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,s){const a=IO.modes[n];return typeof a=="function"?a(this,e,r,s):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let s=r.filter(a=>a&&a._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(s)),s}getContext(){return this.$context||(this.$context=Ss(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const s=r?"show":"hide",a=this.getDatasetMeta(e),o=a.controller._resolveAnimations(void 0,s);ti(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),o.update(a,{visible:r}),this.update(i=>i.datasetIndex===e?s:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),Yn.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),np(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete wi[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,n=this.platform,r=(a,o)=>{n.addEventListener(this,a,o),e[a]=o},s=(a,o,i)=>{a.offsetX=o,a.offsetY=i,this._eventHandler(a)};Ee(this.options.events,a=>r(a,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},s=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},a=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const i=()=>{s("attach",i),this.attached=!0,this.resize(),r("resize",a),r("detach",o)};o=()=>{this.attached=!1,s("resize",a),this._stop(),this._resize(0,0),r("attach",i)},n.isAttached(this.canvas)?i():o()}unbindEvents(){Ee(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Ee(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const s=r?"set":"remove";let a,o,i,l;for(n==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+s+"DatasetHoverStyle"]()),i=0,l=e.length;i<l;++i){o=e[i];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:a,index:o})=>{const i=this.getDatasetMeta(a);if(!i)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:i.data[o],index:o}});!$o(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const s=this.options.hover,a=(l,c)=>l.filter(d=>!c.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),o=a(n,e),i=r?e:a(e,n);o.length&&this.updateHoverStyle(o,s.mode,!1),i.length&&s.mode&&this.updateHoverStyle(i,s.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},s=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,s)===!1)return;const a=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,s),(a||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:s=[],options:a}=this,o=n,i=this._getActiveElements(e,s,r,o),l=pS(e),c=LC(e,this._lastEvent,r,l);r&&(this._lastEvent=null,Fe(a.onHover,[e,i,this],this),l&&Fe(a.onClick,[e,i,this],this));const d=!$o(i,s);return(d||n)&&(this._active=i,this._updateHoverStyles(i,s,n)),this._lastEvent=c,d}_getActiveElements(e,n,r,s){if(e.type==="mouseout")return[];if(!r)return n;const a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,s)}},$(_r,"defaults",Ge),$(_r,"instances",wi),$(_r,"overrides",Rr),$(_r,"registry",vn),$(_r,"version",jC),$(_r,"getChart",Zp),_r);function Jp(){return Ee(vi.instances,t=>t._plugins.invalidate())}function FC(t,e,n){const{startAngle:r,x:s,y:a,outerRadius:o,innerRadius:i,options:l}=e,{borderWidth:c,borderJoinStyle:d}=l,u=Math.min(c/o,wn(r-n));if(t.beginPath(),t.arc(s,a,o-c/2,r+u/2,n-u/2),i>0){const h=Math.min(c/i,wn(r-n));t.arc(s,a,i+c/2,n-h/2,r+h/2,!0)}else{const h=Math.min(c/2,o*wn(r-n));if(d==="round")t.arc(s,a,h,n-Be/2,r+Be/2,!0);else if(d==="bevel"){const g=2*h*h,m=-g*Math.cos(n+Be/2)+s,p=-g*Math.sin(n+Be/2)+a,b=g*Math.cos(r+Be/2)+s,y=g*Math.sin(r+Be/2)+a;t.lineTo(m,p),t.lineTo(b,y)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function BC(t,e,n){const{startAngle:r,pixelMargin:s,x:a,y:o,outerRadius:i,innerRadius:l}=e;let c=s/i;t.beginPath(),t.arc(a,o,i,r-c,n+c),l>s?(c=s/l,t.arc(a,o,l,n+c,r-c,!0)):t.arc(a,o,s,n+it,r-it),t.closePath(),t.clip()}function WC(t){return td(t,["outerStart","outerEnd","innerStart","innerEnd"])}function zC(t,e,n,r){const s=WC(t.options.borderRadius),a=(n-e)/2,o=Math.min(a,r*e/2),i=l=>{const c=(n-Math.min(a,l))*r/2;return qt(l,0,Math.min(a,c))};return{outerStart:i(s.outerStart),outerEnd:i(s.outerEnd),innerStart:qt(s.innerStart,0,o),innerEnd:qt(s.innerEnd,0,o)}}function Ds(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function xi(t,e,n,r,s,a){const{x:o,y:i,startAngle:l,pixelMargin:c,innerRadius:d}=e,u=Math.max(e.outerRadius+r+n-c,0),h=d>0?d+r+n+c:0;let g=0;const m=s-l;if(r){const E=d>0?d-r:0,W=u>0?u-r:0,U=(E+W)/2,K=U!==0?m*U/(U+r):m;g=(m-K)/2}const p=Math.max(.001,m*u-n/Be)/u,b=(m-p)/2,y=l+b+g,v=s-b-g,{outerStart:k,outerEnd:x,innerStart:w,innerEnd:S}=zC(e,h,u,v-y),N=u-k,M=u-x,T=y+k/N,P=v-x/M,z=h+w,F=h+S,O=y+w/z,C=v-S/F;if(t.beginPath(),a){const E=(T+P)/2;if(t.arc(o,i,u,T,E),t.arc(o,i,u,E,P),x>0){const ee=Ds(M,P,o,i);t.arc(ee.x,ee.y,x,P,v+it)}const W=Ds(F,v,o,i);if(t.lineTo(W.x,W.y),S>0){const ee=Ds(F,C,o,i);t.arc(ee.x,ee.y,S,v+it,C+Math.PI)}const U=(v-S/h+(y+w/h))/2;if(t.arc(o,i,h,v-S/h,U,!0),t.arc(o,i,h,U,y+w/h,!0),w>0){const ee=Ds(z,O,o,i);t.arc(ee.x,ee.y,w,O+Math.PI,y-it)}const K=Ds(N,y,o,i);if(t.lineTo(K.x,K.y),k>0){const ee=Ds(N,T,o,i);t.arc(ee.x,ee.y,k,y-it,T)}}else{t.moveTo(o,i);const E=Math.cos(T)*u+o,W=Math.sin(T)*u+i;t.lineTo(E,W);const U=Math.cos(P)*u+o,K=Math.sin(P)*u+i;t.lineTo(U,K)}t.closePath()}function HC(t,e,n,r,s){const{fullCircles:a,startAngle:o,circumference:i}=e;let l=e.endAngle;if(a){xi(t,e,n,r,l,s);for(let c=0;c<a;++c)t.fill();isNaN(i)||(l=o+(i%nt||nt))}return xi(t,e,n,r,l,s),t.fill(),l}function YC(t,e,n,r,s){const{fullCircles:a,startAngle:o,circumference:i,options:l}=e,{borderWidth:c,borderJoinStyle:d,borderDash:u,borderDashOffset:h,borderRadius:g}=l,m=l.borderAlign==="inner";if(!c)return;t.setLineDash(u||[]),t.lineDashOffset=h,m?(t.lineWidth=c*2,t.lineJoin=d||"round"):(t.lineWidth=c,t.lineJoin=d||"bevel");let p=e.endAngle;if(a){xi(t,e,n,r,p,s);for(let b=0;b<a;++b)t.stroke();isNaN(i)||(p=o+(i%nt||nt))}m&&BC(t,e,p),l.selfJoin&&p-o>=Be&&g===0&&d!=="miter"&&FC(t,e,p),a||(xi(t,e,n,r,p,s),t.stroke())}class La extends Ia{constructor(n){super();$(this,"circumference");$(this,"endAngle");$(this,"fullCircles");$(this,"innerRadius");$(this,"outerRadius");$(this,"pixelMargin");$(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,n&&Object.assign(this,n)}inRange(n,r,s){const a=this.getProps(["x","y"],s),{angle:o,distance:i}=Vm(a,{x:n,y:r}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:u,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),g=(this.options.spacing+this.options.borderWidth)/2,m=Me(h,c-l),p=si(o,l,c)&&l!==c,b=m>=nt||p,y=_a(i,d+g,u+g);return b&&y}getCenterPoint(n){const{x:r,y:s,startAngle:a,endAngle:o,innerRadius:i,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:d}=this.options,u=(a+o)/2,h=(i+l+d+c)/2;return{x:r+Math.cos(u)*h,y:s+Math.sin(u)*h}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:s}=this,a=(r.offset||0)/4,o=(r.spacing||0)/2,i=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=s>nt?Math.floor(s/nt):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*a,Math.sin(l)*a);const c=1-Math.sin(Math.min(Be,s||0)),d=a*c;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,HC(n,this,d,o,i),YC(n,this,d,o,i),n.restore()}}$(La,"id","arc"),$(La,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),$(La,"defaultRoutes",{backgroundColor:"backgroundColor"}),$(La,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});const qp=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},VC=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class $p extends Ia{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,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,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 n=Fe(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,s)=>e.sort(r,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,s=Et(r.font),a=s.size,o=this._computeTitleHeight(),{boxWidth:i,itemHeight:l}=qp(r,a);let c,d;n.font=s.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(o,a,i,l)+10):(d=this.maxHeight,c=this._fitCols(o,s,i,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(d,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,s){const{ctx:a,maxWidth:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=s+i;let u=e;a.textAlign="left",a.textBaseline="middle";let h=-1,g=-d;return this.legendItems.forEach((m,p)=>{const b=r+n/2+a.measureText(m.text).width;(p===0||c[c.length-1]+b+2*i>o)&&(u+=d,c[c.length-(p>0?0:1)]=0,g+=d,h++),l[p]={left:0,top:g,row:h,width:b,height:s},c[c.length-1]+=b+i}),u}_fitCols(e,n,r,s){const{ctx:a,maxHeight:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=o-e;let u=i,h=0,g=0,m=0,p=0;return this.legendItems.forEach((b,y)=>{const{itemWidth:v,itemHeight:k}=UC(r,n,a,b,s);y>0&&g+k+2*i>d&&(u+=h+i,c.push({width:h,height:g}),m+=h+i,p++,h=g=0),l[y]={left:m,top:g,col:p,width:v,height:k},h=Math.max(h,v),g+=k+i}),u+=h,c.push({width:h,height:g}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:s},rtl:a}}=this,o=Cs(a,this.left,this.width);if(this.isHorizontal()){let i=0,l=Ft(r,this.left+s,this.right-this.lineWidths[i]);for(const c of n)i!==c.row&&(i=c.row,l=Ft(r,this.left+s,this.right-this.lineWidths[i])),c.top+=this.top+e+s,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+s}else{let i=0,l=Ft(r,this.top+e+s,this.bottom-this.columnSizes[i].height);for(const c of n)c.col!==i&&(i=c.col,l=Ft(r,this.top+e+s,this.bottom-this.columnSizes[i].height)),c.top=l,c.left+=this.left+s,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;qc(e,this),this._draw(),$c(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:s}=this,{align:a,labels:o}=e,i=Ge.color,l=Cs(e.rtl,this.left,this.width),c=Et(o.font),{padding:d}=o,u=c.size,h=u/2;let g;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:m,boxHeight:p,itemHeight:b}=qp(o,u),y=function(S,N,M){if(isNaN(m)||m<=0||isNaN(p)||p<0)return;s.save();const T=Me(M.lineWidth,1);if(s.fillStyle=Me(M.fillStyle,i),s.lineCap=Me(M.lineCap,"butt"),s.lineDashOffset=Me(M.lineDashOffset,0),s.lineJoin=Me(M.lineJoin,"miter"),s.lineWidth=T,s.strokeStyle=Me(M.strokeStyle,i),s.setLineDash(Me(M.lineDash,[])),o.usePointStyle){const P={radius:p*Math.SQRT2/2,pointStyle:M.pointStyle,rotation:M.rotation,borderWidth:T},z=l.xPlus(S,m/2),F=N+h;sp(s,P,z,F,o.pointStyleWidth&&m)}else{const P=N+Math.max((u-p)/2,0),z=l.leftForLtr(S,m),F=Ca(M.borderRadius);s.beginPath(),Object.values(F).some(O=>O!==0)?ed(s,{x:z,y:P,w:m,h:p,radius:F}):s.rect(z,P,m,p),s.fill(),T!==0&&s.stroke()}s.restore()},v=function(S,N,M){oi(s,M.text,S,N+b/2,c,{strikethrough:M.hidden,textAlign:l.textAlign(M.textAlign)})},k=this.isHorizontal(),x=this._computeTitleHeight();k?g={x:Ft(a,this.left+d,this.right-r[0]),y:this.top+d+x,line:0}:g={x:this.left+d,y:Ft(a,this.top+x+d,this.bottom-n[0].height),line:0},gp(this.ctx,e.textDirection);const w=b+d;this.legendItems.forEach((S,N)=>{s.strokeStyle=S.fontColor,s.fillStyle=S.fontColor;const M=s.measureText(S.text).width,T=l.textAlign(S.textAlign||(S.textAlign=o.textAlign)),P=m+h+M;let z=g.x,F=g.y;l.setWidth(this.width),k?N>0&&z+P+d>this.right&&(F=g.y+=w,g.line++,z=g.x=Ft(a,this.left+d,this.right-r[g.line])):N>0&&F+w>this.bottom&&(z=g.x=z+n[g.line].width+d,g.line++,F=g.y=Ft(a,this.top+x+d,this.bottom-n[g.line].height));const O=l.x(z);if(y(O,F,S),z=MS(T,z+m+h,k?z+P:this.right,e.rtl),v(l.x(z),F,S),k)g.x+=P+d;else if(typeof S.text!="string"){const C=c.lineHeight;g.y+=e0(S,C)+d}else g.y+=w}),mp(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=Et(n.font),s=an(n.padding);if(!n.display)return;const a=Cs(e.rtl,this.left,this.width),o=this.ctx,i=n.position,l=r.size/2,c=s.top+l;let d,u=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),d=this.top+c,u=Ft(e.align,u,this.right-h);else{const m=this.columnSizes.reduce((p,b)=>Math.max(p,b.height),0);d=c+Ft(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const g=Ft(i,u,u+h);o.textAlign=a.textAlign(Qm(i)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,oi(o,n.text,g,d,r)}_computeTitleHeight(){const e=this.options.title,n=Et(e.font),r=an(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,s,a;if(_a(e,this.left,this.right)&&_a(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(s=a[r],_a(e,s.left,s.left+s.width)&&_a(n,s.top,s.top+s.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!GC(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const s=this._hoveredItem,a=VC(s,r);s&&!a&&Fe(n.onLeave,[e,s,this],this),this._hoveredItem=r,r&&!a&&Fe(n.onHover,[e,r,this],this)}else r&&Fe(n.onClick,[e,r,this],this)}}function UC(t,e,n,r,s){const a=XC(r,t,e,n),o=KC(s,r,e.lineHeight);return{itemWidth:a,itemHeight:o}}function XC(t,e,n,r){let s=t.text;return s&&typeof s!="string"&&(s=s.reduce((a,o)=>a.length>o.length?a:o)),e+n.size/2+r.measureText(s).width}function KC(t,e,n){let r=t;return typeof e.text!="string"&&(r=e0(e,n)),r}function e0(t,e){const n=t.text?t.text.length:0;return e*n}function GC(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var QC={id:"legend",_element:$p,start(t,e,n){const r=t.legend=new $p({ctx:t.ctx,options:n,chart:t});fr.configure(t,r,n),fr.addBox(t,r)},stop(t){fr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;fr.configure(t,r,n),r.options=n},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,n){const r=e.datasetIndex,s=n.chart;s.isDatasetVisible(r)?(s.hide(r),e.hidden=!0):(s.show(r),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:n,pointStyle:r,textAlign:s,color:a,useBorderRadius:o,borderRadius:i}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),d=an(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:a,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:r||c.pointStyle,rotation:c.rotation,textAlign:s||c.textAlign,borderRadius:o&&(i||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 Fa={average(t){if(!t.length)return!1;let e,n,r=new Set,s=0,a=0;for(e=0,n=t.length;e<n;++e){const i=t[e].element;if(i&&i.hasValue()){const l=i.tooltipPosition();r.add(l.x),s+=l.y,++a}}return a===0||r.size===0?!1:{x:[...r].reduce((i,l)=>i+l)/r.size,y:s/a}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,s=Number.POSITIVE_INFINITY,a,o,i;for(a=0,o=t.length;a<o;++a){const l=t[a].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),d=xS(e,c);d<s&&(s=d,i=l)}}if(i){const l=i.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function xn(t,e){return e&&(mt(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Vn(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
23
+ */class hO{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,s){const a=n.listeners[s],o=n.duration;a.forEach(i=>i({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=Xm.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,s)=>{if(!r.running||!r.items.length)return;const a=r.items;let o=a.length-1,i=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),i=!0):(a[o]=a[a.length-1],a.pop());i&&(s.draw(),this._notify(s,r,e,"progress")),a.length||(r.running=!1,this._notify(s,r,e,"complete"),r.initial=!1),n+=a.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,s)=>Math.max(r,s._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let s=r.length-1;for(;s>=0;--s)r[s].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Yn=new hO;const mp="transparent",gO={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=qm(t||mp),s=r.valid&&qm(e||mp);return s&&s.valid?s.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class mO{constructor(e,n,r,s){const a=n[r];s=ii([e.to,s,a,e.from]);const o=ii([e.from,a,s]);this._active=!0,this._fn=e.fn||gO[e.type||typeof o],this._easing=Sa[e.easing]||Sa.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const s=this._target[this._prop],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=ii([e.to,n,s,e.from]),this._from=ii([e.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,s=this._prop,a=this._from,o=this._loop,i=this._to;let l;if(this._active=a!==i&&(o||n<r),!this._active){this._target[s]=i,this._notify(!0);return}if(n<0){this._target[s]=a;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(a,i,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let s=0;s<r.length;s++)r[s][n]()}}class pp{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!ye(e))return;const n=Object.keys(Ke.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(s=>{const a=e[s];if(!ye(a))return;const o={};for(const i of n)o[i]=a[i];(mt(a.properties)&&a.properties||[s]).forEach(i=>{(i===s||!r.has(i))&&r.set(i,o)})})}_animateOptions(e,n){const r=n.options,s=bO(e,r);if(!s)return[];const a=this._createAnimations(s,r);return r.$shared&&pO(e.options.$animations,r).then(()=>{e.options=r},()=>{}),a}_createAnimations(e,n){const r=this._properties,s=[],a=e.$animations||(e.$animations={}),o=Object.keys(n),i=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(e,n));continue}const d=n[c];let u=a[c];const h=r.get(c);if(u)if(h&&u.active()){u.update(h,d,i);continue}else u.cancel();if(!h||!h.duration){e[c]=d;continue}a[c]=u=new mO(h,e,c,d),s.push(u)}return s}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return Yn.add(this._chart,r),!0}}function pO(t,e){const n=[],r=Object.keys(e);for(let s=0;s<r.length;s++){const a=t[r[s]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function bO(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function bp(t,e){const n=t&&t.options||{},r=n.reverse,s=n.min===void 0?e:0,a=n.max===void 0?e:0;return{start:r?a:s,end:r?s:a}}function yO(t,e,n){if(n===!1)return!1;const r=bp(t,n),s=bp(e,n);return{top:s.end,right:r.end,bottom:s.start,left:r.start}}function wO(t){let e,n,r,s;return ye(t)?(e=t.top,n=t.right,r=t.bottom,s=t.left):e=n=r=s=t,{top:e,right:n,bottom:r,left:s,disabled:t===!1}}function yp(t,e){const n=[],r=t._getSortedDatasetMetas(e);let s,a;for(s=0,a=r.length;s<a;++s)n.push(r[s].index);return n}function wp(t,e,n,r={}){const s=t.keys,a=r.mode==="single";let o,i,l,c;if(e===null)return;let d=!1;for(o=0,i=s.length;o<i;++o){if(l=+s[o],l===n){if(d=!0,r.all)continue;break}c=t.values[l],Hn(c)&&(a||e===0||Hm(e)===Hm(c))&&(e+=c)}return!d&&!r.all?0:e}function vO(t,e){const{iScale:n,vScale:r}=e,s=n.axis==="x"?"x":"y",a=r.axis==="x"?"x":"y",o=Object.keys(t),i=new Array(o.length);let l,c,d;for(l=0,c=o.length;l<c;++l)d=o[l],i[l]={[s]:d,[a]:t[d]};return i}function id(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function xO(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function kO(t){const{min:e,max:n,minDefined:r,maxDefined:s}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function _O(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function vp(t,e,n,r){for(const s of e.getMatchingVisibleMetas(r).reverse()){const a=t[s.index];if(n&&a>0||!n&&a<0)return s.index}return null}function xp(t,e){const{chart:n,_cachedMeta:r}=t,s=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:i}=r,l=a.axis,c=o.axis,d=xO(a,o,r),u=e.length;let h;for(let g=0;g<u;++g){const m=e[g],{[l]:p,[c]:b}=m,y=m._stacks||(m._stacks={});h=y[c]=_O(s,d,p),h[i]=b,h._top=vp(h,o,!0,r.type),h._bottom=vp(h,o,!1,r.type);const v=h._visualValues||(h._visualValues={});v[i]=b}}function ld(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function SO(t,e){return Ss(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function OO(t,e,n){return Ss(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function Da(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const s of e){const a=s._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const cd=t=>t==="reset"||t==="none",kp=(t,e)=>e?t:Object.assign({},t),CO=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:yp(n,!0),values:null};class Ma{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,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=id(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&&Da(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),s=(u,h,g,m)=>u==="x"?h:u==="r"?m:g,a=n.xAxisID=Me(r.xAxisID,ld(e,"x")),o=n.yAxisID=Me(r.yAxisID,ld(e,"y")),i=n.rAxisID=Me(r.rAxisID,ld(e,"r")),l=n.indexAxis,c=n.iAxisID=s(l,a,o,i),d=n.vAxisID=s(l,o,a,i);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(i),n.iScale=this.getScaleForId(c),n.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 n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Um(this._data,this),e._stacked&&Da(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(ye(n)){const s=this._cachedMeta;this._data=vO(n,s)}else if(r!==n){if(r){Um(r,this);const s=this._cachedMeta;Da(s),s._parsed=[]}n&&Object.isExtensible(n)&&SS(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let s=!1;this._dataCheck();const a=n._stacked;n._stacked=id(n.vScale,n),n.stack!==r.stack&&(s=!0,Da(n),n.stack=r.stack),this._resyncElements(e),(s||a!==n._stacked)&&(xp(this,n._parsed),n._stacked=id(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:s}=this,{iScale:a,_stacked:o}=r,i=a.axis;let l=e===0&&n===s.length?!0:r._sorted,c=e>0&&r._parsed[e-1],d,u,h;if(this._parsing===!1)r._parsed=s,r._sorted=!0,h=s;else{mt(s[e])?h=this.parseArrayData(r,s,e,n):ye(s[e])?h=this.parseObjectData(r,s,e,n):h=this.parsePrimitiveData(r,s,e,n);const g=()=>u[i]===null||c&&u[i]<c[i];for(d=0;d<n;++d)r._parsed[d+e]=u=h[d],l&&(g()&&(l=!1),c=u);r._sorted=l}o&&xp(this,h)}parsePrimitiveData(e,n,r,s){const{iScale:a,vScale:o}=e,i=a.axis,l=o.axis,c=a.getLabels(),d=a===o,u=new Array(s);let h,g,m;for(h=0,g=s;h<g;++h)m=h+r,u[h]={[i]:d||a.parse(c[m],m),[l]:o.parse(n[m],m)};return u}parseArrayData(e,n,r,s){const{xScale:a,yScale:o}=e,i=new Array(s);let l,c,d,u;for(l=0,c=s;l<c;++l)d=l+r,u=n[d],i[l]={x:a.parse(u[0],d),y:o.parse(u[1],d)};return i}parseObjectData(e,n,r,s){const{xScale:a,yScale:o}=e,{xAxisKey:i="x",yAxisKey:l="y"}=this._parsing,c=new Array(s);let d,u,h,g;for(d=0,u=s;d<u;++d)h=d+r,g=n[h],c[d]={x:a.parse(ka(g,i),h),y:o.parse(ka(g,l),h)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const s=this.chart,a=this._cachedMeta,o=n[e.axis],i={keys:yp(s,!0),values:n._stacks[e.axis]._visualValues};return wp(i,o,a.index,{mode:r})}updateRangeFromParsed(e,n,r,s){const a=r[n.axis];let o=a===null?NaN:a;const i=s&&r._stacks[n.axis];s&&i&&(s.values=i,o=wp(s,a,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,n){const r=this._cachedMeta,s=r._parsed,a=r._sorted&&e===r.iScale,o=s.length,i=this._getOtherScale(e),l=CO(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=kO(i);let h,g;function m(){g=s[h];const p=g[i.axis];return!Hn(g[e.axis])||d>p||u<p}for(h=0;h<o&&!(!m()&&(this.updateRangeFromParsed(c,e,g,l),a));++h);if(a){for(h=o-1;h>=0;--h)if(!m()){this.updateRangeFromParsed(c,e,g,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let s,a,o;for(s=0,a=n.length;s<a;++s)o=n[s][e.axis],Hn(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,s=n.vScale,a=this.getParsed(e);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:s?""+s.getLabelForValue(a[s.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=wO(Me(this.options.clip,yO(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,s=r.data||[],a=n.chartArea,o=[],i=this._drawStart||0,l=this._drawCount||s.length-i,c=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(e,a,i,l),d=i;d<i+l;++d){const u=s[d];u.hidden||(u.active&&c?o.push(u):u.draw(e,a))}for(d=0;d<o.length;++d)o[d].draw(e,a)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const s=this.getDataset();let a;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];a=o.$context||(o.$context=OO(this.getContext(),e,o)),a.parsed=this.getParsed(e),a.raw=s.data[e],a.index=a.dataIndex=e}else a=this.$context||(this.$context=SO(this.chart.getContext(),this.index)),a.dataset=s,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const s=n==="active",a=this._cachedDataOpts,o=e+"-"+n,i=a[o],l=this.enableOptionSharing&&ti(r);if(i)return kp(i,l);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,e),u=s?[`${e}Hover`,"hover",e,""]:[e,""],h=c.getOptionScopes(this.getDataset(),d),g=Object.keys(Ke.elements[e]),m=()=>this.getContext(r,s,n),p=c.resolveNamedOptions(h,g,m,u);return p.$shared&&(p.$shared=l,a[o]=Object.freeze(kp(p,l))),p}_resolveAnimations(e,n,r){const s=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,i=a[o];if(i)return i;let l;if(s.options.animation!==!1){const d=this.chart.config,u=d.datasetAnimationScopeKeys(this._type,n),h=d.getOptionScopes(this.getDataset(),u);l=d.createResolver(h,this.getContext(e,r,n))}const c=new pp(s,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||cd(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),s=this._sharedOptions,a=this.getSharedOptions(r),o=this.includeOptions(n,a)||a!==s;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:o}}updateElement(e,n,r,s){cd(s)?Object.assign(e,r):this._resolveAnimations(n,s).update(e,r)}updateSharedOptions(e,n,r){e&&!cd(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,s){e.active=s;const a=this.getStyle(n,s);this._resolveAnimations(n,r,s).update(e,{options:!s&&this.getSharedOptions(a)||a})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"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 n=this._data,r=this._cachedMeta.data;for(const[i,l,c]of this._syncList)this[i](l,c);this._syncList=[];const s=r.length,a=n.length,o=Math.min(a,s);o&&this.parse(0,o),a>s?this._insertElements(s,a-s,e):a<s&&this._removeElements(a,s-a)}_insertElements(e,n,r=!0){const s=this._cachedMeta,a=s.data,o=e+n;let i;const l=c=>{for(c.length+=n,i=c.length-1;i>=o;i--)c[i]=c[i-n]};for(l(a),i=e;i<o;++i)a[i]=new this.dataElementType;this._parsing&&l(s._parsed),this.parse(e,n),r&&this.updateElements(a,e,n,"reset")}updateElements(e,n,r,s){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const s=r._parsed.splice(e,n);r._stacked&&Da(r,s)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,s]=e;this[n](r,s)}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,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}$(Ma,"defaults",{}),$(Ma,"datasetElementType",null),$(Ma,"dataElementType",null);function DO(t,e,n){let r=1,s=1,a=0,o=0;if(e<nt){const i=t,l=i+e,c=Math.cos(i),d=Math.sin(i),u=Math.cos(l),h=Math.sin(l),g=(k,x,w)=>si(k,i,l,!0)?1:Math.max(x,x*n,w,w*n),m=(k,x,w)=>si(k,i,l,!0)?-1:Math.min(x,x*n,w,w*n),p=g(0,c,u),b=g(it,d,h),y=m(Be,c,u),v=m(Be+it,d,h);r=(p-y)/2,s=(b-v)/2,a=-(p+y)/2,o=-(b+v)/2}return{ratioX:r,ratioY:s,offsetX:a,offsetY:o}}class Ea extends Ma{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const r=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=r;else{let a=l=>+r[l];if(ye(r[e])){const{key:l="value"}=this._parsing;a=c=>+ka(r[c],l)}let o,i;for(o=e,i=e+n;o<i;++o)s._parsed[o]=a(o)}}_getRotation(){return Ar(this.options.rotation-90)}_getCircumference(){return Ar(this.options.circumference)}_getRotationExtents(){let e=nt,n=-nt;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const s=this.chart.getDatasetMeta(r).controller,a=s._getRotation(),o=s._getCircumference();e=Math.min(e,a),n=Math.max(n,a+o)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:r}=n,s=this._cachedMeta,a=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,i=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(dS(this.options.cutout,i),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:h,ratioY:g,offsetX:m,offsetY:p}=DO(u,d,l),b=(r.width-o)/h,y=(r.height-o)/g,v=Math.max(Math.min(b,y)/2,0),k=Lm(this.options.radius,v),x=Math.max(k*l,0),w=(k-x)/this._getVisibleDatasetWeightTotal();this.offsetX=m*k,this.offsetY=p*k,s.total=this.calculateTotal(),this.outerRadius=k-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(a,0,a.length,e)}_circumference(e,n){const r=this.options,s=this._cachedMeta,a=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||s._parsed[e]===null||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*a/nt)}updateElements(e,n,r,s){const a=s==="reset",o=this.chart,i=o.chartArea,c=o.options.animation,d=(i.left+i.right)/2,u=(i.top+i.bottom)/2,h=a&&c.animateScale,g=h?0:this.innerRadius,m=h?0:this.outerRadius,{sharedOptions:p,includeOptions:b}=this._getSharedOptions(n,s);let y=this._getRotation(),v;for(v=0;v<n;++v)y+=this._circumference(v,a);for(v=n;v<n+r;++v){const k=this._circumference(v,a),x=e[v],w={x:d+this.offsetX,y:u+this.offsetY,startAngle:y,endAngle:y+k,circumference:k,outerRadius:m,innerRadius:g};b&&(w.options=p||this.resolveDataElementOptions(v,x.active?"active":s)),y+=k,this.updateElement(x,v,w,s)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let r=0,s;for(s=0;s<n.length;s++){const a=e._parsed[s];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(s)&&!n[s].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?nt*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,s=r.data.labels||[],a=jS(n._parsed[e],r.options.locale);return{label:s[e]||"",value:a}}getMaxBorderWidth(e){let n=0;const r=this.chart;let s,a,o,i,l;if(!e){for(s=0,a=r.data.datasets.length;s<a;++s)if(r.isDatasetVisible(s)){o=r.getDatasetMeta(s),e=o.data,i=o.controller;break}}if(!e)return 0;for(s=0,a=e.length;s<a;++s)l=i.resolveDataElementOptions(s),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let r=0,s=e.length;r<s;++r){const a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(e){return Math.max(Me(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}$(Ea,"id","doughnut"),$(Ea,"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"}),$(Ea,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),$(Ea,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data,{labels:{pointStyle:r,textAlign:s,color:a,useBorderRadius:o,borderRadius:i}}=e.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((l,c)=>{const u=e.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:u.backgroundColor,fontColor:a,hidden:!e.getDataVisibility(c),lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:u.borderWidth,strokeStyle:u.borderColor,textAlign:s,pointStyle:r,borderRadius:o&&(i||u.borderRadius),index:c}}):[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});function Wr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class dd{constructor(e){$(this,"options");this.options=e||{}}static override(e){Object.assign(dd.prototype,e)}init(){}formats(){return Wr()}parse(){return Wr()}format(){return Wr()}add(){return Wr()}diff(){return Wr()}startOf(){return Wr()}endOf(){return Wr()}}var MO={_date:dd};function EO(t,e,n,r){const{controller:s,data:a,_sorted:o}=t,i=s._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(i&&e===i.axis&&e!=="r"&&o&&a.length){const c=i._reversePixels?kS:Kc;if(r){if(s._sharedOptions){const d=a[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const h=c(a,e,n-u),g=c(a,e,n+u);return{lo:h.lo,hi:g.hi}}}}else{const d=c(a,e,n);if(l){const{vScale:u}=s._cachedMeta,{_parsed:h}=t,g=h.slice(0,d.lo+1).reverse().findIndex(p=>!wt(p[u.axis]));d.lo-=Math.max(0,g);const m=h.slice(d.hi).findIndex(p=>!wt(p[u.axis]));d.hi+=Math.max(0,m)}return d}}return{lo:0,hi:a.length-1}}function ui(t,e,n,r,s){const a=t.getSortedVisibleDatasetMetas(),o=n[e];for(let i=0,l=a.length;i<l;++i){const{index:c,data:d}=a[i],{lo:u,hi:h}=EO(a[i],e,o,s);for(let g=u;g<=h;++g){const m=d[g];m.skip||r(m,c,g)}}}function PO(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,s){const a=e?Math.abs(r.x-s.x):0,o=n?Math.abs(r.y-s.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function ud(t,e,n,r,s){const a=[];return!s&&!t.isPointInArea(e)||ui(t,n,e,function(i,l,c){!s&&!sp(i,t.chartArea,0)||i.inRange(e.x,e.y,r)&&a.push({element:i,datasetIndex:l,index:c})},!0),a}function TO(t,e,n,r){let s=[];function a(o,i,l){const{startAngle:c,endAngle:d}=o.getProps(["startAngle","endAngle"],r),{angle:u}=Ym(o,{x:e.x,y:e.y});si(u,c,d)&&s.push({element:o,datasetIndex:i,index:l})}return ui(t,n,e,a),s}function NO(t,e,n,r,s,a){let o=[];const i=PO(n);let l=Number.POSITIVE_INFINITY;function c(d,u,h){const g=d.inRange(e.x,e.y,s);if(r&&!g)return;const m=d.getCenterPoint(s);if(!(!!a||t.isPointInArea(m))&&!g)return;const b=i(e,m);b<l?(o=[{element:d,datasetIndex:u,index:h}],l=b):b===l&&o.push({element:d,datasetIndex:u,index:h})}return ui(t,n,e,c),o}function fd(t,e,n,r,s,a){return!a&&!t.isPointInArea(e)?[]:n==="r"&&!r?TO(t,e,n,s):NO(t,e,n,r,s,a)}function _p(t,e,n,r,s){const a=[],o=n==="x"?"inXRange":"inYRange";let i=!1;return ui(t,n,e,(l,c,d)=>{l[o]&&l[o](e[n],s)&&(a.push({element:l,datasetIndex:c,index:d}),i=i||l.inRange(e.x,e.y,s))}),r&&!i?[]:a}var jO={modes:{index(t,e,n,r){const s=Br(e,t),a=n.axis||"x",o=n.includeInvisible||!1,i=n.intersect?ud(t,s,a,r,o):fd(t,s,a,!1,r,o),l=[];return i.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const d=i[0].index,u=c.data[d];u&&!u.skip&&l.push({element:u,datasetIndex:c.index,index:d})}),l):[]},dataset(t,e,n,r){const s=Br(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;let i=n.intersect?ud(t,s,a,r,o):fd(t,s,a,!1,r,o);if(i.length>0){const l=i[0].datasetIndex,c=t.getDatasetMeta(l).data;i=[];for(let d=0;d<c.length;++d)i.push({element:c[d],datasetIndex:l,index:d})}return i},point(t,e,n,r){const s=Br(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;return ud(t,s,a,r,o)},nearest(t,e,n,r){const s=Br(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;return fd(t,s,a,n.intersect,r,o)},x(t,e,n,r){const s=Br(e,t);return _p(t,s,"x",n.intersect,r)},y(t,e,n,r){const s=Br(e,t);return _p(t,s,"y",n.intersect,r)}}};const Sp=["left","top","right","bottom"];function Pa(t,e){return t.filter(n=>n.pos===e)}function Op(t,e){return t.filter(n=>Sp.indexOf(n.pos)===-1&&n.box.axis===e)}function Ta(t,e){return t.sort((n,r)=>{const s=e?r:n,a=e?n:r;return s.weight===a.weight?s.index-a.index:s.weight-a.weight})}function IO(t){const e=[];let n,r,s,a,o,i;for(n=0,r=(t||[]).length;n<r;++n)s=t[n],{position:a,options:{stack:o,stackWeight:i=1}}=s,e.push({index:n,box:s,pos:a,horizontal:s.isHorizontal(),weight:s.weight,stack:o&&a+o,stackWeight:i});return e}function AO(t){const e={};for(const n of t){const{stack:r,pos:s,stackWeight:a}=n;if(!r||!Sp.includes(s))continue;const o=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return e}function RO(t,e){const n=AO(t),{vBoxMaxWidth:r,hBoxMaxHeight:s}=e;let a,o,i;for(a=0,o=t.length;a<o;++a){i=t[a];const{fullSize:l}=i.box,c=n[i.stack],d=c&&i.stackWeight/c.weight;i.horizontal?(i.width=d?d*r:l&&e.availableWidth,i.height=s):(i.width=r,i.height=d?d*s:l&&e.availableHeight)}return n}function LO(t){const e=IO(t),n=Ta(e.filter(c=>c.box.fullSize),!0),r=Ta(Pa(e,"left"),!0),s=Ta(Pa(e,"right")),a=Ta(Pa(e,"top"),!0),o=Ta(Pa(e,"bottom")),i=Op(e,"x"),l=Op(e,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:s.concat(l).concat(o).concat(i),chartArea:Pa(e,"chartArea"),vertical:r.concat(s).concat(l),horizontal:a.concat(o).concat(i)}}function Cp(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function Dp(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 FO(t,e,n,r){const{pos:s,box:a}=n,o=t.maxPadding;if(!ye(s)){n.size&&(t[s]-=n.size);const u=r[n.stack]||{size:0,count:1};u.size=Math.max(u.size,n.horizontal?a.height:a.width),n.size=u.size/u.count,t[s]+=n.size}a.getPadding&&Dp(o,a.getPadding());const i=Math.max(0,e.outerWidth-Cp(o,t,"left","right")),l=Math.max(0,e.outerHeight-Cp(o,t,"top","bottom")),c=i!==t.w,d=l!==t.h;return t.w=i,t.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function BO(t){const e=t.maxPadding;function n(r){const s=Math.max(e[r]-t[r],0);return t[r]+=s,s}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function WO(t,e){const n=e.maxPadding;function r(s){const a={left:0,top:0,right:0,bottom:0};return s.forEach(o=>{a[o]=Math.max(e[o],n[o])}),a}return r(t?["left","right"]:["top","bottom"])}function Na(t,e,n,r){const s=[];let a,o,i,l,c,d;for(a=0,o=t.length,c=0;a<o;++a){i=t[a],l=i.box,l.update(i.width||e.w,i.height||e.h,WO(i.horizontal,e));const{same:u,other:h}=FO(e,n,i,r);c|=u&&s.length,d=d||h,l.fullSize||s.push(i)}return c&&Na(s,e,n,r)||d}function fi(t,e,n,r,s){t.top=n,t.left=e,t.right=e+r,t.bottom=n+s,t.width=r,t.height=s}function Mp(t,e,n,r){const s=n.padding;let{x:a,y:o}=e;for(const i of t){const l=i.box,c=r[i.stack]||{placed:0,weight:1},d=i.stackWeight/c.weight||1;if(i.horizontal){const u=e.w*d,h=c.size||l.height;ti(c.start)&&(o=c.start),l.fullSize?fi(l,s.left,o,n.outerWidth-s.right-s.left,h):fi(l,e.left+c.placed,o,u,h),c.start=o,c.placed+=u,o=l.bottom}else{const u=e.h*d,h=c.size||l.width;ti(c.start)&&(a=c.start),l.fullSize?fi(l,a,s.top,h,n.outerHeight-s.bottom-s.top):fi(l,a,e.top+c.placed,h,u),c.start=a,c.placed+=u,a=l.right}}e.x=a,e.y=o}var fr={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(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const s=an(t.options.layout.padding),a=Math.max(e-s.width,0),o=Math.max(n-s.height,0),i=LO(t.boxes),l=i.vertical,c=i.horizontal;Ee(t.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const d=l.reduce((p,b)=>b.box.options&&b.box.options.display===!1?p:p+1,0)||1,u=Object.freeze({outerWidth:e,outerHeight:n,padding:s,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/d,hBoxMaxHeight:o/2}),h=Object.assign({},s);Dp(h,an(r));const g=Object.assign({maxPadding:h,w:a,h:o,x:s.left,y:s.top},s),m=RO(l.concat(c),u);Na(i.fullSize,g,u,m),Na(l,g,u,m),Na(c,g,u,m)&&Na(l,g,u,m),BO(g),Mp(i.leftAndTop,g,u,m),g.x+=g.w,g.y+=g.h,Mp(i.rightAndBottom,g,u,m),t.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},Ee(i.chartArea,p=>{const b=p.box;Object.assign(b,t.chartArea),b.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}};class Ep{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,s){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,s?Math.floor(n/s):r)}}isAttached(e){return!0}updateConfig(e){}}class zO extends Ep{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const hi="$chartjs",HO={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Pp=t=>t===null||t==="";function YO(t,e){const n=t.style,r=t.getAttribute("height"),s=t.getAttribute("width");if(t[hi]={initial:{height:r,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Pp(s)){const a=fp(t,"width");a!==void 0&&(t.width=a)}if(Pp(r))if(t.style.height==="")t.height=t.width/(e||2);else{const a=fp(t,"height");a!==void 0&&(t.height=a)}return t}const Tp=lO?{passive:!0}:!1;function VO(t,e,n){t&&t.addEventListener(e,n,Tp)}function UO(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Tp)}function XO(t,e){const n=HO[t.type]||t.type,{x:r,y:s}=Br(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:s!==void 0?s:null}}function gi(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function GO(t,e,n){const r=t.canvas,s=new MutationObserver(a=>{let o=!1;for(const i of a)o=o||gi(i.addedNodes,r),o=o&&!gi(i.removedNodes,r);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function KO(t,e,n){const r=t.canvas,s=new MutationObserver(a=>{let o=!1;for(const i of a)o=o||gi(i.removedNodes,r),o=o&&!gi(i.addedNodes,r);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const ja=new Map;let Np=0;function jp(){const t=window.devicePixelRatio;t!==Np&&(Np=t,ja.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function QO(t,e){ja.size||window.addEventListener("resize",jp),ja.set(t,e)}function ZO(t){ja.delete(t),ja.size||window.removeEventListener("resize",jp)}function JO(t,e,n){const r=t.canvas,s=r&&od(r);if(!s)return;const a=Gm((i,l)=>{const c=s.clientWidth;n(i,l),c<s.clientWidth&&n()},window),o=new ResizeObserver(i=>{const l=i[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||a(c,d)});return o.observe(s),QO(t,a),o}function hd(t,e,n){n&&n.disconnect(),e==="resize"&&ZO(t)}function qO(t,e,n){const r=t.canvas,s=Gm(a=>{t.ctx!==null&&n(XO(a,t))},t);return VO(r,e,s),s}class $O extends Ep{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(YO(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[hi])return!1;const r=n[hi].initial;["height","width"].forEach(a=>{const o=r[a];wt(o)?n.removeAttribute(a):n.setAttribute(a,o)});const s=r.style||{};return Object.keys(s).forEach(a=>{n.style[a]=s[a]}),n.width=n.width,delete n[hi],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const s=e.$proxies||(e.$proxies={}),o={attach:GO,detach:KO,resize:JO}[n]||qO;s[n]=o(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),s=r[n];if(!s)return;({attach:hd,detach:hd,resize:hd}[n]||UO)(e,n,s),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,s){return iO(e,n,r,s)}isAttached(e){const n=e&&od(e);return!!(n&&n.isConnected)}}function eC(t){return!ad()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?zO:$O}let Ia=(Vl=class{constructor(){$(this,"x");$(this,"y");$(this,"active",!1);$(this,"options");$(this,"$animations")}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return ri(this.x)&&ri(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const s={};return e.forEach(a=>{s[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),s}},$(Vl,"defaults",{}),$(Vl,"defaultRoutes"),Vl);function tC(t,e){const n=t.options.ticks,r=nC(t),s=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?sC(e):[],o=a.length,i=a[0],l=a[o-1],c=[];if(o>s)return aC(e,c,a,o/s),c;const d=rC(a,e,s);if(o>0){let u,h;const g=o>1?Math.round((l-i)/(o-1)):null;for(mi(e,c,d,wt(g)?0:i-g,i),u=0,h=o-1;u<h;u++)mi(e,c,d,a[u],a[u+1]);return mi(e,c,d,l,wt(g)?e.length:l+g),c}return mi(e,c,d),c}function nC(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),s=t._maxLength/n;return Math.floor(Math.min(r,s))}function rC(t,e,n){const r=oC(t),s=e.length/n;if(!r)return Math.max(s,1);const a=bS(r);for(let o=0,i=a.length-1;o<i;o++){const l=a[o];if(l>s)return l}return Math.max(s,1)}function sC(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function aC(t,e,n,r){let s=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<t.length;o++)o===a&&(e.push(t[o]),s++,a=n[s*r])}function mi(t,e,n,r,s){const a=Me(r,0),o=Math.min(Me(s,t.length),t.length);let i=0,l,c,d;for(n=Math.ceil(n),s&&(l=s-r,n=l/Math.floor(l/n)),d=a;d<0;)i++,d=Math.round(a+i*n);for(c=Math.max(a,0);c<o;c++)c===d&&(e.push(t[c]),i++,d=Math.round(a+i*n))}function oC(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const iC=t=>t==="left"?"right":t==="right"?"left":t,Ip=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,Ap=(t,e)=>Math.min(e||t,t);function Rp(t,e){const n=[],r=t.length/e,s=t.length;let a=0;for(;a<s;a+=r)n.push(t[Math.floor(a)]);return n}function lC(t,e,n){const r=t.ticks.length,s=Math.min(e,r-1),a=t._startPixel,o=t._endPixel,i=1e-6;let l=t.getPixelForTick(s),c;if(!(n&&(r===1?c=Math.max(l-a,o-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(s-1))/2,l+=s<e?c:-c,l<a-i||l>o+i)))return l}function cC(t,e){Ee(t,n=>{const r=n.gc,s=r.length/2;let a;if(s>e){for(a=0;a<s;++a)delete n.data[r[a]];r.splice(0,s)}})}function Aa(t){return t.drawTicks?t.tickLength:0}function Lp(t,e){if(!t.display)return 0;const n=Et(t.font,e),r=an(t.padding);return(mt(t.text)?t.text.length:1)*n.lineHeight+r.height}function dC(t,e){return Ss(t,{scale:e,type:"scale"})}function uC(t,e,n){return Ss(t,{tick:n,index:e,type:"tick"})}function fC(t,e,n){let r=Km(t);return(n&&e!=="right"||!n&&e==="right")&&(r=iC(r)),r}function hC(t,e,n,r){const{top:s,left:a,bottom:o,right:i,chart:l}=t,{chartArea:c,scales:d}=l;let u=0,h,g,m;const p=o-s,b=i-a;if(t.isHorizontal()){if(g=Ft(r,a,i),ye(n)){const y=Object.keys(n)[0],v=n[y];m=d[y].getPixelForValue(v)+p-e}else n==="center"?m=(c.bottom+c.top)/2+p-e:m=Ip(t,n,e);h=i-a}else{if(ye(n)){const y=Object.keys(n)[0],v=n[y];g=d[y].getPixelForValue(v)-b+e}else n==="center"?g=(c.left+c.right)/2-b+e:g=Ip(t,n,e);m=Ft(r,o,s),u=n==="left"?-it:it}return{titleX:g,titleY:m,maxWidth:h,rotation:u}}class pi extends Ia{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,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:s}=this;return e=yn(e,Number.POSITIVE_INFINITY),n=yn(n,Number.NEGATIVE_INFINITY),r=yn(r,Number.POSITIVE_INFINITY),s=yn(s,Number.NEGATIVE_INFINITY),{min:yn(e,r),max:yn(n,s),minDefined:Hn(e),maxDefined:Hn(n)}}getMinMax(e){let{min:n,max:r,minDefined:s,maxDefined:a}=this.getUserBounds(),o;if(s&&a)return{min:n,max:r};const i=this.getMatchingVisibleMetas();for(let l=0,c=i.length;l<c;++l)o=i[l].controller.getMinMax(this,e),s||(n=Math.min(n,o.min)),a||(r=Math.max(r,o.max));return n=a&&n>r?r:n,r=s&&n>r?n:r,{min:yn(n,yn(r,n)),max:yn(r,yn(n,r))}}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(){Fe(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:s,grace:a,ticks:o}=this.options,i=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=XS(this,a,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=i<this.ticks.length;this._convertTicksToLabels(l?Rp(this.ticks,i):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=tC(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,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,e=!e),this._startPixel=n,this._endPixel=r,this._reversePixels=e,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Fe(this.options.afterUpdate,[this])}beforeSetDimensions(){Fe(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(){Fe(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Fe(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Fe(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,s,a;for(r=0,s=e.length;r<s;r++)a=e[r],a.label=Fe(n.callback,[a.value,r,e],this)}afterTickToLabelConversion(){Fe(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Fe(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=Ap(this.ticks.length,e.ticks.maxTicksLimit),s=n.minRotation||0,a=n.maxRotation;let o=s,i,l,c;if(!this._isVisible()||!n.display||s>=a||r<=1||!this.isHorizontal()){this.labelRotation=s;return}const d=this._getLabelSizes(),u=d.widest.width,h=d.highest.height,g=qt(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/r:g/(r-1),u+6>i&&(i=g/(r-(e.offset?.5:1)),l=this.maxHeight-Aa(e.grid)-n.padding-Lp(e.title,this.chart.options.font),c=Math.sqrt(u*u+h*h),o=wS(Math.min(Math.asin(qt((d.highest.height+6)/i,-1,1)),Math.asin(qt(l/c,-1,1))-Math.asin(qt(h/c,-1,1)))),o=Math.max(s,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){Fe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Fe(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:s,grid:a}}=this,o=this._isVisible(),i=this.isHorizontal();if(o){const l=Lp(s,n.options.font);if(i?(e.width=this.maxWidth,e.height=Aa(a)+l):(e.height=this.maxHeight,e.width=Aa(a)+l),r.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:h}=this._getLabelSizes(),g=r.padding*2,m=Ar(this.labelRotation),p=Math.cos(m),b=Math.sin(m);if(i){const y=r.mirror?0:b*u.width+p*h.height;e.height=Math.min(this.maxHeight,e.height+y+g)}else{const y=r.mirror?0:p*u.width+b*h.height;e.width=Math.min(this.maxWidth,e.width+y+g)}this._calculatePadding(c,d,b,p)}}this._handleMargins(),i?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,s){const{ticks:{align:a,padding:o},position:i}=this.options,l=this.labelRotation!==0,c=i!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,g=0;l?c?(h=s*e.width,g=r*n.height):(h=r*e.height,g=s*n.width):a==="start"?g=n.width:a==="end"?h=e.width:a!=="inner"&&(h=e.width/2,g=n.width/2),this.paddingLeft=Math.max((h-d+o)*this.width/(this.width-d),0),this.paddingRight=Math.max((g-u+o)*this.width/(this.width-u),0)}else{let d=n.height/2,u=e.height/2;a==="start"?(d=0,u=e.height):a==="end"&&(d=n.height,u=0),this.paddingTop=d+o,this.paddingBottom=u+o}}_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(){Fe(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n<r;n++)wt(e[n].label)&&(e.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=Rp(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,r){const{ctx:s,_longestTextCache:a}=this,o=[],i=[],l=Math.floor(n/Ap(n,r));let c=0,d=0,u,h,g,m,p,b,y,v,k,x,w;for(u=0;u<n;u+=l){if(m=e[u].label,p=this._resolveTickFontOptions(u),s.font=b=p.string,y=a[b]=a[b]||{data:{},gc:[]},v=p.lineHeight,k=x=0,!wt(m)&&!mt(m))k=ep(s,y.data,y.gc,k,m),x=v;else if(mt(m))for(h=0,g=m.length;h<g;++h)w=m[h],!wt(w)&&!mt(w)&&(k=ep(s,y.data,y.gc,k,w),x+=v);o.push(k),i.push(x),c=Math.max(k,c),d=Math.max(x,d)}cC(a,n);const S=o.indexOf(c),N=i.indexOf(d),M=T=>({width:o[T]||0,height:i[T]||0});return{first:M(0),last:M(n-1),widest:M(S),highest:M(N),widths:o,heights:i}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return xS(this._alignToPixels?Lr(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const r=n[e];return r.$context||(r.$context=uC(this.getContext(),e,r))}return this.$context||(this.$context=dC(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Ar(this.labelRotation),r=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=e.autoSkipPadding||0,i=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return this.isHorizontal()?l*r>i*s?i/r:l/s:l*s<i*r?l/r:i/s}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,s=this.options,{grid:a,position:o,border:i}=s,l=a.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),h=Aa(a),g=[],m=i.setContext(this.getContext()),p=m.display?m.width:0,b=p/2,y=function(W){return Lr(r,W,p)};let v,k,x,w,S,N,M,T,P,z,F,O;if(o==="top")v=y(this.bottom),N=this.bottom-h,T=v-b,z=y(e.top)+b,O=e.bottom;else if(o==="bottom")v=y(this.top),z=e.top,O=y(e.bottom)-b,N=v+b,T=this.top+h;else if(o==="left")v=y(this.right),S=this.right-h,M=v-b,P=y(e.left)+b,F=e.right;else if(o==="right")v=y(this.left),P=e.left,F=y(e.right)-b,S=v+b,M=this.left+h;else if(n==="x"){if(o==="center")v=y((e.top+e.bottom)/2+.5);else if(ye(o)){const W=Object.keys(o)[0],U=o[W];v=y(this.chart.scales[W].getPixelForValue(U))}z=e.top,O=e.bottom,N=v+b,T=N+h}else if(n==="y"){if(o==="center")v=y((e.left+e.right)/2);else if(ye(o)){const W=Object.keys(o)[0],U=o[W];v=y(this.chart.scales[W].getPixelForValue(U))}S=v-b,M=S-h,P=e.left,F=e.right}const C=Me(s.ticks.maxTicksLimit,u),E=Math.max(1,Math.ceil(u/C));for(k=0;k<u;k+=E){const W=this.getContext(k),U=a.setContext(W),G=i.setContext(W),ee=U.lineWidth,j=U.color,V=G.dash||[],L=G.dashOffset,R=U.tickWidth,A=U.tickColor,D=U.tickBorderDash||[],Y=U.tickBorderDashOffset;x=lC(this,k,l),x!==void 0&&(w=Lr(r,x,ee),c?S=M=P=F=w:N=T=z=O=w,g.push({tx1:S,ty1:N,tx2:M,ty2:T,x1:P,y1:z,x2:F,y2:O,width:ee,color:j,borderDash:V,borderDashOffset:L,tickWidth:R,tickColor:A,tickBorderDash:D,tickBorderDashOffset:Y}))}return this._ticksLength=u,this._borderValue=v,g}_computeLabelItems(e){const n=this.axis,r=this.options,{position:s,ticks:a}=r,o=this.isHorizontal(),i=this.ticks,{align:l,crossAlign:c,padding:d,mirror:u}=a,h=Aa(r.grid),g=h+d,m=u?-d:g,p=-Ar(this.labelRotation),b=[];let y,v,k,x,w,S,N,M,T,P,z,F,O="middle";if(s==="top")S=this.bottom-m,N=this._getXAxisLabelAlignment();else if(s==="bottom")S=this.top+m,N=this._getXAxisLabelAlignment();else if(s==="left"){const E=this._getYAxisLabelAlignment(h);N=E.textAlign,w=E.x}else if(s==="right"){const E=this._getYAxisLabelAlignment(h);N=E.textAlign,w=E.x}else if(n==="x"){if(s==="center")S=(e.top+e.bottom)/2+g;else if(ye(s)){const E=Object.keys(s)[0],W=s[E];S=this.chart.scales[E].getPixelForValue(W)+g}N=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")w=(e.left+e.right)/2-g;else if(ye(s)){const E=Object.keys(s)[0],W=s[E];w=this.chart.scales[E].getPixelForValue(W)}N=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?O="top":l==="end"&&(O="bottom"));const C=this._getLabelSizes();for(y=0,v=i.length;y<v;++y){k=i[y],x=k.label;const E=a.setContext(this.getContext(y));M=this.getPixelForTick(y)+a.labelOffset,T=this._resolveTickFontOptions(y),P=T.lineHeight,z=mt(x)?x.length:1;const W=z/2,U=E.color,G=E.textStrokeColor,ee=E.textStrokeWidth;let j=N;o?(w=M,N==="inner"&&(y===v-1?j=this.options.reverse?"left":"right":y===0?j=this.options.reverse?"right":"left":j="center"),s==="top"?c==="near"||p!==0?F=-z*P+P/2:c==="center"?F=-C.highest.height/2-W*P+P:F=-C.highest.height+P/2:c==="near"||p!==0?F=P/2:c==="center"?F=C.highest.height/2-W*P:F=C.highest.height-z*P,u&&(F*=-1),p!==0&&!E.showLabelBackdrop&&(w+=P/2*Math.sin(p))):(S=M,F=(1-z)*P/2);let V;if(E.showLabelBackdrop){const L=an(E.backdropPadding),R=C.heights[y],A=C.widths[y];let D=F-L.top,Y=0-L.left;switch(O){case"middle":D-=R/2;break;case"bottom":D-=R;break}switch(N){case"center":Y-=A/2;break;case"right":Y-=A;break;case"inner":y===v-1?Y-=A:y>0&&(Y-=A/2);break}V={left:Y,top:D,width:A+L.width,height:R+L.height,color:E.backdropColor}}b.push({label:x,font:T,textOffset:F,options:{rotation:p,color:U,strokeColor:G,strokeWidth:ee,textAlign:j,textBaseline:O,translation:[w,S],backdrop:V}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Ar(this.labelRotation))return e==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:s,padding:a}}=this.options,o=this._getLabelSizes(),i=e+a,l=o.widest.width;let c,d;return n==="left"?s?(d=this.right+a,r==="near"?c="left":r==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-i,r==="near"?c="right":r==="center"?(c="center",d-=l/2):(c="left",d=this.left)):n==="right"?s?(d=this.left+a,r==="near"?c="right":r==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+i,r==="near"?c="left":r==="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,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:s,width:a,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,s,a,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(a=>a.value===e);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let a,o;const i=(l,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(a=0,o=s.length;a<o;++a){const l=s[a];n.drawOnChartArea&&i({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&i({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:n,options:{border:r,grid:s}}=this,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(!o)return;const i=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,d,u,h;this.isHorizontal()?(c=Lr(e,this.left,o)-o/2,d=Lr(e,this.right,i)+i/2,u=h=l):(u=Lr(e,this.top,o)-o/2,h=Lr(e,this.bottom,i)+i/2,c=d=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.beginPath(),n.moveTo(c,u),n.lineTo(d,h),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,s=this._computeLabelArea();s&&qc(r,s);const a=this.getLabelItems(e);for(const o of a){const i=o.options,l=o.font,c=o.label,d=o.textOffset;oi(r,c,0,d,l,i)}s&&$c(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:s}}=this;if(!r.display)return;const a=Et(r.font),o=an(r.padding),i=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||ye(n)?(l+=o.bottom,mt(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:c,titleY:d,maxWidth:u,rotation:h}=hC(this,l,n,i);oi(e,r.text,0,0,a,{color:r.color,maxWidth:u,rotation:h,textAlign:fC(i,n,s),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,n=e.ticks&&e.ticks.z||0,r=Me(e.grid&&e.grid.z,-1),s=Me(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==pi.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",s=[];let a,o;for(a=0,o=n.length;a<o;++a){const i=n[a];i[r]===this.id&&(!e||i.type===e)&&s.push(i)}return s}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return Et(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class bi{constructor(e,n,r){this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let r;pC(n)&&(r=this.register(n));const s=this.items,a=e.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+e);return a in s||(s[a]=e,gC(e,o,r),this.override&&Ke.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,s=this.scope;r in n&&delete n[r],s&&r in Ke[s]&&(delete Ke[s][r],this.override&&delete Rr[r])}}function gC(t,e,n){const r=va(Object.create(null),[n?Ke.get(n):{},Ke.get(e),t.defaults]);Ke.set(e,r),t.defaultRoutes&&mC(e,t.defaultRoutes),t.descriptors&&Ke.describe(e,t.descriptors)}function mC(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),s=r.pop(),a=[t].concat(r).join("."),o=e[n].split("."),i=o.pop(),l=o.join(".");Ke.route(a,s,l,i)})}function pC(t){return"id"in t&&"defaults"in t}class bC{constructor(){this.controllers=new bi(Ma,"datasets",!0),this.elements=new bi(Ia,"elements"),this.plugins=new bi(Object,"plugins"),this.scales=new bi(pi,"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,n,r){[...n].forEach(s=>{const a=r||this._getRegistryForType(s);r||a.isForType(s)||a===this.plugins&&s.id?this._exec(e,a,s):Ee(s,o=>{const i=r||this._getRegistryForType(o);this._exec(e,i,o)})})}_exec(e,n,r){const s=Xc(e);Fe(r["before"+s],[],r),n[e](r),Fe(r["after"+s],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const s=n.get(e);if(s===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return s}}var vn=new bC;class yC{constructor(){this._init=void 0}notify(e,n,r,s){if(n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),this._init===void 0)return;const a=s?this._descriptors(e).filter(s):this._descriptors(e),o=this._notify(a,e,n,r);return n==="afterDestroy"&&(this._notify(a,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),o}_notify(e,n,r,s){s=s||{};for(const a of e){const o=a.plugin,i=o[r],l=[n,s,a.options];if(Fe(i,l,o)===!1&&s.cancelable)return!1}return!0}invalidate(){wt(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,s=Me(r.options&&r.options.plugins,{}),a=wC(r);return s===!1&&!n?[]:xC(e,a,s,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,s=(a,o)=>a.filter(i=>!o.some(l=>i.plugin.id===l.plugin.id));this._notify(s(n,r),e,"stop"),this._notify(s(r,n),e,"start")}}function wC(t){const e={},n=[],r=Object.keys(vn.plugins.items);for(let a=0;a<r.length;a++)n.push(vn.getPlugin(r[a]));const s=t.plugins||[];for(let a=0;a<s.length;a++){const o=s[a];n.indexOf(o)===-1&&(n.push(o),e[o.id]=!0)}return{plugins:n,localIds:e}}function vC(t,e){return!e&&t===!1?null:t===!0?{}:t}function xC(t,{plugins:e,localIds:n},r,s){const a=[],o=t.getContext();for(const i of e){const l=i.id,c=vC(r[l],s);c!==null&&a.push({plugin:i,options:kC(t.config,{plugin:i,local:n[l]},c,o)})}return a}function kC(t,{plugin:e,local:n},r,s){const a=t.pluginScopeKeys(e),o=t.getOptionScopes(r,a);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function gd(t,e){const n=Ke.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function _C(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function SC(t,e){return t===e?"_index_":"_value_"}function Fp(t){if(t==="x"||t==="y"||t==="r")return t}function OC(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function md(t,...e){if(Fp(t))return t;for(const n of e){const r=n.axis||OC(n.position)||t.length>1&&Fp(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Bp(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function CC(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(n.length)return Bp(t,"x",n[0])||Bp(t,"y",n[0])}return{}}function DC(t,e){const n=Rr[t.type]||{scales:{}},r=e.scales||{},s=gd(t.type,e),a=Object.create(null);return Object.keys(r).forEach(o=>{const i=r[o];if(!ye(i))return console.error(`Invalid scale configuration for scale: ${o}`);if(i._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=md(o,i,CC(o,t),Ke.scales[i.type]),c=SC(l,s),d=n.scales||{};a[o]=xa(Object.create(null),[{axis:l},i,d[l],d[c]])}),t.data.datasets.forEach(o=>{const i=o.type||t.type,l=o.indexAxis||gd(i,e),d=(Rr[i]||{}).scales||{};Object.keys(d).forEach(u=>{const h=_C(u,l),g=o[h+"AxisID"]||h;a[g]=a[g]||Object.create(null),xa(a[g],[{axis:h},r[g],d[u]])})}),Object.keys(a).forEach(o=>{const i=a[o];xa(i,[Ke.scales[i.type],Ke.scale])}),a}function Wp(t){const e=t.options||(t.options={});e.plugins=Me(e.plugins,{}),e.scales=DC(t,e)}function zp(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function MC(t){return t=t||{},t.data=zp(t.data),Wp(t),t}const Hp=new Map,Yp=new Set;function yi(t,e){let n=Hp.get(t);return n||(n=e(),Hp.set(t,n),Yp.add(n)),n}const Ra=(t,e,n)=>{const r=ka(e,n);r!==void 0&&t.add(r)};class EC{constructor(e){this._config=MC(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=zp(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(),Wp(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return yi(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return yi(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return yi(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return yi(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let s=r.get(e);return(!s||n)&&(s=new Map,r.set(e,s)),s}getOptionScopes(e,n,r){const{options:s,type:a}=this,o=this._cachedScopes(e,r),i=o.get(n);if(i)return i;const l=new Set;n.forEach(d=>{e&&(l.add(e),d.forEach(u=>Ra(l,e,u))),d.forEach(u=>Ra(l,s,u)),d.forEach(u=>Ra(l,Rr[a]||{},u)),d.forEach(u=>Ra(l,Ke,u)),d.forEach(u=>Ra(l,Zc,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Yp.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,Rr[n]||{},Ke.datasets[n]||{},{type:n},Ke,Zc]}resolveNamedOptions(e,n,r,s=[""]){const a={$shared:!0},{resolver:o,subPrefixes:i}=Vp(this._resolverCache,e,s);let l=o;if(TC(o,n)){a.$shared=!1,r=dr(r)?r():r;const c=this.createResolver(e,r,i);l=Os(o,r,c)}for(const c of n)a[c]=l[c];return a}createResolver(e,n,r=[""],s){const{resolver:a}=Vp(this._resolverCache,e,r);return ye(n)?Os(a,n,void 0,s):a}}function Vp(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const s=n.join();let a=r.get(s);return a||(a={resolver:nd(e,n),subPrefixes:n.filter(i=>!i.toLowerCase().includes("hover"))},r.set(s,a)),a}const PC=t=>ye(t)&&Object.getOwnPropertyNames(t).some(e=>dr(t[e]));function TC(t,e){const{isScriptable:n,isIndexable:r}=ap(t);for(const s of e){const a=n(s),o=r(s),i=(o||a)&&t[s];if(a&&(dr(i)||PC(i))||o&&mt(i))return!0}return!1}var NC="4.5.1";const jC=["top","bottom","left","right","chartArea"];function Up(t,e){return t==="top"||t==="bottom"||jC.indexOf(t)===-1&&e==="x"}function Xp(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function Gp(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Fe(n&&n.onComplete,[t],e)}function IC(t){const e=t.chart,n=e.options.animation;Fe(n&&n.onProgress,[t],e)}function Kp(t){return ad()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const wi={},Qp=t=>{const e=Kp(t);return Object.values(wi).filter(n=>n.canvas===e).pop()};function AC(t,e,n){const r=Object.keys(t);for(const s of r){const a=+s;if(a>=e){const o=t[s];delete t[s],(n>0||a>e)&&(t[a+n]=o)}}}function RC(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}let vi=(_r=class{static register(...e){vn.add(...e),Zp()}static unregister(...e){vn.remove(...e),Zp()}constructor(e,n){const r=this.config=new EC(n),s=Kp(e),a=Qp(s);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||eC(s)),this.platform.updateConfig(r);const i=this.platform.acquireContext(s,o.aspectRatio),l=i&&i.canvas,c=l&&l.height,d=l&&l.width;if(this.id=cS(),this.ctx=i,this.canvas=l,this.width=d,this.height=c,this._options=o,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 yC,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=CS(u=>this.update(u),o.resizeDelay||0),this._dataChanges=[],wi[this.id]=this,!i||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Yn.listen(this,"complete",Gp),Yn.listen(this,"progress",IC),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:s,_aspectRatio:a}=this;return wt(e)?n&&a?a:s?r/s: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 vn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():up(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return tp(this.canvas,this.ctx),this}stop(){return Yn.stop(this),this}resize(e,n){Yn.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,s=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,e,n,a),i=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,up(this,i,!0)&&(this.notifyPlugins("resize",{size:o}),Fe(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ee(n,(r,s)=>{r.id=s})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,s=Object.keys(r).reduce((o,i)=>(o[i]=!1,o),{});let a=[];n&&(a=a.concat(Object.keys(n).map(o=>{const i=n[o],l=md(o,i),c=l==="r",d=l==="x";return{options:i,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),Ee(a,o=>{const i=o.options,l=i.id,c=md(l,i),d=Me(i.type,o.dtype);(i.position===void 0||Up(i.position,c)!==Up(o.dposition))&&(i.position=o.dposition),s[l]=!0;let u=null;if(l in r&&r[l].type===d)u=r[l];else{const h=vn.getScale(d);u=new h({id:l,type:d,ctx:this.ctx,chart:this}),r[u.id]=u}u.init(i,e)}),Ee(s,(o,i)=>{o||delete r[i]}),Ee(r,o=>{fr.configure(this,o,o.options),fr.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((s,a)=>s.index-a.index),r>n){for(let s=n;s<r;++s)this._destroyDatasetMeta(s);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(Xp("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,s)=>{n.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,s;for(this._removeUnreferencedMetasets(),r=0,s=n.length;r<s;r++){const a=n[r];let o=this.getDatasetMeta(r);const i=a.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=i,o.indexAxis=a.indexAxis||gd(i,this.options),o.order=a.order||0,o.index=r,o.label=""+a.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=vn.getController(i),{datasetElementType:c,dataElementType:d}=Ke.datasets[i];Object.assign(l,{dataElementType:vn.getElement(d),datasetElementType:c&&vn.getElement(c)}),o.controller=new l(this,r),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){Ee(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,d=this.data.datasets.length;c<d;c++){const{controller:u}=this.getDatasetMeta(c),h=!s&&a.indexOf(u)===-1;u.buildOrUpdateElements(h),o=Math.max(+u.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),s||Ee(a,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Xp("z","_idx"));const{_active:i,_lastEvent:l}=this;l?this._eventHandler(l,!0):i.length&&this._updateHoverStyles(i,i,!0),this.render()}_updateScales(){Ee(this.scales,e=>{fr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!Wm(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:s,count:a}of n){const o=r==="_removeElements"?-a:a;AC(e,s,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(e.filter(o=>o[0]===a).map((o,i)=>i+","+o.splice(1).join(","))),s=r(0);for(let a=1;a<n;a++)if(!Wm(s,r(a)))return;return Array.from(s).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;fr.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Ee(this.boxes,s=>{r&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,a)=>{s._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,dr(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),s={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(r.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Yn.has(this)?this.attached&&!Yn.running(this)&&Yn.start(this):(this.draw(),Gp({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,s)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let s,a;for(s=0,a=n.length;s<a;++s){const o=n[s];(!e||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r={meta:e,index:e.index,cancelable:!0},s=fO(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&qc(n,s),e.controller.draw(),s&&$c(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return sp(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,s){const a=jO.modes[n];return typeof a=="function"?a(this,e,r,s):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let s=r.filter(a=>a&&a._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(s)),s}getContext(){return this.$context||(this.$context=Ss(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const s=r?"show":"hide",a=this.getDatasetMeta(e),o=a.controller._resolveAnimations(void 0,s);ti(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),o.update(a,{visible:r}),this.update(i=>i.datasetIndex===e?s:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),Yn.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),tp(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete wi[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,n=this.platform,r=(a,o)=>{n.addEventListener(this,a,o),e[a]=o},s=(a,o,i)=>{a.offsetX=o,a.offsetY=i,this._eventHandler(a)};Ee(this.options.events,a=>r(a,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},s=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},a=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const i=()=>{s("attach",i),this.attached=!0,this.resize(),r("resize",a),r("detach",o)};o=()=>{this.attached=!1,s("resize",a),this._stop(),this._resize(0,0),r("attach",i)},n.isAttached(this.canvas)?i():o()}unbindEvents(){Ee(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Ee(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const s=r?"set":"remove";let a,o,i,l;for(n==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+s+"DatasetHoverStyle"]()),i=0,l=e.length;i<l;++i){o=e[i];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:a,index:o})=>{const i=this.getDatasetMeta(a);if(!i)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:i.data[o],index:o}});!$o(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const s=this.options.hover,a=(l,c)=>l.filter(d=>!c.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),o=a(n,e),i=r?e:a(e,n);o.length&&this.updateHoverStyle(o,s.mode,!1),i.length&&s.mode&&this.updateHoverStyle(i,s.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},s=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,s)===!1)return;const a=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,s),(a||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:s=[],options:a}=this,o=n,i=this._getActiveElements(e,s,r,o),l=mS(e),c=RC(e,this._lastEvent,r,l);r&&(this._lastEvent=null,Fe(a.onHover,[e,i,this],this),l&&Fe(a.onClick,[e,i,this],this));const d=!$o(i,s);return(d||n)&&(this._active=i,this._updateHoverStyles(i,s,n)),this._lastEvent=c,d}_getActiveElements(e,n,r,s){if(e.type==="mouseout")return[];if(!r)return n;const a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,s)}},$(_r,"defaults",Ke),$(_r,"instances",wi),$(_r,"overrides",Rr),$(_r,"registry",vn),$(_r,"version",NC),$(_r,"getChart",Qp),_r);function Zp(){return Ee(vi.instances,t=>t._plugins.invalidate())}function LC(t,e,n){const{startAngle:r,x:s,y:a,outerRadius:o,innerRadius:i,options:l}=e,{borderWidth:c,borderJoinStyle:d}=l,u=Math.min(c/o,wn(r-n));if(t.beginPath(),t.arc(s,a,o-c/2,r+u/2,n-u/2),i>0){const h=Math.min(c/i,wn(r-n));t.arc(s,a,i+c/2,n-h/2,r+h/2,!0)}else{const h=Math.min(c/2,o*wn(r-n));if(d==="round")t.arc(s,a,h,n-Be/2,r+Be/2,!0);else if(d==="bevel"){const g=2*h*h,m=-g*Math.cos(n+Be/2)+s,p=-g*Math.sin(n+Be/2)+a,b=g*Math.cos(r+Be/2)+s,y=g*Math.sin(r+Be/2)+a;t.lineTo(m,p),t.lineTo(b,y)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function FC(t,e,n){const{startAngle:r,pixelMargin:s,x:a,y:o,outerRadius:i,innerRadius:l}=e;let c=s/i;t.beginPath(),t.arc(a,o,i,r-c,n+c),l>s?(c=s/l,t.arc(a,o,l,n+c,r-c,!0)):t.arc(a,o,s,n+it,r-it),t.closePath(),t.clip()}function BC(t){return td(t,["outerStart","outerEnd","innerStart","innerEnd"])}function WC(t,e,n,r){const s=BC(t.options.borderRadius),a=(n-e)/2,o=Math.min(a,r*e/2),i=l=>{const c=(n-Math.min(a,l))*r/2;return qt(l,0,Math.min(a,c))};return{outerStart:i(s.outerStart),outerEnd:i(s.outerEnd),innerStart:qt(s.innerStart,0,o),innerEnd:qt(s.innerEnd,0,o)}}function Ds(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function xi(t,e,n,r,s,a){const{x:o,y:i,startAngle:l,pixelMargin:c,innerRadius:d}=e,u=Math.max(e.outerRadius+r+n-c,0),h=d>0?d+r+n+c:0;let g=0;const m=s-l;if(r){const E=d>0?d-r:0,W=u>0?u-r:0,U=(E+W)/2,G=U!==0?m*U/(U+r):m;g=(m-G)/2}const p=Math.max(.001,m*u-n/Be)/u,b=(m-p)/2,y=l+b+g,v=s-b-g,{outerStart:k,outerEnd:x,innerStart:w,innerEnd:S}=WC(e,h,u,v-y),N=u-k,M=u-x,T=y+k/N,P=v-x/M,z=h+w,F=h+S,O=y+w/z,C=v-S/F;if(t.beginPath(),a){const E=(T+P)/2;if(t.arc(o,i,u,T,E),t.arc(o,i,u,E,P),x>0){const ee=Ds(M,P,o,i);t.arc(ee.x,ee.y,x,P,v+it)}const W=Ds(F,v,o,i);if(t.lineTo(W.x,W.y),S>0){const ee=Ds(F,C,o,i);t.arc(ee.x,ee.y,S,v+it,C+Math.PI)}const U=(v-S/h+(y+w/h))/2;if(t.arc(o,i,h,v-S/h,U,!0),t.arc(o,i,h,U,y+w/h,!0),w>0){const ee=Ds(z,O,o,i);t.arc(ee.x,ee.y,w,O+Math.PI,y-it)}const G=Ds(N,y,o,i);if(t.lineTo(G.x,G.y),k>0){const ee=Ds(N,T,o,i);t.arc(ee.x,ee.y,k,y-it,T)}}else{t.moveTo(o,i);const E=Math.cos(T)*u+o,W=Math.sin(T)*u+i;t.lineTo(E,W);const U=Math.cos(P)*u+o,G=Math.sin(P)*u+i;t.lineTo(U,G)}t.closePath()}function zC(t,e,n,r,s){const{fullCircles:a,startAngle:o,circumference:i}=e;let l=e.endAngle;if(a){xi(t,e,n,r,l,s);for(let c=0;c<a;++c)t.fill();isNaN(i)||(l=o+(i%nt||nt))}return xi(t,e,n,r,l,s),t.fill(),l}function HC(t,e,n,r,s){const{fullCircles:a,startAngle:o,circumference:i,options:l}=e,{borderWidth:c,borderJoinStyle:d,borderDash:u,borderDashOffset:h,borderRadius:g}=l,m=l.borderAlign==="inner";if(!c)return;t.setLineDash(u||[]),t.lineDashOffset=h,m?(t.lineWidth=c*2,t.lineJoin=d||"round"):(t.lineWidth=c,t.lineJoin=d||"bevel");let p=e.endAngle;if(a){xi(t,e,n,r,p,s);for(let b=0;b<a;++b)t.stroke();isNaN(i)||(p=o+(i%nt||nt))}m&&FC(t,e,p),l.selfJoin&&p-o>=Be&&g===0&&d!=="miter"&&LC(t,e,p),a||(xi(t,e,n,r,p,s),t.stroke())}class La extends Ia{constructor(n){super();$(this,"circumference");$(this,"endAngle");$(this,"fullCircles");$(this,"innerRadius");$(this,"outerRadius");$(this,"pixelMargin");$(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,n&&Object.assign(this,n)}inRange(n,r,s){const a=this.getProps(["x","y"],s),{angle:o,distance:i}=Ym(a,{x:n,y:r}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:u,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),g=(this.options.spacing+this.options.borderWidth)/2,m=Me(h,c-l),p=si(o,l,c)&&l!==c,b=m>=nt||p,y=_a(i,d+g,u+g);return b&&y}getCenterPoint(n){const{x:r,y:s,startAngle:a,endAngle:o,innerRadius:i,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:d}=this.options,u=(a+o)/2,h=(i+l+d+c)/2;return{x:r+Math.cos(u)*h,y:s+Math.sin(u)*h}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:s}=this,a=(r.offset||0)/4,o=(r.spacing||0)/2,i=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=s>nt?Math.floor(s/nt):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*a,Math.sin(l)*a);const c=1-Math.sin(Math.min(Be,s||0)),d=a*c;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,zC(n,this,d,o,i),HC(n,this,d,o,i),n.restore()}}$(La,"id","arc"),$(La,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),$(La,"defaultRoutes",{backgroundColor:"backgroundColor"}),$(La,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});const Jp=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},YC=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class qp extends Ia{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,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,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 n=Fe(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,s)=>e.sort(r,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,s=Et(r.font),a=s.size,o=this._computeTitleHeight(),{boxWidth:i,itemHeight:l}=Jp(r,a);let c,d;n.font=s.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(o,a,i,l)+10):(d=this.maxHeight,c=this._fitCols(o,s,i,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(d,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,s){const{ctx:a,maxWidth:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=s+i;let u=e;a.textAlign="left",a.textBaseline="middle";let h=-1,g=-d;return this.legendItems.forEach((m,p)=>{const b=r+n/2+a.measureText(m.text).width;(p===0||c[c.length-1]+b+2*i>o)&&(u+=d,c[c.length-(p>0?0:1)]=0,g+=d,h++),l[p]={left:0,top:g,row:h,width:b,height:s},c[c.length-1]+=b+i}),u}_fitCols(e,n,r,s){const{ctx:a,maxHeight:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=o-e;let u=i,h=0,g=0,m=0,p=0;return this.legendItems.forEach((b,y)=>{const{itemWidth:v,itemHeight:k}=VC(r,n,a,b,s);y>0&&g+k+2*i>d&&(u+=h+i,c.push({width:h,height:g}),m+=h+i,p++,h=g=0),l[y]={left:m,top:g,col:p,width:v,height:k},h=Math.max(h,v),g+=k+i}),u+=h,c.push({width:h,height:g}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:s},rtl:a}}=this,o=Cs(a,this.left,this.width);if(this.isHorizontal()){let i=0,l=Ft(r,this.left+s,this.right-this.lineWidths[i]);for(const c of n)i!==c.row&&(i=c.row,l=Ft(r,this.left+s,this.right-this.lineWidths[i])),c.top+=this.top+e+s,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+s}else{let i=0,l=Ft(r,this.top+e+s,this.bottom-this.columnSizes[i].height);for(const c of n)c.col!==i&&(i=c.col,l=Ft(r,this.top+e+s,this.bottom-this.columnSizes[i].height)),c.top=l,c.left+=this.left+s,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;qc(e,this),this._draw(),$c(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:s}=this,{align:a,labels:o}=e,i=Ke.color,l=Cs(e.rtl,this.left,this.width),c=Et(o.font),{padding:d}=o,u=c.size,h=u/2;let g;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:m,boxHeight:p,itemHeight:b}=Jp(o,u),y=function(S,N,M){if(isNaN(m)||m<=0||isNaN(p)||p<0)return;s.save();const T=Me(M.lineWidth,1);if(s.fillStyle=Me(M.fillStyle,i),s.lineCap=Me(M.lineCap,"butt"),s.lineDashOffset=Me(M.lineDashOffset,0),s.lineJoin=Me(M.lineJoin,"miter"),s.lineWidth=T,s.strokeStyle=Me(M.strokeStyle,i),s.setLineDash(Me(M.lineDash,[])),o.usePointStyle){const P={radius:p*Math.SQRT2/2,pointStyle:M.pointStyle,rotation:M.rotation,borderWidth:T},z=l.xPlus(S,m/2),F=N+h;rp(s,P,z,F,o.pointStyleWidth&&m)}else{const P=N+Math.max((u-p)/2,0),z=l.leftForLtr(S,m),F=Ca(M.borderRadius);s.beginPath(),Object.values(F).some(O=>O!==0)?ed(s,{x:z,y:P,w:m,h:p,radius:F}):s.rect(z,P,m,p),s.fill(),T!==0&&s.stroke()}s.restore()},v=function(S,N,M){oi(s,M.text,S,N+b/2,c,{strikethrough:M.hidden,textAlign:l.textAlign(M.textAlign)})},k=this.isHorizontal(),x=this._computeTitleHeight();k?g={x:Ft(a,this.left+d,this.right-r[0]),y:this.top+d+x,line:0}:g={x:this.left+d,y:Ft(a,this.top+x+d,this.bottom-n[0].height),line:0},hp(this.ctx,e.textDirection);const w=b+d;this.legendItems.forEach((S,N)=>{s.strokeStyle=S.fontColor,s.fillStyle=S.fontColor;const M=s.measureText(S.text).width,T=l.textAlign(S.textAlign||(S.textAlign=o.textAlign)),P=m+h+M;let z=g.x,F=g.y;l.setWidth(this.width),k?N>0&&z+P+d>this.right&&(F=g.y+=w,g.line++,z=g.x=Ft(a,this.left+d,this.right-r[g.line])):N>0&&F+w>this.bottom&&(z=g.x=z+n[g.line].width+d,g.line++,F=g.y=Ft(a,this.top+x+d,this.bottom-n[g.line].height));const O=l.x(z);if(y(O,F,S),z=DS(T,z+m+h,k?z+P:this.right,e.rtl),v(l.x(z),F,S),k)g.x+=P+d;else if(typeof S.text!="string"){const C=c.lineHeight;g.y+=$p(S,C)+d}else g.y+=w}),gp(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=Et(n.font),s=an(n.padding);if(!n.display)return;const a=Cs(e.rtl,this.left,this.width),o=this.ctx,i=n.position,l=r.size/2,c=s.top+l;let d,u=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),d=this.top+c,u=Ft(e.align,u,this.right-h);else{const m=this.columnSizes.reduce((p,b)=>Math.max(p,b.height),0);d=c+Ft(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const g=Ft(i,u,u+h);o.textAlign=a.textAlign(Km(i)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,oi(o,n.text,g,d,r)}_computeTitleHeight(){const e=this.options.title,n=Et(e.font),r=an(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,s,a;if(_a(e,this.left,this.right)&&_a(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(s=a[r],_a(e,s.left,s.left+s.width)&&_a(n,s.top,s.top+s.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!GC(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const s=this._hoveredItem,a=YC(s,r);s&&!a&&Fe(n.onLeave,[e,s,this],this),this._hoveredItem=r,r&&!a&&Fe(n.onHover,[e,r,this],this)}else r&&Fe(n.onClick,[e,r,this],this)}}function VC(t,e,n,r,s){const a=UC(r,t,e,n),o=XC(s,r,e.lineHeight);return{itemWidth:a,itemHeight:o}}function UC(t,e,n,r){let s=t.text;return s&&typeof s!="string"&&(s=s.reduce((a,o)=>a.length>o.length?a:o)),e+n.size/2+r.measureText(s).width}function XC(t,e,n){let r=t;return typeof e.text!="string"&&(r=$p(e,n)),r}function $p(t,e){const n=t.text?t.text.length:0;return e*n}function GC(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var KC={id:"legend",_element:qp,start(t,e,n){const r=t.legend=new qp({ctx:t.ctx,options:n,chart:t});fr.configure(t,r,n),fr.addBox(t,r)},stop(t){fr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;fr.configure(t,r,n),r.options=n},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,n){const r=e.datasetIndex,s=n.chart;s.isDatasetVisible(r)?(s.hide(r),e.hidden=!0):(s.show(r),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:n,pointStyle:r,textAlign:s,color:a,useBorderRadius:o,borderRadius:i}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),d=an(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:a,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:r||c.pointStyle,rotation:c.rotation,textAlign:s||c.textAlign,borderRadius:o&&(i||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 Fa={average(t){if(!t.length)return!1;let e,n,r=new Set,s=0,a=0;for(e=0,n=t.length;e<n;++e){const i=t[e].element;if(i&&i.hasValue()){const l=i.tooltipPosition();r.add(l.x),s+=l.y,++a}}return a===0||r.size===0?!1:{x:[...r].reduce((i,l)=>i+l)/r.size,y:s/a}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,s=Number.POSITIVE_INFINITY,a,o,i;for(a=0,o=t.length;a<o;++a){const l=t[a].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),d=vS(e,c);d<s&&(s=d,i=l)}}if(i){const l=i.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function xn(t,e){return e&&(mt(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Vn(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
24
24
  `)>-1?t.split(`
25
- `):t}function ZC(t,e){const{element:n,datasetIndex:r,index:s}=e,a=t.getDatasetMeta(r).controller,{label:o,value:i}=a.getLabelAndValue(s);return{chart:t,label:o,parsed:a.getParsed(s),raw:t.data.datasets[r].data[s],formattedValue:i,dataset:a.getDataset(),dataIndex:s,datasetIndex:r,element:n}}function t0(t,e){const n=t.chart.ctx,{body:r,footer:s,title:a}=t,{boxWidth:o,boxHeight:i}=e,l=Et(e.bodyFont),c=Et(e.titleFont),d=Et(e.footerFont),u=a.length,h=s.length,g=r.length,m=an(e.padding);let p=m.height,b=0,y=r.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(y+=t.beforeBody.length+t.afterBody.length,u&&(p+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),y){const x=e.displayColors?Math.max(i,l.lineHeight):l.lineHeight;p+=g*x+(y-g)*l.lineHeight+(y-1)*e.bodySpacing}h&&(p+=e.footerMarginTop+h*d.lineHeight+(h-1)*e.footerSpacing);let v=0;const k=function(x){b=Math.max(b,n.measureText(x).width+v)};return n.save(),n.font=c.string,Ee(t.title,k),n.font=l.string,Ee(t.beforeBody.concat(t.afterBody),k),v=e.displayColors?o+2+e.boxPadding:0,Ee(r,x=>{Ee(x.before,k),Ee(x.lines,k),Ee(x.after,k)}),v=0,n.font=d.string,Ee(t.footer,k),n.restore(),b+=m.width,{width:b,height:p}}function JC(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function qC(t,e,n,r){const{x:s,width:a}=r,o=n.caretSize+n.caretPadding;if(t==="left"&&s+a+o>e.width||t==="right"&&s-a-o<0)return!0}function $C(t,e,n,r){const{x:s,width:a}=n,{width:o,chartArea:{left:i,right:l}}=t;let c="center";return r==="center"?c=s<=(i+l)/2?"left":"right":s<=a/2?c="left":s>=o-a/2&&(c="right"),qC(c,t,e,n)&&(c="center"),c}function n0(t,e,n){const r=n.yAlign||e.yAlign||JC(t,n);return{xAlign:n.xAlign||e.xAlign||$C(t,e,n,r),yAlign:r}}function eD(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function tD(t,e,n){let{y:r,height:s}=t;return e==="top"?r+=n:e==="bottom"?r-=s+n:r-=s/2,r}function r0(t,e,n,r){const{caretSize:s,caretPadding:a,cornerRadius:o}=t,{xAlign:i,yAlign:l}=n,c=s+a,{topLeft:d,topRight:u,bottomLeft:h,bottomRight:g}=Ca(o);let m=eD(e,i);const p=tD(e,l,c);return l==="center"?i==="left"?m+=c:i==="right"&&(m-=c):i==="left"?m-=Math.max(d,h)+s:i==="right"&&(m+=Math.max(u,g)+s),{x:qt(m,0,r.width-e.width),y:qt(p,0,r.height-e.height)}}function ki(t,e,n){const r=an(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function s0(t){return xn([],Vn(t))}function nD(t,e,n){return Ss(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function a0(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const o0={beforeTitle:zn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:zn,beforeBody:zn,beforeLabel:zn,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 n=t.formattedValue;return wt(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:zn,afterBody:zn,beforeFooter:zn,footer:zn,afterFooter:zn};function Pt(t,e,n,r){const s=t[e].call(n,r);return typeof s>"u"?o0[e].call(n,r):s}class pd extends Ia{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 n=this.chart,r=this.options.setContext(this.getContext()),s=r.enabled&&n.options.animation&&r.animations,a=new bp(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=nD(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,s=Pt(r,"beforeTitle",this,e),a=Pt(r,"title",this,e),o=Pt(r,"afterTitle",this,e);let i=[];return i=xn(i,Vn(s)),i=xn(i,Vn(a)),i=xn(i,Vn(o)),i}getBeforeBody(e,n){return s0(Pt(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,s=[];return Ee(e,a=>{const o={before:[],lines:[],after:[]},i=a0(r,a);xn(o.before,Vn(Pt(i,"beforeLabel",this,a))),xn(o.lines,Pt(i,"label",this,a)),xn(o.after,Vn(Pt(i,"afterLabel",this,a))),s.push(o)}),s}getAfterBody(e,n){return s0(Pt(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,s=Pt(r,"beforeFooter",this,e),a=Pt(r,"footer",this,e),o=Pt(r,"afterFooter",this,e);let i=[];return i=xn(i,Vn(s)),i=xn(i,Vn(a)),i=xn(i,Vn(o)),i}_createItems(e){const n=this._active,r=this.chart.data,s=[],a=[],o=[];let i=[],l,c;for(l=0,c=n.length;l<c;++l)i.push(ZC(this.chart,n[l]));return e.filter&&(i=i.filter((d,u,h)=>e.filter(d,u,h,r))),e.itemSort&&(i=i.sort((d,u)=>e.itemSort(d,u,r))),Ee(i,d=>{const u=a0(e.callbacks,d);s.push(Pt(u,"labelColor",this,d)),a.push(Pt(u,"labelPointStyle",this,d)),o.push(Pt(u,"labelTextColor",this,d))}),this.labelColors=s,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=i,i}update(e,n){const r=this.options.setContext(this.getContext()),s=this._active;let a,o=[];if(!s.length)this.opacity!==0&&(a={opacity:0});else{const i=Fa[r.position].call(this,s,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=t0(this,r),c=Object.assign({},i,l),d=n0(this.chart,r,c),u=r0(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,a={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:i.x,caretY:i.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,s){const a=this.getCaretPosition(e,r,s);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(e,n,r){const{xAlign:s,yAlign:a}=this,{caretSize:o,cornerRadius:i}=r,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:u}=Ca(i),{x:h,y:g}=e,{width:m,height:p}=n;let b,y,v,k,x,w;return a==="center"?(x=g+p/2,s==="left"?(b=h,y=b-o,k=x+o,w=x-o):(b=h+m,y=b+o,k=x-o,w=x+o),v=b):(s==="left"?y=h+Math.max(l,d)+o:s==="right"?y=h+m-Math.max(c,u)-o:y=this.caretX,a==="top"?(k=g,x=k-o,b=y-o,v=y+o):(k=g+p,x=k+o,b=y+o,v=y-o),w=k),{x1:b,x2:y,x3:v,y1:k,y2:x,y3:w}}drawTitle(e,n,r){const s=this.title,a=s.length;let o,i,l;if(a){const c=Cs(r.rtl,this.x,this.width);for(e.x=ki(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",o=Et(r.titleFont),i=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<a;++l)n.fillText(s[l],c.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+i,l+1===a&&(e.y+=r.titleMarginBottom-i)}}_drawColorBox(e,n,r,s,a){const o=this.labelColors[r],i=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=a,d=Et(a.bodyFont),u=ki(this,"left",a),h=s.x(u),g=l<d.lineHeight?(d.lineHeight-l)/2:0,m=n.y+g;if(a.usePointStyle){const p={radius:Math.min(c,l)/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:1},b=s.leftForLtr(h,c)+c/2,y=m+l/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,rp(e,p,b,y),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,rp(e,p,b,y)}else{e.lineWidth=ye(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const p=s.leftForLtr(h,c),b=s.leftForLtr(s.xPlus(h,1),c-2),y=Ca(o.borderRadius);Object.values(y).some(v=>v!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,ed(e,{x:p,y:m,w:c,h:l,radius:y}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),ed(e,{x:b,y:m+1,w:c-2,h:l-2,radius:y}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(p,m,c,l),e.strokeRect(p,m,c,l),e.fillStyle=o.backgroundColor,e.fillRect(b,m+1,c-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:s}=this,{bodySpacing:a,bodyAlign:o,displayColors:i,boxHeight:l,boxWidth:c,boxPadding:d}=r,u=Et(r.bodyFont);let h=u.lineHeight,g=0;const m=Cs(r.rtl,this.x,this.width),p=function(M){n.fillText(M,m.x(e.x+g),e.y+h/2),e.y+=h+a},b=m.textAlign(o);let y,v,k,x,w,S,N;for(n.textAlign=o,n.textBaseline="middle",n.font=u.string,e.x=ki(this,b,r),n.fillStyle=r.bodyColor,Ee(this.beforeBody,p),g=i&&b!=="right"?o==="center"?c/2+d:c+2+d:0,x=0,S=s.length;x<S;++x){for(y=s[x],v=this.labelTextColors[x],n.fillStyle=v,Ee(y.before,p),k=y.lines,i&&k.length&&(this._drawColorBox(n,e,x,m,r),h=Math.max(u.lineHeight,l)),w=0,N=k.length;w<N;++w)p(k[w]),h=u.lineHeight;Ee(y.after,p)}g=0,h=u.lineHeight,Ee(this.afterBody,p),e.y-=a}drawFooter(e,n,r){const s=this.footer,a=s.length;let o,i;if(a){const l=Cs(r.rtl,this.x,this.width);for(e.x=ki(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=Et(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,i=0;i<a;++i)n.fillText(s[i],l.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+r.footerSpacing}}drawBackground(e,n,r,s){const{xAlign:a,yAlign:o}=this,{x:i,y:l}=e,{width:c,height:d}=r,{topLeft:u,topRight:h,bottomLeft:g,bottomRight:m}=Ca(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(i+u,l),o==="top"&&this.drawCaret(e,n,r,s),n.lineTo(i+c-h,l),n.quadraticCurveTo(i+c,l,i+c,l+h),o==="center"&&a==="right"&&this.drawCaret(e,n,r,s),n.lineTo(i+c,l+d-m),n.quadraticCurveTo(i+c,l+d,i+c-m,l+d),o==="bottom"&&this.drawCaret(e,n,r,s),n.lineTo(i+g,l+d),n.quadraticCurveTo(i,l+d,i,l+d-g),o==="center"&&a==="left"&&this.drawCaret(e,n,r,s),n.lineTo(i,l+u),n.quadraticCurveTo(i,l,i+u,l),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,s=r&&r.x,a=r&&r.y;if(s||a){const o=Fa[e.position].call(this,this._active,this._eventPosition);if(!o)return;const i=this._size=t0(this,e),l=Object.assign({},o,this._size),c=n0(n,e,l),d=r0(e,l,c,n);(s._to!==d.x||a._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=i.width,this.height=i.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=an(n.padding),i=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&i&&(e.save(),e.globalAlpha=r,this.drawBackground(a,e,s,n),gp(e,n.textDirection),a.y+=o.top,this.drawTitle(a,e,n),this.drawBody(a,e,n),this.drawFooter(a,e,n),mp(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,s=e.map(({datasetIndex:i,index:l})=>{const c=this.chart.getDatasetMeta(i);if(!c)throw new Error("Cannot find a dataset at index "+i);return{datasetIndex:i,element:c.data[l],index:l}}),a=!$o(r,s),o=this._positionChanged(s,n);(a||o)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,a=this._active||[],o=this._getActiveElements(e,a,n,r),i=this._positionChanged(o,e),l=n||!$o(o,a)||i;return l&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,s){const a=this.options;if(e.type==="mouseout")return[];if(!s)return n.filter(i=>this.chart.data.datasets[i.datasetIndex]&&this.chart.getDatasetMeta(i.datasetIndex).controller.getParsed(i.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:r,caretY:s,options:a}=this,o=Fa[a.position].call(this,e,n);return o!==!1&&(r!==o.x||s!==o.y)}}$(pd,"positioners",Fa);var rD={id:"tooltip",_element:pd,positioners:Fa,afterInit(t,e,n){n&&(t.tooltip=new pd({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,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:o0},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 _i={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}},Tt=Object.keys(_i);function i0(t,e){return t-e}function l0(t,e){if(wt(e))return null;const n=t._adapter,{parser:r,round:s,isoWeekday:a}=t._parseOpts;let o=e;return typeof r=="function"&&(o=r(o)),Hn(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(s&&(o=s==="week"&&(ri(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,s)),+o)}function c0(t,e,n,r){const s=Tt.length;for(let a=Tt.indexOf(t);a<s-1;++a){const o=_i[Tt[a]],i=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(i*o.size))<=r)return Tt[a]}return Tt[s-1]}function sD(t,e,n,r,s){for(let a=Tt.length-1;a>=Tt.indexOf(n);a--){const o=Tt[a];if(_i[o].common&&t._adapter.diff(s,r,o)>=e-1)return o}return Tt[n?Tt.indexOf(n):0]}function aD(t){for(let e=Tt.indexOf(t)+1,n=Tt.length;e<n;++e)if(_i[Tt[e]].common)return Tt[e]}function d0(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:s}=Kc(n,e),a=n[r]>=e?n[r]:n[s];t[a]=!0}}function oD(t,e,n,r){const s=t._adapter,a=+s.startOf(e[0].value,r),o=e[e.length-1].value;let i,l;for(i=a;i<=o;i=+s.add(i,1,r))l=n[i],l>=0&&(e[l].major=!0);return e}function u0(t,e,n){const r=[],s={},a=e.length;let o,i;for(o=0;o<a;++o)i=e[o],s[i]=o,r.push({value:i,major:!1});return a===0||!n?r:oD(t,r,s,n)}class Si extends pi{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,n={}){const r=e.time||(e.time={}),s=this._adapter=new EO._date(e.adapters.date);s.init(n),xa(r.displayFormats,s.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:l0(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:s,max:a,minDefined:o,maxDefined:i}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(s=Math.min(s,c.min)),!i&&!isNaN(c.max)&&(a=Math.max(a,c.max))}(!o||!i)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),s=Hn(s)&&!isNaN(s)?s:+n.startOf(Date.now(),r),a=Hn(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(s,a-1),this.max=Math.max(s+1,a)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,s=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const a=this.min,o=this.max,i=SS(s,a,o);return this._unit=n.unit||(r.autoSkip?c0(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):sD(this,i.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:aD(this._unit),this.initOffsets(s),e.reverse&&i.reverse(),u0(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,s,a;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?n=1-s:n=(this.getDecimalForValue(e[1])-s)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?r=a:r=(a-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=qt(n,0,o),r=qt(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,s=this.options,a=s.time,o=a.unit||c0(a.minUnit,n,r,this._getLabelCapacity(n)),i=Me(s.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,c=ri(l)||l===!0,d={};let u=n,h,g;if(c&&(u=+e.startOf(u,"isoWeek",l)),u=+e.startOf(u,c?"day":o),e.diff(r,n,o)>1e5*i)throw new Error(n+" and "+r+" are too far apart with stepSize of "+i+" "+o);const m=s.ticks.source==="data"&&this.getDataTimestamps();for(h=u,g=0;h<r;h=+e.add(h,i,o),g++)d0(d,h,m);return(h===r||s.bounds==="ticks"||g===1)&&d0(d,h,m),Object.keys(d).sort(i0).map(p=>+p)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const s=this.options.time.displayFormats,a=this._unit,o=n||s[a];return this._adapter.format(e,o)}_tickFormatFunction(e,n,r,s){const a=this.options,o=a.ticks.callback;if(o)return Fe(o,[e,n,r],this);const i=a.time.displayFormats,l=this._unit,c=this._majorUnit,d=l&&i[l],u=c&&i[c],h=r[n],g=c&&u&&h&&h.major;return this._adapter.format(e,s||(g?u:d))}generateTickLabels(e){let n,r,s;for(n=0,r=e.length;n<r;++n)s=e[n],s.label=this._tickFormatFunction(s.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,s=Ar(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(s),o=Math.sin(s),i=this._resolveTickFontOptions(0).size;return{w:r*a+i*o,h:r*o+i*a}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,s=r[n.unit]||r.millisecond,a=this._tickFormatFunction(e,0,u0(this,[e],this._majorUnit),s),o=this._getLabelSize(a),i=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return i>0?i:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,r=s.length;n<r;++n)e=e.concat(s[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const s=this.getLabels();for(n=0,r=s.length;n<r;++n)e.push(l0(this,s[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return CS(e.sort(i0))}}$(Si,"id","time"),$(Si,"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 Oi(t,e,n){let r=0,s=t.length-1,a,o,i,l;n?(e>=t[r].pos&&e<=t[s].pos&&({lo:r,hi:s}=Gc(t,"pos",e)),{pos:a,time:i}=t[r],{pos:o,time:l}=t[s]):(e>=t[r].time&&e<=t[s].time&&({lo:r,hi:s}=Gc(t,"time",e)),{time:a,pos:i}=t[r],{time:o,pos:l}=t[s]);const c=o-a;return c?i+(l-i)*(e-a)/c:i}class f0 extends Si{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Oi(n,this.min),this._tableRange=Oi(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,s=[],a=[];let o,i,l,c,d;for(o=0,i=e.length;o<i;++o)c=e[o],c>=n&&c<=r&&s.push(c);if(s.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,i=s.length;o<i;++o)d=s[o+1],l=s[o-1],c=s[o],Math.round((d+l)/2)!==c&&a.push({time:c,pos:o/(i-1)});return a}_generate(){const e=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((s,a)=>s-a)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(Oi(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return Oi(this._table,r*this._tableRange+this._minPos,!0)}}$(f0,"id","timeseries"),$(f0,"defaults",Si.defaults);const h0="label";function g0(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function iD(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function m0(t,e){t.labels=e}function p0(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h0;const r=[];t.datasets=e.map(s=>{const a=t.datasets.find(o=>o[n]===s[n]);return!a||!s.data||r.includes(a)?{...s}:(r.push(a),Object.assign(a,s),a)})}function lD(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h0;const n={labels:[],datasets:[]};return m0(n,t.labels),p0(n,t.datasets,e),n}function cD(t,e){const{height:n=150,width:r=300,redraw:s=!1,datasetIdKey:a,type:o,data:i,options:l,plugins:c=[],fallbackContent:d,updateMode:u,...h}=t,g=_.useRef(null),m=_.useRef(null),p=()=>{g.current&&(m.current=new vi(g.current,{type:o,data:lD(i,a),options:l&&{...l},plugins:c}),g0(e,m.current))},b=()=>{g0(e,null),m.current&&(m.current.destroy(),m.current=null)};return _.useEffect(()=>{!s&&m.current&&l&&iD(m.current,l)},[s,l]),_.useEffect(()=>{!s&&m.current&&m0(m.current.config.data,i.labels)},[s,i.labels]),_.useEffect(()=>{!s&&m.current&&i.datasets&&p0(m.current.config.data,i.datasets,a)},[s,i.datasets]),_.useEffect(()=>{m.current&&(s?(b(),setTimeout(p)):m.current.update(u))},[s,l,i.labels,i.datasets,u]),_.useEffect(()=>{m.current&&(b(),setTimeout(p))},[o]),_.useEffect(()=>(p(),()=>b()),[]),_.createElement("canvas",{ref:g,role:"img",height:n,width:r,...h},d)}const dD=_.forwardRef(cD);function uD(t,e){return vi.register(e),_.forwardRef((n,r)=>_.createElement(dD,{...n,ref:r,type:t}))}const fD=uD("doughnut",Ea);vi.register(La,rD,QC);const b0=t=>new Intl.NumberFormat("es-CO",{style:"currency",currency:"COP",notation:"compact",maximumFractionDigits:2}).format(t),hD=({dataProps:t})=>{const e=t,n={responsive:!0,maintainAspectRatio:!1,cutout:`${t.cutout}%`,plugins:{title:{display:!0,text:"PRESUPUESTO"},legend:{position:"right",labels:{usePointStyle:!0,pointStyle:"circle",padding:15}},tooltip:{enabled:!0},doughnutLabel:{labels:[{text:"Total",font:{size:"16",weight:"bold"}},{text:b0(e.datasets[0].data.reduce((a,o)=>a+o,0)),font:{size:"15"}}]}}},r={id:"textCenter",beforeDraw(a){const{ctx:o,chartArea:{top:i,width:l,height:c}}=a,d="Total",u=b0(e.datasets[0].data[1]),h=i+c*.75;o.save(),o.font="20px Arial",o.fillStyle="black",o.textAlign="center",o.fillText(d,l/2,h-20),o.font=`bold ${t.fontSize}px Arial`,o.fillText(u,l/2,h+10),o.restore()}},s={id:"currencyLabel",beforeDraw(a){const{ctx:o,chartArea:{top:i,width:l}}=a;o.save(),o.font="bold 15px Arial",o.textAlign="right",o.fillText("MONEDA - COP",l+85,i+30),o.restore()}};return f.jsx("div",{children:f.jsx(fD,{data:e,options:n,plugins:[r,s]})})},bd={overlay:"modal-module__overlay__cc2Es",modal:"modal-module__modal__WAkuU",closeButton:"modal-module__closeButton__1lo1j"};function gD(t){return De({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"},child:[]}]})(t)}function mD(t){return De({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)}const y0=_.forwardRef(({isOpen:t,onClose:e,children:n,width:r="auto",closeOnOverlayClick:s,isCloseButtonVisible:a=!0},o)=>{if(!t)return null;const i=s??!a,l=()=>{i&&e()};return f.jsx("div",{className:bd.overlay,onClick:l,children:f.jsxs("div",{ref:o,className:bd.modal,style:{width:r},onClick:c=>c.stopPropagation(),children:[a&&f.jsx("button",{onClick:e,className:bd.closeButton,children:f.jsx(mD,{})}),n]})})});/*! *****************************************************************************
25
+ `):t}function QC(t,e){const{element:n,datasetIndex:r,index:s}=e,a=t.getDatasetMeta(r).controller,{label:o,value:i}=a.getLabelAndValue(s);return{chart:t,label:o,parsed:a.getParsed(s),raw:t.data.datasets[r].data[s],formattedValue:i,dataset:a.getDataset(),dataIndex:s,datasetIndex:r,element:n}}function e0(t,e){const n=t.chart.ctx,{body:r,footer:s,title:a}=t,{boxWidth:o,boxHeight:i}=e,l=Et(e.bodyFont),c=Et(e.titleFont),d=Et(e.footerFont),u=a.length,h=s.length,g=r.length,m=an(e.padding);let p=m.height,b=0,y=r.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(y+=t.beforeBody.length+t.afterBody.length,u&&(p+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),y){const x=e.displayColors?Math.max(i,l.lineHeight):l.lineHeight;p+=g*x+(y-g)*l.lineHeight+(y-1)*e.bodySpacing}h&&(p+=e.footerMarginTop+h*d.lineHeight+(h-1)*e.footerSpacing);let v=0;const k=function(x){b=Math.max(b,n.measureText(x).width+v)};return n.save(),n.font=c.string,Ee(t.title,k),n.font=l.string,Ee(t.beforeBody.concat(t.afterBody),k),v=e.displayColors?o+2+e.boxPadding:0,Ee(r,x=>{Ee(x.before,k),Ee(x.lines,k),Ee(x.after,k)}),v=0,n.font=d.string,Ee(t.footer,k),n.restore(),b+=m.width,{width:b,height:p}}function ZC(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function JC(t,e,n,r){const{x:s,width:a}=r,o=n.caretSize+n.caretPadding;if(t==="left"&&s+a+o>e.width||t==="right"&&s-a-o<0)return!0}function qC(t,e,n,r){const{x:s,width:a}=n,{width:o,chartArea:{left:i,right:l}}=t;let c="center";return r==="center"?c=s<=(i+l)/2?"left":"right":s<=a/2?c="left":s>=o-a/2&&(c="right"),JC(c,t,e,n)&&(c="center"),c}function t0(t,e,n){const r=n.yAlign||e.yAlign||ZC(t,n);return{xAlign:n.xAlign||e.xAlign||qC(t,e,n,r),yAlign:r}}function $C(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function eD(t,e,n){let{y:r,height:s}=t;return e==="top"?r+=n:e==="bottom"?r-=s+n:r-=s/2,r}function n0(t,e,n,r){const{caretSize:s,caretPadding:a,cornerRadius:o}=t,{xAlign:i,yAlign:l}=n,c=s+a,{topLeft:d,topRight:u,bottomLeft:h,bottomRight:g}=Ca(o);let m=$C(e,i);const p=eD(e,l,c);return l==="center"?i==="left"?m+=c:i==="right"&&(m-=c):i==="left"?m-=Math.max(d,h)+s:i==="right"&&(m+=Math.max(u,g)+s),{x:qt(m,0,r.width-e.width),y:qt(p,0,r.height-e.height)}}function ki(t,e,n){const r=an(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function r0(t){return xn([],Vn(t))}function tD(t,e,n){return Ss(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function s0(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const a0={beforeTitle:zn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:zn,beforeBody:zn,beforeLabel:zn,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 n=t.formattedValue;return wt(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:zn,afterBody:zn,beforeFooter:zn,footer:zn,afterFooter:zn};function Pt(t,e,n,r){const s=t[e].call(n,r);return typeof s>"u"?a0[e].call(n,r):s}class pd extends Ia{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 n=this.chart,r=this.options.setContext(this.getContext()),s=r.enabled&&n.options.animation&&r.animations,a=new pp(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=tD(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,s=Pt(r,"beforeTitle",this,e),a=Pt(r,"title",this,e),o=Pt(r,"afterTitle",this,e);let i=[];return i=xn(i,Vn(s)),i=xn(i,Vn(a)),i=xn(i,Vn(o)),i}getBeforeBody(e,n){return r0(Pt(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,s=[];return Ee(e,a=>{const o={before:[],lines:[],after:[]},i=s0(r,a);xn(o.before,Vn(Pt(i,"beforeLabel",this,a))),xn(o.lines,Pt(i,"label",this,a)),xn(o.after,Vn(Pt(i,"afterLabel",this,a))),s.push(o)}),s}getAfterBody(e,n){return r0(Pt(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,s=Pt(r,"beforeFooter",this,e),a=Pt(r,"footer",this,e),o=Pt(r,"afterFooter",this,e);let i=[];return i=xn(i,Vn(s)),i=xn(i,Vn(a)),i=xn(i,Vn(o)),i}_createItems(e){const n=this._active,r=this.chart.data,s=[],a=[],o=[];let i=[],l,c;for(l=0,c=n.length;l<c;++l)i.push(QC(this.chart,n[l]));return e.filter&&(i=i.filter((d,u,h)=>e.filter(d,u,h,r))),e.itemSort&&(i=i.sort((d,u)=>e.itemSort(d,u,r))),Ee(i,d=>{const u=s0(e.callbacks,d);s.push(Pt(u,"labelColor",this,d)),a.push(Pt(u,"labelPointStyle",this,d)),o.push(Pt(u,"labelTextColor",this,d))}),this.labelColors=s,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=i,i}update(e,n){const r=this.options.setContext(this.getContext()),s=this._active;let a,o=[];if(!s.length)this.opacity!==0&&(a={opacity:0});else{const i=Fa[r.position].call(this,s,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=e0(this,r),c=Object.assign({},i,l),d=t0(this.chart,r,c),u=n0(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,a={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:i.x,caretY:i.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,s){const a=this.getCaretPosition(e,r,s);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(e,n,r){const{xAlign:s,yAlign:a}=this,{caretSize:o,cornerRadius:i}=r,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:u}=Ca(i),{x:h,y:g}=e,{width:m,height:p}=n;let b,y,v,k,x,w;return a==="center"?(x=g+p/2,s==="left"?(b=h,y=b-o,k=x+o,w=x-o):(b=h+m,y=b+o,k=x-o,w=x+o),v=b):(s==="left"?y=h+Math.max(l,d)+o:s==="right"?y=h+m-Math.max(c,u)-o:y=this.caretX,a==="top"?(k=g,x=k-o,b=y-o,v=y+o):(k=g+p,x=k+o,b=y+o,v=y-o),w=k),{x1:b,x2:y,x3:v,y1:k,y2:x,y3:w}}drawTitle(e,n,r){const s=this.title,a=s.length;let o,i,l;if(a){const c=Cs(r.rtl,this.x,this.width);for(e.x=ki(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",o=Et(r.titleFont),i=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<a;++l)n.fillText(s[l],c.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+i,l+1===a&&(e.y+=r.titleMarginBottom-i)}}_drawColorBox(e,n,r,s,a){const o=this.labelColors[r],i=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=a,d=Et(a.bodyFont),u=ki(this,"left",a),h=s.x(u),g=l<d.lineHeight?(d.lineHeight-l)/2:0,m=n.y+g;if(a.usePointStyle){const p={radius:Math.min(c,l)/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:1},b=s.leftForLtr(h,c)+c/2,y=m+l/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,np(e,p,b,y),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,np(e,p,b,y)}else{e.lineWidth=ye(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const p=s.leftForLtr(h,c),b=s.leftForLtr(s.xPlus(h,1),c-2),y=Ca(o.borderRadius);Object.values(y).some(v=>v!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,ed(e,{x:p,y:m,w:c,h:l,radius:y}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),ed(e,{x:b,y:m+1,w:c-2,h:l-2,radius:y}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(p,m,c,l),e.strokeRect(p,m,c,l),e.fillStyle=o.backgroundColor,e.fillRect(b,m+1,c-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:s}=this,{bodySpacing:a,bodyAlign:o,displayColors:i,boxHeight:l,boxWidth:c,boxPadding:d}=r,u=Et(r.bodyFont);let h=u.lineHeight,g=0;const m=Cs(r.rtl,this.x,this.width),p=function(M){n.fillText(M,m.x(e.x+g),e.y+h/2),e.y+=h+a},b=m.textAlign(o);let y,v,k,x,w,S,N;for(n.textAlign=o,n.textBaseline="middle",n.font=u.string,e.x=ki(this,b,r),n.fillStyle=r.bodyColor,Ee(this.beforeBody,p),g=i&&b!=="right"?o==="center"?c/2+d:c+2+d:0,x=0,S=s.length;x<S;++x){for(y=s[x],v=this.labelTextColors[x],n.fillStyle=v,Ee(y.before,p),k=y.lines,i&&k.length&&(this._drawColorBox(n,e,x,m,r),h=Math.max(u.lineHeight,l)),w=0,N=k.length;w<N;++w)p(k[w]),h=u.lineHeight;Ee(y.after,p)}g=0,h=u.lineHeight,Ee(this.afterBody,p),e.y-=a}drawFooter(e,n,r){const s=this.footer,a=s.length;let o,i;if(a){const l=Cs(r.rtl,this.x,this.width);for(e.x=ki(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=Et(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,i=0;i<a;++i)n.fillText(s[i],l.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+r.footerSpacing}}drawBackground(e,n,r,s){const{xAlign:a,yAlign:o}=this,{x:i,y:l}=e,{width:c,height:d}=r,{topLeft:u,topRight:h,bottomLeft:g,bottomRight:m}=Ca(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(i+u,l),o==="top"&&this.drawCaret(e,n,r,s),n.lineTo(i+c-h,l),n.quadraticCurveTo(i+c,l,i+c,l+h),o==="center"&&a==="right"&&this.drawCaret(e,n,r,s),n.lineTo(i+c,l+d-m),n.quadraticCurveTo(i+c,l+d,i+c-m,l+d),o==="bottom"&&this.drawCaret(e,n,r,s),n.lineTo(i+g,l+d),n.quadraticCurveTo(i,l+d,i,l+d-g),o==="center"&&a==="left"&&this.drawCaret(e,n,r,s),n.lineTo(i,l+u),n.quadraticCurveTo(i,l,i+u,l),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,s=r&&r.x,a=r&&r.y;if(s||a){const o=Fa[e.position].call(this,this._active,this._eventPosition);if(!o)return;const i=this._size=e0(this,e),l=Object.assign({},o,this._size),c=t0(n,e,l),d=n0(e,l,c,n);(s._to!==d.x||a._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=i.width,this.height=i.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=an(n.padding),i=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&i&&(e.save(),e.globalAlpha=r,this.drawBackground(a,e,s,n),hp(e,n.textDirection),a.y+=o.top,this.drawTitle(a,e,n),this.drawBody(a,e,n),this.drawFooter(a,e,n),gp(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,s=e.map(({datasetIndex:i,index:l})=>{const c=this.chart.getDatasetMeta(i);if(!c)throw new Error("Cannot find a dataset at index "+i);return{datasetIndex:i,element:c.data[l],index:l}}),a=!$o(r,s),o=this._positionChanged(s,n);(a||o)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,a=this._active||[],o=this._getActiveElements(e,a,n,r),i=this._positionChanged(o,e),l=n||!$o(o,a)||i;return l&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,s){const a=this.options;if(e.type==="mouseout")return[];if(!s)return n.filter(i=>this.chart.data.datasets[i.datasetIndex]&&this.chart.getDatasetMeta(i.datasetIndex).controller.getParsed(i.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:r,caretY:s,options:a}=this,o=Fa[a.position].call(this,e,n);return o!==!1&&(r!==o.x||s!==o.y)}}$(pd,"positioners",Fa);var nD={id:"tooltip",_element:pd,positioners:Fa,afterInit(t,e,n){n&&(t.tooltip=new pd({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,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:a0},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 _i={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}},Tt=Object.keys(_i);function o0(t,e){return t-e}function i0(t,e){if(wt(e))return null;const n=t._adapter,{parser:r,round:s,isoWeekday:a}=t._parseOpts;let o=e;return typeof r=="function"&&(o=r(o)),Hn(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(s&&(o=s==="week"&&(ri(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,s)),+o)}function l0(t,e,n,r){const s=Tt.length;for(let a=Tt.indexOf(t);a<s-1;++a){const o=_i[Tt[a]],i=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(i*o.size))<=r)return Tt[a]}return Tt[s-1]}function rD(t,e,n,r,s){for(let a=Tt.length-1;a>=Tt.indexOf(n);a--){const o=Tt[a];if(_i[o].common&&t._adapter.diff(s,r,o)>=e-1)return o}return Tt[n?Tt.indexOf(n):0]}function sD(t){for(let e=Tt.indexOf(t)+1,n=Tt.length;e<n;++e)if(_i[Tt[e]].common)return Tt[e]}function c0(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:s}=Gc(n,e),a=n[r]>=e?n[r]:n[s];t[a]=!0}}function aD(t,e,n,r){const s=t._adapter,a=+s.startOf(e[0].value,r),o=e[e.length-1].value;let i,l;for(i=a;i<=o;i=+s.add(i,1,r))l=n[i],l>=0&&(e[l].major=!0);return e}function d0(t,e,n){const r=[],s={},a=e.length;let o,i;for(o=0;o<a;++o)i=e[o],s[i]=o,r.push({value:i,major:!1});return a===0||!n?r:aD(t,r,s,n)}class Si extends pi{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,n={}){const r=e.time||(e.time={}),s=this._adapter=new MO._date(e.adapters.date);s.init(n),xa(r.displayFormats,s.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:i0(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:s,max:a,minDefined:o,maxDefined:i}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(s=Math.min(s,c.min)),!i&&!isNaN(c.max)&&(a=Math.max(a,c.max))}(!o||!i)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),s=Hn(s)&&!isNaN(s)?s:+n.startOf(Date.now(),r),a=Hn(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(s,a-1),this.max=Math.max(s+1,a)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,s=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const a=this.min,o=this.max,i=_S(s,a,o);return this._unit=n.unit||(r.autoSkip?l0(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):rD(this,i.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:sD(this._unit),this.initOffsets(s),e.reverse&&i.reverse(),d0(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,s,a;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?n=1-s:n=(this.getDecimalForValue(e[1])-s)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?r=a:r=(a-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=qt(n,0,o),r=qt(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,s=this.options,a=s.time,o=a.unit||l0(a.minUnit,n,r,this._getLabelCapacity(n)),i=Me(s.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,c=ri(l)||l===!0,d={};let u=n,h,g;if(c&&(u=+e.startOf(u,"isoWeek",l)),u=+e.startOf(u,c?"day":o),e.diff(r,n,o)>1e5*i)throw new Error(n+" and "+r+" are too far apart with stepSize of "+i+" "+o);const m=s.ticks.source==="data"&&this.getDataTimestamps();for(h=u,g=0;h<r;h=+e.add(h,i,o),g++)c0(d,h,m);return(h===r||s.bounds==="ticks"||g===1)&&c0(d,h,m),Object.keys(d).sort(o0).map(p=>+p)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const s=this.options.time.displayFormats,a=this._unit,o=n||s[a];return this._adapter.format(e,o)}_tickFormatFunction(e,n,r,s){const a=this.options,o=a.ticks.callback;if(o)return Fe(o,[e,n,r],this);const i=a.time.displayFormats,l=this._unit,c=this._majorUnit,d=l&&i[l],u=c&&i[c],h=r[n],g=c&&u&&h&&h.major;return this._adapter.format(e,s||(g?u:d))}generateTickLabels(e){let n,r,s;for(n=0,r=e.length;n<r;++n)s=e[n],s.label=this._tickFormatFunction(s.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,s=Ar(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(s),o=Math.sin(s),i=this._resolveTickFontOptions(0).size;return{w:r*a+i*o,h:r*o+i*a}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,s=r[n.unit]||r.millisecond,a=this._tickFormatFunction(e,0,d0(this,[e],this._majorUnit),s),o=this._getLabelSize(a),i=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return i>0?i:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,r=s.length;n<r;++n)e=e.concat(s[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const s=this.getLabels();for(n=0,r=s.length;n<r;++n)e.push(i0(this,s[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return OS(e.sort(o0))}}$(Si,"id","time"),$(Si,"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 Oi(t,e,n){let r=0,s=t.length-1,a,o,i,l;n?(e>=t[r].pos&&e<=t[s].pos&&({lo:r,hi:s}=Kc(t,"pos",e)),{pos:a,time:i}=t[r],{pos:o,time:l}=t[s]):(e>=t[r].time&&e<=t[s].time&&({lo:r,hi:s}=Kc(t,"time",e)),{time:a,pos:i}=t[r],{time:o,pos:l}=t[s]);const c=o-a;return c?i+(l-i)*(e-a)/c:i}class u0 extends Si{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Oi(n,this.min),this._tableRange=Oi(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,s=[],a=[];let o,i,l,c,d;for(o=0,i=e.length;o<i;++o)c=e[o],c>=n&&c<=r&&s.push(c);if(s.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,i=s.length;o<i;++o)d=s[o+1],l=s[o-1],c=s[o],Math.round((d+l)/2)!==c&&a.push({time:c,pos:o/(i-1)});return a}_generate(){const e=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((s,a)=>s-a)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(Oi(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return Oi(this._table,r*this._tableRange+this._minPos,!0)}}$(u0,"id","timeseries"),$(u0,"defaults",Si.defaults);const f0="label";function h0(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function oD(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function g0(t,e){t.labels=e}function m0(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f0;const r=[];t.datasets=e.map(s=>{const a=t.datasets.find(o=>o[n]===s[n]);return!a||!s.data||r.includes(a)?{...s}:(r.push(a),Object.assign(a,s),a)})}function iD(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f0;const n={labels:[],datasets:[]};return g0(n,t.labels),m0(n,t.datasets,e),n}function lD(t,e){const{height:n=150,width:r=300,redraw:s=!1,datasetIdKey:a,type:o,data:i,options:l,plugins:c=[],fallbackContent:d,updateMode:u,...h}=t,g=_.useRef(null),m=_.useRef(null),p=()=>{g.current&&(m.current=new vi(g.current,{type:o,data:iD(i,a),options:l&&{...l},plugins:c}),h0(e,m.current))},b=()=>{h0(e,null),m.current&&(m.current.destroy(),m.current=null)};return _.useEffect(()=>{!s&&m.current&&l&&oD(m.current,l)},[s,l]),_.useEffect(()=>{!s&&m.current&&g0(m.current.config.data,i.labels)},[s,i.labels]),_.useEffect(()=>{!s&&m.current&&i.datasets&&m0(m.current.config.data,i.datasets,a)},[s,i.datasets]),_.useEffect(()=>{m.current&&(s?(b(),setTimeout(p)):m.current.update(u))},[s,l,i.labels,i.datasets,u]),_.useEffect(()=>{m.current&&(b(),setTimeout(p))},[o]),_.useEffect(()=>(p(),()=>b()),[]),_.createElement("canvas",{ref:g,role:"img",height:n,width:r,...h},d)}const cD=_.forwardRef(lD);function dD(t,e){return vi.register(e),_.forwardRef((n,r)=>_.createElement(cD,{...n,ref:r,type:t}))}const uD=dD("doughnut",Ea);vi.register(La,nD,KC);const p0=t=>new Intl.NumberFormat("es-CO",{style:"currency",currency:"COP",notation:"compact",maximumFractionDigits:2}).format(t),fD=({dataProps:t})=>{const e=t,n={responsive:!0,maintainAspectRatio:!1,cutout:`${t.cutout}%`,plugins:{title:{display:!0,text:"PRESUPUESTO"},legend:{position:"right",labels:{usePointStyle:!0,pointStyle:"circle",padding:15}},tooltip:{enabled:!0},doughnutLabel:{labels:[{text:"Total",font:{size:"16",weight:"bold"}},{text:p0(e.datasets[0].data.reduce((a,o)=>a+o,0)),font:{size:"15"}}]}}},r={id:"textCenter",beforeDraw(a){const{ctx:o,chartArea:{top:i,width:l,height:c}}=a,d="Total",u=p0(e.datasets[0].data[1]),h=i+c*.75;o.save(),o.font="20px Arial",o.fillStyle="black",o.textAlign="center",o.fillText(d,l/2,h-20),o.font=`bold ${t.fontSize}px Arial`,o.fillText(u,l/2,h+10),o.restore()}},s={id:"currencyLabel",beforeDraw(a){const{ctx:o,chartArea:{top:i,width:l}}=a;o.save(),o.font="bold 15px Arial",o.textAlign="right",o.fillText("MONEDA - COP",l+85,i+30),o.restore()}};return f.jsx("div",{children:f.jsx(uD,{data:e,options:n,plugins:[r,s]})})},bd={overlay:"modal-module__overlay__cc2Es",modal:"modal-module__modal__WAkuU",closeButton:"modal-module__closeButton__1lo1j"};function hD(t){return De({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"},child:[]}]})(t)}function gD(t){return De({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)}const b0=_.forwardRef(({isOpen:t,onClose:e,children:n,width:r="auto",closeOnOverlayClick:s,isCloseButtonVisible:a=!0},o)=>{if(!t)return null;const i=s??!a,l=()=>{i&&e()};return f.jsx("div",{className:bd.overlay,onClick:l,children:f.jsxs("div",{ref:o,className:bd.modal,style:{width:r},onClick:c=>c.stopPropagation(),children:[a&&f.jsx("button",{onClick:e,className:bd.closeButton,children:f.jsx(gD,{})}),n]})})});/*! *****************************************************************************
26
26
  Copyright (c) Microsoft Corporation.
27
27
 
28
28
  Permission to use, copy, modify, and/or distribute this software for any
@@ -35,33 +35,33 @@
35
35
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
36
36
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
37
37
  PERFORMANCE OF THIS SOFTWARE.
38
- ***************************************************************************** */var Bt=function(){return Bt=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Bt.apply(this,arguments)};function zr(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}function vt(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function yd(){return yd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},yd.apply(this,arguments)}function Ci(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var pD=/^((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)-.*))$/,bD=Ci(function(t){return pD.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function yD(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function wD(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var vD=function(){function t(n){var r=this;this._insertTag=function(s){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,a),r.tags.push(s)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(wD(this));var s=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var a=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;a&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
39
- `+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||!a}if(this.isSpeedy){var o=yD(s);try{o.insertRule(r,o.cssRules.length)}catch(i){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+'"',i)}}else s.appendChild(document.createTextNode(r));this.ctr++},e.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)},t}(),xt="-ms-",Di="-moz-",ve="-webkit-",wd="comm",vd="rule",xd="decl",xD="@import",w0="@keyframes",kD=Math.abs,Mi=String.fromCharCode,_D=Object.assign;function SD(t,e){return pt(t,0)^45?(((e<<2^pt(t,0))<<2^pt(t,1))<<2^pt(t,2))<<2^pt(t,3):0}function v0(t){return t.trim()}function OD(t,e){return(t=e.exec(t))?t[0]:t}function Se(t,e,n){return t.replace(e,n)}function kd(t,e){return t.indexOf(e)}function pt(t,e){return t.charCodeAt(e)|0}function Ba(t,e,n){return t.slice(e,n)}function kn(t){return t.length}function _d(t){return t.length}function Ei(t,e){return e.push(t),t}function CD(t,e){return t.map(e).join("")}var Pi=1,Ms=1,x0=0,Nt=0,rt=0,Es="";function Ti(t,e,n,r,s,a,o){return{value:t,root:e,parent:n,type:r,props:s,children:a,line:Pi,column:Ms,length:o,return:""}}function Wa(t,e){return _D(Ti("",null,null,"",null,null,0),t,{length:-t.length},e)}function DD(){return rt}function MD(){return rt=Nt>0?pt(Es,--Nt):0,Ms--,rt===10&&(Ms=1,Pi--),rt}function Wt(){return rt=Nt<x0?pt(Es,Nt++):0,Ms++,rt===10&&(Ms=1,Pi++),rt}function _n(){return pt(Es,Nt)}function Ni(){return Nt}function za(t,e){return Ba(Es,t,e)}function Ha(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 k0(t){return Pi=Ms=1,x0=kn(Es=t),Nt=0,[]}function _0(t){return Es="",t}function ji(t){return v0(za(Nt-1,Sd(t===91?t+2:t===40?t+1:t)))}function ED(t){for(;(rt=_n())&&rt<33;)Wt();return Ha(t)>2||Ha(rt)>3?"":" "}function PD(t,e){for(;--e&&Wt()&&!(rt<48||rt>102||rt>57&&rt<65||rt>70&&rt<97););return za(t,Ni()+(e<6&&_n()==32&&Wt()==32))}function Sd(t){for(;Wt();)switch(rt){case t:return Nt;case 34:case 39:t!==34&&t!==39&&Sd(rt);break;case 40:t===41&&Sd(t);break;case 92:Wt();break}return Nt}function TD(t,e){for(;Wt()&&t+rt!==57;)if(t+rt===84&&_n()===47)break;return"/*"+za(e,Nt-1)+"*"+Mi(t===47?t:Wt())}function ND(t){for(;!Ha(_n());)Wt();return za(t,Nt)}function S0(t){return _0(Ii("",null,null,null,[""],t=k0(t),0,[0],t))}function Ii(t,e,n,r,s,a,o,i,l){for(var c=0,d=0,u=o,h=0,g=0,m=0,p=1,b=1,y=1,v=0,k="",x=s,w=a,S=r,N=k;b;)switch(m=v,v=Wt()){case 40:if(m!=108&&pt(N,u-1)==58){kd(N+=Se(ji(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:N+=ji(v);break;case 9:case 10:case 13:case 32:N+=ED(m);break;case 92:N+=PD(Ni()-1,7);continue;case 47:switch(_n()){case 42:case 47:Ei(jD(TD(Wt(),Ni()),e,n),l);break;default:N+="/"}break;case 123*p:i[c++]=kn(N)*y;case 125*p:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:g>0&&kn(N)-u&&Ei(g>32?C0(N+";",r,n,u-1):C0(Se(N," ","")+";",r,n,u-2),l);break;case 59:N+=";";default:if(Ei(S=O0(N,e,n,c,d,s,i,k,x=[],w=[],u),a),v===123)if(d===0)Ii(N,e,S,S,x,a,u,i,w);else switch(h===99&&pt(N,3)===110?100:h){case 100:case 109:case 115:Ii(t,S,S,r&&Ei(O0(t,S,S,0,0,s,i,k,s,x=[],u),w),s,w,u,i,r?x:w);break;default:Ii(N,S,S,S,[""],w,0,i,w)}}c=d=g=0,p=y=1,k=N="",u=o;break;case 58:u=1+kn(N),g=m;default:if(p<1){if(v==123)--p;else if(v==125&&p++==0&&MD()==125)continue}switch(N+=Mi(v),v*p){case 38:y=d>0?1:(N+="\f",-1);break;case 44:i[c++]=(kn(N)-1)*y,y=1;break;case 64:_n()===45&&(N+=ji(Wt())),h=_n(),d=u=kn(k=N+=ND(Ni())),v++;break;case 45:m===45&&kn(N)==2&&(p=0)}}return a}function O0(t,e,n,r,s,a,o,i,l,c,d){for(var u=s-1,h=s===0?a:[""],g=_d(h),m=0,p=0,b=0;m<r;++m)for(var y=0,v=Ba(t,u+1,u=kD(p=o[m])),k=t;y<g;++y)(k=v0(p>0?h[y]+" "+v:Se(v,/&\f/g,h[y])))&&(l[b++]=k);return Ti(t,e,n,s===0?vd:i,l,c,d)}function jD(t,e,n){return Ti(t,e,n,wd,Mi(DD()),Ba(t,2,-2),0)}function C0(t,e,n,r){return Ti(t,e,n,xd,Ba(t,0,r),Ba(t,r+1,-1),r)}function Hr(t,e){for(var n="",r=_d(t),s=0;s<r;s++)n+=e(t[s],s,t,e)||"";return n}function D0(t,e,n,r){switch(t.type){case xD:case xd:return t.return=t.return||t.value;case wd:return"";case w0:return t.return=t.value+"{"+Hr(t.children,r)+"}";case vd:t.value=t.props.join(",")}return kn(n=Hr(t.children,r))?t.return=t.value+"{"+n+"}":""}function M0(t){var e=_d(t);return function(n,r,s,a){for(var o="",i=0;i<e;i++)o+=t[i](n,r,s,a)||"";return o}}function ID(t){return function(e){e.root||(e=e.return)&&t(e)}}var AD=function(e){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var s=e(r);return n.set(r,s),s}},RD=function(e,n,r){for(var s=0,a=0;s=a,a=_n(),s===38&&a===12&&(n[r]=1),!Ha(a);)Wt();return za(e,Nt)},LD=function(e,n){var r=-1,s=44;do switch(Ha(s)){case 0:s===38&&_n()===12&&(n[r]=1),e[r]+=RD(Nt-1,n,r);break;case 2:e[r]+=ji(s);break;case 4:if(s===44){e[++r]=_n()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Mi(s)}while(s=Wt());return e},FD=function(e,n){return _0(LD(k0(e),n))},E0=new WeakMap,BD=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,s=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!E0.get(r))&&!s){E0.set(e,!0);for(var a=[],o=FD(n,a),i=r.props,l=0,c=0;l<o.length;l++)for(var d=0;d<i.length;d++,c++)e.props[c]=a[l]?o[l].replace(/&\f/g,i[d]):i[d]+" "+o[l]}}},WD=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}},zD="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",HD=function(e){return e.type==="comm"&&e.children.indexOf(zD)>-1},YD=function(e){return function(n,r,s){if(!(n.type!=="rule"||e.compat)){var a=n.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=n.parent===s[0],i=o?s[0].children:s,l=i.length-1;l>=0;l--){var c=i[l];if(c.line<n.line)break;if(c.column<n.column){if(HD(c))return;break}}a.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".')})}}}},P0=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},VD=function(e,n){for(var r=e-1;r>=0;r--)if(!P0(n[r]))return!0;return!1},T0=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},UD=function(e,n,r){P0(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."),T0(e)):VD(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),T0(e)))};function N0(t,e){switch(SD(t,e)){case 5103:return ve+"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 ve+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return ve+t+Di+t+xt+t+t;case 6828:case 4268:return ve+t+xt+t+t;case 6165:return ve+t+xt+"flex-"+t+t;case 5187:return ve+t+Se(t,/(\w+).+(:[^]+)/,ve+"box-$1$2"+xt+"flex-$1$2")+t;case 5443:return ve+t+xt+"flex-item-"+Se(t,/flex-|-self/,"")+t;case 4675:return ve+t+xt+"flex-line-pack"+Se(t,/align-content|flex-|-self/,"")+t;case 5548:return ve+t+xt+Se(t,"shrink","negative")+t;case 5292:return ve+t+xt+Se(t,"basis","preferred-size")+t;case 6060:return ve+"box-"+Se(t,"-grow","")+ve+t+xt+Se(t,"grow","positive")+t;case 4554:return ve+Se(t,/([^-])(transform)/g,"$1"+ve+"$2")+t;case 6187:return Se(Se(Se(t,/(zoom-|grab)/,ve+"$1"),/(image-set)/,ve+"$1"),t,"")+t;case 5495:case 3959:return Se(t,/(image-set\([^]*)/,ve+"$1$`$1");case 4968:return Se(Se(t,/(.+:)(flex-)?(.*)/,ve+"box-pack:$3"+xt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ve+t+t;case 4095:case 3583:case 4068:case 2532:return Se(t,/(.+)-inline(.+)/,ve+"$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(kn(t)-1-e>6)switch(pt(t,e+1)){case 109:if(pt(t,e+4)!==45)break;case 102:return Se(t,/(.+:)(.+)-([^]+)/,"$1"+ve+"$2-$3$1"+Di+(pt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~kd(t,"stretch")?N0(Se(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(pt(t,e+1)!==115)break;case 6444:switch(pt(t,kn(t)-3-(~kd(t,"!important")&&10))){case 107:return Se(t,":",":"+ve)+t;case 101:return Se(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ve+(pt(t,14)===45?"inline-":"")+"box$3$1"+ve+"$2$3$1"+xt+"$2box$3")+t}break;case 5936:switch(pt(t,e+11)){case 114:return ve+t+xt+Se(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return ve+t+xt+Se(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ve+t+xt+Se(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ve+t+xt+t+t}return t}var XD=function(e,n,r,s){if(e.length>-1&&!e.return)switch(e.type){case xd:e.return=N0(e.value,e.length);break;case w0:return Hr([Wa(e,{value:Se(e.value,"@","@"+ve)})],s);case vd:if(e.length)return CD(e.props,function(a){switch(OD(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hr([Wa(e,{props:[Se(a,/:(read-\w+)/,":"+Di+"$1")]})],s);case"::placeholder":return Hr([Wa(e,{props:[Se(a,/:(plac\w+)/,":"+ve+"input-$1")]}),Wa(e,{props:[Se(a,/:(plac\w+)/,":"+Di+"$1")]}),Wa(e,{props:[Se(a,/:(plac\w+)/,xt+"input-$1")]})],s)}return""})}},Ai=typeof document<"u",KD=Ai?void 0:AD(function(){return Ci(function(){var t={};return function(e){return t[e]}})}),GD=[XD],j0=function(e){var n=e.key;if(process.env.NODE_ENV!=="production"&&!n)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.
40
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(Ai&&n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var w=x.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var s=e.stylisPlugins||GD;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var a={},o,i=[];Ai&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var w=x.getAttribute("data-emotion").split(" "),S=1;S<w.length;S++)a[w[S]]=!0;i.push(x)}));var l,c=[BD,WD];if(process.env.NODE_ENV!=="production"&&c.push(YD({get compat(){return k.compat}}),UD),Ai){var d,u=[D0,process.env.NODE_ENV!=="production"?function(x){x.root||(x.return?d.insert(x.return):x.value&&x.type!==wd&&d.insert(x.value+"{}"))}:ID(function(x){d.insert(x)})],h=M0(c.concat(s,u)),g=function(w){return Hr(S0(w),h)};l=function(w,S,N,M){d=N,process.env.NODE_ENV!=="production"&&S.map!==void 0&&(d={insert:function(P){N.insert(P+S.map)}}),g(w?w+"{"+S.styles+"}":S.styles),M&&(k.inserted[S.name]=!0)}}else{var m=[D0],p=M0(c.concat(s,m)),b=function(w){return Hr(S0(w),p)},y=KD(s)(n),v=function(w,S){var N=S.name;return y[N]===void 0&&(y[N]=b(w?w+"{"+S.styles+"}":S.styles)),y[N]};l=function(w,S,N,M){var T=S.name,P=v(w,S);if(k.compat===void 0)return M&&(k.inserted[T]=!0),process.env.NODE_ENV==="development"&&S.map!==void 0?P+S.map:P;if(M)k.inserted[T]=P;else return P}}var k={key:n,sheet:new vD({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:l};return k.sheet.hydrate(i),k},Od=typeof document<"u";function QD(t,e,n){var r="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):r+=s+" "}),r}var I0=function(e,n,r){var s=e.key+"-"+n.name;(r===!1||Od===!1&&e.compat!==void 0)&&e.registered[s]===void 0&&(e.registered[s]=n.styles)},ZD=function(e,n,r){I0(e,n,r);var s=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var a="",o=n;do{var i=e.insert(n===o?"."+s:"",o,e.sheet,!0);!Od&&i!==void 0&&(a+=i),o=o.next}while(o!==void 0);if(!Od&&a.length!==0)return a}};function JD(t){for(var e=0,n,r=0,s=t.length;s>=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var qD={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},A0=`You have illegal escape sequence in your template literal, most likely inside content's property value.
38
+ ***************************************************************************** */var Bt=function(){return Bt=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Bt.apply(this,arguments)};function zr(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}function vt(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function yd(){return yd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},yd.apply(this,arguments)}function Ci(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var mD=/^((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)-.*))$/,pD=Ci(function(t){return mD.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function bD(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function yD(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var wD=function(){function t(n){var r=this;this._insertTag=function(s){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,a),r.tags.push(s)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(yD(this));var s=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var a=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;a&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
39
+ `+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||!a}if(this.isSpeedy){var o=bD(s);try{o.insertRule(r,o.cssRules.length)}catch(i){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+'"',i)}}else s.appendChild(document.createTextNode(r));this.ctr++},e.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)},t}(),xt="-ms-",Di="-moz-",ve="-webkit-",wd="comm",vd="rule",xd="decl",vD="@import",y0="@keyframes",xD=Math.abs,Mi=String.fromCharCode,kD=Object.assign;function _D(t,e){return pt(t,0)^45?(((e<<2^pt(t,0))<<2^pt(t,1))<<2^pt(t,2))<<2^pt(t,3):0}function w0(t){return t.trim()}function SD(t,e){return(t=e.exec(t))?t[0]:t}function Se(t,e,n){return t.replace(e,n)}function kd(t,e){return t.indexOf(e)}function pt(t,e){return t.charCodeAt(e)|0}function Ba(t,e,n){return t.slice(e,n)}function kn(t){return t.length}function _d(t){return t.length}function Ei(t,e){return e.push(t),t}function OD(t,e){return t.map(e).join("")}var Pi=1,Ms=1,v0=0,Nt=0,rt=0,Es="";function Ti(t,e,n,r,s,a,o){return{value:t,root:e,parent:n,type:r,props:s,children:a,line:Pi,column:Ms,length:o,return:""}}function Wa(t,e){return kD(Ti("",null,null,"",null,null,0),t,{length:-t.length},e)}function CD(){return rt}function DD(){return rt=Nt>0?pt(Es,--Nt):0,Ms--,rt===10&&(Ms=1,Pi--),rt}function Wt(){return rt=Nt<v0?pt(Es,Nt++):0,Ms++,rt===10&&(Ms=1,Pi++),rt}function _n(){return pt(Es,Nt)}function Ni(){return Nt}function za(t,e){return Ba(Es,t,e)}function Ha(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 x0(t){return Pi=Ms=1,v0=kn(Es=t),Nt=0,[]}function k0(t){return Es="",t}function ji(t){return w0(za(Nt-1,Sd(t===91?t+2:t===40?t+1:t)))}function MD(t){for(;(rt=_n())&&rt<33;)Wt();return Ha(t)>2||Ha(rt)>3?"":" "}function ED(t,e){for(;--e&&Wt()&&!(rt<48||rt>102||rt>57&&rt<65||rt>70&&rt<97););return za(t,Ni()+(e<6&&_n()==32&&Wt()==32))}function Sd(t){for(;Wt();)switch(rt){case t:return Nt;case 34:case 39:t!==34&&t!==39&&Sd(rt);break;case 40:t===41&&Sd(t);break;case 92:Wt();break}return Nt}function PD(t,e){for(;Wt()&&t+rt!==57;)if(t+rt===84&&_n()===47)break;return"/*"+za(e,Nt-1)+"*"+Mi(t===47?t:Wt())}function TD(t){for(;!Ha(_n());)Wt();return za(t,Nt)}function _0(t){return k0(Ii("",null,null,null,[""],t=x0(t),0,[0],t))}function Ii(t,e,n,r,s,a,o,i,l){for(var c=0,d=0,u=o,h=0,g=0,m=0,p=1,b=1,y=1,v=0,k="",x=s,w=a,S=r,N=k;b;)switch(m=v,v=Wt()){case 40:if(m!=108&&pt(N,u-1)==58){kd(N+=Se(ji(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:N+=ji(v);break;case 9:case 10:case 13:case 32:N+=MD(m);break;case 92:N+=ED(Ni()-1,7);continue;case 47:switch(_n()){case 42:case 47:Ei(ND(PD(Wt(),Ni()),e,n),l);break;default:N+="/"}break;case 123*p:i[c++]=kn(N)*y;case 125*p:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:g>0&&kn(N)-u&&Ei(g>32?O0(N+";",r,n,u-1):O0(Se(N," ","")+";",r,n,u-2),l);break;case 59:N+=";";default:if(Ei(S=S0(N,e,n,c,d,s,i,k,x=[],w=[],u),a),v===123)if(d===0)Ii(N,e,S,S,x,a,u,i,w);else switch(h===99&&pt(N,3)===110?100:h){case 100:case 109:case 115:Ii(t,S,S,r&&Ei(S0(t,S,S,0,0,s,i,k,s,x=[],u),w),s,w,u,i,r?x:w);break;default:Ii(N,S,S,S,[""],w,0,i,w)}}c=d=g=0,p=y=1,k=N="",u=o;break;case 58:u=1+kn(N),g=m;default:if(p<1){if(v==123)--p;else if(v==125&&p++==0&&DD()==125)continue}switch(N+=Mi(v),v*p){case 38:y=d>0?1:(N+="\f",-1);break;case 44:i[c++]=(kn(N)-1)*y,y=1;break;case 64:_n()===45&&(N+=ji(Wt())),h=_n(),d=u=kn(k=N+=TD(Ni())),v++;break;case 45:m===45&&kn(N)==2&&(p=0)}}return a}function S0(t,e,n,r,s,a,o,i,l,c,d){for(var u=s-1,h=s===0?a:[""],g=_d(h),m=0,p=0,b=0;m<r;++m)for(var y=0,v=Ba(t,u+1,u=xD(p=o[m])),k=t;y<g;++y)(k=w0(p>0?h[y]+" "+v:Se(v,/&\f/g,h[y])))&&(l[b++]=k);return Ti(t,e,n,s===0?vd:i,l,c,d)}function ND(t,e,n){return Ti(t,e,n,wd,Mi(CD()),Ba(t,2,-2),0)}function O0(t,e,n,r){return Ti(t,e,n,xd,Ba(t,0,r),Ba(t,r+1,-1),r)}function Hr(t,e){for(var n="",r=_d(t),s=0;s<r;s++)n+=e(t[s],s,t,e)||"";return n}function C0(t,e,n,r){switch(t.type){case vD:case xd:return t.return=t.return||t.value;case wd:return"";case y0:return t.return=t.value+"{"+Hr(t.children,r)+"}";case vd:t.value=t.props.join(",")}return kn(n=Hr(t.children,r))?t.return=t.value+"{"+n+"}":""}function D0(t){var e=_d(t);return function(n,r,s,a){for(var o="",i=0;i<e;i++)o+=t[i](n,r,s,a)||"";return o}}function jD(t){return function(e){e.root||(e=e.return)&&t(e)}}var ID=function(e){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var s=e(r);return n.set(r,s),s}},AD=function(e,n,r){for(var s=0,a=0;s=a,a=_n(),s===38&&a===12&&(n[r]=1),!Ha(a);)Wt();return za(e,Nt)},RD=function(e,n){var r=-1,s=44;do switch(Ha(s)){case 0:s===38&&_n()===12&&(n[r]=1),e[r]+=AD(Nt-1,n,r);break;case 2:e[r]+=ji(s);break;case 4:if(s===44){e[++r]=_n()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Mi(s)}while(s=Wt());return e},LD=function(e,n){return k0(RD(x0(e),n))},M0=new WeakMap,FD=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,s=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!M0.get(r))&&!s){M0.set(e,!0);for(var a=[],o=LD(n,a),i=r.props,l=0,c=0;l<o.length;l++)for(var d=0;d<i.length;d++,c++)e.props[c]=a[l]?o[l].replace(/&\f/g,i[d]):i[d]+" "+o[l]}}},BD=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}},WD="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",zD=function(e){return e.type==="comm"&&e.children.indexOf(WD)>-1},HD=function(e){return function(n,r,s){if(!(n.type!=="rule"||e.compat)){var a=n.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=n.parent===s[0],i=o?s[0].children:s,l=i.length-1;l>=0;l--){var c=i[l];if(c.line<n.line)break;if(c.column<n.column){if(zD(c))return;break}}a.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".')})}}}},E0=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},YD=function(e,n){for(var r=e-1;r>=0;r--)if(!E0(n[r]))return!0;return!1},P0=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},VD=function(e,n,r){E0(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."),P0(e)):YD(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),P0(e)))};function T0(t,e){switch(_D(t,e)){case 5103:return ve+"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 ve+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return ve+t+Di+t+xt+t+t;case 6828:case 4268:return ve+t+xt+t+t;case 6165:return ve+t+xt+"flex-"+t+t;case 5187:return ve+t+Se(t,/(\w+).+(:[^]+)/,ve+"box-$1$2"+xt+"flex-$1$2")+t;case 5443:return ve+t+xt+"flex-item-"+Se(t,/flex-|-self/,"")+t;case 4675:return ve+t+xt+"flex-line-pack"+Se(t,/align-content|flex-|-self/,"")+t;case 5548:return ve+t+xt+Se(t,"shrink","negative")+t;case 5292:return ve+t+xt+Se(t,"basis","preferred-size")+t;case 6060:return ve+"box-"+Se(t,"-grow","")+ve+t+xt+Se(t,"grow","positive")+t;case 4554:return ve+Se(t,/([^-])(transform)/g,"$1"+ve+"$2")+t;case 6187:return Se(Se(Se(t,/(zoom-|grab)/,ve+"$1"),/(image-set)/,ve+"$1"),t,"")+t;case 5495:case 3959:return Se(t,/(image-set\([^]*)/,ve+"$1$`$1");case 4968:return Se(Se(t,/(.+:)(flex-)?(.*)/,ve+"box-pack:$3"+xt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ve+t+t;case 4095:case 3583:case 4068:case 2532:return Se(t,/(.+)-inline(.+)/,ve+"$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(kn(t)-1-e>6)switch(pt(t,e+1)){case 109:if(pt(t,e+4)!==45)break;case 102:return Se(t,/(.+:)(.+)-([^]+)/,"$1"+ve+"$2-$3$1"+Di+(pt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~kd(t,"stretch")?T0(Se(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(pt(t,e+1)!==115)break;case 6444:switch(pt(t,kn(t)-3-(~kd(t,"!important")&&10))){case 107:return Se(t,":",":"+ve)+t;case 101:return Se(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ve+(pt(t,14)===45?"inline-":"")+"box$3$1"+ve+"$2$3$1"+xt+"$2box$3")+t}break;case 5936:switch(pt(t,e+11)){case 114:return ve+t+xt+Se(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return ve+t+xt+Se(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ve+t+xt+Se(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ve+t+xt+t+t}return t}var UD=function(e,n,r,s){if(e.length>-1&&!e.return)switch(e.type){case xd:e.return=T0(e.value,e.length);break;case y0:return Hr([Wa(e,{value:Se(e.value,"@","@"+ve)})],s);case vd:if(e.length)return OD(e.props,function(a){switch(SD(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hr([Wa(e,{props:[Se(a,/:(read-\w+)/,":"+Di+"$1")]})],s);case"::placeholder":return Hr([Wa(e,{props:[Se(a,/:(plac\w+)/,":"+ve+"input-$1")]}),Wa(e,{props:[Se(a,/:(plac\w+)/,":"+Di+"$1")]}),Wa(e,{props:[Se(a,/:(plac\w+)/,xt+"input-$1")]})],s)}return""})}},Ai=typeof document<"u",XD=Ai?void 0:ID(function(){return Ci(function(){var t={};return function(e){return t[e]}})}),GD=[UD],N0=function(e){var n=e.key;if(process.env.NODE_ENV!=="production"&&!n)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.
40
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(Ai&&n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var w=x.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var s=e.stylisPlugins||GD;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var a={},o,i=[];Ai&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var w=x.getAttribute("data-emotion").split(" "),S=1;S<w.length;S++)a[w[S]]=!0;i.push(x)}));var l,c=[FD,BD];if(process.env.NODE_ENV!=="production"&&c.push(HD({get compat(){return k.compat}}),VD),Ai){var d,u=[C0,process.env.NODE_ENV!=="production"?function(x){x.root||(x.return?d.insert(x.return):x.value&&x.type!==wd&&d.insert(x.value+"{}"))}:jD(function(x){d.insert(x)})],h=D0(c.concat(s,u)),g=function(w){return Hr(_0(w),h)};l=function(w,S,N,M){d=N,process.env.NODE_ENV!=="production"&&S.map!==void 0&&(d={insert:function(P){N.insert(P+S.map)}}),g(w?w+"{"+S.styles+"}":S.styles),M&&(k.inserted[S.name]=!0)}}else{var m=[C0],p=D0(c.concat(s,m)),b=function(w){return Hr(_0(w),p)},y=XD(s)(n),v=function(w,S){var N=S.name;return y[N]===void 0&&(y[N]=b(w?w+"{"+S.styles+"}":S.styles)),y[N]};l=function(w,S,N,M){var T=S.name,P=v(w,S);if(k.compat===void 0)return M&&(k.inserted[T]=!0),process.env.NODE_ENV==="development"&&S.map!==void 0?P+S.map:P;if(M)k.inserted[T]=P;else return P}}var k={key:n,sheet:new wD({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:l};return k.sheet.hydrate(i),k},Od=typeof document<"u";function KD(t,e,n){var r="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):r+=s+" "}),r}var j0=function(e,n,r){var s=e.key+"-"+n.name;(r===!1||Od===!1&&e.compat!==void 0)&&e.registered[s]===void 0&&(e.registered[s]=n.styles)},QD=function(e,n,r){j0(e,n,r);var s=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var a="",o=n;do{var i=e.insert(n===o?"."+s:"",o,e.sheet,!0);!Od&&i!==void 0&&(a+=i),o=o.next}while(o!==void 0);if(!Od&&a.length!==0)return a}};function ZD(t){for(var e=0,n,r=0,s=t.length;s>=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var JD={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},I0=`You have illegal escape sequence in your template literal, most likely inside content's property value.
41
41
  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';".
42
42
  You can read more about this here:
43
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,$D="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",eM=/[A-Z]|^ms/g,R0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Cd=function(e){return e.charCodeAt(1)===45},L0=function(e){return e!=null&&typeof e!="boolean"},Dd=Ci(function(t){return Cd(t)?t:t.replace(eM,"-$&").toLowerCase()}),Ri=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(R0,function(r,s,a){return on={name:s,styles:a,next:on},s})}return qD[e]!==1&&!Cd(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var tM=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,nM=["normal","none","initial","inherit","unset"],rM=Ri,sM=/^-ms-/,aM=/-(.)/g,F0={};Ri=function(e,n){if(e==="content"&&(typeof n!="string"||nM.indexOf(n)===-1&&!tM.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=rM(e,n);return r!==""&&!Cd(e)&&e.indexOf("-")!==-1&&F0[e]===void 0&&(F0[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(sM,"ms-").replace(aM,function(s,a){return a.toUpperCase()})+"?")),r}}var B0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ya(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(B0);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return on={name:n.name,styles:n.styles,next:on},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)on={name:r.name,styles:r.styles,next:on},r=r.next;var s=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(s+=n.map),s}return oM(t,e,n)}case"function":{if(t!==void 0){var a=on,o=n(t);return on=a,Ya(t,e,o)}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 i=[],l=n.replace(R0,function(c,d,u){var h="animation"+i.length;return i.push("const "+h+" = keyframes`"+u.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+h+"}"});i.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(i,["`"+l+"`"]).join(`
43
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,qD="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",$D=/[A-Z]|^ms/g,A0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Cd=function(e){return e.charCodeAt(1)===45},R0=function(e){return e!=null&&typeof e!="boolean"},Dd=Ci(function(t){return Cd(t)?t:t.replace($D,"-$&").toLowerCase()}),Ri=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(A0,function(r,s,a){return on={name:s,styles:a,next:on},s})}return JD[e]!==1&&!Cd(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var eM=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,tM=["normal","none","initial","inherit","unset"],nM=Ri,rM=/^-ms-/,sM=/-(.)/g,L0={};Ri=function(e,n){if(e==="content"&&(typeof n!="string"||tM.indexOf(n)===-1&&!eM.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=nM(e,n);return r!==""&&!Cd(e)&&e.indexOf("-")!==-1&&L0[e]===void 0&&(L0[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(rM,"ms-").replace(sM,function(s,a){return a.toUpperCase()})+"?")),r}}var F0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ya(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(F0);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return on={name:n.name,styles:n.styles,next:on},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)on={name:r.name,styles:r.styles,next:on},r=r.next;var s=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(s+=n.map),s}return aM(t,e,n)}case"function":{if(t!==void 0){var a=on,o=n(t);return on=a,Ya(t,e,o)}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 i=[],l=n.replace(A0,function(c,d,u){var h="animation"+i.length;return i.push("const "+h+" = keyframes`"+u.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+h+"}"});i.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(i,["`"+l+"`"]).join(`
44
44
  `)+`
45
45
 
46
46
  You should wrap it with \`css\` like this:
47
47
 
48
- `+("css`"+l+"`"))}break}return n}function oM(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=Ya(t,e,n[s])+";";else for(var a in n){var o=n[a];if(typeof o!="object")L0(o)&&(r+=Dd(a)+":"+Ri(a,o)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(B0);if(Array.isArray(o)&&typeof o[0]=="string"&&e==null)for(var i=0;i<o.length;i++)L0(o[i])&&(r+=Dd(a)+":"+Ri(a,o[i])+";");else{var l=Ya(t,e,o);switch(a){case"animation":case"animationName":{r+=Dd(a)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error($D),r+=a+"{"+l+"}"}}}}return r}var W0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,z0;process.env.NODE_ENV!=="production"&&(z0=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var on,H0=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var s=!0,a="";on=void 0;var o=e[0];o==null||o.raw===void 0?(s=!1,a+=Ya(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(A0),a+=o[0]);for(var i=1;i<e.length;i++)a+=Ya(r,n,e[i]),s&&(process.env.NODE_ENV!=="production"&&o[i]===void 0&&console.error(A0),a+=o[i]);var l;process.env.NODE_ENV!=="production"&&(a=a.replace(z0,function(h){return l=h,""})),W0.lastIndex=0;for(var c="",d;(d=W0.exec(a))!==null;)c+="-"+d[1];var u=JD(a)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:a,map:l,next:on,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:a,next:on}},iM=typeof document<"u",Y0=function(e){return e()},lM=H.useInsertionEffect?H.useInsertionEffect:!1,V0=iM&&lM||Y0,U0=typeof document<"u",cM={}.hasOwnProperty,Va=_.createContext(typeof HTMLElement<"u"?j0({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Va.displayName="EmotionCacheContext"),Va.Provider;var Md=function(e){return _.forwardRef(function(n,r){var s=_.useContext(Va);return e(n,s,r)})};U0||(Md=function(e){return function(n){var r=_.useContext(Va);return r===null?(r=j0({key:"css"}),_.createElement(Va.Provider,{value:r},e(n,r))):e(n,r)}});var Ed=_.createContext({});process.env.NODE_ENV!=="production"&&(Ed.displayName="EmotionThemeContext");var X0="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",K0="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",dM=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;I0(n,r,s);var a=V0(function(){return ZD(n,r,s)});if(!U0&&a!==void 0){for(var o,i=r.name,l=r.next;l!==void 0;)i+=" "+l.name,l=l.next;return _.createElement("style",(o={},o["data-emotion"]=n.key+" "+i,o.dangerouslySetInnerHTML={__html:a},o.nonce=n.sheet.nonce,o))}return null},uM=Md(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var s=t[X0],a=[r],o="";typeof t.className=="string"?o=QD(e.registered,a,t.className):t.className!=null&&(o=t.className+" ");var i=H0(a,void 0,_.useContext(Ed));if(process.env.NODE_ENV!=="production"&&i.name.indexOf("-")===-1){var l=t[K0];l&&(i=H0([i,"label:"+l+";"]))}o+=e.key+"-"+i.name;var c={};for(var d in t)cM.call(t,d)&&d!=="css"&&d!==X0&&(process.env.NODE_ENV==="production"||d!==K0)&&(c[d]=t[d]);return c.ref=n,c.className=o,_.createElement(_.Fragment,null,_.createElement(dM,{cache:e,serialized:i,isStringTag:typeof s=="string"}),_.createElement(s,c))});process.env.NODE_ENV!=="production"&&(uM.displayName="EmotionCssPropInternal");var Pd=typeof document<"u";function fM(t,e,n){var r="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):r+=s+" "}),r}var G0=function(e,n,r){var s=e.key+"-"+n.name;(r===!1||Pd===!1&&e.compat!==void 0)&&e.registered[s]===void 0&&(e.registered[s]=n.styles)},hM=function(e,n,r){G0(e,n,r);var s=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var a="",o=n;do{var i=e.insert(n===o?"."+s:"",o,e.sheet,!0);!Pd&&i!==void 0&&(a+=i),o=o.next}while(o!==void 0);if(!Pd&&a.length!==0)return a}};function gM(t){for(var e=0,n,r=0,s=t.length;s>=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var mM={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},Q0=`You have illegal escape sequence in your template literal, most likely inside content's property value.
48
+ `+("css`"+l+"`"))}break}return n}function aM(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=Ya(t,e,n[s])+";";else for(var a in n){var o=n[a];if(typeof o!="object")R0(o)&&(r+=Dd(a)+":"+Ri(a,o)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(F0);if(Array.isArray(o)&&typeof o[0]=="string"&&e==null)for(var i=0;i<o.length;i++)R0(o[i])&&(r+=Dd(a)+":"+Ri(a,o[i])+";");else{var l=Ya(t,e,o);switch(a){case"animation":case"animationName":{r+=Dd(a)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(qD),r+=a+"{"+l+"}"}}}}return r}var B0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,W0;process.env.NODE_ENV!=="production"&&(W0=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var on,z0=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var s=!0,a="";on=void 0;var o=e[0];o==null||o.raw===void 0?(s=!1,a+=Ya(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(I0),a+=o[0]);for(var i=1;i<e.length;i++)a+=Ya(r,n,e[i]),s&&(process.env.NODE_ENV!=="production"&&o[i]===void 0&&console.error(I0),a+=o[i]);var l;process.env.NODE_ENV!=="production"&&(a=a.replace(W0,function(h){return l=h,""})),B0.lastIndex=0;for(var c="",d;(d=B0.exec(a))!==null;)c+="-"+d[1];var u=ZD(a)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:a,map:l,next:on,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:a,next:on}},oM=typeof document<"u",H0=function(e){return e()},iM=H.useInsertionEffect?H.useInsertionEffect:!1,Y0=oM&&iM||H0,V0=typeof document<"u",lM={}.hasOwnProperty,Va=_.createContext(typeof HTMLElement<"u"?N0({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Va.displayName="EmotionCacheContext"),Va.Provider;var Md=function(e){return _.forwardRef(function(n,r){var s=_.useContext(Va);return e(n,s,r)})};V0||(Md=function(e){return function(n){var r=_.useContext(Va);return r===null?(r=N0({key:"css"}),_.createElement(Va.Provider,{value:r},e(n,r))):e(n,r)}});var Ed=_.createContext({});process.env.NODE_ENV!=="production"&&(Ed.displayName="EmotionThemeContext");var U0="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",X0="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",cM=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;j0(n,r,s);var a=Y0(function(){return QD(n,r,s)});if(!V0&&a!==void 0){for(var o,i=r.name,l=r.next;l!==void 0;)i+=" "+l.name,l=l.next;return _.createElement("style",(o={},o["data-emotion"]=n.key+" "+i,o.dangerouslySetInnerHTML={__html:a},o.nonce=n.sheet.nonce,o))}return null},dM=Md(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var s=t[U0],a=[r],o="";typeof t.className=="string"?o=KD(e.registered,a,t.className):t.className!=null&&(o=t.className+" ");var i=z0(a,void 0,_.useContext(Ed));if(process.env.NODE_ENV!=="production"&&i.name.indexOf("-")===-1){var l=t[X0];l&&(i=z0([i,"label:"+l+";"]))}o+=e.key+"-"+i.name;var c={};for(var d in t)lM.call(t,d)&&d!=="css"&&d!==U0&&(process.env.NODE_ENV==="production"||d!==X0)&&(c[d]=t[d]);return c.ref=n,c.className=o,_.createElement(_.Fragment,null,_.createElement(cM,{cache:e,serialized:i,isStringTag:typeof s=="string"}),_.createElement(s,c))});process.env.NODE_ENV!=="production"&&(dM.displayName="EmotionCssPropInternal");var Pd=typeof document<"u";function uM(t,e,n){var r="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):r+=s+" "}),r}var G0=function(e,n,r){var s=e.key+"-"+n.name;(r===!1||Pd===!1&&e.compat!==void 0)&&e.registered[s]===void 0&&(e.registered[s]=n.styles)},fM=function(e,n,r){G0(e,n,r);var s=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var a="",o=n;do{var i=e.insert(n===o?"."+s:"",o,e.sheet,!0);!Pd&&i!==void 0&&(a+=i),o=o.next}while(o!==void 0);if(!Pd&&a.length!==0)return a}};function hM(t){for(var e=0,n,r=0,s=t.length;s>=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var gM={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},K0=`You have illegal escape sequence in your template literal, most likely inside content's property value.
49
49
  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';".
50
50
  You can read more about this here:
51
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,pM="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",bM=/[A-Z]|^ms/g,Z0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Td=function(e){return e.charCodeAt(1)===45},J0=function(e){return e!=null&&typeof e!="boolean"},Nd=Ci(function(t){return Td(t)?t:t.replace(bM,"-$&").toLowerCase()}),Li=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Z0,function(r,s,a){return ln={name:s,styles:a,next:ln},s})}return mM[e]!==1&&!Td(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var yM=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,wM=["normal","none","initial","inherit","unset"],vM=Li,xM=/^-ms-/,kM=/-(.)/g,q0={};Li=function(e,n){if(e==="content"&&(typeof n!="string"||wM.indexOf(n)===-1&&!yM.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=vM(e,n);return r!==""&&!Td(e)&&e.indexOf("-")!==-1&&q0[e]===void 0&&(q0[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(xM,"ms-").replace(kM,function(s,a){return a.toUpperCase()})+"?")),r}}var $0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ua(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error($0);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ln={name:n.name,styles:n.styles,next:ln},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ln={name:r.name,styles:r.styles,next:ln},r=r.next;var s=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(s+=n.map),s}return _M(t,e,n)}case"function":{if(t!==void 0){var a=ln,o=n(t);return ln=a,Ua(t,e,o)}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 i=[],l=n.replace(Z0,function(d,u,h){var g="animation"+i.length;return i.push("const "+g+" = keyframes`"+h.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+g+"}"});i.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(i,["`"+l+"`"]).join(`
51
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,mM="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",pM=/[A-Z]|^ms/g,Q0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Td=function(e){return e.charCodeAt(1)===45},Z0=function(e){return e!=null&&typeof e!="boolean"},Nd=Ci(function(t){return Td(t)?t:t.replace(pM,"-$&").toLowerCase()}),Li=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Q0,function(r,s,a){return ln={name:s,styles:a,next:ln},s})}return gM[e]!==1&&!Td(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var bM=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,yM=["normal","none","initial","inherit","unset"],wM=Li,vM=/^-ms-/,xM=/-(.)/g,J0={};Li=function(e,n){if(e==="content"&&(typeof n!="string"||yM.indexOf(n)===-1&&!bM.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=wM(e,n);return r!==""&&!Td(e)&&e.indexOf("-")!==-1&&J0[e]===void 0&&(J0[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(vM,"ms-").replace(xM,function(s,a){return a.toUpperCase()})+"?")),r}}var q0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ua(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(q0);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ln={name:n.name,styles:n.styles,next:ln},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ln={name:r.name,styles:r.styles,next:ln},r=r.next;var s=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(s+=n.map),s}return kM(t,e,n)}case"function":{if(t!==void 0){var a=ln,o=n(t);return ln=a,Ua(t,e,o)}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 i=[],l=n.replace(Q0,function(d,u,h){var g="animation"+i.length;return i.push("const "+g+" = keyframes`"+h.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+g+"}"});i.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(i,["`"+l+"`"]).join(`
52
52
  `)+`
53
53
 
54
54
  You should wrap it with \`css\` like this:
55
55
 
56
- `+("css`"+l+"`"))}break}if(e==null)return n;var c=e[n];return c!==void 0?c:n}function _M(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=Ua(t,e,n[s])+";";else for(var a in n){var o=n[a];if(typeof o!="object")e!=null&&e[o]!==void 0?r+=a+"{"+e[o]+"}":J0(o)&&(r+=Nd(a)+":"+Li(a,o)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error($0);if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var i=0;i<o.length;i++)J0(o[i])&&(r+=Nd(a)+":"+Li(a,o[i])+";");else{var l=Ua(t,e,o);switch(a){case"animation":case"animationName":{r+=Nd(a)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(pM),r+=a+"{"+l+"}"}}}}return r}var eb=/label:\s*([^\s;\n{]+)\s*(;|$)/g,tb;process.env.NODE_ENV!=="production"&&(tb=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ln,SM=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var s=!0,a="";ln=void 0;var o=e[0];o==null||o.raw===void 0?(s=!1,a+=Ua(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(Q0),a+=o[0]);for(var i=1;i<e.length;i++)a+=Ua(r,n,e[i]),s&&(process.env.NODE_ENV!=="production"&&o[i]===void 0&&console.error(Q0),a+=o[i]);var l;process.env.NODE_ENV!=="production"&&(a=a.replace(tb,function(h){return l=h,""})),eb.lastIndex=0;for(var c="",d;(d=eb.exec(a))!==null;)c+="-"+d[1];var u=gM(a)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:a,map:l,next:ln,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:a,next:ln}},OM=bD,CM=function(e){return e!=="theme"},nb=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?OM:CM},rb=function(e,n,r){var s;if(n){var a=n.shouldForwardProp;s=e.__emotion_forwardProp&&a?function(o){return e.__emotion_forwardProp(o)&&a(o)}:a}return typeof s!="function"&&r&&(s=e.__emotion_forwardProp),s},sb=`You have illegal escape sequence in your template literal, most likely inside content's property value.
56
+ `+("css`"+l+"`"))}break}if(e==null)return n;var c=e[n];return c!==void 0?c:n}function kM(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=Ua(t,e,n[s])+";";else for(var a in n){var o=n[a];if(typeof o!="object")e!=null&&e[o]!==void 0?r+=a+"{"+e[o]+"}":Z0(o)&&(r+=Nd(a)+":"+Li(a,o)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(q0);if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var i=0;i<o.length;i++)Z0(o[i])&&(r+=Nd(a)+":"+Li(a,o[i])+";");else{var l=Ua(t,e,o);switch(a){case"animation":case"animationName":{r+=Nd(a)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(mM),r+=a+"{"+l+"}"}}}}return r}var $0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,eb;process.env.NODE_ENV!=="production"&&(eb=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ln,_M=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var s=!0,a="";ln=void 0;var o=e[0];o==null||o.raw===void 0?(s=!1,a+=Ua(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(K0),a+=o[0]);for(var i=1;i<e.length;i++)a+=Ua(r,n,e[i]),s&&(process.env.NODE_ENV!=="production"&&o[i]===void 0&&console.error(K0),a+=o[i]);var l;process.env.NODE_ENV!=="production"&&(a=a.replace(eb,function(h){return l=h,""})),$0.lastIndex=0;for(var c="",d;(d=$0.exec(a))!==null;)c+="-"+d[1];var u=hM(a)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:a,map:l,next:ln,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:a,next:ln}},SM=pD,OM=function(e){return e!=="theme"},tb=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?SM:OM},nb=function(e,n,r){var s;if(n){var a=n.shouldForwardProp;s=e.__emotion_forwardProp&&a?function(o){return e.__emotion_forwardProp(o)&&a(o)}:a}return typeof s!="function"&&r&&(s=e.__emotion_forwardProp),s},rb=`You have illegal escape sequence in your template literal, most likely inside content's property value.
57
57
  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';".
58
58
  You can read more about this here:
59
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,DM=typeof document<"u",MM=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;G0(n,r,s);var a=V0(function(){return hM(n,r,s)});if(!DM&&a!==void 0){for(var o,i=r.name,l=r.next;l!==void 0;)i+=" "+l.name,l=l.next;return _.createElement("style",(o={},o["data-emotion"]=n.key+" "+i,o.dangerouslySetInnerHTML={__html:a},o.nonce=n.sheet.nonce,o))}return null},EM=function t(e,n){if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
60
- You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emotion_base||e,a,o;n!==void 0&&(a=n.label,o=n.target);var i=rb(e,n,r),l=i||nb(s),c=!l("as");return function(){var d=arguments,u=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&u.push("label:"+a+";"),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(sb),u.push(d[0][0]);for(var h=d.length,g=1;g<h;g++)process.env.NODE_ENV!=="production"&&d[0][g]===void 0&&console.error(sb),u.push(d[g],d[0][g])}var m=Md(function(p,b,y){var v=c&&p.as||s,k="",x=[],w=p;if(p.theme==null){w={};for(var S in p)w[S]=p[S];w.theme=_.useContext(Ed)}typeof p.className=="string"?k=fM(b.registered,x,p.className):p.className!=null&&(k=p.className+" ");var N=SM(u.concat(x),b.registered,w);k+=b.key+"-"+N.name,o!==void 0&&(k+=" "+o);var M=c&&i===void 0?nb(v):l,T={};for(var P in p)c&&P==="as"||M(P)&&(T[P]=p[P]);return T.className=k,T.ref=y,_.createElement(_.Fragment,null,_.createElement(MM,{cache:b,serialized:N,isStringTag:typeof v=="string"}),_.createElement(v,T))});return m.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",m.defaultProps=e.defaultProps,m.__emotion_real=m,m.__emotion_base=s,m.__emotion_styles=u,m.__emotion_forwardProp=i,Object.defineProperty(m,"toString",{value:function(){return o===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(p,b){return t(p,yd({},n,b,{shouldForwardProp:rb(m,b,!0)})).apply(void 0,u)},m}},PM=["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=EM.bind();PM.forEach(function(t){dt[t]=dt(t)});var ab={exports:{}};/*!
59
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,CM=typeof document<"u",DM=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;G0(n,r,s);var a=Y0(function(){return fM(n,r,s)});if(!CM&&a!==void 0){for(var o,i=r.name,l=r.next;l!==void 0;)i+=" "+l.name,l=l.next;return _.createElement("style",(o={},o["data-emotion"]=n.key+" "+i,o.dangerouslySetInnerHTML={__html:a},o.nonce=n.sheet.nonce,o))}return null},MM=function t(e,n){if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
60
+ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emotion_base||e,a,o;n!==void 0&&(a=n.label,o=n.target);var i=nb(e,n,r),l=i||tb(s),c=!l("as");return function(){var d=arguments,u=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&u.push("label:"+a+";"),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(rb),u.push(d[0][0]);for(var h=d.length,g=1;g<h;g++)process.env.NODE_ENV!=="production"&&d[0][g]===void 0&&console.error(rb),u.push(d[g],d[0][g])}var m=Md(function(p,b,y){var v=c&&p.as||s,k="",x=[],w=p;if(p.theme==null){w={};for(var S in p)w[S]=p[S];w.theme=_.useContext(Ed)}typeof p.className=="string"?k=uM(b.registered,x,p.className):p.className!=null&&(k=p.className+" ");var N=_M(u.concat(x),b.registered,w);k+=b.key+"-"+N.name,o!==void 0&&(k+=" "+o);var M=c&&i===void 0?tb(v):l,T={};for(var P in p)c&&P==="as"||M(P)&&(T[P]=p[P]);return T.className=k,T.ref=y,_.createElement(_.Fragment,null,_.createElement(DM,{cache:b,serialized:N,isStringTag:typeof v=="string"}),_.createElement(v,T))});return m.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",m.defaultProps=e.defaultProps,m.__emotion_real=m,m.__emotion_base=s,m.__emotion_styles=u,m.__emotion_forwardProp=i,Object.defineProperty(m,"toString",{value:function(){return o===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(p,b){return t(p,yd({},n,b,{shouldForwardProp:nb(m,b,!0)})).apply(void 0,u)},m}},EM=["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=MM.bind();EM.forEach(function(t){dt[t]=dt(t)});var sb={exports:{}};/*!
61
61
  Copyright (c) 2018 Jed Watson.
62
62
  Licensed under the MIT License (MIT), see
63
63
  http://jedwatson.github.io/classnames
64
- */(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],s=0;s<arguments.length;s++){var a=arguments[s];if(a){var o=typeof a;if(o==="string"||o==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var i=n.apply(null,a);i&&r.push(i)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var l in a)e.call(a,l)&&a[l]&&r.push(l)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(ab);var lt=ab.exports,TM=_.createContext(void 0),NM=function(){var t=_.useContext(TM);return t},jM=function(t){var e=_.useState(!!t&&typeof window<"u"&&window.matchMedia(t).matches),n=e[0],r=e[1];return _.useEffect(function(){if(t){var s=window.matchMedia(t),a=function(){s.matches!==n&&r(s.matches)};return a(),s.addEventListener("change",a),function(){return s.removeEventListener("change",a)}}},[n,t]),n},Ue={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"},xe={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"},IM=dt.div(ob||(ob=vt([`
64
+ */(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],s=0;s<arguments.length;s++){var a=arguments[s];if(a){var o=typeof a;if(o==="string"||o==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var i=n.apply(null,a);i&&r.push(i)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var l in a)e.call(a,l)&&a[l]&&r.push(l)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(sb);var lt=sb.exports,PM=_.createContext(void 0),TM=function(){var t=_.useContext(PM);return t},NM=function(t){var e=_.useState(!!t&&typeof window<"u"&&window.matchMedia(t).matches),n=e[0],r=e[1];return _.useEffect(function(){if(t){var s=window.matchMedia(t),a=function(){s.matches!==n&&r(s.matches)};return a(),s.addEventListener("change",a),function(){return s.removeEventListener("change",a)}}},[n,t]),n},Ue={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"},xe={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"},jM=dt.div(ab||(ab=vt([`
65
65
  position: fixed;
66
66
  top: 0px;
67
67
  right: 0px;
@@ -77,7 +77,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
77
77
  left: 0px;
78
78
  z-index: 1;
79
79
  background-color: rgb(0, 0, 0, 0.3);
80
- `]))),ob,AM={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",always:"always",all:"all"},RM=dt.aside(ib||(ib=vt([`
80
+ `]))),ab,IM={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",always:"always",all:"all"},AM=dt.aside(ob||(ob=vt([`
81
81
  position: relative;
82
82
  border-right-width: 1px;
83
83
  border-right-style: solid;
@@ -185,7 +185,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
185
185
  }
186
186
 
187
187
  `,`
188
- `])),function(t){var e=t.transitionDuration;return"width, left, right, ".concat(e,"ms")},function(t){var e=t.width;return e},function(t){var e=t.width;return e},Ue.collapsed,function(t){var e=t.collapsedWidth;return e},function(t){var e=t.collapsedWidth;return e},Ue.rtl,Ue.broken,function(t){var e=t.rtl,n=t.width;return e?"":"left: -".concat(n,";")},Ue.collapsed,function(t){var e=t.rtl,n=t.collapsedWidth;return e?"":"left: -".concat(n,"; ")},Ue.toggled,function(t){var e=t.rtl;return e?"":"left: 0;"},Ue.rtl,function(t){var e=t.width;return e},Ue.collapsed,function(t){var e=t.collapsedWidth;return e},Ue.toggled,function(t){var e=t.rootStyles;return e}),LM=dt.div(lb||(lb=vt([`
188
+ `])),function(t){var e=t.transitionDuration;return"width, left, right, ".concat(e,"ms")},function(t){var e=t.width;return e},function(t){var e=t.width;return e},Ue.collapsed,function(t){var e=t.collapsedWidth;return e},function(t){var e=t.collapsedWidth;return e},Ue.rtl,Ue.broken,function(t){var e=t.rtl,n=t.width;return e?"":"left: -".concat(n,";")},Ue.collapsed,function(t){var e=t.rtl,n=t.collapsedWidth;return e?"":"left: -".concat(n,"; ")},Ue.toggled,function(t){var e=t.rtl;return e?"":"left: 0;"},Ue.rtl,function(t){var e=t.width;return e},Ue.collapsed,function(t){var e=t.collapsedWidth;return e},Ue.toggled,function(t){var e=t.rootStyles;return e}),RM=dt.div(ib||(ib=vt([`
189
189
  position: relative;
190
190
  height: 100%;
191
191
  overflow-y: auto;
@@ -201,7 +201,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
201
201
  z-index: 3;
202
202
 
203
203
  `,`
204
- `])),function(t){var e=t.backgroundColor;return e?"background-color:".concat(e,";"):""}),FM=dt.img(cb||(cb=vt([`
204
+ `])),function(t){var e=t.backgroundColor;return e?"background-color:".concat(e,";"):""}),LM=dt.img(lb||(lb=vt([`
205
205
  &.`,` {
206
206
  width: 100%;
207
207
  height: 100%;
@@ -223,7 +223,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
223
223
  top: 0;
224
224
  z-index: 2;
225
225
  }
226
- `])),Ue.image),Fi=_.createContext({collapsed:!1,toggled:!1,rtl:!1,transitionDuration:300}),BM=_.forwardRef(function(t,e){var n,r=t.collapsed,s=t.toggled,a=t.onBackdropClick,o=t.onBreakPoint,i=t.width,l=i===void 0?"250px":i,c=t.collapsedWidth,d=c===void 0?"80px":c,u=t.defaultCollapsed,h=t.className,g=t.children,m=t.breakPoint,p=t.customBreakPoint,b=t.backgroundColor,y=b===void 0?"rgb(249, 249, 249, 0.7)":b,v=t.transitionDuration,k=v===void 0?300:v,x=t.image,w=t.rtl,S=t.rootStyles,N=zr(t,["collapsed","toggled","onBackdropClick","onBreakPoint","width","collapsedWidth","defaultCollapsed","className","children","breakPoint","customBreakPoint","backgroundColor","transitionDuration","image","rtl","rootStyles"]),M=function(){if(p)return"(max-width: ".concat(p,")");if(m)return["xs","sm","md","lg","xl","xxl"].includes(m)?"(max-width: ".concat(AM[m],")"):m==="always"||m==="all"?(m==="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(m,")")},T=_.useRef();T.current=function(K){o==null||o(K)};var P=jM(M()),z=_.useState(!1),F=z[0],O=z[1],C=NM(),E=r??(!F&&u?!0:C==null?void 0:C.collapsed),W=s??(C==null?void 0:C.toggled),U=function(){a==null||a(),C==null||C.updateSidebarState({toggled:!1})};return _.useEffect(function(){var K;(K=T.current)===null||K===void 0||K.call(T,P)},[P]),_.useEffect(function(){C==null||C.updateSidebarState({broken:P,rtl:w,transitionDuration:k})},[P,C==null?void 0:C.updateSidebarState,w,k]),_.useEffect(function(){F||(C==null||C.updateSidebarState({collapsed:u}),O(!0))},[u,F,C==null?void 0:C.updateSidebarState]),_.createElement(Fi.Provider,{value:{collapsed:E,toggled:W,rtl:w,transitionDuration:k}},_.createElement(RM,Bt({ref:e,"data-testid":"".concat(Ue.root,"-test-id"),rtl:w,rootStyles:S,width:l,collapsedWidth:d,transitionDuration:k,className:lt(Ue.root,(n={},n[Ue.collapsed]=E,n[Ue.toggled]=W,n[Ue.broken]=P,n[Ue.rtl]=w,n),h)},N),_.createElement(LM,{"data-testid":"".concat(Ue.container,"-test-id"),className:Ue.container,backgroundColor:y},g),x&&_.createElement(FM,{"data-testid":"".concat(Ue.image,"-test-id"),src:x,alt:"sidebar background",className:Ue.image}),P&&W&&_.createElement(IM,{"data-testid":"".concat(Ue.backdrop,"-test-id"),role:"button",tabIndex:0,"aria-label":"backdrop",onClick:U,onKeyPress:U,className:Ue.backdrop})))}),ib,lb,cb,db=dt.ul(ub||(ub=vt([`
226
+ `])),Ue.image),Fi=_.createContext({collapsed:!1,toggled:!1,rtl:!1,transitionDuration:300}),FM=_.forwardRef(function(t,e){var n,r=t.collapsed,s=t.toggled,a=t.onBackdropClick,o=t.onBreakPoint,i=t.width,l=i===void 0?"250px":i,c=t.collapsedWidth,d=c===void 0?"80px":c,u=t.defaultCollapsed,h=t.className,g=t.children,m=t.breakPoint,p=t.customBreakPoint,b=t.backgroundColor,y=b===void 0?"rgb(249, 249, 249, 0.7)":b,v=t.transitionDuration,k=v===void 0?300:v,x=t.image,w=t.rtl,S=t.rootStyles,N=zr(t,["collapsed","toggled","onBackdropClick","onBreakPoint","width","collapsedWidth","defaultCollapsed","className","children","breakPoint","customBreakPoint","backgroundColor","transitionDuration","image","rtl","rootStyles"]),M=function(){if(p)return"(max-width: ".concat(p,")");if(m)return["xs","sm","md","lg","xl","xxl"].includes(m)?"(max-width: ".concat(IM[m],")"):m==="always"||m==="all"?(m==="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(m,")")},T=_.useRef();T.current=function(G){o==null||o(G)};var P=NM(M()),z=_.useState(!1),F=z[0],O=z[1],C=TM(),E=r??(!F&&u?!0:C==null?void 0:C.collapsed),W=s??(C==null?void 0:C.toggled),U=function(){a==null||a(),C==null||C.updateSidebarState({toggled:!1})};return _.useEffect(function(){var G;(G=T.current)===null||G===void 0||G.call(T,P)},[P]),_.useEffect(function(){C==null||C.updateSidebarState({broken:P,rtl:w,transitionDuration:k})},[P,C==null?void 0:C.updateSidebarState,w,k]),_.useEffect(function(){F||(C==null||C.updateSidebarState({collapsed:u}),O(!0))},[u,F,C==null?void 0:C.updateSidebarState]),_.createElement(Fi.Provider,{value:{collapsed:E,toggled:W,rtl:w,transitionDuration:k}},_.createElement(AM,Bt({ref:e,"data-testid":"".concat(Ue.root,"-test-id"),rtl:w,rootStyles:S,width:l,collapsedWidth:d,transitionDuration:k,className:lt(Ue.root,(n={},n[Ue.collapsed]=E,n[Ue.toggled]=W,n[Ue.broken]=P,n[Ue.rtl]=w,n),h)},N),_.createElement(RM,{"data-testid":"".concat(Ue.container,"-test-id"),className:Ue.container,backgroundColor:y},g),x&&_.createElement(LM,{"data-testid":"".concat(Ue.image,"-test-id"),src:x,alt:"sidebar background",className:Ue.image}),P&&W&&_.createElement(jM,{"data-testid":"".concat(Ue.backdrop,"-test-id"),role:"button",tabIndex:0,"aria-label":"backdrop",onClick:U,onKeyPress:U,className:Ue.backdrop})))}),ob,ib,lb,cb=dt.ul(db||(db=vt([`
227
227
  list-style-type: none;
228
228
  padding: 0;
229
229
  margin: 0;
@@ -231,7 +231,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
231
231
  list-style-type: none;
232
232
  padding: 0;
233
233
  margin: 0;
234
- `]))),ub,WM=dt.nav(hb||(hb=vt([`
234
+ `]))),db,BM=dt.nav(fb||(fb=vt([`
235
235
  &.`,` {
236
236
  `,`
237
237
  }
@@ -239,7 +239,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
239
239
  &.`,` {
240
240
  `,`
241
241
  }
242
- `])),xe.root,function(t){var e=t.rootStyles;return e}),fb=_.createContext(void 0),Bi=_.createContext(0),zM=function(t,e){var n=t.children,r=t.className,s=t.transitionDuration,a=s===void 0?300:s,o=t.closeOnClick,i=o===void 0?!1:o,l=t.rootStyles,c=t.menuItemStyles,d=t.renderExpandIcon,u=zr(t,["children","className","transitionDuration","closeOnClick","rootStyles","menuItemStyles","renderExpandIcon"]),h=_.useMemo(function(){return{transitionDuration:a,closeOnClick:i,menuItemStyles:c,renderExpandIcon:d}},[a,i,c,d]);return _.createElement(fb.Provider,{value:h},_.createElement(Bi.Provider,{value:0},_.createElement(WM,Bt({ref:e,className:lt(xe.root,r),rootStyles:l},u),_.createElement(db,null,n))))},HM=_.forwardRef(zM),hb,jd=function(){var t=_.useContext(fb);if(t===void 0)throw new Error("Menu Component is required!");return t},YM=dt.div(gb||(gb=vt([`
242
+ `])),xe.root,function(t){var e=t.rootStyles;return e}),ub=_.createContext(void 0),Bi=_.createContext(0),WM=function(t,e){var n=t.children,r=t.className,s=t.transitionDuration,a=s===void 0?300:s,o=t.closeOnClick,i=o===void 0?!1:o,l=t.rootStyles,c=t.menuItemStyles,d=t.renderExpandIcon,u=zr(t,["children","className","transitionDuration","closeOnClick","rootStyles","menuItemStyles","renderExpandIcon"]),h=_.useMemo(function(){return{transitionDuration:a,closeOnClick:i,menuItemStyles:c,renderExpandIcon:d}},[a,i,c,d]);return _.createElement(ub.Provider,{value:h},_.createElement(Bi.Provider,{value:0},_.createElement(BM,Bt({ref:e,className:lt(xe.root,r),rootStyles:l},u),_.createElement(cb,null,n))))},zM=_.forwardRef(WM),fb,jd=function(){var t=_.useContext(ub);if(t===void 0)throw new Error("Menu Component is required!");return t},HM=dt.div(hb||(hb=vt([`
243
243
  height: 0px;
244
244
  overflow: hidden;
245
245
  z-index: 999;
@@ -284,7 +284,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
284
284
  `):`
285
285
  position: static!important;
286
286
  transform: none!important;
287
- `},function(t){var e=t.rootStyles;return e}),VM=function(t,e){var n=t.children,r=t.open,s=t.openWhenCollapsed,a=t.firstLevel,o=t.collapsed,i=t.defaultOpen,l=zr(t,["children","open","openWhenCollapsed","firstLevel","collapsed","defaultOpen"]),c=jd().transitionDuration,d=_.useState(i)[0];return _.createElement(YM,Bt({"data-testid":"".concat(xe.subMenuContent,"-test-id"),ref:e,firstLevel:a,collapsed:o,open:r,openWhenCollapsed:s,transitionDuration:c,defaultOpen:d},l),_.createElement(db,null,n))},UM=_.forwardRef(VM),gb,mb=dt.span(pb||(pb=vt([`
287
+ `},function(t){var e=t.rootStyles;return e}),YM=function(t,e){var n=t.children,r=t.open,s=t.openWhenCollapsed,a=t.firstLevel,o=t.collapsed,i=t.defaultOpen,l=zr(t,["children","open","openWhenCollapsed","firstLevel","collapsed","defaultOpen"]),c=jd().transitionDuration,d=_.useState(i)[0];return _.createElement(HM,Bt({"data-testid":"".concat(xe.subMenuContent,"-test-id"),ref:e,firstLevel:a,collapsed:o,open:r,openWhenCollapsed:s,transitionDuration:c,defaultOpen:d},l),_.createElement(cb,null,n))},VM=_.forwardRef(YM),hb,gb=dt.span(mb||(mb=vt([`
288
288
  flex-grow: 1;
289
289
  overflow: hidden;
290
290
  text-overflow: ellipsis;
@@ -298,7 +298,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
298
298
  white-space: nowrap;
299
299
 
300
300
  `,`;
301
- `])),function(t){var e=t.rootStyles;return e}),pb,bb=dt.span(yb||(yb=vt([`
301
+ `])),function(t){var e=t.rootStyles;return e}),mb,pb=dt.span(bb||(bb=vt([`
302
302
  width: 35px;
303
303
  min-width: 35px;
304
304
  height: 35px;
@@ -328,7 +328,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
328
328
  `,`
329
329
 
330
330
  `,`;
331
- `])),function(t){var e=t.rtl;return e?"margin-left: 10px;":"margin-right: 10px;"},function(t){var e=t.rootStyles;return e}),yb,wb=dt.span(vb||(vb=vt([`
331
+ `])),function(t){var e=t.rtl;return e?"margin-left: 10px;":"margin-right: 10px;"},function(t){var e=t.rootStyles;return e}),bb,yb=dt.span(wb||(wb=vt([`
332
332
  `,`
333
333
  opacity: `,`;
334
334
  transition: opacity `,`ms;
@@ -340,7 +340,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
340
340
  transition: opacity `,`ms;
341
341
 
342
342
  `,`;
343
- `])),function(t){var e=t.rtl;return e?"margin-left: 5px;":"margin-right: 5px;"},function(t){var e=t.firstLevel,n=t.collapsed;return e&&n?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),vb,xb=dt.span(kb||(kb=vt([`
343
+ `])),function(t){var e=t.rtl;return e?"margin-left: 5px;":"margin-right: 5px;"},function(t){var e=t.firstLevel,n=t.collapsed;return e&&n?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),wb,vb=dt.span(xb||(xb=vt([`
344
344
  margin-right: 5px;
345
345
  margin-left: 5px;
346
346
  opacity: `,`;
@@ -354,7 +354,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
354
354
  transition: opacity `,`ms;
355
355
 
356
356
  `,`;
357
- `])),function(t){var e=t.firstLevel,n=t.collapsed;return e&&n?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),kb,XM=dt.span(_b||(_b=vt([`
357
+ `])),function(t){var e=t.firstLevel,n=t.collapsed;return e&&n?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),xb,UM=dt.span(kb||(kb=vt([`
358
358
  `,`
359
359
 
360
360
  `,`;
@@ -368,7 +368,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
368
368
  top: 50%;
369
369
  transform: translateY(-50%);
370
370
 
371
- `)},function(t){var e=t.rootStyles;return e}),KM=dt.span(Sb||(Sb=vt([`
371
+ `)},function(t){var e=t.rootStyles;return e}),XM=dt.span(_b||(_b=vt([`
372
372
  display: inline-block;
373
373
  transition: transform 0.3s;
374
374
  `,`
@@ -389,7 +389,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
389
389
  border-top: 2px solid currentcolor;
390
390
  `:` border-right: 2px solid currentcolor;
391
391
  border-bottom: 2px solid currentcolor;
392
- `},function(t){var e=t.open,n=t.rtl;return e?n?"-135deg":"45deg":"-45deg"}),GM=dt.span(Ob||(Ob=vt([`
392
+ `},function(t){var e=t.open,n=t.rtl;return e?n?"-135deg":"45deg":"-45deg"}),GM=dt.span(Sb||(Sb=vt([`
393
393
  width: 5px;
394
394
  height: 5px;
395
395
  background-color: currentcolor;
@@ -401,11 +401,11 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
401
401
  background-color: currentcolor;
402
402
  border-radius: 50%;
403
403
  display: inline-block;
404
- `]))),_b,Sb,Ob,jt="top",$t="bottom",en="right",It="left",Wi="auto",Xa=[jt,$t,en,It],Ps="start",Ka="end",QM="clippingParents",Cb="viewport",Ga="popper",ZM="reference",Db=Xa.reduce(function(t,e){return t.concat([e+"-"+Ps,e+"-"+Ka])},[]),Mb=[].concat(Xa,[Wi]).reduce(function(t,e){return t.concat([e,e+"-"+Ps,e+"-"+Ka])},[]),JM="beforeRead",qM="read",$M="afterRead",eE="beforeMain",tE="main",nE="afterMain",rE="beforeWrite",sE="write",aE="afterWrite",Id=[JM,qM,$M,eE,tE,nE,rE,sE,aE];function Sn(t){return t?(t.nodeName||"").toLowerCase():null}function tn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Yr(t){var e=tn(t).Element;return t instanceof e||t instanceof Element}function zt(t){var e=tn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Ad(t){if(typeof ShadowRoot>"u")return!1;var e=tn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function oE(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},s=e.attributes[n]||{},a=e.elements[n];!zt(a)||!Sn(a)||(Object.assign(a.style,r),Object.keys(s).forEach(function(o){var i=s[o];i===!1?a.removeAttribute(o):a.setAttribute(o,i===!0?"":i)}))})}function iE(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var s=e.elements[r],a=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),i=o.reduce(function(l,c){return l[c]="",l},{});!zt(s)||!Sn(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(l){s.removeAttribute(l)}))})}}var lE={name:"applyStyles",enabled:!0,phase:"write",fn:oE,effect:iE,requires:["computeStyles"]};function cn(t){return t.split("-")[0]}var Vr=Math.max,zi=Math.min,Ts=Math.round;function Rd(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Eb(){return!/^((?!chrome|android).)*safari/i.test(Rd())}function Ns(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),s=1,a=1;e&&zt(t)&&(s=t.offsetWidth>0&&Ts(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Ts(r.height)/t.offsetHeight||1);var o=Yr(t)?tn(t):window,i=o.visualViewport,l=!Eb()&&n,c=(r.left+(l&&i?i.offsetLeft:0))/s,d=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/s,h=r.height/a;return{width:u,height:h,top:d,right:c+u,bottom:d+h,left:c,x:c,y:d}}function Ld(t){var e=Ns(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Pb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Ad(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dn(t){return tn(t).getComputedStyle(t)}function cE(t){return["table","td","th"].indexOf(Sn(t))>=0}function hr(t){return((Yr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Hi(t){return Sn(t)==="html"?t:t.assignedSlot||t.parentNode||(Ad(t)?t.host:null)||hr(t)}function Tb(t){return!zt(t)||dn(t).position==="fixed"?null:t.offsetParent}function dE(t){var e=/firefox/i.test(Rd()),n=/Trident/i.test(Rd());if(n&&zt(t)){var r=dn(t);if(r.position==="fixed")return null}var s=Hi(t);for(Ad(s)&&(s=s.host);zt(s)&&["html","body"].indexOf(Sn(s))<0;){var a=dn(s);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return s;s=s.parentNode}return null}function Qa(t){for(var e=tn(t),n=Tb(t);n&&cE(n)&&dn(n).position==="static";)n=Tb(n);return n&&(Sn(n)==="html"||Sn(n)==="body"&&dn(n).position==="static")?e:n||dE(t)||e}function Fd(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Za(t,e,n){return Vr(t,zi(e,n))}function uE(t,e,n){var r=Za(t,e,n);return r>n?n:r}function Nb(){return{top:0,right:0,bottom:0,left:0}}function jb(t){return Object.assign({},Nb(),t)}function Ib(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var fE=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,jb(typeof e!="number"?e:Ib(e,Xa))};function hE(t){var e,n=t.state,r=t.name,s=t.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,i=cn(n.placement),l=Fd(i),c=[It,en].indexOf(i)>=0,d=c?"height":"width";if(!(!a||!o)){var u=fE(s.padding,n),h=Ld(a),g=l==="y"?jt:It,m=l==="y"?$t:en,p=n.rects.reference[d]+n.rects.reference[l]-o[l]-n.rects.popper[d],b=o[l]-n.rects.reference[l],y=Qa(a),v=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,k=p/2-b/2,x=u[g],w=v-h[d]-u[m],S=v/2-h[d]/2+k,N=Za(x,S,w),M=l;n.modifiersData[r]=(e={},e[M]=N,e.centerOffset=N-S,e)}}function gE(t){var e=t.state,n=t.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;if(s!=null&&!(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s))){if(process.env.NODE_ENV!=="production"&&(zt(s)||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(" "))),!Pb(e.elements.popper,s)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=s}}var mE={name:"arrow",enabled:!0,phase:"main",fn:hE,effect:gE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function js(t){return t.split("-")[1]}var pE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bE(t){var e=t.x,n=t.y,r=window,s=r.devicePixelRatio||1;return{x:Ts(e*s)/s||0,y:Ts(n*s)/s||0}}function Ab(t){var e,n=t.popper,r=t.popperRect,s=t.placement,a=t.variation,o=t.offsets,i=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,h=o.x,g=h===void 0?0:h,m=o.y,p=m===void 0?0:m,b=typeof d=="function"?d({x:g,y:p}):{x:g,y:p};g=b.x,p=b.y;var y=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),k=It,x=jt,w=window;if(c){var S=Qa(n),N="clientHeight",M="clientWidth";if(S===tn(n)&&(S=hr(n),dn(S).position!=="static"&&i==="absolute"&&(N="scrollHeight",M="scrollWidth")),S=S,s===jt||(s===It||s===en)&&a===Ka){x=$t;var T=u&&S===w&&w.visualViewport?w.visualViewport.height:S[N];p-=T-r.height,p*=l?1:-1}if(s===It||(s===jt||s===$t)&&a===Ka){k=en;var P=u&&S===w&&w.visualViewport?w.visualViewport.width:S[M];g-=P-r.width,g*=l?1:-1}}var z=Object.assign({position:i},c&&pE),F=d===!0?bE({x:g,y:p}):{x:g,y:p};if(g=F.x,p=F.y,l){var O;return Object.assign({},z,(O={},O[x]=v?"0":"",O[k]=y?"0":"",O.transform=(w.devicePixelRatio||1)<=1?"translate("+g+"px, "+p+"px)":"translate3d("+g+"px, "+p+"px, 0)",O))}return Object.assign({},z,(e={},e[x]=v?p+"px":"",e[k]=y?g+"px":"",e.transform="",e))}function yE(t){var e=t.state,n=t.options,r=n.gpuAcceleration,s=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,i=n.roundOffsets,l=i===void 0?!0:i;if(process.env.NODE_ENV!=="production"){var c=dn(e.elements.popper).transitionProperty||"";o&&["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".',`
404
+ `]))),kb,_b,Sb,jt="top",$t="bottom",en="right",It="left",Wi="auto",Xa=[jt,$t,en,It],Ps="start",Ga="end",KM="clippingParents",Ob="viewport",Ka="popper",QM="reference",Cb=Xa.reduce(function(t,e){return t.concat([e+"-"+Ps,e+"-"+Ga])},[]),Db=[].concat(Xa,[Wi]).reduce(function(t,e){return t.concat([e,e+"-"+Ps,e+"-"+Ga])},[]),ZM="beforeRead",JM="read",qM="afterRead",$M="beforeMain",eE="main",tE="afterMain",nE="beforeWrite",rE="write",sE="afterWrite",Id=[ZM,JM,qM,$M,eE,tE,nE,rE,sE];function Sn(t){return t?(t.nodeName||"").toLowerCase():null}function tn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Yr(t){var e=tn(t).Element;return t instanceof e||t instanceof Element}function zt(t){var e=tn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Ad(t){if(typeof ShadowRoot>"u")return!1;var e=tn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function aE(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},s=e.attributes[n]||{},a=e.elements[n];!zt(a)||!Sn(a)||(Object.assign(a.style,r),Object.keys(s).forEach(function(o){var i=s[o];i===!1?a.removeAttribute(o):a.setAttribute(o,i===!0?"":i)}))})}function oE(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var s=e.elements[r],a=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),i=o.reduce(function(l,c){return l[c]="",l},{});!zt(s)||!Sn(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(l){s.removeAttribute(l)}))})}}var iE={name:"applyStyles",enabled:!0,phase:"write",fn:aE,effect:oE,requires:["computeStyles"]};function cn(t){return t.split("-")[0]}var Vr=Math.max,zi=Math.min,Ts=Math.round;function Rd(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Mb(){return!/^((?!chrome|android).)*safari/i.test(Rd())}function Ns(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),s=1,a=1;e&&zt(t)&&(s=t.offsetWidth>0&&Ts(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Ts(r.height)/t.offsetHeight||1);var o=Yr(t)?tn(t):window,i=o.visualViewport,l=!Mb()&&n,c=(r.left+(l&&i?i.offsetLeft:0))/s,d=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/s,h=r.height/a;return{width:u,height:h,top:d,right:c+u,bottom:d+h,left:c,x:c,y:d}}function Ld(t){var e=Ns(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Eb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Ad(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dn(t){return tn(t).getComputedStyle(t)}function lE(t){return["table","td","th"].indexOf(Sn(t))>=0}function hr(t){return((Yr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Hi(t){return Sn(t)==="html"?t:t.assignedSlot||t.parentNode||(Ad(t)?t.host:null)||hr(t)}function Pb(t){return!zt(t)||dn(t).position==="fixed"?null:t.offsetParent}function cE(t){var e=/firefox/i.test(Rd()),n=/Trident/i.test(Rd());if(n&&zt(t)){var r=dn(t);if(r.position==="fixed")return null}var s=Hi(t);for(Ad(s)&&(s=s.host);zt(s)&&["html","body"].indexOf(Sn(s))<0;){var a=dn(s);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return s;s=s.parentNode}return null}function Qa(t){for(var e=tn(t),n=Pb(t);n&&lE(n)&&dn(n).position==="static";)n=Pb(n);return n&&(Sn(n)==="html"||Sn(n)==="body"&&dn(n).position==="static")?e:n||cE(t)||e}function Fd(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Za(t,e,n){return Vr(t,zi(e,n))}function dE(t,e,n){var r=Za(t,e,n);return r>n?n:r}function Tb(){return{top:0,right:0,bottom:0,left:0}}function Nb(t){return Object.assign({},Tb(),t)}function jb(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var uE=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Nb(typeof e!="number"?e:jb(e,Xa))};function fE(t){var e,n=t.state,r=t.name,s=t.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,i=cn(n.placement),l=Fd(i),c=[It,en].indexOf(i)>=0,d=c?"height":"width";if(!(!a||!o)){var u=uE(s.padding,n),h=Ld(a),g=l==="y"?jt:It,m=l==="y"?$t:en,p=n.rects.reference[d]+n.rects.reference[l]-o[l]-n.rects.popper[d],b=o[l]-n.rects.reference[l],y=Qa(a),v=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,k=p/2-b/2,x=u[g],w=v-h[d]-u[m],S=v/2-h[d]/2+k,N=Za(x,S,w),M=l;n.modifiersData[r]=(e={},e[M]=N,e.centerOffset=N-S,e)}}function hE(t){var e=t.state,n=t.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;if(s!=null&&!(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s))){if(process.env.NODE_ENV!=="production"&&(zt(s)||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(" "))),!Eb(e.elements.popper,s)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=s}}var gE={name:"arrow",enabled:!0,phase:"main",fn:fE,effect:hE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function js(t){return t.split("-")[1]}var mE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pE(t){var e=t.x,n=t.y,r=window,s=r.devicePixelRatio||1;return{x:Ts(e*s)/s||0,y:Ts(n*s)/s||0}}function Ib(t){var e,n=t.popper,r=t.popperRect,s=t.placement,a=t.variation,o=t.offsets,i=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,h=o.x,g=h===void 0?0:h,m=o.y,p=m===void 0?0:m,b=typeof d=="function"?d({x:g,y:p}):{x:g,y:p};g=b.x,p=b.y;var y=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),k=It,x=jt,w=window;if(c){var S=Qa(n),N="clientHeight",M="clientWidth";if(S===tn(n)&&(S=hr(n),dn(S).position!=="static"&&i==="absolute"&&(N="scrollHeight",M="scrollWidth")),S=S,s===jt||(s===It||s===en)&&a===Ga){x=$t;var T=u&&S===w&&w.visualViewport?w.visualViewport.height:S[N];p-=T-r.height,p*=l?1:-1}if(s===It||(s===jt||s===$t)&&a===Ga){k=en;var P=u&&S===w&&w.visualViewport?w.visualViewport.width:S[M];g-=P-r.width,g*=l?1:-1}}var z=Object.assign({position:i},c&&mE),F=d===!0?pE({x:g,y:p}):{x:g,y:p};if(g=F.x,p=F.y,l){var O;return Object.assign({},z,(O={},O[x]=v?"0":"",O[k]=y?"0":"",O.transform=(w.devicePixelRatio||1)<=1?"translate("+g+"px, "+p+"px)":"translate3d("+g+"px, "+p+"px, 0)",O))}return Object.assign({},z,(e={},e[x]=v?p+"px":"",e[k]=y?g+"px":"",e.transform="",e))}function bE(t){var e=t.state,n=t.options,r=n.gpuAcceleration,s=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,i=n.roundOffsets,l=i===void 0?!0:i;if(process.env.NODE_ENV!=="production"){var c=dn(e.elements.popper).transitionProperty||"";o&&["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".',`
405
405
 
406
406
  `,'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.",`
407
407
 
408
- `,"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:cn(e.placement),variation:js(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ab(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ab(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 wE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yE,data:{}},Yi={passive:!0};function vE(t){var e=t.state,n=t.instance,r=t.options,s=r.scroll,a=s===void 0?!0:s,o=r.resize,i=o===void 0?!0:o,l=tn(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach(function(d){d.addEventListener("scroll",n.update,Yi)}),i&&l.addEventListener("resize",n.update,Yi),function(){a&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Yi)}),i&&l.removeEventListener("resize",n.update,Yi)}}var xE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vE,data:{}},kE={left:"right",right:"left",bottom:"top",top:"bottom"};function Vi(t){return t.replace(/left|right|bottom|top/g,function(e){return kE[e]})}var _E={start:"end",end:"start"};function Rb(t){return t.replace(/start|end/g,function(e){return _E[e]})}function Bd(t){var e=tn(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Wd(t){return Ns(hr(t)).left+Bd(t).scrollLeft}function SE(t,e){var n=tn(t),r=hr(t),s=n.visualViewport,a=r.clientWidth,o=r.clientHeight,i=0,l=0;if(s){a=s.width,o=s.height;var c=Eb();(c||!c&&e==="fixed")&&(i=s.offsetLeft,l=s.offsetTop)}return{width:a,height:o,x:i+Wd(t),y:l}}function OE(t){var e,n=hr(t),r=Bd(t),s=(e=t.ownerDocument)==null?void 0:e.body,a=Vr(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Vr(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),i=-r.scrollLeft+Wd(t),l=-r.scrollTop;return dn(s||n).direction==="rtl"&&(i+=Vr(n.clientWidth,s?s.clientWidth:0)-a),{width:a,height:o,x:i,y:l}}function zd(t){var e=dn(t),n=e.overflow,r=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function Lb(t){return["html","body","#document"].indexOf(Sn(t))>=0?t.ownerDocument.body:zt(t)&&zd(t)?t:Lb(Hi(t))}function Ja(t,e){var n;e===void 0&&(e=[]);var r=Lb(t),s=r===((n=t.ownerDocument)==null?void 0:n.body),a=tn(r),o=s?[a].concat(a.visualViewport||[],zd(r)?r:[]):r,i=e.concat(o);return s?i:i.concat(Ja(Hi(o)))}function Hd(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function CE(t,e){var n=Ns(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Fb(t,e,n){return e===Cb?Hd(SE(t,n)):Yr(e)?CE(e,n):Hd(OE(hr(t)))}function DE(t){var e=Ja(Hi(t)),n=["absolute","fixed"].indexOf(dn(t).position)>=0,r=n&&zt(t)?Qa(t):t;return Yr(r)?e.filter(function(s){return Yr(s)&&Pb(s,r)&&Sn(s)!=="body"}):[]}function ME(t,e,n,r){var s=e==="clippingParents"?DE(t):[].concat(e),a=[].concat(s,[n]),o=a[0],i=a.reduce(function(l,c){var d=Fb(t,c,r);return l.top=Vr(d.top,l.top),l.right=zi(d.right,l.right),l.bottom=zi(d.bottom,l.bottom),l.left=Vr(d.left,l.left),l},Fb(t,o,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Bb(t){var e=t.reference,n=t.element,r=t.placement,s=r?cn(r):null,a=r?js(r):null,o=e.x+e.width/2-n.width/2,i=e.y+e.height/2-n.height/2,l;switch(s){case jt:l={x:o,y:e.y-n.height};break;case $t:l={x:o,y:e.y+e.height};break;case en:l={x:e.x+e.width,y:i};break;case It:l={x:e.x-n.width,y:i};break;default:l={x:e.x,y:e.y}}var c=s?Fd(s):null;if(c!=null){var d=c==="y"?"height":"width";switch(a){case Ps:l[c]=l[c]-(e[d]/2-n[d]/2);break;case Ka:l[c]=l[c]+(e[d]/2-n[d]/2);break}}return l}function qa(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=r===void 0?t.placement:r,a=n.strategy,o=a===void 0?t.strategy:a,i=n.boundary,l=i===void 0?QM:i,c=n.rootBoundary,d=c===void 0?Cb:c,u=n.elementContext,h=u===void 0?Ga:u,g=n.altBoundary,m=g===void 0?!1:g,p=n.padding,b=p===void 0?0:p,y=jb(typeof b!="number"?b:Ib(b,Xa)),v=h===Ga?ZM:Ga,k=t.rects.popper,x=t.elements[m?v:h],w=ME(Yr(x)?x:x.contextElement||hr(t.elements.popper),l,d,o),S=Ns(t.elements.reference),N=Bb({reference:S,element:k,placement:s}),M=Hd(Object.assign({},k,N)),T=h===Ga?M:S,P={top:w.top-T.top+y.top,bottom:T.bottom-w.bottom+y.bottom,left:w.left-T.left+y.left,right:T.right-w.right+y.right},z=t.modifiersData.offset;if(h===Ga&&z){var F=z[s];Object.keys(P).forEach(function(O){var C=[en,$t].indexOf(O)>=0?1:-1,E=[jt,$t].indexOf(O)>=0?"y":"x";P[O]+=F[E]*C})}return P}function EE(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=n.boundary,a=n.rootBoundary,o=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Mb:l,d=js(r),u=d?i?Db:Db.filter(function(m){return js(m)===d}):Xa,h=u.filter(function(m){return c.indexOf(m)>=0});h.length===0&&(h=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 g=h.reduce(function(m,p){return m[p]=qa(t,{placement:p,boundary:s,rootBoundary:a,padding:o})[cn(p)],m},{});return Object.keys(g).sort(function(m,p){return g[m]-g[p]})}function PE(t){if(cn(t)===Wi)return[];var e=Vi(t);return[Rb(t),e,Rb(e)]}function TE(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var s=n.mainAxis,a=s===void 0?!0:s,o=n.altAxis,i=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,m=g===void 0?!0:g,p=n.allowedAutoPlacements,b=e.options.placement,y=cn(b),v=y===b,k=l||(v||!m?[Vi(b)]:PE(b)),x=[b].concat(k).reduce(function(A,D){return A.concat(cn(D)===Wi?EE(e,{placement:D,boundary:d,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:p}):D)},[]),w=e.rects.reference,S=e.rects.popper,N=new Map,M=!0,T=x[0],P=0;P<x.length;P++){var z=x[P],F=cn(z),O=js(z)===Ps,C=[jt,$t].indexOf(F)>=0,E=C?"width":"height",W=qa(e,{placement:z,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),U=C?O?en:It:O?$t:jt;w[E]>S[E]&&(U=Vi(U));var K=Vi(U),ee=[];if(a&&ee.push(W[F]<=0),i&&ee.push(W[U]<=0,W[K]<=0),ee.every(function(A){return A})){T=z,M=!1;break}N.set(z,ee)}if(M)for(var j=m?3:1,V=function(D){var Y=x.find(function(J){var G=N.get(J);if(G)return G.slice(0,D).every(function(I){return I})});if(Y)return T=Y,"break"},L=j;L>0;L--){var R=V(L);if(R==="break")break}e.placement!==T&&(e.modifiersData[r]._skip=!0,e.placement=T,e.reset=!0)}}var NE={name:"flip",enabled:!0,phase:"main",fn:TE,requiresIfExists:["offset"],data:{_skip:!1}};function Wb(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function zb(t){return[jt,en,$t,It].some(function(e){return t[e]>=0})}function jE(t){var e=t.state,n=t.name,r=e.rects.reference,s=e.rects.popper,a=e.modifiersData.preventOverflow,o=qa(e,{elementContext:"reference"}),i=qa(e,{altBoundary:!0}),l=Wb(o,r),c=Wb(i,s,a),d=zb(l),u=zb(c);e.modifiersData[n]={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 IE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jE};function AE(t,e,n){var r=cn(t),s=[It,jt].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=a[0],i=a[1];return o=o||0,i=(i||0)*s,[It,en].indexOf(r)>=0?{x:i,y:o}:{x:o,y:i}}function RE(t){var e=t.state,n=t.options,r=t.name,s=n.offset,a=s===void 0?[0,0]:s,o=Mb.reduce(function(d,u){return d[u]=AE(u,e.rects,a),d},{}),i=o[e.placement],l=i.x,c=i.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=o}var LE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:RE};function FE(t){var e=t.state,n=t.name;e.modifiersData[n]=Bb({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}var BE={name:"popperOffsets",enabled:!0,phase:"read",fn:FE,data:{}};function WE(t){return t==="x"?"y":"x"}function zE(t){var e=t.state,n=t.options,r=t.name,s=n.mainAxis,a=s===void 0?!0:s,o=n.altAxis,i=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,g=h===void 0?!0:h,m=n.tetherOffset,p=m===void 0?0:m,b=qa(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),y=cn(e.placement),v=js(e.placement),k=!v,x=Fd(y),w=WE(x),S=e.modifiersData.popperOffsets,N=e.rects.reference,M=e.rects.popper,T=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,P=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),z=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,F={x:0,y:0};if(S){if(a){var O,C=x==="y"?jt:It,E=x==="y"?$t:en,W=x==="y"?"height":"width",U=S[x],K=U+b[C],ee=U-b[E],j=g?-M[W]/2:0,V=v===Ps?N[W]:M[W],L=v===Ps?-M[W]:-N[W],R=e.elements.arrow,A=g&&R?Ld(R):{width:0,height:0},D=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Nb(),Y=D[C],J=D[E],G=Za(0,N[W],A[W]),I=k?N[W]/2-j-G-Y-P.mainAxis:V-G-Y-P.mainAxis,q=k?-N[W]/2+j+G+J+P.mainAxis:L+G+J+P.mainAxis,te=e.elements.arrow&&Qa(e.elements.arrow),B=te?x==="y"?te.clientTop||0:te.clientLeft||0:0,re=(O=z==null?void 0:z[x])!=null?O:0,se=U+I-re-B,ie=U+q-re,ge=Za(g?zi(K,se):K,U,g?Vr(ee,ie):ee);S[x]=ge,F[x]=ge-U}if(i){var fe,ae=x==="x"?jt:It,Ve=x==="x"?$t:en,pe=S[w],He=w==="y"?"height":"width",Ke=pe+b[ae],$e=pe-b[Ve],Xt=[jt,It].indexOf(y)!==-1,Kt=(fe=z==null?void 0:z[w])!=null?fe:0,Gt=Xt?Ke:pe-N[He]-M[He]-Kt+P.altAxis,Sr=Xt?pe+N[He]+M[He]-Kt-P.altAxis:$e,Qt=g&&Xt?uE(Gt,pe,Sr):Za(g?Gt:Ke,pe,g?Sr:$e);S[w]=Qt,F[w]=Qt-pe}e.modifiersData[r]=F}}var HE={name:"preventOverflow",enabled:!0,phase:"main",fn:zE,requiresIfExists:["offset"]};function YE(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function VE(t){return t===tn(t)||!zt(t)?Bd(t):YE(t)}function UE(t){var e=t.getBoundingClientRect(),n=Ts(e.width)/t.offsetWidth||1,r=Ts(e.height)/t.offsetHeight||1;return n!==1||r!==1}function XE(t,e,n){n===void 0&&(n=!1);var r=zt(e),s=zt(e)&&UE(e),a=hr(e),o=Ns(t,s,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Sn(e)!=="body"||zd(a))&&(i=VE(e)),zt(e)?(l=Ns(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):a&&(l.x=Wd(a))),{x:o.left+i.scrollLeft-l.x,y:o.top+i.scrollTop-l.y,width:o.width,height:o.height}}function KE(t){var e=new Map,n=new Set,r=[];t.forEach(function(a){e.set(a.name,a)});function s(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(i){if(!n.has(i)){var l=e.get(i);l&&s(l)}}),r.push(a)}return t.forEach(function(a){n.has(a.name)||s(a)}),r}function GE(t){var e=KE(t);return Id.reduce(function(n,r){return n.concat(e.filter(function(s){return s.phase===r}))},[])}function QE(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function gr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(s,a){return s.replace(/%s/,a)},t)}var Ur='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',ZE='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Hb=["name","enabled","phase","fn","effect","requires","options"];function JE(t){t.forEach(function(e){[].concat(Object.keys(e),Hb).filter(function(n,r,s){return s.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(gr(Ur,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(gr(Ur,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Id.indexOf(e.phase)<0&&console.error(gr(Ur,e.name,'"phase"',"either "+Id.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(gr(Ur,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(gr(Ur,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(gr(Ur,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(gr(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 '+Hb.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(r){t.find(function(s){return s.name===r})==null&&console.error(gr(ZE,String(e.name),r,r))})})})}function qE(t,e){var n=new Set;return t.filter(function(r){var s=e(r);if(!n.has(s))return n.add(s),!0})}function $E(t){var e=t.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Yb="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",e5="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Vb={placement:"bottom",modifiers:[],strategy:"absolute"};function Ub(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function t5(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,s=e.defaultOptions,a=s===void 0?Vb:s;return function(i,l,c){c===void 0&&(c=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Vb,a),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},u=[],h=!1,g={state:d,setOptions:function(y){var v=typeof y=="function"?y(d.options):y;p(),d.options=Object.assign({},a,d.options,v),d.scrollParents={reference:Yr(i)?Ja(i):i.contextElement?Ja(i.contextElement):[],popper:Ja(l)};var k=GE($E([].concat(r,d.options.modifiers)));if(d.orderedModifiers=k.filter(function(z){return z.enabled}),process.env.NODE_ENV!=="production"){var x=qE([].concat(k,d.options.modifiers),function(z){var F=z.name;return F});if(JE(x),cn(d.options.placement)===Wi){var w=d.orderedModifiers.find(function(z){var F=z.name;return F==="flip"});w||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var S=dn(l),N=S.marginTop,M=S.marginRight,T=S.marginBottom,P=S.marginLeft;[N,M,T,P].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 m(),g.update()},forceUpdate:function(){if(!h){var y=d.elements,v=y.reference,k=y.popper;if(!Ub(v,k)){process.env.NODE_ENV!=="production"&&console.error(Yb);return}d.rects={reference:XE(v,Qa(k),d.options.strategy==="fixed"),popper:Ld(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(z){return d.modifiersData[z.name]=Object.assign({},z.data)});for(var x=0,w=0;w<d.orderedModifiers.length;w++){if(process.env.NODE_ENV!=="production"&&(x+=1,x>100)){console.error(e5);break}if(d.reset===!0){d.reset=!1,w=-1;continue}var S=d.orderedModifiers[w],N=S.fn,M=S.options,T=M===void 0?{}:M,P=S.name;typeof N=="function"&&(d=N({state:d,options:T,name:P,instance:g})||d)}}},update:QE(function(){return new Promise(function(b){g.forceUpdate(),b(d)})}),destroy:function(){p(),h=!0}};if(!Ub(i,l))return process.env.NODE_ENV!=="production"&&console.error(Yb),g;g.setOptions(c).then(function(b){!h&&c.onFirstUpdate&&c.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var y=b.name,v=b.options,k=v===void 0?{}:v,x=b.effect;if(typeof x=="function"){var w=x({state:d,name:y,instance:g,options:k}),S=function(){};u.push(w||S)}})}function p(){u.forEach(function(b){return b()}),u=[]}return g}}var n5=[xE,BE,wE,lE,LE,NE,HE,mE,IE],r5=t5({defaultModifiers:n5}),s5=function(t){var e=t.level,n=t.buttonRef,r=t.contentRef,s=_.useContext(Fi),a=s.collapsed,o=s.toggled,i=s.transitionDuration,l=_.useRef();return _.useEffect(function(){return e===0&&a&&r.current&&n.current&&(l.current=r5(n.current,r.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,a,r,n]),_.useEffect(function(){if(r.current&&n.current){var c=new ResizeObserver(function(){var d;(d=l.current)===null||d===void 0||d.update()});c.observe(r.current),c.observe(n.current)}setTimeout(function(){var d;(d=l.current)===null||d===void 0||d.update()},i)},[i,o,r,n]),{popperInstance:l.current}},Xb=function(t){var e=t.rtl,n=t.level,r=t.collapsed,s=t.disabled,a=t.active;return`
408
+ `,"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:cn(e.placement),variation:js(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ib(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ib(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 yE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bE,data:{}},Yi={passive:!0};function wE(t){var e=t.state,n=t.instance,r=t.options,s=r.scroll,a=s===void 0?!0:s,o=r.resize,i=o===void 0?!0:o,l=tn(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach(function(d){d.addEventListener("scroll",n.update,Yi)}),i&&l.addEventListener("resize",n.update,Yi),function(){a&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Yi)}),i&&l.removeEventListener("resize",n.update,Yi)}}var vE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wE,data:{}},xE={left:"right",right:"left",bottom:"top",top:"bottom"};function Vi(t){return t.replace(/left|right|bottom|top/g,function(e){return xE[e]})}var kE={start:"end",end:"start"};function Ab(t){return t.replace(/start|end/g,function(e){return kE[e]})}function Bd(t){var e=tn(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Wd(t){return Ns(hr(t)).left+Bd(t).scrollLeft}function _E(t,e){var n=tn(t),r=hr(t),s=n.visualViewport,a=r.clientWidth,o=r.clientHeight,i=0,l=0;if(s){a=s.width,o=s.height;var c=Mb();(c||!c&&e==="fixed")&&(i=s.offsetLeft,l=s.offsetTop)}return{width:a,height:o,x:i+Wd(t),y:l}}function SE(t){var e,n=hr(t),r=Bd(t),s=(e=t.ownerDocument)==null?void 0:e.body,a=Vr(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Vr(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),i=-r.scrollLeft+Wd(t),l=-r.scrollTop;return dn(s||n).direction==="rtl"&&(i+=Vr(n.clientWidth,s?s.clientWidth:0)-a),{width:a,height:o,x:i,y:l}}function zd(t){var e=dn(t),n=e.overflow,r=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function Rb(t){return["html","body","#document"].indexOf(Sn(t))>=0?t.ownerDocument.body:zt(t)&&zd(t)?t:Rb(Hi(t))}function Ja(t,e){var n;e===void 0&&(e=[]);var r=Rb(t),s=r===((n=t.ownerDocument)==null?void 0:n.body),a=tn(r),o=s?[a].concat(a.visualViewport||[],zd(r)?r:[]):r,i=e.concat(o);return s?i:i.concat(Ja(Hi(o)))}function Hd(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function OE(t,e){var n=Ns(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Lb(t,e,n){return e===Ob?Hd(_E(t,n)):Yr(e)?OE(e,n):Hd(SE(hr(t)))}function CE(t){var e=Ja(Hi(t)),n=["absolute","fixed"].indexOf(dn(t).position)>=0,r=n&&zt(t)?Qa(t):t;return Yr(r)?e.filter(function(s){return Yr(s)&&Eb(s,r)&&Sn(s)!=="body"}):[]}function DE(t,e,n,r){var s=e==="clippingParents"?CE(t):[].concat(e),a=[].concat(s,[n]),o=a[0],i=a.reduce(function(l,c){var d=Lb(t,c,r);return l.top=Vr(d.top,l.top),l.right=zi(d.right,l.right),l.bottom=zi(d.bottom,l.bottom),l.left=Vr(d.left,l.left),l},Lb(t,o,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Fb(t){var e=t.reference,n=t.element,r=t.placement,s=r?cn(r):null,a=r?js(r):null,o=e.x+e.width/2-n.width/2,i=e.y+e.height/2-n.height/2,l;switch(s){case jt:l={x:o,y:e.y-n.height};break;case $t:l={x:o,y:e.y+e.height};break;case en:l={x:e.x+e.width,y:i};break;case It:l={x:e.x-n.width,y:i};break;default:l={x:e.x,y:e.y}}var c=s?Fd(s):null;if(c!=null){var d=c==="y"?"height":"width";switch(a){case Ps:l[c]=l[c]-(e[d]/2-n[d]/2);break;case Ga:l[c]=l[c]+(e[d]/2-n[d]/2);break}}return l}function qa(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=r===void 0?t.placement:r,a=n.strategy,o=a===void 0?t.strategy:a,i=n.boundary,l=i===void 0?KM:i,c=n.rootBoundary,d=c===void 0?Ob:c,u=n.elementContext,h=u===void 0?Ka:u,g=n.altBoundary,m=g===void 0?!1:g,p=n.padding,b=p===void 0?0:p,y=Nb(typeof b!="number"?b:jb(b,Xa)),v=h===Ka?QM:Ka,k=t.rects.popper,x=t.elements[m?v:h],w=DE(Yr(x)?x:x.contextElement||hr(t.elements.popper),l,d,o),S=Ns(t.elements.reference),N=Fb({reference:S,element:k,placement:s}),M=Hd(Object.assign({},k,N)),T=h===Ka?M:S,P={top:w.top-T.top+y.top,bottom:T.bottom-w.bottom+y.bottom,left:w.left-T.left+y.left,right:T.right-w.right+y.right},z=t.modifiersData.offset;if(h===Ka&&z){var F=z[s];Object.keys(P).forEach(function(O){var C=[en,$t].indexOf(O)>=0?1:-1,E=[jt,$t].indexOf(O)>=0?"y":"x";P[O]+=F[E]*C})}return P}function ME(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=n.boundary,a=n.rootBoundary,o=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Db:l,d=js(r),u=d?i?Cb:Cb.filter(function(m){return js(m)===d}):Xa,h=u.filter(function(m){return c.indexOf(m)>=0});h.length===0&&(h=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 g=h.reduce(function(m,p){return m[p]=qa(t,{placement:p,boundary:s,rootBoundary:a,padding:o})[cn(p)],m},{});return Object.keys(g).sort(function(m,p){return g[m]-g[p]})}function EE(t){if(cn(t)===Wi)return[];var e=Vi(t);return[Ab(t),e,Ab(e)]}function PE(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var s=n.mainAxis,a=s===void 0?!0:s,o=n.altAxis,i=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,m=g===void 0?!0:g,p=n.allowedAutoPlacements,b=e.options.placement,y=cn(b),v=y===b,k=l||(v||!m?[Vi(b)]:EE(b)),x=[b].concat(k).reduce(function(A,D){return A.concat(cn(D)===Wi?ME(e,{placement:D,boundary:d,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:p}):D)},[]),w=e.rects.reference,S=e.rects.popper,N=new Map,M=!0,T=x[0],P=0;P<x.length;P++){var z=x[P],F=cn(z),O=js(z)===Ps,C=[jt,$t].indexOf(F)>=0,E=C?"width":"height",W=qa(e,{placement:z,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),U=C?O?en:It:O?$t:jt;w[E]>S[E]&&(U=Vi(U));var G=Vi(U),ee=[];if(a&&ee.push(W[F]<=0),i&&ee.push(W[U]<=0,W[G]<=0),ee.every(function(A){return A})){T=z,M=!1;break}N.set(z,ee)}if(M)for(var j=m?3:1,V=function(D){var Y=x.find(function(J){var K=N.get(J);if(K)return K.slice(0,D).every(function(I){return I})});if(Y)return T=Y,"break"},L=j;L>0;L--){var R=V(L);if(R==="break")break}e.placement!==T&&(e.modifiersData[r]._skip=!0,e.placement=T,e.reset=!0)}}var TE={name:"flip",enabled:!0,phase:"main",fn:PE,requiresIfExists:["offset"],data:{_skip:!1}};function Bb(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Wb(t){return[jt,en,$t,It].some(function(e){return t[e]>=0})}function NE(t){var e=t.state,n=t.name,r=e.rects.reference,s=e.rects.popper,a=e.modifiersData.preventOverflow,o=qa(e,{elementContext:"reference"}),i=qa(e,{altBoundary:!0}),l=Bb(o,r),c=Bb(i,s,a),d=Wb(l),u=Wb(c);e.modifiersData[n]={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 jE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:NE};function IE(t,e,n){var r=cn(t),s=[It,jt].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=a[0],i=a[1];return o=o||0,i=(i||0)*s,[It,en].indexOf(r)>=0?{x:i,y:o}:{x:o,y:i}}function AE(t){var e=t.state,n=t.options,r=t.name,s=n.offset,a=s===void 0?[0,0]:s,o=Db.reduce(function(d,u){return d[u]=IE(u,e.rects,a),d},{}),i=o[e.placement],l=i.x,c=i.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=o}var RE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:AE};function LE(t){var e=t.state,n=t.name;e.modifiersData[n]=Fb({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}var FE={name:"popperOffsets",enabled:!0,phase:"read",fn:LE,data:{}};function BE(t){return t==="x"?"y":"x"}function WE(t){var e=t.state,n=t.options,r=t.name,s=n.mainAxis,a=s===void 0?!0:s,o=n.altAxis,i=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,g=h===void 0?!0:h,m=n.tetherOffset,p=m===void 0?0:m,b=qa(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),y=cn(e.placement),v=js(e.placement),k=!v,x=Fd(y),w=BE(x),S=e.modifiersData.popperOffsets,N=e.rects.reference,M=e.rects.popper,T=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,P=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),z=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,F={x:0,y:0};if(S){if(a){var O,C=x==="y"?jt:It,E=x==="y"?$t:en,W=x==="y"?"height":"width",U=S[x],G=U+b[C],ee=U-b[E],j=g?-M[W]/2:0,V=v===Ps?N[W]:M[W],L=v===Ps?-M[W]:-N[W],R=e.elements.arrow,A=g&&R?Ld(R):{width:0,height:0},D=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Tb(),Y=D[C],J=D[E],K=Za(0,N[W],A[W]),I=k?N[W]/2-j-K-Y-P.mainAxis:V-K-Y-P.mainAxis,q=k?-N[W]/2+j+K+J+P.mainAxis:L+K+J+P.mainAxis,te=e.elements.arrow&&Qa(e.elements.arrow),B=te?x==="y"?te.clientTop||0:te.clientLeft||0:0,re=(O=z==null?void 0:z[x])!=null?O:0,se=U+I-re-B,ie=U+q-re,ge=Za(g?zi(G,se):G,U,g?Vr(ee,ie):ee);S[x]=ge,F[x]=ge-U}if(i){var fe,ae=x==="x"?jt:It,Ve=x==="x"?$t:en,pe=S[w],He=w==="y"?"height":"width",Ge=pe+b[ae],$e=pe-b[Ve],Xt=[jt,It].indexOf(y)!==-1,Gt=(fe=z==null?void 0:z[w])!=null?fe:0,Kt=Xt?Ge:pe-N[He]-M[He]-Gt+P.altAxis,Sr=Xt?pe+N[He]+M[He]-Gt-P.altAxis:$e,Qt=g&&Xt?dE(Kt,pe,Sr):Za(g?Kt:Ge,pe,g?Sr:$e);S[w]=Qt,F[w]=Qt-pe}e.modifiersData[r]=F}}var zE={name:"preventOverflow",enabled:!0,phase:"main",fn:WE,requiresIfExists:["offset"]};function HE(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function YE(t){return t===tn(t)||!zt(t)?Bd(t):HE(t)}function VE(t){var e=t.getBoundingClientRect(),n=Ts(e.width)/t.offsetWidth||1,r=Ts(e.height)/t.offsetHeight||1;return n!==1||r!==1}function UE(t,e,n){n===void 0&&(n=!1);var r=zt(e),s=zt(e)&&VE(e),a=hr(e),o=Ns(t,s,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Sn(e)!=="body"||zd(a))&&(i=YE(e)),zt(e)?(l=Ns(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):a&&(l.x=Wd(a))),{x:o.left+i.scrollLeft-l.x,y:o.top+i.scrollTop-l.y,width:o.width,height:o.height}}function XE(t){var e=new Map,n=new Set,r=[];t.forEach(function(a){e.set(a.name,a)});function s(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(i){if(!n.has(i)){var l=e.get(i);l&&s(l)}}),r.push(a)}return t.forEach(function(a){n.has(a.name)||s(a)}),r}function GE(t){var e=XE(t);return Id.reduce(function(n,r){return n.concat(e.filter(function(s){return s.phase===r}))},[])}function KE(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function gr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(s,a){return s.replace(/%s/,a)},t)}var Ur='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',QE='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',zb=["name","enabled","phase","fn","effect","requires","options"];function ZE(t){t.forEach(function(e){[].concat(Object.keys(e),zb).filter(function(n,r,s){return s.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(gr(Ur,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(gr(Ur,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Id.indexOf(e.phase)<0&&console.error(gr(Ur,e.name,'"phase"',"either "+Id.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(gr(Ur,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(gr(Ur,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(gr(Ur,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(gr(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 '+zb.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(r){t.find(function(s){return s.name===r})==null&&console.error(gr(QE,String(e.name),r,r))})})})}function JE(t,e){var n=new Set;return t.filter(function(r){var s=e(r);if(!n.has(s))return n.add(s),!0})}function qE(t){var e=t.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Hb="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",$E="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Yb={placement:"bottom",modifiers:[],strategy:"absolute"};function Vb(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function eP(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,s=e.defaultOptions,a=s===void 0?Yb:s;return function(i,l,c){c===void 0&&(c=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yb,a),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},u=[],h=!1,g={state:d,setOptions:function(y){var v=typeof y=="function"?y(d.options):y;p(),d.options=Object.assign({},a,d.options,v),d.scrollParents={reference:Yr(i)?Ja(i):i.contextElement?Ja(i.contextElement):[],popper:Ja(l)};var k=GE(qE([].concat(r,d.options.modifiers)));if(d.orderedModifiers=k.filter(function(z){return z.enabled}),process.env.NODE_ENV!=="production"){var x=JE([].concat(k,d.options.modifiers),function(z){var F=z.name;return F});if(ZE(x),cn(d.options.placement)===Wi){var w=d.orderedModifiers.find(function(z){var F=z.name;return F==="flip"});w||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var S=dn(l),N=S.marginTop,M=S.marginRight,T=S.marginBottom,P=S.marginLeft;[N,M,T,P].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 m(),g.update()},forceUpdate:function(){if(!h){var y=d.elements,v=y.reference,k=y.popper;if(!Vb(v,k)){process.env.NODE_ENV!=="production"&&console.error(Hb);return}d.rects={reference:UE(v,Qa(k),d.options.strategy==="fixed"),popper:Ld(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(z){return d.modifiersData[z.name]=Object.assign({},z.data)});for(var x=0,w=0;w<d.orderedModifiers.length;w++){if(process.env.NODE_ENV!=="production"&&(x+=1,x>100)){console.error($E);break}if(d.reset===!0){d.reset=!1,w=-1;continue}var S=d.orderedModifiers[w],N=S.fn,M=S.options,T=M===void 0?{}:M,P=S.name;typeof N=="function"&&(d=N({state:d,options:T,name:P,instance:g})||d)}}},update:KE(function(){return new Promise(function(b){g.forceUpdate(),b(d)})}),destroy:function(){p(),h=!0}};if(!Vb(i,l))return process.env.NODE_ENV!=="production"&&console.error(Hb),g;g.setOptions(c).then(function(b){!h&&c.onFirstUpdate&&c.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var y=b.name,v=b.options,k=v===void 0?{}:v,x=b.effect;if(typeof x=="function"){var w=x({state:d,name:y,instance:g,options:k}),S=function(){};u.push(w||S)}})}function p(){u.forEach(function(b){return b()}),u=[]}return g}}var tP=[vE,FE,yE,iE,RE,TE,zE,gE,jE],nP=eP({defaultModifiers:tP}),rP=function(t){var e=t.level,n=t.buttonRef,r=t.contentRef,s=_.useContext(Fi),a=s.collapsed,o=s.toggled,i=s.transitionDuration,l=_.useRef();return _.useEffect(function(){return e===0&&a&&r.current&&n.current&&(l.current=nP(n.current,r.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,a,r,n]),_.useEffect(function(){if(r.current&&n.current){var c=new ResizeObserver(function(){var d;(d=l.current)===null||d===void 0||d.update()});c.observe(r.current),c.observe(n.current)}setTimeout(function(){var d;(d=l.current)===null||d===void 0||d.update()},i)},[i,o,r,n]),{popperInstance:l.current}},Ub=function(t){var e=t.rtl,n=t.level,r=t.collapsed,s=t.disabled,a=t.active;return`
409
409
  display: flex;
410
410
  align-items: center;
411
411
  height: 50px;
@@ -432,7 +432,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
432
432
 
433
433
  `).concat(a&&"background-color: #e2eef9;",`
434
434
 
435
- `)},a5=function(t,e){var n=t.className,r=t.component,s=t.children,a=zr(t,["className","component","children"]);if(r){if(typeof r=="string")return _.createElement(r,Bt(Bt({className:lt(n)},a),{ref:e}),s);var o=r.props,i=o.className,l=zr(o,["className"]);return _.cloneElement(r,Bt(Bt(Bt({className:lt(n,i)},a),l),{ref:e}),s)}else return _.createElement("a",Bt({ref:e,className:lt(n)},a),s)},Kb=_.forwardRef(a5),o5=dt.li(Gb||(Gb=vt([`
435
+ `)},sP=function(t,e){var n=t.className,r=t.component,s=t.children,a=zr(t,["className","component","children"]);if(r){if(typeof r=="string")return _.createElement(r,Bt(Bt({className:lt(n)},a),{ref:e}),s);var o=r.props,i=o.className,l=zr(o,["className"]);return _.cloneElement(r,Bt(Bt(Bt({className:lt(n,i)},a),l),{ref:e}),s)}else return _.createElement("a",Bt({ref:e,className:lt(n)},a),s)},Xb=_.forwardRef(sP),aP=dt.li(Gb||(Gb=vt([`
436
436
  position: relative;
437
437
  width: 100%;
438
438
 
@@ -458,7 +458,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
458
458
 
459
459
  `,`;
460
460
  }
461
- `])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},xe.button,function(t){var e=t.level,n=t.disabled,r=t.active,s=t.collapsed,a=t.rtl;return Xb({level:e,disabled:n,active:r,collapsed:s,rtl:a})},function(t){var e=t.buttonStyles;return e}),i5=function(t,e){var n,r=t.children,s=t.className,a=t.label,o=t.icon,i=t.title,l=t.prefix,c=t.suffix,d=t.open,u=t.defaultOpen,h=t.active,g=h===void 0?!1:h,m=t.disabled,p=m===void 0?!1:m,b=t.rootStyles,y=t.component,v=t.onOpenChange,k=t.onClick,x=t.onKeyUp,w=zr(t,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),S=_.useContext(Bi),N=_.useContext(Fi),M=N.collapsed,T=N.rtl,P=N.transitionDuration,z=jd(),F=z.renderExpandIcon,O=z.closeOnClick,C=z.menuItemStyles,E=z.transitionDuration,W=_.useState(!!u),U=W[0],K=W[1],ee=_.useState(!1),j=ee[0],V=ee[1],L=_.useState(!1),R=L[0],A=L[1],D=_.useRef(null),Y=_.useRef(null),J=_.useRef(),G=s5({level:S,buttonRef:D,contentRef:Y}).popperInstance,I=_.useCallback(function(){var ge,fe=Y.current;if(fe){var ae=(ge=fe==null?void 0:fe.querySelector(".".concat(xe.subMenuContent," > ul")))===null||ge===void 0?void 0:ge.clientHeight;fe.style.overflow="hidden",fe.style.height="".concat(ae,"px"),J.current=setTimeout(function(){fe.style.overflow="auto",fe.style.height="auto"},E)}},[E]),q=function(){var ge,fe=Y.current;if(fe){var ae=(ge=fe==null?void 0:fe.querySelector(".".concat(xe.subMenuContent," > ul")))===null||ge===void 0?void 0:ge.clientHeight;fe.style.overflow="hidden",fe.style.height="".concat(ae,"px"),fe.offsetHeight,fe.style.height="0px"}},te=function(){S===0&&M||(typeof d>"u"?(clearTimeout(Number(J.current)),U?q():I(),v==null||v(!U),K(!U)):v==null||v(!d))};_.useEffect(function(){!(S===0&&M)&&typeof d<"u"&&R&&(clearTimeout(Number(J.current)),d?I():q())},[M,I,a,S,v,d]);var B=function(ge){k==null||k(ge),te()},re=function(ge){x==null||x(ge),ge.key==="Enter"&&te()},se=function(ge){if(C){var fe={level:S,disabled:p,active:g,isSubmenu:!0,open:d??U},ae=C.root,Ve=C.button,pe=C.label,He=C.icon,Ke=C.prefix,$e=C.suffix,Xt=C.subMenuContent,Kt=C.SubMenuExpandIcon;switch(ge){case"root":return typeof ae=="function"?ae(fe):ae;case"button":return typeof Ve=="function"?Ve(fe):Ve;case"label":return typeof pe=="function"?pe(fe):pe;case"icon":return typeof He=="function"?He(fe):He;case"prefix":return typeof Ke=="function"?Ke(fe):Ke;case"suffix":return typeof $e=="function"?$e(fe):$e;case"SubMenuExpandIcon":return typeof Kt=="function"?Kt(fe):Kt;case"subMenuContent":return typeof Xt=="function"?Xt(fe):Xt;default:return}}};_.useEffect(function(){setTimeout(function(){return G==null?void 0:G.update()},P),M&&S===0&&V(!1)},[M,S,T,P,G]),_.useEffect(function(){var ge=function(pe){var He,Ke,$e;!j&&(!((He=D.current)===null||He===void 0)&&He.contains(pe))?V(!0):(O&&!(!((Ke=pe.closest(".".concat(xe.menuItemRoot)))===null||Ke===void 0)&&Ke.classList.contains(xe.subMenuRoot))||!(!(($e=Y.current)===null||$e===void 0)&&$e.contains(pe))&&j)&&V(!1)},fe=function(pe){ge(pe.target)},ae=function(pe){pe.key==="Enter"?ge(pe.target):pe.key==="Escape"&&V(!1)},Ve=function(){document.removeEventListener("click",fe),document.removeEventListener("keyup",ae)};return Ve(),M&&S===0&&(document.addEventListener("click",fe,!1),document.addEventListener("keyup",ae,!1)),function(){Ve()}},[M,S,O,j]),_.useEffect(function(){A(!0)},[]);var ie=(n={},n[xe.active]=g,n[xe.disabled]=p,n[xe.open]=d??U,n);return _.createElement(o5,{ref:e,className:lt(xe.menuItemRoot,xe.subMenuRoot,ie,s),menuItemStyles:se("root"),level:S,collapsed:M,rtl:T,disabled:p,active:g,buttonStyles:se("button"),rootStyles:b},_.createElement(Kb,Bt({"data-testid":"".concat(xe.button,"-test-id"),ref:D,title:i,className:lt(xe.button,ie),onClick:B,onKeyUp:re,component:y,tabIndex:0},w),o&&_.createElement(bb,{rtl:T,className:lt(xe.icon,ie),rootStyles:se("icon")},o),l&&_.createElement(wb,{collapsed:M,transitionDuration:P,firstLevel:S===0,className:lt(xe.prefix,ie),rtl:T,rootStyles:se("prefix")},l),_.createElement(mb,{className:lt(xe.label,ie),rootStyles:se("label")},a),c&&_.createElement(xb,{collapsed:M,transitionDuration:P,firstLevel:S===0,className:lt(xe.suffix,ie),rootStyles:se("suffix")},c),_.createElement(XM,{rtl:T,className:lt(xe.SubMenuExpandIcon,ie),collapsed:M,level:S,rootStyles:se("SubMenuExpandIcon")},F?F({level:S,disabled:p,active:g,open:d??U}):M&&S===0?_.createElement(GM,null):_.createElement(KM,{rtl:T,open:d??U}))),_.createElement(UM,{ref:Y,openWhenCollapsed:j,open:d??U,firstLevel:S===0,collapsed:M,defaultOpen:d&&!R||u,className:lt(xe.subMenuContent,ie),rootStyles:se("subMenuContent")},_.createElement(Bi.Provider,{value:S+1},r)))};_.forwardRef(i5);var Gb,l5=dt.li(Qb||(Qb=vt([`
461
+ `])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},xe.button,function(t){var e=t.level,n=t.disabled,r=t.active,s=t.collapsed,a=t.rtl;return Ub({level:e,disabled:n,active:r,collapsed:s,rtl:a})},function(t){var e=t.buttonStyles;return e}),oP=function(t,e){var n,r=t.children,s=t.className,a=t.label,o=t.icon,i=t.title,l=t.prefix,c=t.suffix,d=t.open,u=t.defaultOpen,h=t.active,g=h===void 0?!1:h,m=t.disabled,p=m===void 0?!1:m,b=t.rootStyles,y=t.component,v=t.onOpenChange,k=t.onClick,x=t.onKeyUp,w=zr(t,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),S=_.useContext(Bi),N=_.useContext(Fi),M=N.collapsed,T=N.rtl,P=N.transitionDuration,z=jd(),F=z.renderExpandIcon,O=z.closeOnClick,C=z.menuItemStyles,E=z.transitionDuration,W=_.useState(!!u),U=W[0],G=W[1],ee=_.useState(!1),j=ee[0],V=ee[1],L=_.useState(!1),R=L[0],A=L[1],D=_.useRef(null),Y=_.useRef(null),J=_.useRef(),K=rP({level:S,buttonRef:D,contentRef:Y}).popperInstance,I=_.useCallback(function(){var ge,fe=Y.current;if(fe){var ae=(ge=fe==null?void 0:fe.querySelector(".".concat(xe.subMenuContent," > ul")))===null||ge===void 0?void 0:ge.clientHeight;fe.style.overflow="hidden",fe.style.height="".concat(ae,"px"),J.current=setTimeout(function(){fe.style.overflow="auto",fe.style.height="auto"},E)}},[E]),q=function(){var ge,fe=Y.current;if(fe){var ae=(ge=fe==null?void 0:fe.querySelector(".".concat(xe.subMenuContent," > ul")))===null||ge===void 0?void 0:ge.clientHeight;fe.style.overflow="hidden",fe.style.height="".concat(ae,"px"),fe.offsetHeight,fe.style.height="0px"}},te=function(){S===0&&M||(typeof d>"u"?(clearTimeout(Number(J.current)),U?q():I(),v==null||v(!U),G(!U)):v==null||v(!d))};_.useEffect(function(){!(S===0&&M)&&typeof d<"u"&&R&&(clearTimeout(Number(J.current)),d?I():q())},[M,I,a,S,v,d]);var B=function(ge){k==null||k(ge),te()},re=function(ge){x==null||x(ge),ge.key==="Enter"&&te()},se=function(ge){if(C){var fe={level:S,disabled:p,active:g,isSubmenu:!0,open:d??U},ae=C.root,Ve=C.button,pe=C.label,He=C.icon,Ge=C.prefix,$e=C.suffix,Xt=C.subMenuContent,Gt=C.SubMenuExpandIcon;switch(ge){case"root":return typeof ae=="function"?ae(fe):ae;case"button":return typeof Ve=="function"?Ve(fe):Ve;case"label":return typeof pe=="function"?pe(fe):pe;case"icon":return typeof He=="function"?He(fe):He;case"prefix":return typeof Ge=="function"?Ge(fe):Ge;case"suffix":return typeof $e=="function"?$e(fe):$e;case"SubMenuExpandIcon":return typeof Gt=="function"?Gt(fe):Gt;case"subMenuContent":return typeof Xt=="function"?Xt(fe):Xt;default:return}}};_.useEffect(function(){setTimeout(function(){return K==null?void 0:K.update()},P),M&&S===0&&V(!1)},[M,S,T,P,K]),_.useEffect(function(){var ge=function(pe){var He,Ge,$e;!j&&(!((He=D.current)===null||He===void 0)&&He.contains(pe))?V(!0):(O&&!(!((Ge=pe.closest(".".concat(xe.menuItemRoot)))===null||Ge===void 0)&&Ge.classList.contains(xe.subMenuRoot))||!(!(($e=Y.current)===null||$e===void 0)&&$e.contains(pe))&&j)&&V(!1)},fe=function(pe){ge(pe.target)},ae=function(pe){pe.key==="Enter"?ge(pe.target):pe.key==="Escape"&&V(!1)},Ve=function(){document.removeEventListener("click",fe),document.removeEventListener("keyup",ae)};return Ve(),M&&S===0&&(document.addEventListener("click",fe,!1),document.addEventListener("keyup",ae,!1)),function(){Ve()}},[M,S,O,j]),_.useEffect(function(){A(!0)},[]);var ie=(n={},n[xe.active]=g,n[xe.disabled]=p,n[xe.open]=d??U,n);return _.createElement(aP,{ref:e,className:lt(xe.menuItemRoot,xe.subMenuRoot,ie,s),menuItemStyles:se("root"),level:S,collapsed:M,rtl:T,disabled:p,active:g,buttonStyles:se("button"),rootStyles:b},_.createElement(Xb,Bt({"data-testid":"".concat(xe.button,"-test-id"),ref:D,title:i,className:lt(xe.button,ie),onClick:B,onKeyUp:re,component:y,tabIndex:0},w),o&&_.createElement(pb,{rtl:T,className:lt(xe.icon,ie),rootStyles:se("icon")},o),l&&_.createElement(yb,{collapsed:M,transitionDuration:P,firstLevel:S===0,className:lt(xe.prefix,ie),rtl:T,rootStyles:se("prefix")},l),_.createElement(gb,{className:lt(xe.label,ie),rootStyles:se("label")},a),c&&_.createElement(vb,{collapsed:M,transitionDuration:P,firstLevel:S===0,className:lt(xe.suffix,ie),rootStyles:se("suffix")},c),_.createElement(UM,{rtl:T,className:lt(xe.SubMenuExpandIcon,ie),collapsed:M,level:S,rootStyles:se("SubMenuExpandIcon")},F?F({level:S,disabled:p,active:g,open:d??U}):M&&S===0?_.createElement(GM,null):_.createElement(XM,{rtl:T,open:d??U}))),_.createElement(VM,{ref:Y,openWhenCollapsed:j,open:d??U,firstLevel:S===0,collapsed:M,defaultOpen:d&&!R||u,className:lt(xe.subMenuContent,ie),rootStyles:se("subMenuContent")},_.createElement(Bi.Provider,{value:S+1},r)))};_.forwardRef(oP);var Gb,iP=dt.li(Kb||(Kb=vt([`
462
462
  width: 100%;
463
463
  position: relative;
464
464
 
@@ -484,13 +484,13 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
484
484
 
485
485
  `,`;
486
486
  }
487
- `])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},xe.button,function(t){var e=t.level,n=t.disabled,r=t.active,s=t.collapsed,a=t.rtl;return Xb({level:e,disabled:n,active:r,collapsed:s,rtl:a})},function(t){var e=t.buttonStyles;return e}),c5=function(t,e){var n,r=t.children,s=t.icon,a=t.className,o=t.prefix,i=t.suffix,l=t.active,c=l===void 0?!1:l,d=t.disabled,u=d===void 0?!1:d,h=t.component,g=t.rootStyles,m=zr(t,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),p=_.useContext(Bi),b=_.useContext(Fi),y=b.collapsed,v=b.rtl,k=b.transitionDuration,x=jd().menuItemStyles,w=function(N){if(x){var M={level:p,disabled:u,active:c,isSubmenu:!1},T=x.root,P=x.button,z=x.label,F=x.icon,O=x.prefix,C=x.suffix;switch(N){case"root":return typeof T=="function"?T(M):T;case"button":return typeof P=="function"?P(M):P;case"label":return typeof z=="function"?z(M):z;case"icon":return typeof F=="function"?F(M):F;case"prefix":return typeof O=="function"?O(M):O;case"suffix":return typeof C=="function"?C(M):C;default:return}}},S=(n={},n[xe.active]=c,n[xe.disabled]=u,n);return _.createElement(l5,{ref:e,className:lt(xe.menuItemRoot,S,a),menuItemStyles:w("root"),level:p,collapsed:y,rtl:v,disabled:u,active:c,buttonStyles:w("button"),rootStyles:g},_.createElement(Kb,Bt({className:lt(xe.button,S),"data-testid":"".concat(xe.button,"-test-id"),component:h,tabIndex:0},m),s&&_.createElement(bb,{rtl:v,className:lt(xe.icon,S),rootStyles:w("icon")},s),o&&_.createElement(wb,{collapsed:y,transitionDuration:k,firstLevel:p===0,className:lt(xe.prefix,S),rtl:v,rootStyles:w("prefix")},o),_.createElement(mb,{className:lt(xe.label,S),rootStyles:w("label")},r),i&&_.createElement(xb,{collapsed:y,transitionDuration:k,firstLevel:p===0,className:lt(xe.suffix,S),rootStyles:w("suffix")},i)))},d5=_.forwardRef(c5),Qb;const Yd=_.forwardRef((t,e)=>{const{imageUrl:n,icon:r,title:s,description:a,width:o,height:i,iconPosition:l,imagePosition:c}=t;return f.jsx("div",{className:`${Pm.Card} flex flex-col border px-3.5 py-7`,ref:e,children:f.jsxs("div",{className:"flex justify-between",children:[n?f.jsx(Or,{classIm:c||"mx-auto",src:n,alt:s,width:o,height:i}):r?f.jsx("div",{className:`flex justify-${l||"center"}`,children:f.jsx(r,{size:o||50})}):null,f.jsx("div",{className:"flex flex-col pl-8",children:f.jsxs("h3",{className:"font-bold text-base md:text-lg text-end",children:[s," ",f.jsx("br",{}),a&&f.jsx("p",{className:"text-lg md:text-xl font-normal text-end",children:a})]})})]})})});Yd.displayName="Card";const u5=({aHref:t,logo:e,menuItems:n,campaignCards:r=[],onLogout:s,defaultCollapsed:a=!1,background:o="linear-gradient(180deg, rgba(25, 25, 96, 0.95) 0%, rgba(41, 41, 139, 0.95) 100%)",textColor:i="#ffffff",className:l=""})=>{const[c,d]=_.useState(a),[u,h]=_.useState(null),[g,m]=_.useState(new Set),[p,b]=_.useState(null),[y,v]=_.useState(null),k=n.filter(O=>O.position!=="bottom"),x=n.filter(O=>O.position==="bottom"),w=O=>typeof O=="string"?f.jsx("img",{src:O,style:{width:"20px",height:"20px"}}):O?_.createElement(O,{style:{width:"20px",height:"20px"}}):null,S=(O=!1,C=!1)=>({background:c?"transparent":C?"#FFFFFF55":O?"#FFFFFF22":"#FFFFFF33",color:i,borderRadius:O?"15px":"20px",button:{width:c?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:c?"0 0.25rem":"0 0.5rem",color:i,fontSize:O?"0.9rem":void 0}}),N=(O,C=!1,E)=>{const W=C?y===O.id:p===O.id;return f.jsx(d5,{icon:w(O.icon),onClick:()=>z(O,E),className:"mx-auto mb-1 rounded-md",rootStyles:S(C,W),children:C?O.label:f.jsxs("div",{className:"flex w-full items-center justify-between",children:[f.jsx("span",{children:O.label}),O.subMenuSection&&f.jsx(gD,{className:`text-lg transition-transform duration-200 ${g.has(O.id)?"rotate-180":""}`})]})},O.id)},M=O=>O.map(C=>f.jsxs("div",{children:[N(C),C.subMenuSection&&g.has(C.id)&&f.jsx("div",{className:"ml-4 space-y-1 mb-2",children:C.subMenuSection.items.map(E=>N(E,!0,C.id))})]},C.id)),T=()=>{u||d(!1)},P=()=>{u||(d(!0),m(new Set))},z=(O,C)=>{if(C?(b(C),v(O.id)):(b(O.id),v(null)),O.subMenuSection){const E=new Set(g);E.has(O.id)?E.delete(O.id):E.add(O.id),m(E)}else O.action?O.action():O.href&&(O.target==="_blank"?window.open(O.href,"_blank"):window.location.href=O.href)},F=O=>{O.action?O.action():O.href&&(O.target==="_blank"?window.open(O.href,"_blank"):window.location.href=O.href)};return f.jsx("div",{className:`fixed left-0 top-0 z-40 my-1 mx-2 ${l}`,children:f.jsxs("div",{className:"flex flex-col",onMouseEnter:T,onMouseLeave:P,children:[f.jsxs(BM,{collapsed:c,rootStyles:{[`.${Ue.container}`]:{background:o,color:i,height:"100vh",display:"flex",flexDirection:"column",width:c?"70px":"275px",transition:"all 400ms ease-in-out",borderRadius:"20px",boxShadow:"5px 0px 10px 0px #00000040;",padding:c?"0":"0.45rem"}},children:[f.jsx("div",{className:`${c?"mx-auto":""} mb-4 mt-10 `,children:f.jsx("a",{href:t||"/",children:f.jsx(Or,{classIm:`${c?"mx-auto":"mx-4"}`,src:`${c?e.src.collapsed:e.src.expanded}`,alt:e.alt,width:c?e.width.collapsed:e.width.expanded,height:c?e.height.collapsed:e.height.expanded})})}),f.jsxs("div",{className:"flex h-full flex-col",children:[f.jsxs(HM,{className:"mx-2 flex-1 relative",children:[f.jsx("div",{className:"flex flex-col",children:M(k)}),f.jsx("div",{className:` ${g.size===0?"absolute bottom-0":""} w-full`,children:M(x)})]}),s&&f.jsx("div",{className:"w-full cursor-pointer py-4 px-6 mt-auto mb-1",children:f.jsx("div",{className:"flex rounded-2xl mb-1",style:{background:c?"transparent":"#FFFFFF1A",float:c?"none":"right",width:c?"20px":"fit-content",height:c?"20px":"fit-content",padding:c?"0":"0.5rem"},onClick:s,children:f.jsx("button",{style:{color:i,width:c?"20px":"fit-content",height:c?"20px":"fit-content"},children:f.jsx("img",{src:"https://ftp.mathilde-ads.com/382-1a63116bc0d0909114f6c93af9d3dd8d.svg",alt:"logout",width:c?"25px":"fit-content",height:c?"25px":"fit-content"})})})})]})]}),r.length>0&&f.jsx(y0,{width:"40%",isOpen:u==="campaigns",onClose:()=>h(null),children:f.jsxs("div",{className:"flex flex-col px-10 pb-5",children:[f.jsx("h2",{className:"mb-3 text-center font-bold",children:"Selecciona el tipo de campaña que quieres crear"}),f.jsx("div",{className:"flex",children:r.map(O=>f.jsx("div",{className:"flex w-3/6 p-2",onClick:()=>F(O),children:f.jsx(Yd,{imageUrl:O.imageUrl,title:O.title,description:O.description})},O.id))})]})})]})})},Vd={"mth-color-primary":"pagination-module__mth-color-primary__hNTQd","mth-input-number":"pagination-module__mth-input-number__2TY-u"};function f5(t){return De({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"48",d:"M328 112 184 256l144 144"},child:[]}]})(t)}function h5(t){return De({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"48",d:"m184 112 144 144-144 144"},child:[]}]})(t)}function Zb(t){return De({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M368 368 144 144m224 0L144 368"},child:[]}]})(t)}const Ud=({currentPage:t,totalPages:e,onPageChange:n,value:r})=>f.jsxs("div",{className:"flex items-center justify-center gap-4",children:[f.jsxs("span",{className:"text-xs text-gray-700",children:["Ver  ",f.jsx("input",{type:"number",className:`w-8 h-8 text-xs ${Vd["mth-input-number"]}`,id:"itemsPerPage",defaultValue:r||15,maxLength:3})]}),f.jsx("button",{onClick:()=>n(t-1),disabled:t===1,className:" text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:f.jsx(f5,{className:`w-6 h-6 ${Vd["mth-color-primary"]}`})}),f.jsxs("span",{className:"text-xs text-gray-700",children:[t," DE ",e]}),f.jsx("button",{onClick:()=>n(t+1),disabled:t===e,className:"text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:f.jsx(h5,{className:`w-6 h-6 ${Vd["mth-color-primary"]}`})})]}),g5={mth_toggle:"toggle-module__mth_toggle__8NB4F"};function Xd({labelIzquierda:t,labelDerecha:e,checkedLabel:n,uncheckedLabel:r,checked:s=!1,disabled:a=!1,onChange:o,colors:i={},labelPosition:l="right",boldWhenActive:c=!1}){const[d,u]=_.useState(s),g={...{offBackgroundColor:"#EEEEEE",offCircleColor:"#BBBBBB",offCircleBorderColor:"#BBBBBB",onBackgroundColor:"#DEE9FF",onCircleColor:"#191960",onCircleBorderColor:"#191960"},...i},m=M=>{if(a)return;const T=M.target.checked;u(T),o==null||o(T)},p=d?g.onBackgroundColor:g.offBackgroundColor,b=d?g.onCircleColor:g.offCircleColor,y=d?g.onCircleBorderColor:g.offCircleBorderColor,v=t||n||r||e,k=`text-sm ${a?"text-gray-500":"text-gray-700"}`,x=t&&f.jsx("span",{className:!d&&c?"font-bold "+k:k,children:t}),w=e&&f.jsx("span",{className:d&&c?"font-bold "+k:k,children:e}),S=f.jsxs("label",{className:`inline-flex items-center ${a?"cursor-not-allowed opacity-60":"cursor-pointer"}`,children:[f.jsx("input",{type:"checkbox",className:"peer sr-only",checked:d,onChange:m,disabled:a}),f.jsx("div",{className:`${g5.mth_toggle} peer relative h-5 w-9 rounded-full
487
+ `])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},xe.button,function(t){var e=t.level,n=t.disabled,r=t.active,s=t.collapsed,a=t.rtl;return Ub({level:e,disabled:n,active:r,collapsed:s,rtl:a})},function(t){var e=t.buttonStyles;return e}),lP=function(t,e){var n,r=t.children,s=t.icon,a=t.className,o=t.prefix,i=t.suffix,l=t.active,c=l===void 0?!1:l,d=t.disabled,u=d===void 0?!1:d,h=t.component,g=t.rootStyles,m=zr(t,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),p=_.useContext(Bi),b=_.useContext(Fi),y=b.collapsed,v=b.rtl,k=b.transitionDuration,x=jd().menuItemStyles,w=function(N){if(x){var M={level:p,disabled:u,active:c,isSubmenu:!1},T=x.root,P=x.button,z=x.label,F=x.icon,O=x.prefix,C=x.suffix;switch(N){case"root":return typeof T=="function"?T(M):T;case"button":return typeof P=="function"?P(M):P;case"label":return typeof z=="function"?z(M):z;case"icon":return typeof F=="function"?F(M):F;case"prefix":return typeof O=="function"?O(M):O;case"suffix":return typeof C=="function"?C(M):C;default:return}}},S=(n={},n[xe.active]=c,n[xe.disabled]=u,n);return _.createElement(iP,{ref:e,className:lt(xe.menuItemRoot,S,a),menuItemStyles:w("root"),level:p,collapsed:y,rtl:v,disabled:u,active:c,buttonStyles:w("button"),rootStyles:g},_.createElement(Xb,Bt({className:lt(xe.button,S),"data-testid":"".concat(xe.button,"-test-id"),component:h,tabIndex:0},m),s&&_.createElement(pb,{rtl:v,className:lt(xe.icon,S),rootStyles:w("icon")},s),o&&_.createElement(yb,{collapsed:y,transitionDuration:k,firstLevel:p===0,className:lt(xe.prefix,S),rtl:v,rootStyles:w("prefix")},o),_.createElement(gb,{className:lt(xe.label,S),rootStyles:w("label")},r),i&&_.createElement(vb,{collapsed:y,transitionDuration:k,firstLevel:p===0,className:lt(xe.suffix,S),rootStyles:w("suffix")},i)))},cP=_.forwardRef(lP),Kb;const Yd=_.forwardRef((t,e)=>{const{imageUrl:n,icon:r,title:s,description:a,width:o,height:i,iconPosition:l,imagePosition:c}=t;return f.jsx("div",{className:`${Em.Card} flex flex-col border px-3.5 py-7`,ref:e,children:f.jsxs("div",{className:"flex justify-between",children:[n?f.jsx(Or,{classIm:c||"mx-auto",src:n,alt:s,width:o,height:i}):r?f.jsx("div",{className:`flex justify-${l||"center"}`,children:f.jsx(r,{size:o||50})}):null,f.jsx("div",{className:"flex flex-col pl-8",children:f.jsxs("h3",{className:"font-bold text-base md:text-lg text-end",children:[s," ",f.jsx("br",{}),a&&f.jsx("p",{className:"text-lg md:text-xl font-normal text-end",children:a})]})})]})})});Yd.displayName="Card";const dP=({aHref:t,logo:e,menuItems:n,campaignCards:r=[],onLogout:s,defaultCollapsed:a=!1,background:o="linear-gradient(180deg, rgba(25, 25, 96, 0.95) 0%, rgba(41, 41, 139, 0.95) 100%)",textColor:i="#ffffff",className:l=""})=>{const[c,d]=_.useState(a),[u,h]=_.useState(null),[g,m]=_.useState(new Set),[p,b]=_.useState(null),[y,v]=_.useState(null),k=n.filter(O=>O.position!=="bottom"),x=n.filter(O=>O.position==="bottom"),w=O=>typeof O=="string"?f.jsx("img",{src:O,style:{width:"20px",height:"20px"}}):O?_.createElement(O,{style:{width:"20px",height:"20px"}}):null,S=(O=!1,C=!1)=>({background:c?"transparent":C?"#FFFFFF55":O?"#FFFFFF22":"#FFFFFF33",color:i,borderRadius:O?"15px":"20px",button:{width:c?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:c?"0 0.25rem":"0 0.5rem",color:i,fontSize:O?"0.9rem":void 0}}),N=(O,C=!1,E)=>{const W=C?y===O.id:p===O.id;return f.jsx(cP,{icon:w(O.icon),onClick:()=>z(O,E),className:"mx-auto mb-1 rounded-md",rootStyles:S(C,W),children:C?O.label:f.jsxs("div",{className:"flex w-full items-center justify-between",children:[f.jsx("span",{children:O.label}),O.subMenuSection&&f.jsx(hD,{className:`text-lg transition-transform duration-200 ${g.has(O.id)?"rotate-180":""}`})]})},O.id)},M=O=>O.map(C=>f.jsxs("div",{children:[N(C),C.subMenuSection&&g.has(C.id)&&f.jsx("div",{className:"ml-4 space-y-1 mb-2",children:C.subMenuSection.items.map(E=>N(E,!0,C.id))})]},C.id)),T=()=>{u||d(!1)},P=()=>{u||(d(!0),m(new Set))},z=(O,C)=>{if(C?(b(C),v(O.id)):(b(O.id),v(null)),O.subMenuSection){const E=new Set(g);E.has(O.id)?E.delete(O.id):E.add(O.id),m(E)}else O.action?O.action():O.href&&(O.target==="_blank"?window.open(O.href,"_blank"):window.location.href=O.href)},F=O=>{O.action?O.action():O.href&&(O.target==="_blank"?window.open(O.href,"_blank"):window.location.href=O.href)};return f.jsx("div",{className:`fixed left-0 top-0 z-40 my-1 mx-2 ${l}`,children:f.jsxs("div",{className:"flex flex-col",onMouseEnter:T,onMouseLeave:P,children:[f.jsxs(FM,{collapsed:c,rootStyles:{[`.${Ue.container}`]:{background:o,color:i,height:"100vh",display:"flex",flexDirection:"column",width:c?"70px":"275px",transition:"all 400ms ease-in-out",borderRadius:"20px",boxShadow:"5px 0px 10px 0px #00000040;",padding:c?"0":"0.45rem"}},children:[f.jsx("div",{className:`${c?"mx-auto":""} mb-4 mt-10 `,children:f.jsx("a",{href:t||"/",children:f.jsx(Or,{classIm:`${c?"mx-auto":"mx-4"}`,src:`${c?e.src.collapsed:e.src.expanded}`,alt:e.alt,width:c?e.width.collapsed:e.width.expanded,height:c?e.height.collapsed:e.height.expanded})})}),f.jsxs("div",{className:"flex h-full flex-col",children:[f.jsxs(zM,{className:"mx-2 flex-1 relative",children:[f.jsx("div",{className:"flex flex-col",children:M(k)}),f.jsx("div",{className:` ${g.size===0?"absolute bottom-0":""} w-full`,children:M(x)})]}),s&&f.jsx("div",{className:"w-full cursor-pointer py-4 px-6 mt-auto mb-1",children:f.jsx("div",{className:"flex rounded-2xl mb-1",style:{background:c?"transparent":"#FFFFFF1A",float:c?"none":"right",width:c?"20px":"fit-content",height:c?"20px":"fit-content",padding:c?"0":"0.5rem"},onClick:s,children:f.jsx("button",{style:{color:i,width:c?"20px":"fit-content",height:c?"20px":"fit-content"},children:f.jsx("img",{src:"https://ftp.mathilde-ads.com/382-1a63116bc0d0909114f6c93af9d3dd8d.svg",alt:"logout",width:c?"25px":"fit-content",height:c?"25px":"fit-content"})})})})]})]}),r.length>0&&f.jsx(b0,{width:"40%",isOpen:u==="campaigns",onClose:()=>h(null),children:f.jsxs("div",{className:"flex flex-col px-10 pb-5",children:[f.jsx("h2",{className:"mb-3 text-center font-bold",children:"Selecciona el tipo de campaña que quieres crear"}),f.jsx("div",{className:"flex",children:r.map(O=>f.jsx("div",{className:"flex w-3/6 p-2",onClick:()=>F(O),children:f.jsx(Yd,{imageUrl:O.imageUrl,title:O.title,description:O.description})},O.id))})]})})]})})},Vd={"mth-color-primary":"pagination-module__mth-color-primary__hNTQd","mth-input-number":"pagination-module__mth-input-number__2TY-u"};function uP(t){return De({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"48",d:"M328 112 184 256l144 144"},child:[]}]})(t)}function fP(t){return De({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"48",d:"m184 112 144 144-144 144"},child:[]}]})(t)}function Qb(t){return De({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M368 368 144 144m224 0L144 368"},child:[]}]})(t)}const Ud=({currentPage:t,totalPages:e,onPageChange:n,value:r})=>f.jsxs("div",{className:"flex items-center justify-center gap-4",children:[f.jsxs("span",{className:"text-xs text-gray-700",children:["Ver  ",f.jsx("input",{type:"number",className:`w-8 h-8 text-xs ${Vd["mth-input-number"]}`,id:"itemsPerPage",defaultValue:r||15,maxLength:3})]}),f.jsx("button",{onClick:()=>n(t-1),disabled:t===1,className:" text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:f.jsx(uP,{className:`w-6 h-6 ${Vd["mth-color-primary"]}`})}),f.jsxs("span",{className:"text-xs text-gray-700",children:[t," DE ",e]}),f.jsx("button",{onClick:()=>n(t+1),disabled:t===e,className:"text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:f.jsx(fP,{className:`w-6 h-6 ${Vd["mth-color-primary"]}`})})]}),hP={mth_toggle:"toggle-module__mth_toggle__8NB4F"};function Xd({labelIzquierda:t,labelDerecha:e,checkedLabel:n,uncheckedLabel:r,checked:s=!1,disabled:a=!1,onChange:o,colors:i={},labelPosition:l="right",boldWhenActive:c=!1}){const[d,u]=_.useState(s),g={...{offBackgroundColor:"#EEEEEE",offCircleColor:"#BBBBBB",offCircleBorderColor:"#BBBBBB",onBackgroundColor:"#DEE9FF",onCircleColor:"#191960",onCircleBorderColor:"#191960"},...i},m=M=>{if(a)return;const T=M.target.checked;u(T),o==null||o(T)},p=d?g.onBackgroundColor:g.offBackgroundColor,b=d?g.onCircleColor:g.offCircleColor,y=d?g.onCircleBorderColor:g.offCircleBorderColor,v=t||n||r||e,k=`text-sm ${a?"text-gray-500":"text-gray-700"}`,x=t&&f.jsx("span",{className:!d&&c?"font-bold "+k:k,children:t}),w=e&&f.jsx("span",{className:d&&c?"font-bold "+k:k,children:e}),S=f.jsxs("label",{className:`inline-flex items-center ${a?"cursor-not-allowed opacity-60":"cursor-pointer"}`,children:[f.jsx("input",{type:"checkbox",className:"peer sr-only",checked:d,onChange:m,disabled:a}),f.jsx("div",{className:`${hP.mth_toggle} peer relative h-5 w-9 rounded-full
488
488
  after:absolute after:start-[2px]
489
489
  after:top-0.5 after:h-4
490
490
  after:w-4 after:rounded-full
491
491
  after:border after:transition-all after:content-['']
492
492
  peer-checked:after:translate-x-full
493
- dark:peer-focus:ring-blue-800 rtl:peer-checked:after:-translate-x-full`,style:{backgroundColor:p,borderColor:p,"--circle-color":b,"--circle-border-color":y}})]}),N=v&&f.jsx("span",{className:k,children:v});return l==="left"?f.jsxs("div",{className:"flex items-center gap-2",children:[x||N,S]}):l==="both"?f.jsxs("div",{className:"flex items-center gap-2",children:[x||N,S,w||N]}):f.jsxs("div",{className:"flex items-center gap-2",children:[S,w||N]})}const Kd=({variant:t,shape:e="pill",children:n})=>{const r=e==="badge"?"rounded px-2 py-0.5":"rounded-full px-2 py-1";return f.jsx("span",{className:`inline-flex items-center text-xs font-semibold ${r} ${t.bg} ${t.text} ${t.border??""}`.trim(),children:n})},m5={bg:"bg-gray-100",text:"text-gray-500"},Jb=(t,e)=>{const n=e.normalize?e.normalize(t):t.toLowerCase().trim();return e.variants[n]??e.defaultVariant??m5},qb=({value:t,config:e})=>{if(e.multiple){const r=Array.isArray(t)?t.map(String):t?[String(t)]:[];return f.jsx("div",{className:"flex flex-wrap gap-1",children:r.map(s=>f.jsx(Kd,{variant:Jb(s,e),shape:e.shape,children:s},s))})}const n=String(t??"");return f.jsx(Kd,{variant:Jb(n,e),shape:e.shape,children:n})},p5=({columns:t,data:e,showSearch:n=!1,itemsPerPage:r=5,title:s,classesHeadTable:a,classesBodyTable:o,showPagination:i=!0,showCheckboxes:l=!1,selectedRows:c=new Set,onToggleChange:d,onRowSelect:u,onSelectAll:h})=>{const[g,m]=H.useState(""),[p,b]=H.useState(1),[y,v]=H.useState(null),k=H.useMemo(()=>y?[...e].sort((O,C)=>{const E=O[y.key],W=C[y.key];return E==null||W==null?0:typeof E=="string"&&typeof W=="string"?y.direction==="asc"?E.localeCompare(W):W.localeCompare(E):y.direction==="asc"?Number(E)-Number(W):Number(W)-Number(E)}):e,[e,y]),x=H.useMemo(()=>g.trim()?k.filter(O=>t.some(C=>{const E=O[C.relation];return E!=null&&String(E).toLowerCase().includes(g.toLowerCase().trim())})):k,[k,g,t]),w=H.useMemo(()=>{const O=(p-1)*r,C=O+r;return x.slice(O,C)},[x,p,r]),S=Math.ceil(x.length/r),N=()=>{if(h){const O=w.length>0&&w.every(C=>c.has(C.id));h(!O)}},M=O=>{if(u){const C=c.has(O);u(O,!C)}},T=w.length>0&&w.every(O=>c.has(O.id)),P=c.size>0&&c.size<w.length,z=O=>{v(C=>!C||C.key!==O?{key:O,direction:"asc"}:{key:O,direction:C.direction==="asc"?"desc":"asc"})},F=(O,C)=>{const E=C[O.relation];if(O.isToggle){const W=!!E;return f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Xd,{checked:W,onChange:U=>d==null?void 0:d({rowId:C.id,checked:U,row:C,columnKey:O.relation}),disabled:!1}),O.toggleText&&f.jsx("span",{className:"text-sm text-gray-600",children:W?O.toggleText.active:O.toggleText.inactive})]})}if(O.badgeConfig)return f.jsx(qb,{value:E,config:O.badgeConfig});if(O.cell)return O.cell(C);if(O.component){const W=O.component;return H.createElement(W,{row:C,value:E,...O.cellProps||{}})}return E??""};return f.jsxs("div",{className:"w-full",children:[f.jsx("div",{className:"mb-2 flex items-center justify-between",children:s&&f.jsx("h2",{className:"text-base font-bold",children:s})}),f.jsx("div",{className:"flex",children:n&&f.jsx("div",{className:"w-1/2",children:f.jsx(ds,{rightIcon:_f,placeholder:"Buscar",value:g,onChange:O=>m(O.target.value)})})}),f.jsxs("div",{className:"mt-0",children:[f.jsx("div",{className:"overflow-x-auto",children:f.jsxs(tt,{children:[f.jsxs(tt.Head,{className:`mth_head_table ${a}`,children:[l&&f.jsx(tt.HeadCell,{children:f.jsx(aa,{checked:T,ref:O=>{O&&(O.indeterminate=P)},onChange:N})},`${l}-checkbox`),t.map((O,C)=>f.jsx(tt.HeadCell,{className:"cursor-pointer text-xs",onClick:()=>O.sortable!==!1&&z(O.relation),children:f.jsxs("div",{className:"flex items-center",children:[O.header,O.sortable!==!1&&f.jsx("span",{children:(y==null?void 0:y.key)===O.relation?y.direction==="desc"?f.jsx(xs,{className:"size-4"}):f.jsx(jc,{className:"size-4"}):f.jsx(xs,{className:"size-4 opacity-50"})})]})},`column-${C}-${O.relation}`))]}),f.jsx(tt.Body,{className:`divide-y text-xs md:text-base lg:text-base mth_body_table ${o}`,children:w.map(O=>f.jsxs(tt.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[l&&f.jsx(tt.Cell,{children:f.jsx(aa,{checked:c.has(O.id),onChange:()=>M(O.id)})},`${O.id}-checkbox`),t.map((C,E)=>f.jsx(tt.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:F(C,O)},`${O.id}-${E}`))]},O.id))})]})}),i&&S>1&&f.jsx("div",{className:"mt-2 flex w-full justify-end",children:f.jsx(Ud,{currentPage:p,totalPages:S,onPageChange:b})})]})]})},b5={"m-image-container":"layoutOutside-module__m-image-container__sCvFu"},y5=({content:t})=>f.jsxs("div",{className:"mt-12",children:[f.jsx("div",{style:{backgroundImage:"url('https://ftp.mathilde-ads.com/382-b4bf8bd2281b8a39dac4187eeb2e4232.png')",backgroundRepeat:"no-repeat",backgroundSize:"300px 300px",backgroundPosition:"left bottom",height:"100vh"},className:b5["m-image-container"]}),f.jsx("div",{className:"mx-auto mb-4 flex justify-center",children:f.jsx(Or,{classIm:"mx-auto",src:"https://ftp.mathilde-ads.com/382-769cbed25990320dc541cb445528e4b2.png",alt:"Logo Mathilde ads",width:300,height:250})}),t]}),w5=({onOpenModal:t,checked:e,onChange:n,label:r,...s})=>{const a=()=>{e||t(),n(!1)};return f.jsx("div",{className:"mb-5",children:f.jsxs("label",{className:ta["checkbox-container"],children:[f.jsx("input",{type:"checkbox",...s,checked:e,onChange:a,required:!0}),f.jsx("span",{className:ta.checkmark}),r&&f.jsx("span",{children:r})]})})},$b=({validations:t})=>{const e=({isValid:r})=>f.jsx("svg",{className:`me-2 h-3.5 w-3.5 ${r?"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:f.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"})}),n=[{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 f.jsx("ul",{className:"mb-3 max-w-md list-inside space-y-1 text-sm text-gray-500 dark:text-gray-400",children:n.map(({key:r,text:s})=>f.jsxs("li",{className:"flex items-center",children:[f.jsx(e,{isValid:t[r]}),s]},r))})},v5=()=>{const[t,e]=_.useState(""),[n,r]=_.useState(""),[s,a]=_.useState({hasMinLength:!1,hasNumber:!1,hasUpperCase:!1,hasLowerCase:!1,hasSpecialChar:!1});_.useEffect(()=>{a({hasMinLength:t.length>=8,hasNumber:/\d/.test(t),hasUpperCase:/[A-Z]/.test(t),hasLowerCase:/[a-z]/.test(t),hasSpecialChar:/[!@#$%^&*(),.?":{}|<>]/.test(t)})},[t]);const o=()=>t.trim()&&n.trim()&&t===n&&Object.values(s).every(l=>l);return{password:t,setPassword:e,confirmPassword:n,setConfirmPassword:r,showError:()=>!o()&&t.trim()&&n.trim(),validations:s}},x5=({formik:t})=>{const{password:e,setPassword:n,confirmPassword:r,setConfirmPassword:s,validations:a}=v5();return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"block",children:[f.jsx(Wc,{placeholder:"Contraseña",value:e,onChange:o=>{n(o.target.value),t.setFieldValue("password",o.target.value)},onBlur:t.handleBlur("password")}),t.errors.password&&t.touched.password&&f.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.password)})]}),f.jsxs("div",{className:"block",children:[f.jsx(Wc,{placeholder:"Confirmar contraseña",value:r,onChange:o=>{s(o.target.value),t.setFieldValue("confirmPassword",o.target.value)},onBlur:t.handleBlur("confirmPassword")}),t.errors.confirmPassword&&t.touched.confirmPassword&&f.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.confirmPassword)})]}),f.jsx($b,{validations:a})]})},k5=({items:t})=>{const[e,n]=_.useState([]),r=a=>{n(o=>o.includes(a)?o.filter(i=>i!==a):[...o,a])},s=(a,o=0)=>f.jsx("ul",{className:"list-none space-y-2",children:a.map(i=>{const l=i.subItems&&i.subItems.length>0,c=e.includes(i.id);return f.jsxs("li",{className:`
493
+ dark:peer-focus:ring-blue-800 rtl:peer-checked:after:-translate-x-full`,style:{backgroundColor:p,borderColor:p,"--circle-color":b,"--circle-border-color":y}})]}),N=v&&f.jsx("span",{className:k,children:v});return l==="left"?f.jsxs("div",{className:"flex items-center gap-2",children:[x||N,S]}):l==="both"?f.jsxs("div",{className:"flex items-center gap-2",children:[x||N,S,w||N]}):f.jsxs("div",{className:"flex items-center gap-2",children:[S,w||N]})}const gP={"tag-status-active":"Tag-module__tag-status-active__sxB2B",tagStatusActive:"Tag-module__tag-status-active__sxB2B","tag-status-in-use":"Tag-module__tag-status-in-use__MxP6E",tagStatusInUse:"Tag-module__tag-status-in-use__MxP6E","tag-status-error":"Tag-module__tag-status-error__l5Sfk",tagStatusError:"Tag-module__tag-status-error__l5Sfk","tag-status-processing":"Tag-module__tag-status-processing__YZMyD",tagStatusProcessing:"Tag-module__tag-status-processing__YZMyD","tag-ip":"Tag-module__tag-ip__08Rj3",tagIp:"Tag-module__tag-ip__08Rj3","tag-hash":"Tag-module__tag-hash__4DaiP",tagHash:"Tag-module__tag-hash__4DaiP","tag-custom":"Tag-module__tag-custom__viYxs",tagCustom:"Tag-module__tag-custom__viYxs","tag-default":"Tag-module__tag-default__vcE6f",tagDefault:"Tag-module__tag-default__vcE6f","tag-platform-fb":"Tag-module__tag-platform-fb__eD3vD",tagPlatformFb:"Tag-module__tag-platform-fb__eD3vD","tag-platform-gl":"Tag-module__tag-platform-gl__VRF6b",tagPlatformGl:"Tag-module__tag-platform-gl__VRF6b","tag-platform-tk":"Tag-module__tag-platform-tk__vMNxk",tagPlatformTk:"Tag-module__tag-platform-tk__vMNxk","tag-platform-mth":"Tag-module__tag-platform-mth__qnGxi",tagPlatformMth:"Tag-module__tag-platform-mth__qnGxi"},Gd=({variant:t,shape:e="pill",children:n})=>{const r=e==="badge"?"rounded px-2 py-0.5":"rounded-lg px-2";return f.jsx("span",{className:`inline-flex items-center text-[10px] font-normal ${r} ${gP[t.bg]} ${t.border??""}`.trim(),children:n})},mP={bg:"bg-gray-100",text:"text-gray-500"},Zb=(t,e)=>{const n=e.normalize?e.normalize(t):t.toLowerCase().trim();return e.variants[n]??e.defaultVariant??mP},Jb=({value:t,config:e})=>{if(e.multiple){const r=Array.isArray(t)?t.map(String):t?[String(t)]:[];return f.jsx("div",{className:"flex flex-wrap gap-1",children:r.map(s=>f.jsx(Gd,{variant:Zb(s,e),shape:e.shape,children:s},s))})}const n=String(t??"");return f.jsx(Gd,{variant:Zb(n,e),shape:e.shape,children:n})},pP=({columns:t,data:e,showSearch:n=!1,itemsPerPage:r=5,title:s,classesHeadTable:a,classesBodyTable:o,showPagination:i=!0,showCheckboxes:l=!1,selectedRows:c=new Set,onToggleChange:d,onRowSelect:u,onSelectAll:h})=>{const[g,m]=H.useState(""),[p,b]=H.useState(1),[y,v]=H.useState(null),k=H.useMemo(()=>y?[...e].sort((O,C)=>{const E=O[y.key],W=C[y.key];return E==null||W==null?0:typeof E=="string"&&typeof W=="string"?y.direction==="asc"?E.localeCompare(W):W.localeCompare(E):y.direction==="asc"?Number(E)-Number(W):Number(W)-Number(E)}):e,[e,y]),x=H.useMemo(()=>g.trim()?k.filter(O=>t.some(C=>{const E=O[C.relation];return E!=null&&String(E).toLowerCase().includes(g.toLowerCase().trim())})):k,[k,g,t]),w=H.useMemo(()=>{const O=(p-1)*r,C=O+r;return x.slice(O,C)},[x,p,r]),S=Math.ceil(x.length/r),N=()=>{if(h){const O=w.length>0&&w.every(C=>c.has(C.id));h(!O)}},M=O=>{if(u){const C=c.has(O);u(O,!C)}},T=w.length>0&&w.every(O=>c.has(O.id)),P=c.size>0&&c.size<w.length,z=O=>{v(C=>!C||C.key!==O?{key:O,direction:"asc"}:{key:O,direction:C.direction==="asc"?"desc":"asc"})},F=(O,C)=>{const E=C[O.relation];if(O.isToggle){const W=!!E;return f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Xd,{checked:W,onChange:U=>d==null?void 0:d({rowId:C.id,checked:U,row:C,columnKey:O.relation}),disabled:!1}),O.toggleText&&f.jsx("span",{className:"text-sm text-gray-600",children:W?O.toggleText.active:O.toggleText.inactive})]})}if(O.badgeConfig)return f.jsx(Jb,{value:E,config:O.badgeConfig});if(O.cell)return O.cell(C);if(O.component){const W=O.component;return H.createElement(W,{row:C,value:E,...O.cellProps||{}})}return E??""};return f.jsxs("div",{className:"w-full",children:[f.jsx("div",{className:"mb-2 flex items-center justify-between",children:s&&f.jsx("h2",{className:"text-base font-bold",children:s})}),f.jsx("div",{className:"flex",children:n&&f.jsx("div",{className:"w-1/2",children:f.jsx(ds,{rightIcon:kf,placeholder:"Buscar",value:g,onChange:O=>m(O.target.value)})})}),f.jsxs("div",{className:"mt-0",children:[f.jsx("div",{className:"overflow-x-auto",children:f.jsxs(tt,{children:[f.jsxs(tt.Head,{className:`mth_head_table ${a}`,children:[l&&f.jsx(tt.HeadCell,{children:f.jsx(aa,{checked:T,ref:O=>{O&&(O.indeterminate=P)},onChange:N})},`${l}-checkbox`),t.map((O,C)=>f.jsx(tt.HeadCell,{className:"cursor-pointer text-xs",onClick:()=>O.sortable!==!1&&z(O.relation),children:f.jsxs("div",{className:"flex items-center",children:[O.header,O.sortable!==!1&&f.jsx("span",{children:(y==null?void 0:y.key)===O.relation?y.direction==="desc"?f.jsx(xs,{className:"size-4"}):f.jsx(jc,{className:"size-4"}):f.jsx(xs,{className:"size-4 opacity-50"})})]})},`column-${C}-${O.relation}`))]}),f.jsx(tt.Body,{className:`divide-y text-xs md:text-base lg:text-base mth_body_table ${o}`,children:w.map(O=>f.jsxs(tt.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[l&&f.jsx(tt.Cell,{children:f.jsx(aa,{checked:c.has(O.id),onChange:()=>M(O.id)})},`${O.id}-checkbox`),t.map((C,E)=>f.jsx(tt.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:F(C,O)},`${O.id}-${E}`))]},O.id))})]})}),i&&S>1&&f.jsx("div",{className:"mt-2 flex w-full justify-end",children:f.jsx(Ud,{currentPage:p,totalPages:S,onPageChange:b})})]})]})},bP={"m-image-container":"layoutOutside-module__m-image-container__sCvFu"},yP=({content:t})=>f.jsxs("div",{className:"mt-12",children:[f.jsx("div",{style:{backgroundImage:"url('https://ftp.mathilde-ads.com/382-b4bf8bd2281b8a39dac4187eeb2e4232.png')",backgroundRepeat:"no-repeat",backgroundSize:"300px 300px",backgroundPosition:"left bottom",height:"100vh"},className:bP["m-image-container"]}),f.jsx("div",{className:"mx-auto mb-4 flex justify-center",children:f.jsx(Or,{classIm:"mx-auto",src:"https://ftp.mathilde-ads.com/382-769cbed25990320dc541cb445528e4b2.png",alt:"Logo Mathilde ads",width:300,height:250})}),t]}),wP=({onOpenModal:t,checked:e,onChange:n,label:r,...s})=>{const a=()=>{e||t(),n(!1)};return f.jsx("div",{className:"mb-5",children:f.jsxs("label",{className:ta["checkbox-container"],children:[f.jsx("input",{type:"checkbox",...s,checked:e,onChange:a,required:!0}),f.jsx("span",{className:ta.checkmark}),r&&f.jsx("span",{children:r})]})})},qb=({validations:t})=>{const e=({isValid:r})=>f.jsx("svg",{className:`me-2 h-3.5 w-3.5 ${r?"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:f.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"})}),n=[{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 f.jsx("ul",{className:"mb-3 max-w-md list-inside space-y-1 text-sm text-gray-500 dark:text-gray-400",children:n.map(({key:r,text:s})=>f.jsxs("li",{className:"flex items-center",children:[f.jsx(e,{isValid:t[r]}),s]},r))})},vP=()=>{const[t,e]=_.useState(""),[n,r]=_.useState(""),[s,a]=_.useState({hasMinLength:!1,hasNumber:!1,hasUpperCase:!1,hasLowerCase:!1,hasSpecialChar:!1});_.useEffect(()=>{a({hasMinLength:t.length>=8,hasNumber:/\d/.test(t),hasUpperCase:/[A-Z]/.test(t),hasLowerCase:/[a-z]/.test(t),hasSpecialChar:/[!@#$%^&*(),.?":{}|<>]/.test(t)})},[t]);const o=()=>t.trim()&&n.trim()&&t===n&&Object.values(s).every(l=>l);return{password:t,setPassword:e,confirmPassword:n,setConfirmPassword:r,showError:()=>!o()&&t.trim()&&n.trim(),validations:s}},xP=({formik:t})=>{const{password:e,setPassword:n,confirmPassword:r,setConfirmPassword:s,validations:a}=vP();return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"block",children:[f.jsx(Wc,{placeholder:"Contraseña",value:e,onChange:o=>{n(o.target.value),t.setFieldValue("password",o.target.value)},onBlur:t.handleBlur("password")}),t.errors.password&&t.touched.password&&f.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.password)})]}),f.jsxs("div",{className:"block",children:[f.jsx(Wc,{placeholder:"Confirmar contraseña",value:r,onChange:o=>{s(o.target.value),t.setFieldValue("confirmPassword",o.target.value)},onBlur:t.handleBlur("confirmPassword")}),t.errors.confirmPassword&&t.touched.confirmPassword&&f.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.confirmPassword)})]}),f.jsx(qb,{validations:a})]})},kP=({items:t})=>{const[e,n]=_.useState([]),r=a=>{n(o=>o.includes(a)?o.filter(i=>i!==a):[...o,a])},s=(a,o=0)=>f.jsx("ul",{className:"list-none space-y-2",children:a.map(i=>{const l=i.subItems&&i.subItems.length>0,c=e.includes(i.id);return f.jsxs("li",{className:`
494
494
  ${o>0?"ml-7":""}
495
495
  `,children:[f.jsxs("div",{className:"flex items-center gap-2 py-1",children:[f.jsxs("div",{className:"flex min-w-[48px] items-center gap-1",children:[l&&f.jsx("button",{onClick:()=>r(i.id),className:"rounded-full p-1 transition-transform duration-200 hover:bg-gray-100",children:c?f.jsx(jc,{className:"text-sm text-gray-500"}):f.jsx(xs,{className:"text-sm text-gray-500"})}),!l&&f.jsx("div",{className:"w-[28px]"})," ",i.icon&&f.jsx(i.icon,{className:`text-lg ${i.isActive?"text-blue-700 dark:text-blue-500":"text-gray-600"}`})]}),f.jsx("a",{href:i.href,className:`
496
496
  flex-grow transition-colors duration-200
@@ -498,7 +498,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
498
498
  `,children:i.title})]}),l&&c&&s(i.subItems||[],o+1)]},i.id)})});return f.jsx("nav",{id:"TableOfContents",children:s(t)})};/*!
499
499
  * sweetalert2 v11.26.4
500
500
  * Released under the MIT License.
501
- */function ey(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function _5(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ty(t,e){return t.get(ey(t,e))}function S5(t,e,n){_5(t,e),e.set(t,n)}function O5(t,e,n){return t.set(ey(t,e),n),n}const C5=100,de={},D5=()=>{de.previousActiveElement instanceof HTMLElement?(de.previousActiveElement.focus(),de.previousActiveElement=null):document.body&&document.body.focus()},M5=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;de.restoreFocusTimeout=setTimeout(()=>{D5(),e()},C5),window.scrollTo(n,r)}),ny="swal2-",X=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((t,e)=>(t[e]=ny+e,t),{}),Ui=["success","warning","info","question","error"].reduce((t,e)=>(t[e]=ny+e,t),{}),ry="SweetAlert2:",Gd=t=>t.charAt(0).toUpperCase()+t.slice(1),St=t=>{console.warn(`${ry} ${typeof t=="object"?t.join(" "):t}`)},Xr=t=>{console.error(`${ry} ${t}`)},sy=[],E5=t=>{sy.includes(t)||(sy.push(t),St(t))},ay=(t,e=null)=>{E5(`"${t}" is deprecated and will be removed in the next major release.${e?` Use "${e}" instead.`:""}`)},Xi=t=>typeof t=="function"?t():t,Qd=t=>t&&typeof t.toPromise=="function",$a=t=>Qd(t)?t.toPromise():Promise.resolve(t),Zd=t=>t&&Promise.resolve(t)===t,Ot=()=>document.body.querySelector(`.${X.container}`),eo=t=>{const e=Ot();return e?e.querySelector(t):null},Ht=t=>eo(`.${t}`),we=()=>Ht(X.popup),Is=()=>Ht(X.icon),P5=()=>Ht(X["icon-content"]),oy=()=>Ht(X.title),Jd=()=>Ht(X["html-container"]),iy=()=>Ht(X.image),qd=()=>Ht(X["progress-steps"]),Ki=()=>Ht(X["validation-message"]),On=()=>eo(`.${X.actions} .${X.confirm}`),As=()=>eo(`.${X.actions} .${X.cancel}`),Kr=()=>eo(`.${X.actions} .${X.deny}`),T5=()=>Ht(X["input-label"]),Rs=()=>eo(`.${X.loader}`),to=()=>Ht(X.actions),ly=()=>Ht(X.footer),Gi=()=>Ht(X["timer-progress-bar"]),$d=()=>Ht(X.close),N5=`
501
+ */function $b(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function _P(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ey(t,e){return t.get($b(t,e))}function SP(t,e,n){_P(t,e),e.set(t,n)}function OP(t,e,n){return t.set($b(t,e),n),n}const CP=100,de={},DP=()=>{de.previousActiveElement instanceof HTMLElement?(de.previousActiveElement.focus(),de.previousActiveElement=null):document.body&&document.body.focus()},MP=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;de.restoreFocusTimeout=setTimeout(()=>{DP(),e()},CP),window.scrollTo(n,r)}),ty="swal2-",X=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((t,e)=>(t[e]=ty+e,t),{}),Ui=["success","warning","info","question","error"].reduce((t,e)=>(t[e]=ty+e,t),{}),ny="SweetAlert2:",Kd=t=>t.charAt(0).toUpperCase()+t.slice(1),St=t=>{console.warn(`${ny} ${typeof t=="object"?t.join(" "):t}`)},Xr=t=>{console.error(`${ny} ${t}`)},ry=[],EP=t=>{ry.includes(t)||(ry.push(t),St(t))},sy=(t,e=null)=>{EP(`"${t}" is deprecated and will be removed in the next major release.${e?` Use "${e}" instead.`:""}`)},Xi=t=>typeof t=="function"?t():t,Qd=t=>t&&typeof t.toPromise=="function",$a=t=>Qd(t)?t.toPromise():Promise.resolve(t),Zd=t=>t&&Promise.resolve(t)===t,Ot=()=>document.body.querySelector(`.${X.container}`),eo=t=>{const e=Ot();return e?e.querySelector(t):null},Ht=t=>eo(`.${t}`),we=()=>Ht(X.popup),Is=()=>Ht(X.icon),PP=()=>Ht(X["icon-content"]),ay=()=>Ht(X.title),Jd=()=>Ht(X["html-container"]),oy=()=>Ht(X.image),qd=()=>Ht(X["progress-steps"]),Gi=()=>Ht(X["validation-message"]),On=()=>eo(`.${X.actions} .${X.confirm}`),As=()=>eo(`.${X.actions} .${X.cancel}`),Gr=()=>eo(`.${X.actions} .${X.deny}`),TP=()=>Ht(X["input-label"]),Rs=()=>eo(`.${X.loader}`),to=()=>Ht(X.actions),iy=()=>Ht(X.footer),Ki=()=>Ht(X["timer-progress-bar"]),$d=()=>Ht(X.close),NP=`
502
502
  a[href],
503
503
  area[href],
504
504
  input:not([disabled]),
@@ -513,7 +513,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
513
513
  audio[controls],
514
514
  video[controls],
515
515
  summary
516
- `,eu=()=>{const t=we();if(!t)return[];const e=t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(e).sort((a,o)=>{const i=parseInt(a.getAttribute("tabindex")||"0"),l=parseInt(o.getAttribute("tabindex")||"0");return i>l?1:i<l?-1:0}),r=t.querySelectorAll(N5),s=Array.from(r).filter(a=>a.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(s))].filter(a=>At(a))},tu=()=>Un(document.body,X.shown)&&!Un(document.body,X["toast-shown"])&&!Un(document.body,X["no-backdrop"]),Qi=()=>{const t=we();return t?Un(t,X.toast):!1},j5=()=>{const t=we();return t?t.hasAttribute("data-loading"):!1},Yt=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html"),s=r.querySelector("head");s&&Array.from(s.childNodes).forEach(o=>{t.appendChild(o)});const a=r.querySelector("body");a&&Array.from(a.childNodes).forEach(o=>{o instanceof HTMLVideoElement||o instanceof HTMLAudioElement?t.appendChild(o.cloneNode(!0)):t.appendChild(o)})}},Un=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let r=0;r<n.length;r++)if(!t.classList.contains(n[r]))return!1;return!0},I5=(t,e)=>{Array.from(t.classList).forEach(n=>{!Object.values(X).includes(n)&&!Object.values(Ui).includes(n)&&!Object.values(e.showClass||{}).includes(n)&&t.classList.remove(n)})},Vt=(t,e,n)=>{if(I5(t,e),!e.customClass)return;const r=e.customClass[n];if(r){if(typeof r!="string"&&!r.forEach){St(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`);return}ke(t,r)}},Zi=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${X.popup} > .${X[e]}`);case"checkbox":return t.querySelector(`.${X.popup} > .${X.checkbox} input`);case"radio":return t.querySelector(`.${X.popup} > .${X.radio} input:checked`)||t.querySelector(`.${X.popup} > .${X.radio} input:first-child`);case"range":return t.querySelector(`.${X.popup} > .${X.range} input`);default:return t.querySelector(`.${X.popup} > .${X.input}`)}},cy=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},dy=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(r=>{Array.isArray(t)?t.forEach(s=>{n?s.classList.add(r):s.classList.remove(r)}):n?t.classList.add(r):t.classList.remove(r)}))},ke=(t,e)=>{dy(t,e,!0)},nn=(t,e)=>{dy(t,e,!1)},mr=(t,e)=>{const n=Array.from(t.children);for(let r=0;r<n.length;r++){const s=n[r];if(s instanceof HTMLElement&&Un(s,e))return s}},Gr=(t,e,n)=>{n===`${parseInt(`${n}`)}`&&(n=parseInt(n)),n||parseInt(`${n}`)===0?t.style.setProperty(e,typeof n=="number"?`${n}px`:n):t.style.removeProperty(e)},ut=(t,e="flex")=>{t&&(t.style.display=e)},kt=t=>{t&&(t.style.display="none")},nu=(t,e="block")=>{t&&new MutationObserver(()=>{no(t,t.innerHTML,e)}).observe(t,{childList:!0,subtree:!0})},uy=(t,e,n,r)=>{const s=t.querySelector(e);s&&s.style.setProperty(n,r)},no=(t,e,n="flex")=>{e?ut(t,n):kt(t)},At=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),A5=()=>!At(On())&&!At(Kr())&&!At(As()),ru=t=>t.scrollHeight>t.clientHeight,R5=(t,e)=>{let n=t;for(;n&&n!==e;){if(ru(n))return!0;n=n.parentElement}return!1},fy=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},su=(t,e=!1)=>{const n=Gi();n&&At(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},L5=()=>{const t=Gi();if(!t)return;const e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),r=e/n*100;t.style.width=`${r}%`},F5=()=>typeof window>"u"||typeof document>"u",B5=`
516
+ `,eu=()=>{const t=we();if(!t)return[];const e=t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(e).sort((a,o)=>{const i=parseInt(a.getAttribute("tabindex")||"0"),l=parseInt(o.getAttribute("tabindex")||"0");return i>l?1:i<l?-1:0}),r=t.querySelectorAll(NP),s=Array.from(r).filter(a=>a.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(s))].filter(a=>At(a))},tu=()=>Un(document.body,X.shown)&&!Un(document.body,X["toast-shown"])&&!Un(document.body,X["no-backdrop"]),Qi=()=>{const t=we();return t?Un(t,X.toast):!1},jP=()=>{const t=we();return t?t.hasAttribute("data-loading"):!1},Yt=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html"),s=r.querySelector("head");s&&Array.from(s.childNodes).forEach(o=>{t.appendChild(o)});const a=r.querySelector("body");a&&Array.from(a.childNodes).forEach(o=>{o instanceof HTMLVideoElement||o instanceof HTMLAudioElement?t.appendChild(o.cloneNode(!0)):t.appendChild(o)})}},Un=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let r=0;r<n.length;r++)if(!t.classList.contains(n[r]))return!1;return!0},IP=(t,e)=>{Array.from(t.classList).forEach(n=>{!Object.values(X).includes(n)&&!Object.values(Ui).includes(n)&&!Object.values(e.showClass||{}).includes(n)&&t.classList.remove(n)})},Vt=(t,e,n)=>{if(IP(t,e),!e.customClass)return;const r=e.customClass[n];if(r){if(typeof r!="string"&&!r.forEach){St(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`);return}ke(t,r)}},Zi=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${X.popup} > .${X[e]}`);case"checkbox":return t.querySelector(`.${X.popup} > .${X.checkbox} input`);case"radio":return t.querySelector(`.${X.popup} > .${X.radio} input:checked`)||t.querySelector(`.${X.popup} > .${X.radio} input:first-child`);case"range":return t.querySelector(`.${X.popup} > .${X.range} input`);default:return t.querySelector(`.${X.popup} > .${X.input}`)}},ly=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},cy=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(r=>{Array.isArray(t)?t.forEach(s=>{n?s.classList.add(r):s.classList.remove(r)}):n?t.classList.add(r):t.classList.remove(r)}))},ke=(t,e)=>{cy(t,e,!0)},nn=(t,e)=>{cy(t,e,!1)},mr=(t,e)=>{const n=Array.from(t.children);for(let r=0;r<n.length;r++){const s=n[r];if(s instanceof HTMLElement&&Un(s,e))return s}},Kr=(t,e,n)=>{n===`${parseInt(`${n}`)}`&&(n=parseInt(n)),n||parseInt(`${n}`)===0?t.style.setProperty(e,typeof n=="number"?`${n}px`:n):t.style.removeProperty(e)},ut=(t,e="flex")=>{t&&(t.style.display=e)},kt=t=>{t&&(t.style.display="none")},nu=(t,e="block")=>{t&&new MutationObserver(()=>{no(t,t.innerHTML,e)}).observe(t,{childList:!0,subtree:!0})},dy=(t,e,n,r)=>{const s=t.querySelector(e);s&&s.style.setProperty(n,r)},no=(t,e,n="flex")=>{e?ut(t,n):kt(t)},At=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),AP=()=>!At(On())&&!At(Gr())&&!At(As()),ru=t=>t.scrollHeight>t.clientHeight,RP=(t,e)=>{let n=t;for(;n&&n!==e;){if(ru(n))return!0;n=n.parentElement}return!1},uy=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},su=(t,e=!1)=>{const n=Ki();n&&At(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},LP=()=>{const t=Ki();if(!t)return;const e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),r=e/n*100;t.style.width=`${r}%`},FP=()=>typeof window>"u"||typeof document>"u",BP=`
517
517
  <div aria-labelledby="${X.title}" aria-describedby="${X["html-container"]}" class="${X.popup}" tabindex="-1">
518
518
  <button type="button" class="${X.close}"></button>
519
519
  <ul class="${X["progress-steps"]}"></ul>
@@ -546,39 +546,39 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
546
546
  <div class="${X["timer-progress-bar"]}"></div>
547
547
  </div>
548
548
  </div>
549
- `.replace(/(^|\n)\s*/g,""),W5=()=>{const t=Ot();return t?(t.remove(),nn([document.documentElement,document.body],[X["no-backdrop"],X["toast-shown"],X["has-column"]]),!0):!1},Qr=()=>{de.currentInstance.resetValidationMessage()},z5=()=>{const t=we(),e=mr(t,X.input),n=mr(t,X.file),r=t.querySelector(`.${X.range} input`),s=t.querySelector(`.${X.range} output`),a=mr(t,X.select),o=t.querySelector(`.${X.checkbox} input`),i=mr(t,X.textarea);e.oninput=Qr,n.onchange=Qr,a.onchange=Qr,o.onchange=Qr,i.oninput=Qr,r.oninput=()=>{Qr(),s.value=r.value},r.onchange=()=>{Qr(),s.value=r.value}},H5=t=>typeof t=="string"?document.querySelector(t):t,Y5=t=>{const e=we();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},V5=t=>{window.getComputedStyle(t).direction==="rtl"&&(ke(Ot(),X.rtl),de.isRTL=!0)},U5=t=>{const e=W5();if(F5()){Xr("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=X.container,e&&ke(n,X["no-transition"]),Yt(n,B5),n.dataset.swal2Theme=t.theme;const r=H5(t.target);r.appendChild(n),t.topLayer&&(n.setAttribute("popover",""),n.showPopover()),Y5(t),V5(r),z5()},au=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?X5(t,e):t&&Yt(e,t)},X5=(t,e)=>{t.jquery?K5(e,t):Yt(e,t.toString())},K5=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},G5=(t,e)=>{const n=to(),r=Rs();!n||!r||(!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?kt(n):ut(n),Vt(n,e,"actions"),Q5(n,r,e),Yt(r,e.loaderHtml||""),Vt(r,e,"loader"))};function Q5(t,e,n){const r=On(),s=Kr(),a=As();!r||!s||!a||(iu(r,"confirm",n),iu(s,"deny",n),iu(a,"cancel",n),Z5(r,s,a,n),n.reverseButtons&&(n.toast?(t.insertBefore(a,r),t.insertBefore(s,r)):(t.insertBefore(a,e),t.insertBefore(s,e),t.insertBefore(r,e))))}function Z5(t,e,n,r){if(!r.buttonsStyling){nn([t,e,n],X.styled);return}ke([t,e,n],X.styled),r.confirmButtonColor&&t.style.setProperty("--swal2-confirm-button-background-color",r.confirmButtonColor),r.denyButtonColor&&e.style.setProperty("--swal2-deny-button-background-color",r.denyButtonColor),r.cancelButtonColor&&n.style.setProperty("--swal2-cancel-button-background-color",r.cancelButtonColor),ou(t),ou(e),ou(n)}function ou(t){const e=window.getComputedStyle(t);if(e.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const n=e.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");t.style.setProperty("--swal2-action-button-focus-box-shadow",e.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function iu(t,e,n){const r=Gd(e);no(t,n[`show${r}Button`],"inline-block"),Yt(t,n[`${e}ButtonText`]||""),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]||""),t.className=X[e],Vt(t,n,`${e}Button`)}const J5=(t,e)=>{const n=$d();n&&(Yt(n,e.closeButtonHtml||""),Vt(n,e,"closeButton"),no(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel||""))},q5=(t,e)=>{const n=Ot();n&&($5(n,e.backdrop),eP(n,e.position),tP(n,e.grow),Vt(n,e,"container"))};function $5(t,e){typeof e=="string"?t.style.background=e:e||ke([document.documentElement,document.body],X["no-backdrop"])}function eP(t,e){e&&(e in X?ke(t,X[e]):(St('The "position" parameter is not valid, defaulting to "center"'),ke(t,X.center)))}function tP(t,e){e&&ke(t,X[`grow-${e}`])}var Ae={innerParams:new WeakMap,domCache:new WeakMap};const nP=["input","file","range","select","radio","checkbox","textarea"],rP=(t,e)=>{const n=we();if(!n)return;const r=Ae.innerParams.get(t),s=!r||e.input!==r.input;nP.forEach(a=>{const o=mr(n,X[a]);o&&(oP(a,e.inputAttributes),o.className=X[a],s&&kt(o))}),e.input&&(s&&sP(e),iP(e))},sP=t=>{if(!t.input)return;if(!Qe[t.input]){Xr(`Unexpected type of input! Expected ${Object.keys(Qe).join(" | ")}, got "${t.input}"`);return}const e=hy(t.input);if(!e)return;const n=Qe[t.input](e,t);ut(e),t.inputAutoFocus&&setTimeout(()=>{cy(n)})},aP=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["id","type","value","style"].includes(n)||t.removeAttribute(n)}},oP=(t,e)=>{const n=we();if(!n)return;const r=Zi(n,t);if(r){aP(r);for(const s in e)r.setAttribute(s,e[s])}},iP=t=>{if(!t.input)return;const e=hy(t.input);e&&Vt(e,t,"input")},lu=(t,e)=>{!t.placeholder&&e.inputPlaceholder&&(t.placeholder=e.inputPlaceholder)},ro=(t,e,n)=>{if(n.inputLabel){const r=document.createElement("label"),s=X["input-label"];r.setAttribute("for",t.id),r.className=s,typeof n.customClass=="object"&&ke(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},hy=t=>{const e=we();if(e)return mr(e,X[t]||X.input)},Ji=(t,e)=>{["string","number"].includes(typeof e)?t.value=`${e}`:Zd(e)||St(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`)},Qe={};Qe.text=Qe.email=Qe.password=Qe.number=Qe.tel=Qe.url=Qe.search=Qe.date=Qe["datetime-local"]=Qe.time=Qe.week=Qe.month=(t,e)=>(Ji(t,e.inputValue),ro(t,t,e),lu(t,e),t.type=e.input,t),Qe.file=(t,e)=>(ro(t,t,e),lu(t,e),t),Qe.range=(t,e)=>{const n=t.querySelector("input"),r=t.querySelector("output");return Ji(n,e.inputValue),n.type=e.input,Ji(r,e.inputValue),ro(n,t,e),t},Qe.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");Yt(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return ro(t,t,e),t},Qe.radio=t=>(t.textContent="",t),Qe.checkbox=(t,e)=>{const n=Zi(we(),"checkbox");n.value="1",n.checked=!!e.inputValue;const r=t.querySelector("span");return Yt(r,e.inputPlaceholder||e.inputLabel),n},Qe.textarea=(t,e)=>{Ji(t,e.inputValue),lu(t,e),ro(t,t,e);const n=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(we()).width),s=()=>{if(!document.body.contains(t))return;const a=t.offsetWidth+n(t);a>r?we().style.width=`${a}px`:Gr(we(),"width",e.width)};new MutationObserver(s).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const lP=(t,e)=>{const n=Jd();n&&(nu(n),Vt(n,e,"htmlContainer"),e.html?(au(e.html,n),ut(n,"block")):e.text?(n.textContent=e.text,ut(n,"block")):kt(n),rP(t,e))},cP=(t,e)=>{const n=ly();n&&(nu(n),no(n,!!e.footer,"block"),e.footer&&au(e.footer,n),Vt(n,e,"footer"))},dP=(t,e)=>{const n=Ae.innerParams.get(t),r=Is();if(!r)return;if(n&&e.icon===n.icon){py(r,e),gy(r,e);return}if(!e.icon&&!e.iconHtml){kt(r);return}if(e.icon&&Object.keys(Ui).indexOf(e.icon)===-1){Xr(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),kt(r);return}ut(r),py(r,e),gy(r,e),ke(r,e.showClass&&e.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",my)},gy=(t,e)=>{for(const[n,r]of Object.entries(Ui))e.icon!==n&&nn(t,r);ke(t,e.icon&&Ui[e.icon]),hP(t,e),my(),Vt(t,e,"icon")},my=()=>{const t=we();if(!t)return;const e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=e},uP=t=>`
549
+ `.replace(/(^|\n)\s*/g,""),WP=()=>{const t=Ot();return t?(t.remove(),nn([document.documentElement,document.body],[X["no-backdrop"],X["toast-shown"],X["has-column"]]),!0):!1},Qr=()=>{de.currentInstance.resetValidationMessage()},zP=()=>{const t=we(),e=mr(t,X.input),n=mr(t,X.file),r=t.querySelector(`.${X.range} input`),s=t.querySelector(`.${X.range} output`),a=mr(t,X.select),o=t.querySelector(`.${X.checkbox} input`),i=mr(t,X.textarea);e.oninput=Qr,n.onchange=Qr,a.onchange=Qr,o.onchange=Qr,i.oninput=Qr,r.oninput=()=>{Qr(),s.value=r.value},r.onchange=()=>{Qr(),s.value=r.value}},HP=t=>typeof t=="string"?document.querySelector(t):t,YP=t=>{const e=we();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},VP=t=>{window.getComputedStyle(t).direction==="rtl"&&(ke(Ot(),X.rtl),de.isRTL=!0)},UP=t=>{const e=WP();if(FP()){Xr("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=X.container,e&&ke(n,X["no-transition"]),Yt(n,BP),n.dataset.swal2Theme=t.theme;const r=HP(t.target);r.appendChild(n),t.topLayer&&(n.setAttribute("popover",""),n.showPopover()),YP(t),VP(r),zP()},au=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?XP(t,e):t&&Yt(e,t)},XP=(t,e)=>{t.jquery?GP(e,t):Yt(e,t.toString())},GP=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},KP=(t,e)=>{const n=to(),r=Rs();!n||!r||(!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?kt(n):ut(n),Vt(n,e,"actions"),QP(n,r,e),Yt(r,e.loaderHtml||""),Vt(r,e,"loader"))};function QP(t,e,n){const r=On(),s=Gr(),a=As();!r||!s||!a||(iu(r,"confirm",n),iu(s,"deny",n),iu(a,"cancel",n),ZP(r,s,a,n),n.reverseButtons&&(n.toast?(t.insertBefore(a,r),t.insertBefore(s,r)):(t.insertBefore(a,e),t.insertBefore(s,e),t.insertBefore(r,e))))}function ZP(t,e,n,r){if(!r.buttonsStyling){nn([t,e,n],X.styled);return}ke([t,e,n],X.styled),r.confirmButtonColor&&t.style.setProperty("--swal2-confirm-button-background-color",r.confirmButtonColor),r.denyButtonColor&&e.style.setProperty("--swal2-deny-button-background-color",r.denyButtonColor),r.cancelButtonColor&&n.style.setProperty("--swal2-cancel-button-background-color",r.cancelButtonColor),ou(t),ou(e),ou(n)}function ou(t){const e=window.getComputedStyle(t);if(e.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const n=e.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");t.style.setProperty("--swal2-action-button-focus-box-shadow",e.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function iu(t,e,n){const r=Kd(e);no(t,n[`show${r}Button`],"inline-block"),Yt(t,n[`${e}ButtonText`]||""),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]||""),t.className=X[e],Vt(t,n,`${e}Button`)}const JP=(t,e)=>{const n=$d();n&&(Yt(n,e.closeButtonHtml||""),Vt(n,e,"closeButton"),no(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel||""))},qP=(t,e)=>{const n=Ot();n&&($P(n,e.backdrop),eT(n,e.position),tT(n,e.grow),Vt(n,e,"container"))};function $P(t,e){typeof e=="string"?t.style.background=e:e||ke([document.documentElement,document.body],X["no-backdrop"])}function eT(t,e){e&&(e in X?ke(t,X[e]):(St('The "position" parameter is not valid, defaulting to "center"'),ke(t,X.center)))}function tT(t,e){e&&ke(t,X[`grow-${e}`])}var Ae={innerParams:new WeakMap,domCache:new WeakMap};const nT=["input","file","range","select","radio","checkbox","textarea"],rT=(t,e)=>{const n=we();if(!n)return;const r=Ae.innerParams.get(t),s=!r||e.input!==r.input;nT.forEach(a=>{const o=mr(n,X[a]);o&&(oT(a,e.inputAttributes),o.className=X[a],s&&kt(o))}),e.input&&(s&&sT(e),iT(e))},sT=t=>{if(!t.input)return;if(!Qe[t.input]){Xr(`Unexpected type of input! Expected ${Object.keys(Qe).join(" | ")}, got "${t.input}"`);return}const e=fy(t.input);if(!e)return;const n=Qe[t.input](e,t);ut(e),t.inputAutoFocus&&setTimeout(()=>{ly(n)})},aT=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["id","type","value","style"].includes(n)||t.removeAttribute(n)}},oT=(t,e)=>{const n=we();if(!n)return;const r=Zi(n,t);if(r){aT(r);for(const s in e)r.setAttribute(s,e[s])}},iT=t=>{if(!t.input)return;const e=fy(t.input);e&&Vt(e,t,"input")},lu=(t,e)=>{!t.placeholder&&e.inputPlaceholder&&(t.placeholder=e.inputPlaceholder)},ro=(t,e,n)=>{if(n.inputLabel){const r=document.createElement("label"),s=X["input-label"];r.setAttribute("for",t.id),r.className=s,typeof n.customClass=="object"&&ke(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},fy=t=>{const e=we();if(e)return mr(e,X[t]||X.input)},Ji=(t,e)=>{["string","number"].includes(typeof e)?t.value=`${e}`:Zd(e)||St(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`)},Qe={};Qe.text=Qe.email=Qe.password=Qe.number=Qe.tel=Qe.url=Qe.search=Qe.date=Qe["datetime-local"]=Qe.time=Qe.week=Qe.month=(t,e)=>(Ji(t,e.inputValue),ro(t,t,e),lu(t,e),t.type=e.input,t),Qe.file=(t,e)=>(ro(t,t,e),lu(t,e),t),Qe.range=(t,e)=>{const n=t.querySelector("input"),r=t.querySelector("output");return Ji(n,e.inputValue),n.type=e.input,Ji(r,e.inputValue),ro(n,t,e),t},Qe.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");Yt(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return ro(t,t,e),t},Qe.radio=t=>(t.textContent="",t),Qe.checkbox=(t,e)=>{const n=Zi(we(),"checkbox");n.value="1",n.checked=!!e.inputValue;const r=t.querySelector("span");return Yt(r,e.inputPlaceholder||e.inputLabel),n},Qe.textarea=(t,e)=>{Ji(t,e.inputValue),lu(t,e),ro(t,t,e);const n=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(we()).width),s=()=>{if(!document.body.contains(t))return;const a=t.offsetWidth+n(t);a>r?we().style.width=`${a}px`:Kr(we(),"width",e.width)};new MutationObserver(s).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const lT=(t,e)=>{const n=Jd();n&&(nu(n),Vt(n,e,"htmlContainer"),e.html?(au(e.html,n),ut(n,"block")):e.text?(n.textContent=e.text,ut(n,"block")):kt(n),rT(t,e))},cT=(t,e)=>{const n=iy();n&&(nu(n),no(n,!!e.footer,"block"),e.footer&&au(e.footer,n),Vt(n,e,"footer"))},dT=(t,e)=>{const n=Ae.innerParams.get(t),r=Is();if(!r)return;if(n&&e.icon===n.icon){my(r,e),hy(r,e);return}if(!e.icon&&!e.iconHtml){kt(r);return}if(e.icon&&Object.keys(Ui).indexOf(e.icon)===-1){Xr(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),kt(r);return}ut(r),my(r,e),hy(r,e),ke(r,e.showClass&&e.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",gy)},hy=(t,e)=>{for(const[n,r]of Object.entries(Ui))e.icon!==n&&nn(t,r);ke(t,e.icon&&Ui[e.icon]),hT(t,e),gy(),Vt(t,e,"icon")},gy=()=>{const t=we();if(!t)return;const e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=e},uT=t=>`
550
550
  ${t.animation?'<div class="swal2-success-circular-line-left"></div>':""}
551
551
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
552
552
  <div class="swal2-success-ring"></div>
553
553
  ${t.animation?'<div class="swal2-success-fix"></div>':""}
554
554
  ${t.animation?'<div class="swal2-success-circular-line-right"></div>':""}
555
- `,fP=`
555
+ `,fT=`
556
556
  <span class="swal2-x-mark">
557
557
  <span class="swal2-x-mark-line-left"></span>
558
558
  <span class="swal2-x-mark-line-right"></span>
559
559
  </span>
560
- `,py=(t,e)=>{if(!e.icon&&!e.iconHtml)return;let n=t.innerHTML,r="";e.iconHtml?r=by(e.iconHtml):e.icon==="success"?(r=uP(e),n=n.replace(/ style=".*?"/g,"")):e.icon==="error"?r=fP:e.icon&&(r=by({question:"?",warning:"!",info:"i"}[e.icon])),n.trim()!==r.trim()&&Yt(t,r)},hP=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])uy(t,n,"background-color",e.iconColor);uy(t,".swal2-success-ring","border-color",e.iconColor)}},by=t=>`<div class="${X["icon-content"]}">${t}</div>`,gP=(t,e)=>{const n=iy();if(n){if(!e.imageUrl){kt(n);return}ut(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt||""),Gr(n,"width",e.imageWidth),Gr(n,"height",e.imageHeight),n.className=X.image,Vt(n,e,"image")}};let cu=!1,yy=0,wy=0,vy=0,xy=0;const mP=t=>{t.addEventListener("mousedown",qi),document.body.addEventListener("mousemove",$i),t.addEventListener("mouseup",el),t.addEventListener("touchstart",qi),document.body.addEventListener("touchmove",$i),t.addEventListener("touchend",el)},pP=t=>{t.removeEventListener("mousedown",qi),document.body.removeEventListener("mousemove",$i),t.removeEventListener("mouseup",el),t.removeEventListener("touchstart",qi),document.body.removeEventListener("touchmove",$i),t.removeEventListener("touchend",el)},qi=t=>{const e=we();if(t.target===e||Is().contains(t.target)){cu=!0;const n=ky(t);yy=n.clientX,wy=n.clientY,vy=parseInt(e.style.insetInlineStart)||0,xy=parseInt(e.style.insetBlockStart)||0,ke(e,"swal2-dragging")}},$i=t=>{const e=we();if(cu){let{clientX:n,clientY:r}=ky(t);const s=n-yy;e.style.insetInlineStart=`${vy+(de.isRTL?-s:s)}px`,e.style.insetBlockStart=`${xy+(r-wy)}px`}},el=()=>{const t=we();cu=!1,nn(t,"swal2-dragging")},ky=t=>{let e=0,n=0;return t.type.startsWith("mouse")?(e=t.clientX,n=t.clientY):t.type.startsWith("touch")&&(e=t.touches[0].clientX,n=t.touches[0].clientY),{clientX:e,clientY:n}},bP=(t,e)=>{const n=Ot(),r=we();if(!(!n||!r)){if(e.toast){Gr(n,"width",e.width),r.style.width="100%";const s=Rs();s&&r.insertBefore(s,Is())}else Gr(r,"width",e.width);Gr(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),kt(Ki()),yP(r,e),e.draggable&&!e.toast?(ke(r,X.draggable),mP(r)):(nn(r,X.draggable),pP(r))}},yP=(t,e)=>{const n=e.showClass||{};t.className=`${X.popup} ${At(t)?n.popup:""}`,e.toast?(ke([document.documentElement,document.body],X["toast-shown"]),ke(t,X.toast)):ke(t,X.modal),Vt(t,e,"popup"),typeof e.customClass=="string"&&ke(t,e.customClass),e.icon&&ke(t,X[`icon-${e.icon}`])},wP=(t,e)=>{const n=qd();if(!n)return;const{progressSteps:r,currentProgressStep:s}=e;if(!r||r.length===0||s===void 0){kt(n);return}ut(n),n.textContent="",s>=r.length&&St("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((a,o)=>{const i=vP(a);if(n.appendChild(i),o===s&&ke(i,X["active-progress-step"]),o!==r.length-1){const l=xP(e);n.appendChild(l)}})},vP=t=>{const e=document.createElement("li");return ke(e,X["progress-step"]),Yt(e,t),e},xP=t=>{const e=document.createElement("li");return ke(e,X["progress-step-line"]),t.progressStepsDistance&&Gr(e,"width",t.progressStepsDistance),e},kP=(t,e)=>{const n=oy();n&&(nu(n),no(n,!!(e.title||e.titleText),"block"),e.title&&au(e.title,n),e.titleText&&(n.innerText=e.titleText),Vt(n,e,"title"))},_y=(t,e)=>{bP(t,e),q5(t,e),wP(t,e),dP(t,e),gP(t,e),kP(t,e),J5(t,e),lP(t,e),G5(t,e),cP(t,e);const n=we();typeof e.didRender=="function"&&n&&e.didRender(n),de.eventEmitter.emit("didRender",n)},_P=()=>At(we()),Sy=()=>{var t;return(t=On())===null||t===void 0?void 0:t.click()},SP=()=>{var t;return(t=Kr())===null||t===void 0?void 0:t.click()},OP=()=>{var t;return(t=As())===null||t===void 0?void 0:t.click()},Ls=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Oy=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},CP=(t,e,n)=>{Oy(t),e.toast||(t.keydownHandler=r=>MP(e,r,n),t.keydownTarget=e.keydownListenerCapture?window:we(),t.keydownListenerCapture=e.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},du=(t,e)=>{var n;const r=eu();if(r.length){t=t+e,t===-2&&(t=r.length-1),t===r.length?t=0:t===-1&&(t=r.length-1),r[t].focus();return}(n=we())===null||n===void 0||n.focus()},Cy=["ArrowRight","ArrowDown"],DP=["ArrowLeft","ArrowUp"],MP=(t,e,n)=>{t&&(e.isComposing||e.keyCode===229||(t.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?EP(e,t):e.key==="Tab"?PP(e):[...Cy,...DP].includes(e.key)?TP(e.key):e.key==="Escape"&&NP(e,t,n)))},EP=(t,e)=>{if(!Xi(e.allowEnterKey))return;const n=Zi(we(),e.input);if(t.target&&n&&t.target instanceof HTMLElement&&t.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(e.input))return;Sy(),t.preventDefault()}},PP=t=>{const e=t.target,n=eu();let r=-1;for(let s=0;s<n.length;s++)if(e===n[s]){r=s;break}t.shiftKey?du(r,-1):du(r,1),t.stopPropagation(),t.preventDefault()},TP=t=>{const e=to(),n=On(),r=Kr(),s=As();if(!e||!n||!r||!s)return;const a=[n,r,s];if(document.activeElement instanceof HTMLElement&&!a.includes(document.activeElement))return;const o=Cy.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;if(i){for(let l=0;l<e.children.length;l++){if(i=i[o],!i)return;if(i instanceof HTMLButtonElement&&At(i))break}i instanceof HTMLButtonElement&&i.focus()}},NP=(t,e,n)=>{t.preventDefault(),Xi(e.allowEscapeKey)&&n(Ls.esc)};var Fs={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const jP=()=>{const t=Ot();Array.from(document.body.children).forEach(n=>{n.contains(t)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},Dy=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},My=typeof window<"u"&&!!window.GestureEvent,IP=()=>{if(My&&!Un(document.body,X.iosfix)){const t=document.body.scrollTop;document.body.style.top=`${t*-1}px`,ke(document.body,X.iosfix),AP()}},AP=()=>{const t=Ot();if(!t)return;let e;t.ontouchstart=n=>{e=RP(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},RP=t=>{const e=t.target,n=Ot(),r=Jd();return!n||!r||LP(t)||FP(t)?!1:e===n||!ru(n)&&e instanceof HTMLElement&&!R5(e,r)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(ru(r)&&r.contains(e))},LP=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",FP=t=>t.touches&&t.touches.length>1,BP=()=>{if(Un(document.body,X.iosfix)){const t=parseInt(document.body.style.top,10);nn(document.body,X.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},WP=()=>{const t=document.createElement("div");t.className=X["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e};let Bs=null;const zP=t=>{Bs===null&&(document.body.scrollHeight>window.innerHeight||t==="scroll")&&(Bs=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Bs+WP()}px`)},HP=()=>{Bs!==null&&(document.body.style.paddingRight=`${Bs}px`,Bs=null)};function Ey(t,e,n,r){Qi()?Ty(t,r):(M5(n).then(()=>Ty(t,r)),Oy(de)),My?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),tu()&&(HP(),BP(),Dy()),YP()}function YP(){nn([document.documentElement,document.body],[X.shown,X["height-auto"],X["no-backdrop"],X["toast-shown"]])}function pr(t){t=UP(t);const e=Fs.swalPromiseResolve.get(this),n=VP(this);this.isAwaitingPromise?t.isDismissed||(so(this),e(t)):n&&e(t)}const VP=t=>{const e=we();if(!e)return!1;const n=Ae.innerParams.get(t);if(!n||Un(e,n.hideClass.popup))return!1;nn(e,n.showClass.popup),ke(e,n.hideClass.popup);const r=Ot();return nn(r,n.showClass.backdrop),ke(r,n.hideClass.backdrop),XP(t,e,n),!0};function Py(t){const e=Fs.swalPromiseReject.get(this);so(this),e&&e(t)}const so=t=>{t.isAwaitingPromise&&(delete t.isAwaitingPromise,Ae.innerParams.get(t)||t._destroy())},UP=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),XP=(t,e,n)=>{var r;const s=Ot(),a=fy(e);typeof n.willClose=="function"&&n.willClose(e),(r=de.eventEmitter)===null||r===void 0||r.emit("willClose",e),a?KP(t,e,s,n.returnFocus,n.didClose):Ey(t,s,n.returnFocus,n.didClose)},KP=(t,e,n,r,s)=>{de.swalCloseEventFinishedCallback=Ey.bind(null,t,n,r,s);const a=function(o){if(o.target===e){var i;(i=de.swalCloseEventFinishedCallback)===null||i===void 0||i.call(de),delete de.swalCloseEventFinishedCallback,e.removeEventListener("animationend",a),e.removeEventListener("transitionend",a)}};e.addEventListener("animationend",a),e.addEventListener("transitionend",a)},Ty=(t,e)=>{setTimeout(()=>{var n;typeof e=="function"&&e.bind(t.params)(),(n=de.eventEmitter)===null||n===void 0||n.emit("didClose"),t._destroy&&t._destroy()})},Ws=t=>{let e=we();if(e||new Hs,e=we(),!e)return;const n=Rs();Qi()?kt(Is()):GP(e,t),ut(n),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},GP=(t,e)=>{const n=to(),r=Rs();!n||!r||(!e&&At(On())&&(e=On()),ut(n),e&&(kt(e),r.setAttribute("data-button-to-replace",e.className),n.insertBefore(r,e)),ke([t,n],X.loading))},QP=(t,e)=>{e.input==="select"||e.input==="radio"?eT(t,e):["text","email","number","tel","textarea"].some(n=>n===e.input)&&(Qd(e.inputValue)||Zd(e.inputValue))&&(Ws(On()),tT(t,e))},ZP=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return JP(n);case"radio":return qP(n);case"file":return $P(n);default:return e.inputAutoTrim?n.value.trim():n.value}},JP=t=>t.checked?1:0,qP=t=>t.checked?t.value:null,$P=t=>t.files&&t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,eT=(t,e)=>{const n=we();if(!n)return;const r=s=>{e.input==="select"?nT(n,tl(s),e):e.input==="radio"&&rT(n,tl(s),e)};Qd(e.inputOptions)||Zd(e.inputOptions)?(Ws(On()),$a(e.inputOptions).then(s=>{t.hideLoading(),r(s)})):typeof e.inputOptions=="object"?r(e.inputOptions):Xr(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},tT=(t,e)=>{const n=t.getInput();n&&(kt(n),$a(e.inputValue).then(r=>{n.value=e.input==="number"?`${parseFloat(r)||0}`:`${r}`,ut(n),n.focus(),t.hideLoading()}).catch(r=>{Xr(`Error in inputValue promise: ${r}`),n.value="",ut(n),n.focus(),t.hideLoading()}))};function nT(t,e,n){const r=mr(t,X.select);if(!r)return;const s=(a,o,i)=>{const l=document.createElement("option");l.value=i,Yt(l,o),l.selected=Ny(i,n.inputValue),a.appendChild(l)};e.forEach(a=>{const o=a[0],i=a[1];if(Array.isArray(i)){const l=document.createElement("optgroup");l.label=o,l.disabled=!1,r.appendChild(l),i.forEach(c=>s(l,c[1],c[0]))}else s(r,i,o)}),r.focus()}function rT(t,e,n){const r=mr(t,X.radio);if(!r)return;e.forEach(a=>{const o=a[0],i=a[1],l=document.createElement("input"),c=document.createElement("label");l.type="radio",l.name=X.radio,l.value=o,Ny(o,n.inputValue)&&(l.checked=!0);const d=document.createElement("span");Yt(d,i),d.className=X.label,c.appendChild(l),c.appendChild(d),r.appendChild(c)});const s=r.querySelectorAll("input");s.length&&s[0].focus()}const tl=t=>{const e=[];return t instanceof Map?t.forEach((n,r)=>{let s=n;typeof s=="object"&&(s=tl(s)),e.push([r,s])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=tl(r)),e.push([n,r])}),e},Ny=(t,e)=>!!e&&e.toString()===t.toString(),sT=t=>{const e=Ae.innerParams.get(t);t.disableButtons(),e.input?jy(t,"confirm"):fu(t,!0)},aT=t=>{const e=Ae.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?jy(t,"deny"):uu(t,!1)},oT=(t,e)=>{t.disableButtons(),e(Ls.cancel)},jy=(t,e)=>{const n=Ae.innerParams.get(t);if(!n.input){Xr(`The "input" parameter is needed to be set when using returnInputValueOn${Gd(e)}`);return}const r=t.getInput(),s=ZP(t,n);n.inputValidator?iT(t,s,e):r&&!r.checkValidity()?(t.enableButtons(),t.showValidationMessage(n.validationMessage||r.validationMessage)):e==="deny"?uu(t,s):fu(t,s)},iT=(t,e,n)=>{const r=Ae.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>$a(r.inputValidator(e,r.validationMessage))).then(a=>{t.enableButtons(),t.enableInput(),a?t.showValidationMessage(a):n==="deny"?uu(t,e):fu(t,e)})},uu=(t,e)=>{const n=Ae.innerParams.get(t||void 0);n.showLoaderOnDeny&&Ws(Kr()),n.preDeny?(t.isAwaitingPromise=!0,Promise.resolve().then(()=>$a(n.preDeny(e,n.validationMessage))).then(s=>{s===!1?(t.hideLoading(),so(t)):t.close({isDenied:!0,value:typeof s>"u"?e:s})}).catch(s=>Ay(t||void 0,s))):t.close({isDenied:!0,value:e})},Iy=(t,e)=>{t.close({isConfirmed:!0,value:e})},Ay=(t,e)=>{t.rejectPromise(e)},fu=(t,e)=>{const n=Ae.innerParams.get(t||void 0);n.showLoaderOnConfirm&&Ws(),n.preConfirm?(t.resetValidationMessage(),t.isAwaitingPromise=!0,Promise.resolve().then(()=>$a(n.preConfirm(e,n.validationMessage))).then(s=>{At(Ki())||s===!1?(t.hideLoading(),so(t)):Iy(t,typeof s>"u"?e:s)}).catch(s=>Ay(t||void 0,s))):Iy(t,e)};function nl(){const t=Ae.innerParams.get(this);if(!t)return;const e=Ae.domCache.get(this);kt(e.loader),Qi()?t.icon&&ut(Is()):lT(e),nn([e.popup,e.actions],X.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const lT=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ut(e[0],"inline-block"):A5()&&kt(t.actions)};function Ry(){const t=Ae.innerParams.get(this),e=Ae.domCache.get(this);return e?Zi(e.popup,t.input):null}function Ly(t,e,n){const r=Ae.domCache.get(t);e.forEach(s=>{r[s].disabled=n})}function Fy(t,e){const n=we();if(!(!n||!t))if(t.type==="radio"){const r=n.querySelectorAll(`[name="${X.radio}"]`);for(let s=0;s<r.length;s++)r[s].disabled=e}else t.disabled=e}function By(){Ly(this,["confirmButton","denyButton","cancelButton"],!1)}function Wy(){Ly(this,["confirmButton","denyButton","cancelButton"],!0)}function zy(){Fy(this.getInput(),!1)}function Hy(){Fy(this.getInput(),!0)}function Yy(t){const e=Ae.domCache.get(this),n=Ae.innerParams.get(this);Yt(e.validationMessage,t),e.validationMessage.className=X["validation-message"],n.customClass&&n.customClass.validationMessage&&ke(e.validationMessage,n.customClass.validationMessage),ut(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",X["validation-message"]),cy(r),ke(r,X.inputerror))}function Vy(){const t=Ae.domCache.get(this);t.validationMessage&&kt(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),nn(e,X.inputerror))}const zs={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},cT=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],dT={allowEnterKey:void 0},uT=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Uy=t=>Object.prototype.hasOwnProperty.call(zs,t),Xy=t=>cT.indexOf(t)!==-1,Ky=t=>dT[t],fT=t=>{Uy(t)||St(`Unknown parameter "${t}"`)},hT=t=>{uT.includes(t)&&St(`The parameter "${t}" is incompatible with toasts`)},gT=t=>{const e=Ky(t);e&&ay(t,e)},Gy=t=>{t.backdrop===!1&&t.allowOutsideClick&&St('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(t.theme)&&St(`Invalid theme "${t.theme}"`);for(const e in t)fT(e),t.toast&&hT(e),gT(e)};function Qy(t){const e=Ot(),n=we(),r=Ae.innerParams.get(this);if(!n||Un(n,r.hideClass.popup)){St("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const s=mT(t),a=Object.assign({},r,s);Gy(a),e.dataset.swal2Theme=a.theme,_y(this,a),Ae.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const mT=t=>{const e={};return Object.keys(t).forEach(n=>{Xy(n)?e[n]=t[n]:St(`Invalid parameter to update: ${n}`)}),e};function Zy(){const t=Ae.domCache.get(this),e=Ae.innerParams.get(this);if(!e){Jy(this);return}t.popup&&de.swalCloseEventFinishedCallback&&(de.swalCloseEventFinishedCallback(),delete de.swalCloseEventFinishedCallback),typeof e.didDestroy=="function"&&e.didDestroy(),de.eventEmitter.emit("didDestroy"),pT(this)}const pT=t=>{Jy(t),delete t.params,delete de.keydownHandler,delete de.keydownTarget,delete de.currentInstance},Jy=t=>{t.isAwaitingPromise?(hu(Ae,t),t.isAwaitingPromise=!0):(hu(Fs,t),hu(Ae,t),delete t.isAwaitingPromise,delete t.disableButtons,delete t.enableButtons,delete t.getInput,delete t.disableInput,delete t.enableInput,delete t.hideLoading,delete t.disableLoading,delete t.showValidationMessage,delete t.resetValidationMessage,delete t.close,delete t.closePopup,delete t.closeModal,delete t.closeToast,delete t.rejectPromise,delete t.update,delete t._destroy)},hu=(t,e)=>{for(const n in t)t[n].delete(e)};var bT=Object.freeze({__proto__:null,_destroy:Zy,close:pr,closeModal:pr,closePopup:pr,closeToast:pr,disableButtons:Wy,disableInput:Hy,disableLoading:nl,enableButtons:By,enableInput:zy,getInput:Ry,handleAwaitingPromise:so,hideLoading:nl,rejectPromise:Py,resetValidationMessage:Vy,showValidationMessage:Yy,update:Qy});const yT=(t,e,n)=>{t.toast?wT(t,e,n):(xT(e),kT(e),_T(t,e,n))},wT=(t,e,n)=>{e.popup.onclick=()=>{t&&(vT(t)||t.timer||t.input)||n(Ls.close)}},vT=t=>!!(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton);let rl=!1;const xT=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=()=>{},e.target===t.container&&(rl=!0)}}},kT=t=>{t.container.onmousedown=e=>{e.target===t.container&&e.preventDefault(),t.popup.onmouseup=function(n){t.popup.onmouseup=()=>{},(n.target===t.popup||n.target instanceof HTMLElement&&t.popup.contains(n.target))&&(rl=!0)}}},_T=(t,e,n)=>{e.container.onclick=r=>{if(rl){rl=!1;return}r.target===e.container&&Xi(t.allowOutsideClick)&&n(Ls.backdrop)}},ST=t=>typeof t=="object"&&t.jquery,qy=t=>t instanceof Element||ST(t),OT=t=>{const e={};return typeof t[0]=="object"&&!qy(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const s=t[r];typeof s=="string"||qy(s)?e[n]=s:s!==void 0&&Xr(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`)}),e};function CT(...t){return new this(...t)}function DT(t){class e extends this{_main(r,s){return super._main(r,Object.assign({},t,s))}}return e}const MT=()=>de.timeout&&de.timeout.getTimerLeft(),$y=()=>{if(de.timeout)return L5(),de.timeout.stop()},ew=()=>{if(de.timeout){const t=de.timeout.start();return su(t),t}},ET=()=>{const t=de.timeout;return t&&(t.running?$y():ew())},PT=t=>{if(de.timeout){const e=de.timeout.increase(t);return su(e,!0),e}},TT=()=>!!(de.timeout&&de.timeout.isRunning());let tw=!1;const gu={};function NT(t="data-swal-template"){gu[t]=this,tw||(document.body.addEventListener("click",jT),tw=!0)}const jT=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in gu){const r=e.getAttribute(n);if(r){gu[n].fire({template:r});return}}};class IT{constructor(){this.events={}}_getHandlersByEventName(e){return typeof this.events[e]>"u"&&(this.events[e]=[]),this.events[e]}on(e,n){const r=this._getHandlersByEventName(e);r.includes(n)||r.push(n)}once(e,n){const r=(...s)=>{this.removeListener(e,r),n.apply(this,s)};this.on(e,r)}emit(e,...n){this._getHandlersByEventName(e).forEach(r=>{try{r.apply(this,n)}catch(s){console.error(s)}})}removeListener(e,n){const r=this._getHandlersByEventName(e),s=r.indexOf(n);s>-1&&r.splice(s,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}de.eventEmitter=new IT;var AT=Object.freeze({__proto__:null,argsToParams:OT,bindClickHandler:NT,clickCancel:OP,clickConfirm:Sy,clickDeny:SP,enableLoading:Ws,fire:CT,getActions:to,getCancelButton:As,getCloseButton:$d,getConfirmButton:On,getContainer:Ot,getDenyButton:Kr,getFocusableElements:eu,getFooter:ly,getHtmlContainer:Jd,getIcon:Is,getIconContent:P5,getImage:iy,getInputLabel:T5,getLoader:Rs,getPopup:we,getProgressSteps:qd,getTimerLeft:MT,getTimerProgressBar:Gi,getTitle:oy,getValidationMessage:Ki,increaseTimer:PT,isDeprecatedParameter:Ky,isLoading:j5,isTimerRunning:TT,isUpdatableParameter:Xy,isValidParameter:Uy,isVisible:_P,mixin:DT,off:(t,e)=>{if(!t){de.eventEmitter.reset();return}e?de.eventEmitter.removeListener(t,e):de.eventEmitter.removeAllListeners(t)},on:(t,e)=>{de.eventEmitter.on(t,e)},once:(t,e)=>{de.eventEmitter.once(t,e)},resumeTimer:ew,showLoading:Ws,stopTimer:$y,toggleTimer:ET});class RT{constructor(e,n){this.callback=e,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const n=this.running;return n&&this.stop(),this.remaining+=e,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const nw=["swal-title","swal-html","swal-footer"],LT=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return UT(n),Object.assign(FT(n),BT(n),WT(n),zT(n),HT(n),YT(n),VT(n,nw))},FT=t=>{const e={};return Array.from(t.querySelectorAll("swal-param")).forEach(r=>{Zr(r,["name","value"]);const s=r.getAttribute("name"),a=r.getAttribute("value");!s||!a||(typeof zs[s]=="boolean"?e[s]=a!=="false":typeof zs[s]=="object"?e[s]=JSON.parse(a):e[s]=a)}),e},BT=t=>{const e={};return Array.from(t.querySelectorAll("swal-function-param")).forEach(r=>{const s=r.getAttribute("name"),a=r.getAttribute("value");!s||!a||(e[s]=new Function(`return ${a}`)())}),e},WT=t=>{const e={};return Array.from(t.querySelectorAll("swal-button")).forEach(r=>{Zr(r,["type","color","aria-label"]);const s=r.getAttribute("type");!s||!["confirm","cancel","deny"].includes(s)||(e[`${s}ButtonText`]=r.innerHTML,e[`show${Gd(s)}Button`]=!0,r.hasAttribute("color")&&(e[`${s}ButtonColor`]=r.getAttribute("color")),r.hasAttribute("aria-label")&&(e[`${s}ButtonAriaLabel`]=r.getAttribute("aria-label")))}),e},zT=t=>{const e={},n=t.querySelector("swal-image");return n&&(Zr(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt")||void 0)),e},HT=t=>{const e={},n=t.querySelector("swal-icon");return n&&(Zr(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},YT=t=>{const e={},n=t.querySelector("swal-input");n&&(Zr(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const r=Array.from(t.querySelectorAll("swal-input-option"));return r.length&&(e.inputOptions={},r.forEach(s=>{Zr(s,["value"]);const a=s.getAttribute("value");if(!a)return;const o=s.innerHTML;e.inputOptions[a]=o})),e},VT=(t,e)=>{const n={};for(const r in e){const s=e[r],a=t.querySelector(s);a&&(Zr(a,[]),n[s.replace(/^swal-/,"")]=a.innerHTML.trim())}return n},UT=t=>{const e=nw.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(t.children).forEach(n=>{const r=n.tagName.toLowerCase();e.includes(r)||St(`Unrecognized element <${r}>`)})},Zr=(t,e)=>{Array.from(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&St([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},rw=10,XT=t=>{const e=Ot(),n=we();typeof t.willOpen=="function"&&t.willOpen(n),de.eventEmitter.emit("willOpen",n);const s=window.getComputedStyle(document.body).overflowY;QT(e,n,t),setTimeout(()=>{KT(e,n)},rw),tu()&&(GT(e,t.scrollbarPadding,s),jP()),!Qi()&&!de.previousActiveElement&&(de.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),de.eventEmitter.emit("didOpen",n)},sl=t=>{const e=we();if(t.target!==e)return;const n=Ot();e.removeEventListener("animationend",sl),e.removeEventListener("transitionend",sl),n.style.overflowY="auto",nn(n,X["no-transition"])},KT=(t,e)=>{fy(e)?(t.style.overflowY="hidden",e.addEventListener("animationend",sl),e.addEventListener("transitionend",sl)):t.style.overflowY="auto"},GT=(t,e,n)=>{IP(),e&&n!=="hidden"&&zP(n),setTimeout(()=>{t.scrollTop=0})},QT=(t,e,n)=>{ke(t,n.showClass.backdrop),n.animation?(e.style.setProperty("opacity","0","important"),ut(e,"grid"),setTimeout(()=>{ke(e,n.showClass.popup),e.style.removeProperty("opacity")},rw)):ut(e,"grid"),ke([document.documentElement,document.body],X.shown),n.heightAuto&&n.backdrop&&!n.toast&&ke([document.documentElement,document.body],X["height-auto"])};var sw={email:(t,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function ZT(t){t.inputValidator||(t.input==="email"&&(t.inputValidator=sw.email),t.input==="url"&&(t.inputValidator=sw.url))}function JT(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(St('Target parameter is not valid, defaulting to "body"'),t.target="body")}function qT(t){ZT(t),t.showLoaderOnConfirm&&!t.preConfirm&&St(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
560
+ `,my=(t,e)=>{if(!e.icon&&!e.iconHtml)return;let n=t.innerHTML,r="";e.iconHtml?r=py(e.iconHtml):e.icon==="success"?(r=uT(e),n=n.replace(/ style=".*?"/g,"")):e.icon==="error"?r=fT:e.icon&&(r=py({question:"?",warning:"!",info:"i"}[e.icon])),n.trim()!==r.trim()&&Yt(t,r)},hT=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])dy(t,n,"background-color",e.iconColor);dy(t,".swal2-success-ring","border-color",e.iconColor)}},py=t=>`<div class="${X["icon-content"]}">${t}</div>`,gT=(t,e)=>{const n=oy();if(n){if(!e.imageUrl){kt(n);return}ut(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt||""),Kr(n,"width",e.imageWidth),Kr(n,"height",e.imageHeight),n.className=X.image,Vt(n,e,"image")}};let cu=!1,by=0,yy=0,wy=0,vy=0;const mT=t=>{t.addEventListener("mousedown",qi),document.body.addEventListener("mousemove",$i),t.addEventListener("mouseup",el),t.addEventListener("touchstart",qi),document.body.addEventListener("touchmove",$i),t.addEventListener("touchend",el)},pT=t=>{t.removeEventListener("mousedown",qi),document.body.removeEventListener("mousemove",$i),t.removeEventListener("mouseup",el),t.removeEventListener("touchstart",qi),document.body.removeEventListener("touchmove",$i),t.removeEventListener("touchend",el)},qi=t=>{const e=we();if(t.target===e||Is().contains(t.target)){cu=!0;const n=xy(t);by=n.clientX,yy=n.clientY,wy=parseInt(e.style.insetInlineStart)||0,vy=parseInt(e.style.insetBlockStart)||0,ke(e,"swal2-dragging")}},$i=t=>{const e=we();if(cu){let{clientX:n,clientY:r}=xy(t);const s=n-by;e.style.insetInlineStart=`${wy+(de.isRTL?-s:s)}px`,e.style.insetBlockStart=`${vy+(r-yy)}px`}},el=()=>{const t=we();cu=!1,nn(t,"swal2-dragging")},xy=t=>{let e=0,n=0;return t.type.startsWith("mouse")?(e=t.clientX,n=t.clientY):t.type.startsWith("touch")&&(e=t.touches[0].clientX,n=t.touches[0].clientY),{clientX:e,clientY:n}},bT=(t,e)=>{const n=Ot(),r=we();if(!(!n||!r)){if(e.toast){Kr(n,"width",e.width),r.style.width="100%";const s=Rs();s&&r.insertBefore(s,Is())}else Kr(r,"width",e.width);Kr(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),kt(Gi()),yT(r,e),e.draggable&&!e.toast?(ke(r,X.draggable),mT(r)):(nn(r,X.draggable),pT(r))}},yT=(t,e)=>{const n=e.showClass||{};t.className=`${X.popup} ${At(t)?n.popup:""}`,e.toast?(ke([document.documentElement,document.body],X["toast-shown"]),ke(t,X.toast)):ke(t,X.modal),Vt(t,e,"popup"),typeof e.customClass=="string"&&ke(t,e.customClass),e.icon&&ke(t,X[`icon-${e.icon}`])},wT=(t,e)=>{const n=qd();if(!n)return;const{progressSteps:r,currentProgressStep:s}=e;if(!r||r.length===0||s===void 0){kt(n);return}ut(n),n.textContent="",s>=r.length&&St("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((a,o)=>{const i=vT(a);if(n.appendChild(i),o===s&&ke(i,X["active-progress-step"]),o!==r.length-1){const l=xT(e);n.appendChild(l)}})},vT=t=>{const e=document.createElement("li");return ke(e,X["progress-step"]),Yt(e,t),e},xT=t=>{const e=document.createElement("li");return ke(e,X["progress-step-line"]),t.progressStepsDistance&&Kr(e,"width",t.progressStepsDistance),e},kT=(t,e)=>{const n=ay();n&&(nu(n),no(n,!!(e.title||e.titleText),"block"),e.title&&au(e.title,n),e.titleText&&(n.innerText=e.titleText),Vt(n,e,"title"))},ky=(t,e)=>{bT(t,e),qP(t,e),wT(t,e),dT(t,e),gT(t,e),kT(t,e),JP(t,e),lT(t,e),KP(t,e),cT(t,e);const n=we();typeof e.didRender=="function"&&n&&e.didRender(n),de.eventEmitter.emit("didRender",n)},_T=()=>At(we()),_y=()=>{var t;return(t=On())===null||t===void 0?void 0:t.click()},ST=()=>{var t;return(t=Gr())===null||t===void 0?void 0:t.click()},OT=()=>{var t;return(t=As())===null||t===void 0?void 0:t.click()},Ls=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Sy=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},CT=(t,e,n)=>{Sy(t),e.toast||(t.keydownHandler=r=>MT(e,r,n),t.keydownTarget=e.keydownListenerCapture?window:we(),t.keydownListenerCapture=e.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},du=(t,e)=>{var n;const r=eu();if(r.length){t=t+e,t===-2&&(t=r.length-1),t===r.length?t=0:t===-1&&(t=r.length-1),r[t].focus();return}(n=we())===null||n===void 0||n.focus()},Oy=["ArrowRight","ArrowDown"],DT=["ArrowLeft","ArrowUp"],MT=(t,e,n)=>{t&&(e.isComposing||e.keyCode===229||(t.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?ET(e,t):e.key==="Tab"?PT(e):[...Oy,...DT].includes(e.key)?TT(e.key):e.key==="Escape"&&NT(e,t,n)))},ET=(t,e)=>{if(!Xi(e.allowEnterKey))return;const n=Zi(we(),e.input);if(t.target&&n&&t.target instanceof HTMLElement&&t.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(e.input))return;_y(),t.preventDefault()}},PT=t=>{const e=t.target,n=eu();let r=-1;for(let s=0;s<n.length;s++)if(e===n[s]){r=s;break}t.shiftKey?du(r,-1):du(r,1),t.stopPropagation(),t.preventDefault()},TT=t=>{const e=to(),n=On(),r=Gr(),s=As();if(!e||!n||!r||!s)return;const a=[n,r,s];if(document.activeElement instanceof HTMLElement&&!a.includes(document.activeElement))return;const o=Oy.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;if(i){for(let l=0;l<e.children.length;l++){if(i=i[o],!i)return;if(i instanceof HTMLButtonElement&&At(i))break}i instanceof HTMLButtonElement&&i.focus()}},NT=(t,e,n)=>{t.preventDefault(),Xi(e.allowEscapeKey)&&n(Ls.esc)};var Fs={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const jT=()=>{const t=Ot();Array.from(document.body.children).forEach(n=>{n.contains(t)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},Cy=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},Dy=typeof window<"u"&&!!window.GestureEvent,IT=()=>{if(Dy&&!Un(document.body,X.iosfix)){const t=document.body.scrollTop;document.body.style.top=`${t*-1}px`,ke(document.body,X.iosfix),AT()}},AT=()=>{const t=Ot();if(!t)return;let e;t.ontouchstart=n=>{e=RT(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},RT=t=>{const e=t.target,n=Ot(),r=Jd();return!n||!r||LT(t)||FT(t)?!1:e===n||!ru(n)&&e instanceof HTMLElement&&!RP(e,r)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(ru(r)&&r.contains(e))},LT=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",FT=t=>t.touches&&t.touches.length>1,BT=()=>{if(Un(document.body,X.iosfix)){const t=parseInt(document.body.style.top,10);nn(document.body,X.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},WT=()=>{const t=document.createElement("div");t.className=X["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e};let Bs=null;const zT=t=>{Bs===null&&(document.body.scrollHeight>window.innerHeight||t==="scroll")&&(Bs=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Bs+WT()}px`)},HT=()=>{Bs!==null&&(document.body.style.paddingRight=`${Bs}px`,Bs=null)};function My(t,e,n,r){Qi()?Py(t,r):(MP(n).then(()=>Py(t,r)),Sy(de)),Dy?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),tu()&&(HT(),BT(),Cy()),YT()}function YT(){nn([document.documentElement,document.body],[X.shown,X["height-auto"],X["no-backdrop"],X["toast-shown"]])}function pr(t){t=UT(t);const e=Fs.swalPromiseResolve.get(this),n=VT(this);this.isAwaitingPromise?t.isDismissed||(so(this),e(t)):n&&e(t)}const VT=t=>{const e=we();if(!e)return!1;const n=Ae.innerParams.get(t);if(!n||Un(e,n.hideClass.popup))return!1;nn(e,n.showClass.popup),ke(e,n.hideClass.popup);const r=Ot();return nn(r,n.showClass.backdrop),ke(r,n.hideClass.backdrop),XT(t,e,n),!0};function Ey(t){const e=Fs.swalPromiseReject.get(this);so(this),e&&e(t)}const so=t=>{t.isAwaitingPromise&&(delete t.isAwaitingPromise,Ae.innerParams.get(t)||t._destroy())},UT=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),XT=(t,e,n)=>{var r;const s=Ot(),a=uy(e);typeof n.willClose=="function"&&n.willClose(e),(r=de.eventEmitter)===null||r===void 0||r.emit("willClose",e),a?GT(t,e,s,n.returnFocus,n.didClose):My(t,s,n.returnFocus,n.didClose)},GT=(t,e,n,r,s)=>{de.swalCloseEventFinishedCallback=My.bind(null,t,n,r,s);const a=function(o){if(o.target===e){var i;(i=de.swalCloseEventFinishedCallback)===null||i===void 0||i.call(de),delete de.swalCloseEventFinishedCallback,e.removeEventListener("animationend",a),e.removeEventListener("transitionend",a)}};e.addEventListener("animationend",a),e.addEventListener("transitionend",a)},Py=(t,e)=>{setTimeout(()=>{var n;typeof e=="function"&&e.bind(t.params)(),(n=de.eventEmitter)===null||n===void 0||n.emit("didClose"),t._destroy&&t._destroy()})},Ws=t=>{let e=we();if(e||new Hs,e=we(),!e)return;const n=Rs();Qi()?kt(Is()):KT(e,t),ut(n),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},KT=(t,e)=>{const n=to(),r=Rs();!n||!r||(!e&&At(On())&&(e=On()),ut(n),e&&(kt(e),r.setAttribute("data-button-to-replace",e.className),n.insertBefore(r,e)),ke([t,n],X.loading))},QT=(t,e)=>{e.input==="select"||e.input==="radio"?e5(t,e):["text","email","number","tel","textarea"].some(n=>n===e.input)&&(Qd(e.inputValue)||Zd(e.inputValue))&&(Ws(On()),t5(t,e))},ZT=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return JT(n);case"radio":return qT(n);case"file":return $T(n);default:return e.inputAutoTrim?n.value.trim():n.value}},JT=t=>t.checked?1:0,qT=t=>t.checked?t.value:null,$T=t=>t.files&&t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,e5=(t,e)=>{const n=we();if(!n)return;const r=s=>{e.input==="select"?n5(n,tl(s),e):e.input==="radio"&&r5(n,tl(s),e)};Qd(e.inputOptions)||Zd(e.inputOptions)?(Ws(On()),$a(e.inputOptions).then(s=>{t.hideLoading(),r(s)})):typeof e.inputOptions=="object"?r(e.inputOptions):Xr(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},t5=(t,e)=>{const n=t.getInput();n&&(kt(n),$a(e.inputValue).then(r=>{n.value=e.input==="number"?`${parseFloat(r)||0}`:`${r}`,ut(n),n.focus(),t.hideLoading()}).catch(r=>{Xr(`Error in inputValue promise: ${r}`),n.value="",ut(n),n.focus(),t.hideLoading()}))};function n5(t,e,n){const r=mr(t,X.select);if(!r)return;const s=(a,o,i)=>{const l=document.createElement("option");l.value=i,Yt(l,o),l.selected=Ty(i,n.inputValue),a.appendChild(l)};e.forEach(a=>{const o=a[0],i=a[1];if(Array.isArray(i)){const l=document.createElement("optgroup");l.label=o,l.disabled=!1,r.appendChild(l),i.forEach(c=>s(l,c[1],c[0]))}else s(r,i,o)}),r.focus()}function r5(t,e,n){const r=mr(t,X.radio);if(!r)return;e.forEach(a=>{const o=a[0],i=a[1],l=document.createElement("input"),c=document.createElement("label");l.type="radio",l.name=X.radio,l.value=o,Ty(o,n.inputValue)&&(l.checked=!0);const d=document.createElement("span");Yt(d,i),d.className=X.label,c.appendChild(l),c.appendChild(d),r.appendChild(c)});const s=r.querySelectorAll("input");s.length&&s[0].focus()}const tl=t=>{const e=[];return t instanceof Map?t.forEach((n,r)=>{let s=n;typeof s=="object"&&(s=tl(s)),e.push([r,s])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=tl(r)),e.push([n,r])}),e},Ty=(t,e)=>!!e&&e.toString()===t.toString(),s5=t=>{const e=Ae.innerParams.get(t);t.disableButtons(),e.input?Ny(t,"confirm"):fu(t,!0)},a5=t=>{const e=Ae.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Ny(t,"deny"):uu(t,!1)},o5=(t,e)=>{t.disableButtons(),e(Ls.cancel)},Ny=(t,e)=>{const n=Ae.innerParams.get(t);if(!n.input){Xr(`The "input" parameter is needed to be set when using returnInputValueOn${Kd(e)}`);return}const r=t.getInput(),s=ZT(t,n);n.inputValidator?i5(t,s,e):r&&!r.checkValidity()?(t.enableButtons(),t.showValidationMessage(n.validationMessage||r.validationMessage)):e==="deny"?uu(t,s):fu(t,s)},i5=(t,e,n)=>{const r=Ae.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>$a(r.inputValidator(e,r.validationMessage))).then(a=>{t.enableButtons(),t.enableInput(),a?t.showValidationMessage(a):n==="deny"?uu(t,e):fu(t,e)})},uu=(t,e)=>{const n=Ae.innerParams.get(t||void 0);n.showLoaderOnDeny&&Ws(Gr()),n.preDeny?(t.isAwaitingPromise=!0,Promise.resolve().then(()=>$a(n.preDeny(e,n.validationMessage))).then(s=>{s===!1?(t.hideLoading(),so(t)):t.close({isDenied:!0,value:typeof s>"u"?e:s})}).catch(s=>Iy(t||void 0,s))):t.close({isDenied:!0,value:e})},jy=(t,e)=>{t.close({isConfirmed:!0,value:e})},Iy=(t,e)=>{t.rejectPromise(e)},fu=(t,e)=>{const n=Ae.innerParams.get(t||void 0);n.showLoaderOnConfirm&&Ws(),n.preConfirm?(t.resetValidationMessage(),t.isAwaitingPromise=!0,Promise.resolve().then(()=>$a(n.preConfirm(e,n.validationMessage))).then(s=>{At(Gi())||s===!1?(t.hideLoading(),so(t)):jy(t,typeof s>"u"?e:s)}).catch(s=>Iy(t||void 0,s))):jy(t,e)};function nl(){const t=Ae.innerParams.get(this);if(!t)return;const e=Ae.domCache.get(this);kt(e.loader),Qi()?t.icon&&ut(Is()):l5(e),nn([e.popup,e.actions],X.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const l5=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ut(e[0],"inline-block"):AP()&&kt(t.actions)};function Ay(){const t=Ae.innerParams.get(this),e=Ae.domCache.get(this);return e?Zi(e.popup,t.input):null}function Ry(t,e,n){const r=Ae.domCache.get(t);e.forEach(s=>{r[s].disabled=n})}function Ly(t,e){const n=we();if(!(!n||!t))if(t.type==="radio"){const r=n.querySelectorAll(`[name="${X.radio}"]`);for(let s=0;s<r.length;s++)r[s].disabled=e}else t.disabled=e}function Fy(){Ry(this,["confirmButton","denyButton","cancelButton"],!1)}function By(){Ry(this,["confirmButton","denyButton","cancelButton"],!0)}function Wy(){Ly(this.getInput(),!1)}function zy(){Ly(this.getInput(),!0)}function Hy(t){const e=Ae.domCache.get(this),n=Ae.innerParams.get(this);Yt(e.validationMessage,t),e.validationMessage.className=X["validation-message"],n.customClass&&n.customClass.validationMessage&&ke(e.validationMessage,n.customClass.validationMessage),ut(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",X["validation-message"]),ly(r),ke(r,X.inputerror))}function Yy(){const t=Ae.domCache.get(this);t.validationMessage&&kt(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),nn(e,X.inputerror))}const zs={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},c5=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],d5={allowEnterKey:void 0},u5=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Vy=t=>Object.prototype.hasOwnProperty.call(zs,t),Uy=t=>c5.indexOf(t)!==-1,Xy=t=>d5[t],f5=t=>{Vy(t)||St(`Unknown parameter "${t}"`)},h5=t=>{u5.includes(t)&&St(`The parameter "${t}" is incompatible with toasts`)},g5=t=>{const e=Xy(t);e&&sy(t,e)},Gy=t=>{t.backdrop===!1&&t.allowOutsideClick&&St('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(t.theme)&&St(`Invalid theme "${t.theme}"`);for(const e in t)f5(e),t.toast&&h5(e),g5(e)};function Ky(t){const e=Ot(),n=we(),r=Ae.innerParams.get(this);if(!n||Un(n,r.hideClass.popup)){St("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const s=m5(t),a=Object.assign({},r,s);Gy(a),e.dataset.swal2Theme=a.theme,ky(this,a),Ae.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const m5=t=>{const e={};return Object.keys(t).forEach(n=>{Uy(n)?e[n]=t[n]:St(`Invalid parameter to update: ${n}`)}),e};function Qy(){const t=Ae.domCache.get(this),e=Ae.innerParams.get(this);if(!e){Zy(this);return}t.popup&&de.swalCloseEventFinishedCallback&&(de.swalCloseEventFinishedCallback(),delete de.swalCloseEventFinishedCallback),typeof e.didDestroy=="function"&&e.didDestroy(),de.eventEmitter.emit("didDestroy"),p5(this)}const p5=t=>{Zy(t),delete t.params,delete de.keydownHandler,delete de.keydownTarget,delete de.currentInstance},Zy=t=>{t.isAwaitingPromise?(hu(Ae,t),t.isAwaitingPromise=!0):(hu(Fs,t),hu(Ae,t),delete t.isAwaitingPromise,delete t.disableButtons,delete t.enableButtons,delete t.getInput,delete t.disableInput,delete t.enableInput,delete t.hideLoading,delete t.disableLoading,delete t.showValidationMessage,delete t.resetValidationMessage,delete t.close,delete t.closePopup,delete t.closeModal,delete t.closeToast,delete t.rejectPromise,delete t.update,delete t._destroy)},hu=(t,e)=>{for(const n in t)t[n].delete(e)};var b5=Object.freeze({__proto__:null,_destroy:Qy,close:pr,closeModal:pr,closePopup:pr,closeToast:pr,disableButtons:By,disableInput:zy,disableLoading:nl,enableButtons:Fy,enableInput:Wy,getInput:Ay,handleAwaitingPromise:so,hideLoading:nl,rejectPromise:Ey,resetValidationMessage:Yy,showValidationMessage:Hy,update:Ky});const y5=(t,e,n)=>{t.toast?w5(t,e,n):(x5(e),k5(e),_5(t,e,n))},w5=(t,e,n)=>{e.popup.onclick=()=>{t&&(v5(t)||t.timer||t.input)||n(Ls.close)}},v5=t=>!!(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton);let rl=!1;const x5=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=()=>{},e.target===t.container&&(rl=!0)}}},k5=t=>{t.container.onmousedown=e=>{e.target===t.container&&e.preventDefault(),t.popup.onmouseup=function(n){t.popup.onmouseup=()=>{},(n.target===t.popup||n.target instanceof HTMLElement&&t.popup.contains(n.target))&&(rl=!0)}}},_5=(t,e,n)=>{e.container.onclick=r=>{if(rl){rl=!1;return}r.target===e.container&&Xi(t.allowOutsideClick)&&n(Ls.backdrop)}},S5=t=>typeof t=="object"&&t.jquery,Jy=t=>t instanceof Element||S5(t),O5=t=>{const e={};return typeof t[0]=="object"&&!Jy(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const s=t[r];typeof s=="string"||Jy(s)?e[n]=s:s!==void 0&&Xr(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`)}),e};function C5(...t){return new this(...t)}function D5(t){class e extends this{_main(r,s){return super._main(r,Object.assign({},t,s))}}return e}const M5=()=>de.timeout&&de.timeout.getTimerLeft(),qy=()=>{if(de.timeout)return LP(),de.timeout.stop()},$y=()=>{if(de.timeout){const t=de.timeout.start();return su(t),t}},E5=()=>{const t=de.timeout;return t&&(t.running?qy():$y())},P5=t=>{if(de.timeout){const e=de.timeout.increase(t);return su(e,!0),e}},T5=()=>!!(de.timeout&&de.timeout.isRunning());let ew=!1;const gu={};function N5(t="data-swal-template"){gu[t]=this,ew||(document.body.addEventListener("click",j5),ew=!0)}const j5=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in gu){const r=e.getAttribute(n);if(r){gu[n].fire({template:r});return}}};class I5{constructor(){this.events={}}_getHandlersByEventName(e){return typeof this.events[e]>"u"&&(this.events[e]=[]),this.events[e]}on(e,n){const r=this._getHandlersByEventName(e);r.includes(n)||r.push(n)}once(e,n){const r=(...s)=>{this.removeListener(e,r),n.apply(this,s)};this.on(e,r)}emit(e,...n){this._getHandlersByEventName(e).forEach(r=>{try{r.apply(this,n)}catch(s){console.error(s)}})}removeListener(e,n){const r=this._getHandlersByEventName(e),s=r.indexOf(n);s>-1&&r.splice(s,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}de.eventEmitter=new I5;var A5=Object.freeze({__proto__:null,argsToParams:O5,bindClickHandler:N5,clickCancel:OT,clickConfirm:_y,clickDeny:ST,enableLoading:Ws,fire:C5,getActions:to,getCancelButton:As,getCloseButton:$d,getConfirmButton:On,getContainer:Ot,getDenyButton:Gr,getFocusableElements:eu,getFooter:iy,getHtmlContainer:Jd,getIcon:Is,getIconContent:PP,getImage:oy,getInputLabel:TP,getLoader:Rs,getPopup:we,getProgressSteps:qd,getTimerLeft:M5,getTimerProgressBar:Ki,getTitle:ay,getValidationMessage:Gi,increaseTimer:P5,isDeprecatedParameter:Xy,isLoading:jP,isTimerRunning:T5,isUpdatableParameter:Uy,isValidParameter:Vy,isVisible:_T,mixin:D5,off:(t,e)=>{if(!t){de.eventEmitter.reset();return}e?de.eventEmitter.removeListener(t,e):de.eventEmitter.removeAllListeners(t)},on:(t,e)=>{de.eventEmitter.on(t,e)},once:(t,e)=>{de.eventEmitter.once(t,e)},resumeTimer:$y,showLoading:Ws,stopTimer:qy,toggleTimer:E5});class R5{constructor(e,n){this.callback=e,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const n=this.running;return n&&this.stop(),this.remaining+=e,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const tw=["swal-title","swal-html","swal-footer"],L5=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return U5(n),Object.assign(F5(n),B5(n),W5(n),z5(n),H5(n),Y5(n),V5(n,tw))},F5=t=>{const e={};return Array.from(t.querySelectorAll("swal-param")).forEach(r=>{Zr(r,["name","value"]);const s=r.getAttribute("name"),a=r.getAttribute("value");!s||!a||(typeof zs[s]=="boolean"?e[s]=a!=="false":typeof zs[s]=="object"?e[s]=JSON.parse(a):e[s]=a)}),e},B5=t=>{const e={};return Array.from(t.querySelectorAll("swal-function-param")).forEach(r=>{const s=r.getAttribute("name"),a=r.getAttribute("value");!s||!a||(e[s]=new Function(`return ${a}`)())}),e},W5=t=>{const e={};return Array.from(t.querySelectorAll("swal-button")).forEach(r=>{Zr(r,["type","color","aria-label"]);const s=r.getAttribute("type");!s||!["confirm","cancel","deny"].includes(s)||(e[`${s}ButtonText`]=r.innerHTML,e[`show${Kd(s)}Button`]=!0,r.hasAttribute("color")&&(e[`${s}ButtonColor`]=r.getAttribute("color")),r.hasAttribute("aria-label")&&(e[`${s}ButtonAriaLabel`]=r.getAttribute("aria-label")))}),e},z5=t=>{const e={},n=t.querySelector("swal-image");return n&&(Zr(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt")||void 0)),e},H5=t=>{const e={},n=t.querySelector("swal-icon");return n&&(Zr(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},Y5=t=>{const e={},n=t.querySelector("swal-input");n&&(Zr(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const r=Array.from(t.querySelectorAll("swal-input-option"));return r.length&&(e.inputOptions={},r.forEach(s=>{Zr(s,["value"]);const a=s.getAttribute("value");if(!a)return;const o=s.innerHTML;e.inputOptions[a]=o})),e},V5=(t,e)=>{const n={};for(const r in e){const s=e[r],a=t.querySelector(s);a&&(Zr(a,[]),n[s.replace(/^swal-/,"")]=a.innerHTML.trim())}return n},U5=t=>{const e=tw.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(t.children).forEach(n=>{const r=n.tagName.toLowerCase();e.includes(r)||St(`Unrecognized element <${r}>`)})},Zr=(t,e)=>{Array.from(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&St([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},nw=10,X5=t=>{const e=Ot(),n=we();typeof t.willOpen=="function"&&t.willOpen(n),de.eventEmitter.emit("willOpen",n);const s=window.getComputedStyle(document.body).overflowY;Q5(e,n,t),setTimeout(()=>{G5(e,n)},nw),tu()&&(K5(e,t.scrollbarPadding,s),jT()),!Qi()&&!de.previousActiveElement&&(de.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),de.eventEmitter.emit("didOpen",n)},sl=t=>{const e=we();if(t.target!==e)return;const n=Ot();e.removeEventListener("animationend",sl),e.removeEventListener("transitionend",sl),n.style.overflowY="auto",nn(n,X["no-transition"])},G5=(t,e)=>{uy(e)?(t.style.overflowY="hidden",e.addEventListener("animationend",sl),e.addEventListener("transitionend",sl)):t.style.overflowY="auto"},K5=(t,e,n)=>{IT(),e&&n!=="hidden"&&zT(n),setTimeout(()=>{t.scrollTop=0})},Q5=(t,e,n)=>{ke(t,n.showClass.backdrop),n.animation?(e.style.setProperty("opacity","0","important"),ut(e,"grid"),setTimeout(()=>{ke(e,n.showClass.popup),e.style.removeProperty("opacity")},nw)):ut(e,"grid"),ke([document.documentElement,document.body],X.shown),n.heightAuto&&n.backdrop&&!n.toast&&ke([document.documentElement,document.body],X["height-auto"])};var rw={email:(t,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function Z5(t){t.inputValidator||(t.input==="email"&&(t.inputValidator=rw.email),t.input==="url"&&(t.inputValidator=rw.url))}function J5(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(St('Target parameter is not valid, defaulting to "body"'),t.target="body")}function q5(t){Z5(t),t.showLoaderOnConfirm&&!t.preConfirm&&St(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
561
561
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
562
- https://sweetalert2.github.io/#ajax-request`),JT(t),typeof t.title=="string"&&(t.title=t.title.split(`
563
- `).join("<br />")),U5(t)}let Cn;var al=new WeakMap;class Ze{constructor(...e){if(S5(this,al,void 0),typeof window>"u")return;Cn=this;const n=Object.freeze(this.constructor.argsToParams(e));this.params=n,this.isAwaitingPromise=!1,O5(al,this,this._main(Cn.params))}_main(e,n={}){if(Gy(Object.assign({},n,e)),de.currentInstance){const a=Fs.swalPromiseResolve.get(de.currentInstance),{isAwaitingPromise:o}=de.currentInstance;de.currentInstance._destroy(),o||a({isDismissed:!0}),tu()&&Dy()}de.currentInstance=Cn;const r=eN(e,n);qT(r),Object.freeze(r),de.timeout&&(de.timeout.stop(),delete de.timeout),clearTimeout(de.restoreFocusTimeout);const s=tN(Cn);return _y(Cn,r),Ae.innerParams.set(Cn,r),$T(Cn,s,r)}then(e){return ty(al,this).then(e)}finally(e){return ty(al,this).finally(e)}}const $T=(t,e,n)=>new Promise((r,s)=>{const a=o=>{t.close({isDismissed:!0,dismiss:o,isConfirmed:!1,isDenied:!1})};Fs.swalPromiseResolve.set(t,r),Fs.swalPromiseReject.set(t,s),e.confirmButton.onclick=()=>{sT(t)},e.denyButton.onclick=()=>{aT(t)},e.cancelButton.onclick=()=>{oT(t,a)},e.closeButton.onclick=()=>{a(Ls.close)},yT(n,e,a),CP(de,n,a),QP(t,n),XT(n),nN(de,n,a),rN(e,n),setTimeout(()=>{e.container.scrollTop=0})}),eN=(t,e)=>{const n=LT(t),r=Object.assign({},zs,e,n,t);return r.showClass=Object.assign({},zs.showClass,r.showClass),r.hideClass=Object.assign({},zs.hideClass,r.hideClass),r.animation===!1&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},tN=t=>{const e={popup:we(),container:Ot(),actions:to(),confirmButton:On(),denyButton:Kr(),cancelButton:As(),loader:Rs(),closeButton:$d(),validationMessage:Ki(),progressSteps:qd()};return Ae.domCache.set(t,e),e},nN=(t,e,n)=>{const r=Gi();kt(r),e.timer&&(t.timeout=new RT(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ut(r),Vt(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&su(e.timer)})))},rN=(t,e)=>{if(!e.toast){if(!Xi(e.allowEnterKey)){ay("allowEnterKey"),oN();return}sN(t)||aN(t,e)||du(-1,1)}},sN=t=>{const e=Array.from(t.popup.querySelectorAll("[autofocus]"));for(const n of e)if(n instanceof HTMLElement&&At(n))return n.focus(),!0;return!1},aN=(t,e)=>e.focusDeny&&At(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&At(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&At(t.confirmButton)?(t.confirmButton.focus(),!0):!1,oN=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Ze.prototype.disableButtons=Wy,Ze.prototype.enableButtons=By,Ze.prototype.getInput=Ry,Ze.prototype.disableInput=Hy,Ze.prototype.enableInput=zy,Ze.prototype.hideLoading=nl,Ze.prototype.disableLoading=nl,Ze.prototype.showValidationMessage=Yy,Ze.prototype.resetValidationMessage=Vy,Ze.prototype.close=pr,Ze.prototype.closePopup=pr,Ze.prototype.closeModal=pr,Ze.prototype.closeToast=pr,Ze.prototype.rejectPromise=Py,Ze.prototype.update=Qy,Ze.prototype._destroy=Zy,Object.assign(Ze,AT),Object.keys(bT).forEach(t=>{Ze[t]=function(...e){return Cn&&Cn[t]?Cn[t](...e):null}}),Ze.DismissReason=Ls,Ze.version="11.26.4";const Hs=Ze;Hs.default=Hs,typeof document<"u"&&function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch{n.innerText=e}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');const aw={"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"},iN=({onChange:t,accept:e="application/pdf",maxSize:n=10,multiple:r=!1,helperText:s="",disabled:a=!1})=>{const[o,i]=_.useState(!1),l=_.useRef(null),c=Array.isArray(e)?e.join(","):e,d=()=>Array.isArray(e)?e.map(b=>aw[b]||b).join(", "):aw[e]||e,u=_.useCallback(b=>{b.preventDefault(),b.stopPropagation(),a||i(!0)},[a]),h=_.useCallback(b=>{b.preventDefault(),b.stopPropagation(),i(!1)},[]),g=_.useCallback(b=>{if(b.preventDefault(),b.stopPropagation(),i(!1),a)return;const y=Array.from(b.dataTransfer.files);y.length>0&&p(y)},[a,e,n,r,t]),m=_.useCallback(b=>{if(a)return;const y=Array.from(b.target.files||[]);y.length>0&&p(y),l.current&&(l.current.value="")},[a,e,n,r,t]),p=_.useCallback(b=>{if(!r&&b.length>1){alert("Solo se permite un archivo");return}const y=b.filter(k=>Array.isArray(e)?e.some(x=>x==="image/*"?k.type.startsWith("image/"):k.type===x):e==="image/*"?k.type.startsWith("image/"):k.type===e);if(y.length===0){Hs.fire({title:"Error",text:`Tipo de archivo no permitido. Tipos permitidos: ${d()}`,icon:"error",confirmButtonText:"Aceptar",confirmButtonColor:"#191960"});return}const v=y.filter(k=>k.size<=n*1024*1024);v.length!==y.length&&Hs.fire({title:"Error",text:`Algunos archivos exceden el tamaño máximo de ${n}MB`,icon:"error",confirmButtonText:"Aceptar",confirmButtonColor:"#191960"}),v.length>0&&(t==null||t(v))},[e,n,r,t]);return f.jsx("div",{className:"flex w-full items-center justify-center",children:f.jsxs(Tc,{htmlFor:"dropzone-file",className:`flex w-full ${a?"cursor-not-allowed opacity-60":"cursor-pointer"} flex-col items-center justify-center rounded-lg border-2 border-dashed ${o&&!a?"border-blue-500 bg-blue-50":"border-[#C4C4C4] bg-gray-50"} ${!a&&"hover:bg-gray-100"} dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600`,onDragOver:u,onDragLeave:h,onDrop:g,children:[f.jsx("div",{className:"flex w-full items-center justify-center py-6 px-10",children:f.jsx("div",{className:"flex flex-col",children:f.jsxs("p",{className:"mb-2 text-center text-sm font-light text-gray-400 dark:text-gray-400",children:[f.jsx("span",{className:"text-gray-500",children:"Arrastra aquí tu archivo "}),f.jsx("br",{}),f.jsxs("span",{className:" text-gray-500",children:["o ",f.jsx("span",{className:"underline",children:"búscalo en el dispositivo"})]}),s]})})}),f.jsx(bg,{id:"dropzone-file",className:"hidden",onChange:m,accept:c,multiple:r,ref:l,disabled:a})]})})},lN=t=>{const e=Math.floor(Math.log(t)/Math.log(1024)),n=["Bytes","KB","MB","GB","TB"];return`${(t/Math.pow(1024,e)).toFixed(2)} ${n[e]}`},cN=({files:t,onDelete:e,isMultiple:n=!0})=>{const r=n?t:t.slice(-1);return f.jsx("div",{className:"mt-4",children:f.jsx("ul",{className:"list-none",children:r.map((s,a)=>f.jsxs("div",{className:"mb-5 flex w-full items-center justify-between rounded-lg border-2 border-dashed border-[#191960] bg-[#F4F4F4CC] 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:[f.jsxs("div",{className:"flex items-center",children:[f.jsx(Or,{classIm:"mr-2",src:"https://ftp.mathilde-ads.com/151-1dcc25481e8c72ed21c720c94adfdec6.svg",alt:"icon dropzone",width:40}),f.jsx("li",{className:"text-base text-gray-700",children:s.name})]}),f.jsxs("div",{className:"mx-4 flex flex-1 justify-between",children:[f.jsxs("p",{className:"ml-auto text-sm font-semibold",children:[lN(s.size),"  "]}),f.jsx("div",{onClick:()=>e(s),children:f.jsx(Or,{classIm:"ml-auto cursor-pointer",src:"https://ftp.mathilde-ads.com/382-d1647780b1ee3f437104400b2f8d6555.svg",alt:"icon dropzone",width:20})})]})]},a))})})},dN=({description:t=""})=>f.jsxs("div",{className:"flex flex-col items-center justify-center",children:[f.jsx("img",{src:"https://ftp.mathilde-ads.com/151-82821df9d4f7bd2662418d3147880fba.svg",alt:t.replace(/<[^>]*>/g,"")}),t&&f.jsx("p",{className:"text-center",dangerouslySetInnerHTML:{__html:t}})]}),ow={mth_tabs_tab_item:"tabs-module__mth_tabs_tab_item__dk-Z7",mth_tabs_tab_item_active:"tabs-module__mth_tabs_tab_item_active__p3kAi"};function uN({tabs:t,classes:e="",classesUl:n="",tabItemClasses:r="",activeTabStyles:s,inactiveTabStyles:a,contentClasses:o="",defaultActiveTab:i,onTabChange:l}){var m,p;const[c,d]=_.useState(i||((m=t[0])==null?void 0:m.id)||""),u=b=>{d(b),l==null||l(b)},h=b=>{const y=b.target.value;d(y),l==null||l(y)},g=(p=t.find(b=>b.id===c))==null?void 0:p.content;return f.jsxs("div",{className:`${e} tabs-container`,children:[f.jsxs("div",{className:"mb-4 sm:hidden",children:[f.jsx("label",{htmlFor:"tabs-select",className:"sr-only",children:"Selecciona una pestaña"}),f.jsx("select",{id:"tabs-select",value:c,onChange:h,className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",children:t.map(b=>f.jsx("option",{value:b.id,children:b.title},b.id))})]}),f.jsx("ul",{className:`${n} text-sm font-medium text-center text-gray-500 rounded-lg shadow-sm sm:flex dark:divide-gray-700 dark:text-gray-400`,children:t.map(b=>{const y=c===b.id,v=()=>y&&s?s:!y&&a?a:{},k=()=>y?s?"":ow.mth_tabs_tab_item_active:a?"":ow.mth_tabs_tab_item;return f.jsx("li",{className:"w-full focus-within:z-10",children:f.jsxs("button",{onClick:()=>u(b.id),className:`${r} ${k()} uppercase`,style:v(),"aria-current":y?"page":void 0,children:[b.icon&&f.jsx("span",{className:"mr-2",children:b.icon}),b.title]})},b.id)})}),f.jsx("div",{className:`mt-0 ${o}`,children:g})]})}var iw={},ao={},mu={exports:{}},ol={exports:{}},Oe={};/** @license React v16.13.1
562
+ https://sweetalert2.github.io/#ajax-request`),J5(t),typeof t.title=="string"&&(t.title=t.title.split(`
563
+ `).join("<br />")),UP(t)}let Cn;var al=new WeakMap;class Ze{constructor(...e){if(SP(this,al,void 0),typeof window>"u")return;Cn=this;const n=Object.freeze(this.constructor.argsToParams(e));this.params=n,this.isAwaitingPromise=!1,OP(al,this,this._main(Cn.params))}_main(e,n={}){if(Gy(Object.assign({},n,e)),de.currentInstance){const a=Fs.swalPromiseResolve.get(de.currentInstance),{isAwaitingPromise:o}=de.currentInstance;de.currentInstance._destroy(),o||a({isDismissed:!0}),tu()&&Cy()}de.currentInstance=Cn;const r=eN(e,n);q5(r),Object.freeze(r),de.timeout&&(de.timeout.stop(),delete de.timeout),clearTimeout(de.restoreFocusTimeout);const s=tN(Cn);return ky(Cn,r),Ae.innerParams.set(Cn,r),$5(Cn,s,r)}then(e){return ey(al,this).then(e)}finally(e){return ey(al,this).finally(e)}}const $5=(t,e,n)=>new Promise((r,s)=>{const a=o=>{t.close({isDismissed:!0,dismiss:o,isConfirmed:!1,isDenied:!1})};Fs.swalPromiseResolve.set(t,r),Fs.swalPromiseReject.set(t,s),e.confirmButton.onclick=()=>{s5(t)},e.denyButton.onclick=()=>{a5(t)},e.cancelButton.onclick=()=>{o5(t,a)},e.closeButton.onclick=()=>{a(Ls.close)},y5(n,e,a),CT(de,n,a),QT(t,n),X5(n),nN(de,n,a),rN(e,n),setTimeout(()=>{e.container.scrollTop=0})}),eN=(t,e)=>{const n=L5(t),r=Object.assign({},zs,e,n,t);return r.showClass=Object.assign({},zs.showClass,r.showClass),r.hideClass=Object.assign({},zs.hideClass,r.hideClass),r.animation===!1&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},tN=t=>{const e={popup:we(),container:Ot(),actions:to(),confirmButton:On(),denyButton:Gr(),cancelButton:As(),loader:Rs(),closeButton:$d(),validationMessage:Gi(),progressSteps:qd()};return Ae.domCache.set(t,e),e},nN=(t,e,n)=>{const r=Ki();kt(r),e.timer&&(t.timeout=new R5(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ut(r),Vt(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&su(e.timer)})))},rN=(t,e)=>{if(!e.toast){if(!Xi(e.allowEnterKey)){sy("allowEnterKey"),oN();return}sN(t)||aN(t,e)||du(-1,1)}},sN=t=>{const e=Array.from(t.popup.querySelectorAll("[autofocus]"));for(const n of e)if(n instanceof HTMLElement&&At(n))return n.focus(),!0;return!1},aN=(t,e)=>e.focusDeny&&At(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&At(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&At(t.confirmButton)?(t.confirmButton.focus(),!0):!1,oN=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Ze.prototype.disableButtons=By,Ze.prototype.enableButtons=Fy,Ze.prototype.getInput=Ay,Ze.prototype.disableInput=zy,Ze.prototype.enableInput=Wy,Ze.prototype.hideLoading=nl,Ze.prototype.disableLoading=nl,Ze.prototype.showValidationMessage=Hy,Ze.prototype.resetValidationMessage=Yy,Ze.prototype.close=pr,Ze.prototype.closePopup=pr,Ze.prototype.closeModal=pr,Ze.prototype.closeToast=pr,Ze.prototype.rejectPromise=Ey,Ze.prototype.update=Ky,Ze.prototype._destroy=Qy,Object.assign(Ze,A5),Object.keys(b5).forEach(t=>{Ze[t]=function(...e){return Cn&&Cn[t]?Cn[t](...e):null}}),Ze.DismissReason=Ls,Ze.version="11.26.4";const Hs=Ze;Hs.default=Hs,typeof document<"u"&&function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch{n.innerText=e}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');const sw={"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"},iN=({onChange:t,accept:e="application/pdf",maxSize:n=10,multiple:r=!1,helperText:s="",disabled:a=!1})=>{const[o,i]=_.useState(!1),l=_.useRef(null),c=Array.isArray(e)?e.join(","):e,d=()=>Array.isArray(e)?e.map(b=>sw[b]||b).join(", "):sw[e]||e,u=_.useCallback(b=>{b.preventDefault(),b.stopPropagation(),a||i(!0)},[a]),h=_.useCallback(b=>{b.preventDefault(),b.stopPropagation(),i(!1)},[]),g=_.useCallback(b=>{if(b.preventDefault(),b.stopPropagation(),i(!1),a)return;const y=Array.from(b.dataTransfer.files);y.length>0&&p(y)},[a,e,n,r,t]),m=_.useCallback(b=>{if(a)return;const y=Array.from(b.target.files||[]);y.length>0&&p(y),l.current&&(l.current.value="")},[a,e,n,r,t]),p=_.useCallback(b=>{if(!r&&b.length>1){alert("Solo se permite un archivo");return}const y=b.filter(k=>Array.isArray(e)?e.some(x=>x==="image/*"?k.type.startsWith("image/"):k.type===x):e==="image/*"?k.type.startsWith("image/"):k.type===e);if(y.length===0){Hs.fire({title:"Error",text:`Tipo de archivo no permitido. Tipos permitidos: ${d()}`,icon:"error",confirmButtonText:"Aceptar",confirmButtonColor:"#191960"});return}const v=y.filter(k=>k.size<=n*1024*1024);v.length!==y.length&&Hs.fire({title:"Error",text:`Algunos archivos exceden el tamaño máximo de ${n}MB`,icon:"error",confirmButtonText:"Aceptar",confirmButtonColor:"#191960"}),v.length>0&&(t==null||t(v))},[e,n,r,t]);return f.jsx("div",{className:"flex w-full items-center justify-center",children:f.jsxs(Tc,{htmlFor:"dropzone-file",className:`flex w-full ${a?"cursor-not-allowed opacity-60":"cursor-pointer"} flex-col items-center justify-center rounded-lg border-2 border-dashed ${o&&!a?"border-blue-500 bg-blue-50":"border-[#C4C4C4] bg-gray-50"} ${!a&&"hover:bg-gray-100"} dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600`,onDragOver:u,onDragLeave:h,onDrop:g,children:[f.jsx("div",{className:"flex w-full items-center justify-center py-6 px-10",children:f.jsx("div",{className:"flex flex-col",children:f.jsxs("p",{className:"mb-2 text-center text-sm font-light text-gray-400 dark:text-gray-400",children:[f.jsx("span",{className:"text-gray-500",children:"Arrastra aquí tu archivo "}),f.jsx("br",{}),f.jsxs("span",{className:" text-gray-500",children:["o ",f.jsx("span",{className:"underline",children:"búscalo en el dispositivo"})]}),s]})})}),f.jsx(pg,{id:"dropzone-file",className:"hidden",onChange:m,accept:c,multiple:r,ref:l,disabled:a})]})})},lN=t=>{const e=Math.floor(Math.log(t)/Math.log(1024)),n=["Bytes","KB","MB","GB","TB"];return`${(t/Math.pow(1024,e)).toFixed(2)} ${n[e]}`},cN=({files:t,onDelete:e,isMultiple:n=!0})=>{const r=n?t:t.slice(-1);return f.jsx("div",{className:"mt-4",children:f.jsx("ul",{className:"list-none",children:r.map((s,a)=>f.jsxs("div",{className:"mb-5 flex w-full items-center justify-between rounded-lg border-2 border-dashed border-[#191960] bg-[#F4F4F4CC] 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:[f.jsxs("div",{className:"flex items-center",children:[f.jsx(Or,{classIm:"mr-2",src:"https://ftp.mathilde-ads.com/151-1dcc25481e8c72ed21c720c94adfdec6.svg",alt:"icon dropzone",width:40}),f.jsx("li",{className:"text-base text-gray-700",children:s.name})]}),f.jsxs("div",{className:"mx-4 flex flex-1 justify-between",children:[f.jsxs("p",{className:"ml-auto text-sm font-semibold",children:[lN(s.size),"  "]}),f.jsx("div",{onClick:()=>e(s),children:f.jsx(Or,{classIm:"ml-auto cursor-pointer",src:"https://ftp.mathilde-ads.com/382-d1647780b1ee3f437104400b2f8d6555.svg",alt:"icon dropzone",width:20})})]})]},a))})})},dN=({description:t=""})=>f.jsxs("div",{className:"flex flex-col items-center justify-center",children:[f.jsx("img",{src:"https://ftp.mathilde-ads.com/151-82821df9d4f7bd2662418d3147880fba.svg",alt:t.replace(/<[^>]*>/g,"")}),t&&f.jsx("p",{className:"text-center",dangerouslySetInnerHTML:{__html:t}})]}),aw={mth_tabs_tab_item:"tabs-module__mth_tabs_tab_item__dk-Z7",mth_tabs_tab_item_active:"tabs-module__mth_tabs_tab_item_active__p3kAi"};function uN({tabs:t,classes:e="",classesUl:n="",tabItemClasses:r="",activeTabStyles:s,inactiveTabStyles:a,contentClasses:o="",defaultActiveTab:i,onTabChange:l}){var m,p;const[c,d]=_.useState(i||((m=t[0])==null?void 0:m.id)||""),u=b=>{d(b),l==null||l(b)},h=b=>{const y=b.target.value;d(y),l==null||l(y)},g=(p=t.find(b=>b.id===c))==null?void 0:p.content;return f.jsxs("div",{className:`${e} tabs-container`,children:[f.jsxs("div",{className:"mb-4 sm:hidden",children:[f.jsx("label",{htmlFor:"tabs-select",className:"sr-only",children:"Selecciona una pestaña"}),f.jsx("select",{id:"tabs-select",value:c,onChange:h,className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",children:t.map(b=>f.jsx("option",{value:b.id,children:b.title},b.id))})]}),f.jsx("ul",{className:`${n} text-sm font-medium text-center text-gray-500 rounded-lg shadow-sm sm:flex dark:divide-gray-700 dark:text-gray-400`,children:t.map(b=>{const y=c===b.id,v=()=>y&&s?s:!y&&a?a:{},k=()=>y?s?"":aw.mth_tabs_tab_item_active:a?"":aw.mth_tabs_tab_item;return f.jsx("li",{className:"w-full focus-within:z-10",children:f.jsxs("button",{onClick:()=>u(b.id),className:`${r} ${k()} uppercase`,style:v(),"aria-current":y?"page":void 0,children:[b.icon&&f.jsx("span",{className:"mr-2",children:b.icon}),b.title]})},b.id)})}),f.jsx("div",{className:`mt-0 ${o}`,children:g})]})}var ow={},ao={},mu={exports:{}},ol={exports:{}},Oe={};/** @license React v16.13.1
564
564
  * react-is.production.min.js
565
565
  *
566
566
  * Copyright (c) Facebook, Inc. and its affiliates.
567
567
  *
568
568
  * This source code is licensed under the MIT license found in the
569
569
  * LICENSE file in the root directory of this source tree.
570
- */var lw;function fN(){if(lw)return Oe;lw=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,i=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,p=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function k(w){if(typeof w=="object"&&w!==null){var S=w.$$typeof;switch(S){case e:switch(w=w.type,w){case l:case c:case r:case a:case s:case u:return w;default:switch(w=w&&w.$$typeof,w){case i:case d:case m:case g:case o:return w;default:return S}}case n:return S}}}function x(w){return k(w)===c}return Oe.AsyncMode=l,Oe.ConcurrentMode=c,Oe.ContextConsumer=i,Oe.ContextProvider=o,Oe.Element=e,Oe.ForwardRef=d,Oe.Fragment=r,Oe.Lazy=m,Oe.Memo=g,Oe.Portal=n,Oe.Profiler=a,Oe.StrictMode=s,Oe.Suspense=u,Oe.isAsyncMode=function(w){return x(w)||k(w)===l},Oe.isConcurrentMode=x,Oe.isContextConsumer=function(w){return k(w)===i},Oe.isContextProvider=function(w){return k(w)===o},Oe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Oe.isForwardRef=function(w){return k(w)===d},Oe.isFragment=function(w){return k(w)===r},Oe.isLazy=function(w){return k(w)===m},Oe.isMemo=function(w){return k(w)===g},Oe.isPortal=function(w){return k(w)===n},Oe.isProfiler=function(w){return k(w)===a},Oe.isStrictMode=function(w){return k(w)===s},Oe.isSuspense=function(w){return k(w)===u},Oe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===c||w===a||w===s||w===u||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===g||w.$$typeof===o||w.$$typeof===i||w.$$typeof===d||w.$$typeof===b||w.$$typeof===y||w.$$typeof===v||w.$$typeof===p)},Oe.typeOf=k,Oe}var Ce={};/** @license React v16.13.1
570
+ */var iw;function fN(){if(iw)return Oe;iw=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,i=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,p=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function k(w){if(typeof w=="object"&&w!==null){var S=w.$$typeof;switch(S){case e:switch(w=w.type,w){case l:case c:case r:case a:case s:case u:return w;default:switch(w=w&&w.$$typeof,w){case i:case d:case m:case g:case o:return w;default:return S}}case n:return S}}}function x(w){return k(w)===c}return Oe.AsyncMode=l,Oe.ConcurrentMode=c,Oe.ContextConsumer=i,Oe.ContextProvider=o,Oe.Element=e,Oe.ForwardRef=d,Oe.Fragment=r,Oe.Lazy=m,Oe.Memo=g,Oe.Portal=n,Oe.Profiler=a,Oe.StrictMode=s,Oe.Suspense=u,Oe.isAsyncMode=function(w){return x(w)||k(w)===l},Oe.isConcurrentMode=x,Oe.isContextConsumer=function(w){return k(w)===i},Oe.isContextProvider=function(w){return k(w)===o},Oe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Oe.isForwardRef=function(w){return k(w)===d},Oe.isFragment=function(w){return k(w)===r},Oe.isLazy=function(w){return k(w)===m},Oe.isMemo=function(w){return k(w)===g},Oe.isPortal=function(w){return k(w)===n},Oe.isProfiler=function(w){return k(w)===a},Oe.isStrictMode=function(w){return k(w)===s},Oe.isSuspense=function(w){return k(w)===u},Oe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===c||w===a||w===s||w===u||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===g||w.$$typeof===o||w.$$typeof===i||w.$$typeof===d||w.$$typeof===b||w.$$typeof===y||w.$$typeof===v||w.$$typeof===p)},Oe.typeOf=k,Oe}var Ce={};/** @license React v16.13.1
571
571
  * react-is.development.js
572
572
  *
573
573
  * Copyright (c) Facebook, Inc. and its affiliates.
574
574
  *
575
575
  * This source code is licensed under the MIT license found in the
576
576
  * LICENSE file in the root directory of this source tree.
577
- */var cw;function hN(){return cw||(cw=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,i=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,p=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function k(B){return typeof B=="string"||typeof B=="function"||B===r||B===c||B===a||B===s||B===u||B===h||typeof B=="object"&&B!==null&&(B.$$typeof===m||B.$$typeof===g||B.$$typeof===o||B.$$typeof===i||B.$$typeof===d||B.$$typeof===b||B.$$typeof===y||B.$$typeof===v||B.$$typeof===p)}function x(B){if(typeof B=="object"&&B!==null){var re=B.$$typeof;switch(re){case e:var se=B.type;switch(se){case l:case c:case r:case a:case s:case u:return se;default:var ie=se&&se.$$typeof;switch(ie){case i:case d:case m:case g:case o:return ie;default:return re}}case n:return re}}}var w=l,S=c,N=i,M=o,T=e,P=d,z=r,F=m,O=g,C=n,E=a,W=s,U=u,K=!1;function ee(B){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(B)||x(B)===l}function j(B){return x(B)===c}function V(B){return x(B)===i}function L(B){return x(B)===o}function R(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function A(B){return x(B)===d}function D(B){return x(B)===r}function Y(B){return x(B)===m}function J(B){return x(B)===g}function G(B){return x(B)===n}function I(B){return x(B)===a}function q(B){return x(B)===s}function te(B){return x(B)===u}Ce.AsyncMode=w,Ce.ConcurrentMode=S,Ce.ContextConsumer=N,Ce.ContextProvider=M,Ce.Element=T,Ce.ForwardRef=P,Ce.Fragment=z,Ce.Lazy=F,Ce.Memo=O,Ce.Portal=C,Ce.Profiler=E,Ce.StrictMode=W,Ce.Suspense=U,Ce.isAsyncMode=ee,Ce.isConcurrentMode=j,Ce.isContextConsumer=V,Ce.isContextProvider=L,Ce.isElement=R,Ce.isForwardRef=A,Ce.isFragment=D,Ce.isLazy=Y,Ce.isMemo=J,Ce.isPortal=G,Ce.isProfiler=I,Ce.isStrictMode=q,Ce.isSuspense=te,Ce.isValidElementType=k,Ce.typeOf=x}()),Ce}var dw;function uw(){return dw||(dw=1,process.env.NODE_ENV==="production"?ol.exports=fN():ol.exports=hN()),ol.exports}/*
577
+ */var lw;function hN(){return lw||(lw=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,i=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,p=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function k(B){return typeof B=="string"||typeof B=="function"||B===r||B===c||B===a||B===s||B===u||B===h||typeof B=="object"&&B!==null&&(B.$$typeof===m||B.$$typeof===g||B.$$typeof===o||B.$$typeof===i||B.$$typeof===d||B.$$typeof===b||B.$$typeof===y||B.$$typeof===v||B.$$typeof===p)}function x(B){if(typeof B=="object"&&B!==null){var re=B.$$typeof;switch(re){case e:var se=B.type;switch(se){case l:case c:case r:case a:case s:case u:return se;default:var ie=se&&se.$$typeof;switch(ie){case i:case d:case m:case g:case o:return ie;default:return re}}case n:return re}}}var w=l,S=c,N=i,M=o,T=e,P=d,z=r,F=m,O=g,C=n,E=a,W=s,U=u,G=!1;function ee(B){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(B)||x(B)===l}function j(B){return x(B)===c}function V(B){return x(B)===i}function L(B){return x(B)===o}function R(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function A(B){return x(B)===d}function D(B){return x(B)===r}function Y(B){return x(B)===m}function J(B){return x(B)===g}function K(B){return x(B)===n}function I(B){return x(B)===a}function q(B){return x(B)===s}function te(B){return x(B)===u}Ce.AsyncMode=w,Ce.ConcurrentMode=S,Ce.ContextConsumer=N,Ce.ContextProvider=M,Ce.Element=T,Ce.ForwardRef=P,Ce.Fragment=z,Ce.Lazy=F,Ce.Memo=O,Ce.Portal=C,Ce.Profiler=E,Ce.StrictMode=W,Ce.Suspense=U,Ce.isAsyncMode=ee,Ce.isConcurrentMode=j,Ce.isContextConsumer=V,Ce.isContextProvider=L,Ce.isElement=R,Ce.isForwardRef=A,Ce.isFragment=D,Ce.isLazy=Y,Ce.isMemo=J,Ce.isPortal=K,Ce.isProfiler=I,Ce.isStrictMode=q,Ce.isSuspense=te,Ce.isValidElementType=k,Ce.typeOf=x}()),Ce}var cw;function dw(){return cw||(cw=1,process.env.NODE_ENV==="production"?ol.exports=fN():ol.exports=hN()),ol.exports}/*
578
578
  object-assign
579
579
  (c) Sindre Sorhus
580
580
  @license MIT
581
- */var pu,fw;function gN(){if(fw)return pu;fw=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},i=0;i<10;i++)o["_"+String.fromCharCode(i)]=i;var l=Object.getOwnPropertyNames(o).map(function(d){return o[d]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return pu=s()?Object.assign:function(a,o){for(var i,l=r(a),c,d=1;d<arguments.length;d++){i=Object(arguments[d]);for(var u in i)e.call(i,u)&&(l[u]=i[u]);if(t){c=t(i);for(var h=0;h<c.length;h++)n.call(i,c[h])&&(l[c[h]]=i[c[h]])}}return l},pu}var bu,hw;function yu(){if(hw)return bu;hw=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return bu=t,bu}var wu,gw;function mw(){return gw||(gw=1,wu=Function.call.bind(Object.prototype.hasOwnProperty)),wu}var vu,pw;function mN(){if(pw)return vu;pw=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=yu(),n={},r=mw();t=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function s(a,o,i,l,c){if(process.env.NODE_ENV!=="production"){for(var d in a)if(r(a,d)){var u;try{if(typeof a[d]!="function"){var h=Error((l||"React class")+": "+i+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}u=a[d](o,d,l,i,null,e)}catch(m){u=m}if(u&&!(u instanceof Error)&&t((l||"React class")+": type specification of "+i+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var g=c?c():"";t("Failed "+i+" type: "+u.message+(g??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},vu=s,vu}var xu,bw;function pN(){if(bw)return xu;bw=1;var t=uw(),e=gN(),n=yu(),r=mw(),s=mN(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(i){var l="Warning: "+i;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return xu=function(i,l){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(j){var V=j&&(c&&j[c]||j[d]);if(typeof V=="function")return V}var h="<<anonymous>>",g={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:v(),arrayOf:k,element:x(),elementType:w(),instanceOf:S,node:P(),objectOf:M,oneOf:N,oneOfType:T,shape:F,exact:O};function m(j,V){return j===V?j!==0||1/j===1/V:j!==j&&V!==V}function p(j,V){this.message=j,this.data=V&&typeof V=="object"?V:{},this.stack=""}p.prototype=Error.prototype;function b(j){if(process.env.NODE_ENV!=="production")var V={},L=0;function R(D,Y,J,G,I,q,te){if(G=G||h,q=q||J,te!==n){if(l){var B=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw B.name="Invariant Violation",B}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var re=G+":"+J;!V[re]&&L<3&&(a("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+G+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[re]=!0,L++)}}return Y[J]==null?D?Y[J]===null?new p("The "+I+" `"+q+"` is marked as required "+("in `"+G+"`, but its value is `null`.")):new p("The "+I+" `"+q+"` is marked as required in "+("`"+G+"`, but its value is `undefined`.")):null:j(Y,J,G,I,q)}var A=R.bind(null,!1);return A.isRequired=R.bind(null,!0),A}function y(j){function V(L,R,A,D,Y,J){var G=L[R],I=W(G);if(I!==j){var q=U(G);return new p("Invalid "+D+" `"+Y+"` of type "+("`"+q+"` supplied to `"+A+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return b(V)}function v(){return b(o)}function k(j){function V(L,R,A,D,Y){if(typeof j!="function")return new p("Property `"+Y+"` of component `"+A+"` has invalid PropType notation inside arrayOf.");var J=L[R];if(!Array.isArray(J)){var G=W(J);return new p("Invalid "+D+" `"+Y+"` of type "+("`"+G+"` supplied to `"+A+"`, expected an array."))}for(var I=0;I<J.length;I++){var q=j(J,I,A,D,Y+"["+I+"]",n);if(q instanceof Error)return q}return null}return b(V)}function x(){function j(V,L,R,A,D){var Y=V[L];if(!i(Y)){var J=W(Y);return new p("Invalid "+A+" `"+D+"` of type "+("`"+J+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return b(j)}function w(){function j(V,L,R,A,D){var Y=V[L];if(!t.isValidElementType(Y)){var J=W(Y);return new p("Invalid "+A+" `"+D+"` of type "+("`"+J+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return b(j)}function S(j){function V(L,R,A,D,Y){if(!(L[R]instanceof j)){var J=j.name||h,G=ee(L[R]);return new p("Invalid "+D+" `"+Y+"` of type "+("`"+G+"` supplied to `"+A+"`, expected ")+("instance of `"+J+"`."))}return null}return b(V)}function N(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function V(L,R,A,D,Y){for(var J=L[R],G=0;G<j.length;G++)if(m(J,j[G]))return null;var I=JSON.stringify(j,function(te,B){var re=U(B);return re==="symbol"?String(B):B});return new p("Invalid "+D+" `"+Y+"` of value `"+String(J)+"` "+("supplied to `"+A+"`, expected one of "+I+"."))}return b(V)}function M(j){function V(L,R,A,D,Y){if(typeof j!="function")return new p("Property `"+Y+"` of component `"+A+"` has invalid PropType notation inside objectOf.");var J=L[R],G=W(J);if(G!=="object")return new p("Invalid "+D+" `"+Y+"` of type "+("`"+G+"` supplied to `"+A+"`, expected an object."));for(var I in J)if(r(J,I)){var q=j(J,I,A,D,Y+"."+I,n);if(q instanceof Error)return q}return null}return b(V)}function T(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var V=0;V<j.length;V++){var L=j[V];if(typeof L!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(L)+" at index "+V+"."),o}function R(A,D,Y,J,G){for(var I=[],q=0;q<j.length;q++){var te=j[q],B=te(A,D,Y,J,G,n);if(B==null)return null;B.data&&r(B.data,"expectedType")&&I.push(B.data.expectedType)}var re=I.length>0?", expected one of type ["+I.join(", ")+"]":"";return new p("Invalid "+J+" `"+G+"` supplied to "+("`"+Y+"`"+re+"."))}return b(R)}function P(){function j(V,L,R,A,D){return C(V[L])?null:new p("Invalid "+A+" `"+D+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return b(j)}function z(j,V,L,R,A){return new p((j||"React class")+": "+V+" type `"+L+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+A+"`.")}function F(j){function V(L,R,A,D,Y){var J=L[R],G=W(J);if(G!=="object")return new p("Invalid "+D+" `"+Y+"` of type `"+G+"` "+("supplied to `"+A+"`, expected `object`."));for(var I in j){var q=j[I];if(typeof q!="function")return z(A,D,Y,I,U(q));var te=q(J,I,A,D,Y+"."+I,n);if(te)return te}return null}return b(V)}function O(j){function V(L,R,A,D,Y){var J=L[R],G=W(J);if(G!=="object")return new p("Invalid "+D+" `"+Y+"` of type `"+G+"` "+("supplied to `"+A+"`, expected `object`."));var I=e({},L[R],j);for(var q in I){var te=j[q];if(r(j,q)&&typeof te!="function")return z(A,D,Y,q,U(te));if(!te)return new p("Invalid "+D+" `"+Y+"` key `"+q+"` supplied to `"+A+"`.\nBad object: "+JSON.stringify(L[R],null," ")+`
582
- Valid keys: `+JSON.stringify(Object.keys(j),null," "));var B=te(J,q,A,D,Y+"."+q,n);if(B)return B}return null}return b(V)}function C(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(C);if(j===null||i(j))return!0;var V=u(j);if(V){var L=V.call(j),R;if(V!==j.entries){for(;!(R=L.next()).done;)if(!C(R.value))return!1}else for(;!(R=L.next()).done;){var A=R.value;if(A&&!C(A[1]))return!1}}else return!1;return!0;default:return!1}}function E(j,V){return j==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function W(j){var V=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":E(V,j)?"symbol":V}function U(j){if(typeof j>"u"||j===null)return""+j;var V=W(j);if(V==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return V}function K(j){var V=U(j);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function ee(j){return!j.constructor||!j.constructor.name?h:j.constructor.name}return g.checkPropTypes=s,g.resetWarningCache=s.resetWarningCache,g.PropTypes=g,g},xu}var ku,yw;function bN(){if(yw)return ku;yw=1;var t=yu();function e(){}function n(){}return n.resetWarningCache=e,ku=function(){function r(o,i,l,c,d,u){if(u!==t){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function s(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:e};return a.PropTypes=a,a},ku}if(process.env.NODE_ENV!=="production"){var yN=uw(),wN=!0;mu.exports=pN()(yN.isElement,wN)}else mu.exports=bN()();var Xn=mu.exports,oo={},Kn={};const ww=7,il=365.2425,io=6048e5,vw=864e5,Gn=6e4,Jr=36e5,_u=1e3,xw=525600,Ys=43200,ll=1440,kw=60,_w=3,Sw=12,Ow=4,cl=3600,Su=60,Ou=cl*24,vN=Ou*7,Cw=Ou*il,Dw=Cw/12,xN=Dw*3,Mw=Symbol.for("constructDateFrom");function oe(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Mw in t?t[Mw](e):t instanceof Date?new t.constructor(e):new Date(e)}function Z(t,e){return oe(e||t,t)}function rn(t,e,n){const r=Z(t,n==null?void 0:n.in);return isNaN(e)?oe((n==null?void 0:n.in)||t,NaN):(e&&r.setDate(r.getDate()+e),r)}function lo(t,e,n){const r=Z(t,n==null?void 0:n.in);if(isNaN(e))return oe((n==null?void 0:n.in)||t,NaN);if(!e)return r;const s=r.getDate(),a=oe((n==null?void 0:n.in)||t,r.getTime());a.setMonth(r.getMonth()+e+1,0);const o=a.getDate();return s>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),s),r)}function Vs(t,e,n){const{years:r=0,months:s=0,weeks:a=0,days:o=0,hours:i=0,minutes:l=0,seconds:c=0}=e,d=Z(t,n==null?void 0:n.in),u=s||r?lo(d,s+r*12):d,h=o||a?rn(u,o+a*7):u,g=l+i*60,p=(c+g*60)*1e3;return oe((n==null?void 0:n.in)||t,+h+p)}function Ew(t,e){return Z(t,e==null?void 0:e.in).getDay()===6}function Pw(t,e){return Z(t,e==null?void 0:e.in).getDay()===0}function Us(t,e){const n=Z(t,e==null?void 0:e.in).getDay();return n===0||n===6}function Tw(t,e,n){const r=Z(t,n==null?void 0:n.in),s=Us(r,n);if(isNaN(e))return oe(n==null?void 0:n.in,NaN);const a=r.getHours(),o=e<0?-1:1,i=Math.trunc(e/5);r.setDate(r.getDate()+i*7);let l=Math.abs(e%5);for(;l>0;)r.setDate(r.getDate()+o),Us(r,n)||(l-=1);return s&&Us(r,n)&&e!==0&&(Ew(r,n)&&r.setDate(r.getDate()+(o<0?2:-1)),Pw(r,n)&&r.setDate(r.getDate()+(o<0?1:-2))),r.setHours(a),r}function dl(t,e,n){return oe((n==null?void 0:n.in)||t,+Z(t)+e)}function Nw(t,e,n){return dl(t,e*Jr,n)}let jw={};function Ct(){return jw}function kN(t){jw=t}function bt(t,e){var i,l,c,d;const n=Ct(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Z(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?7:0)+a-r;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function un(t,e){return bt(t,{...e,weekStartsOn:1})}function br(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=oe(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const a=un(s),o=oe(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const i=un(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function Rt(t){const e=Z(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Te(t,...e){const n=oe.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function Xs(t,e){const n=Z(t,e==null?void 0:e.in);return n.setHours(0,0,0,0),n}function Dn(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=Xs(r),o=Xs(s),i=+a-Rt(a),l=+o-Rt(o);return Math.round((i-l)/vw)}function yr(t,e){const n=br(t,e),r=oe((e==null?void 0:e.in)||t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),un(r)}function Iw(t,e,n){let r=Z(t,n==null?void 0:n.in);const s=Dn(r,yr(r,n)),a=oe((n==null?void 0:n.in)||t,0);return a.setFullYear(e,0,4),a.setHours(0,0,0,0),r=yr(a),r.setDate(r.getDate()+s),r}function Aw(t,e,n){return Iw(t,br(t,n)+e,n)}function Cu(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setTime(r.getTime()+e*Gn),r}function Du(t,e,n){return lo(t,e*3,n)}function Rw(t,e,n){return dl(t,e*1e3,n)}function ul(t,e,n){return rn(t,e*7,n)}function Lw(t,e,n){return lo(t,e*12,n)}function _N(t,e,n){const[r,s]=[+Z(t.start,n==null?void 0:n.in),+Z(t.end,n==null?void 0:n.in)].sort((i,l)=>i-l),[a,o]=[+Z(e.start,n==null?void 0:n.in),+Z(e.end,n==null?void 0:n.in)].sort((i,l)=>i-l);return n!=null&&n.inclusive?r<=o&&a<=s:r<o&&a<s}function Fw(t,e){let n,r=e==null?void 0:e.in;return t.forEach(s=>{!r&&typeof s=="object"&&(r=oe.bind(null,s));const a=Z(s,r);(!n||n<a||isNaN(+a))&&(n=a)}),oe(r,n||NaN)}function Bw(t,e){let n,r=e==null?void 0:e.in;return t.forEach(s=>{!r&&typeof s=="object"&&(r=oe.bind(null,s));const a=Z(s,r);(!n||n>a||isNaN(+a))&&(n=a)}),oe(r,n||NaN)}function SN(t,e,n){const[r,s,a]=Te(n==null?void 0:n.in,t,e.start,e.end);return Bw([Fw([r,s],n),a],n)}function Ww(t,e){const n=+Z(t);if(isNaN(n))return NaN;let r,s;return e.forEach((a,o)=>{const i=Z(a);if(isNaN(+i)){r=NaN,s=NaN;return}const l=Math.abs(n-+i);(r==null||l<s)&&(r=o,s=l)}),r}function ON(t,e,n){const[r,...s]=Te(n==null?void 0:n.in,t,...e),a=Ww(r,s);if(typeof a=="number"&&isNaN(a))return oe(r,NaN);if(a!==void 0)return s[a]}function Mn(t,e){const n=+Z(t)-+Z(e);return n<0?-1:n>0?1:n}function CN(t,e){const n=+Z(t)-+Z(e);return n>0?-1:n<0?1:n}function st(t){return oe(t,Date.now())}function DN(t){const e=Math.trunc(t/ww);return e===0?0:e}function co(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return+Xs(r)==+Xs(s)}function zw(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Qn(t){return!(!zw(t)&&typeof t!="number"||isNaN(+Z(t)))}function MN(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);if(!Qn(r)||!Qn(s))return NaN;const a=Dn(r,s),o=a<0?-1:1,i=Math.trunc(a/7);let l=i*5,c=rn(s,i*7);for(;!co(r,c);)l+=Us(c,n)?0:o,c=rn(c,o);return l===0?0:l}function Hw(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return br(r,n)-br(s,n)}function EN(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=un(r),o=un(s),i=+a-Rt(a),l=+o-Rt(o);return Math.round((i-l)/io)}function fl(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=r.getFullYear()-s.getFullYear(),o=r.getMonth()-s.getMonth();return a*12+o}function Mu(t,e){const n=Z(t,e==null?void 0:e.in);return Math.trunc(n.getMonth()/3)+1}function hl(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=r.getFullYear()-s.getFullYear(),o=Mu(r)-Mu(s);return a*4+o}function gl(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=bt(r,n),o=bt(s,n),i=+a-Rt(a),l=+o-Rt(o);return Math.round((i-l)/io)}function uo(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return r.getFullYear()-s.getFullYear()}function Eu(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=Yw(r,s),o=Math.abs(Dn(r,s));r.setDate(r.getDate()-a*o);const i=+(Yw(r,s)===-a),l=a*(o-i);return l===0?0:l}function Yw(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function wr(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function ml(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=(+r-+s)/Jr;return wr(n==null?void 0:n.roundingMethod)(a)}function Vw(t,e,n){return Aw(t,-e,n)}function PN(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=Mn(r,s),o=Math.abs(Hw(r,s,n)),i=Vw(r,a*o,n),l=+(Mn(i,s)===-a),c=a*(o-l);return c===0?0:c}function Pu(t,e){return+Z(t)-+Z(e)}function pl(t,e,n){const r=Pu(t,e)/Gn;return wr(n==null?void 0:n.roundingMethod)(r)}function Tu(t,e){const n=Z(t,e==null?void 0:e.in);return n.setHours(23,59,59,999),n}function Nu(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Uw(t,e){const n=Z(t,e==null?void 0:e.in);return+Tu(n,e)==+Nu(n,e)}function bl(t,e,n){const[r,s,a]=Te(n==null?void 0:n.in,t,t,e),o=Mn(s,a),i=Math.abs(fl(s,a));if(i<1)return 0;s.getMonth()===1&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-o*i);let l=Mn(s,a)===-o;Uw(r)&&i===1&&Mn(r,a)===1&&(l=!1);const c=o*(i-+l);return c===0?0:c}function TN(t,e,n){const r=bl(t,e,n)/3;return wr(n==null?void 0:n.roundingMethod)(r)}function Ks(t,e,n){const r=Pu(t,e)/1e3;return wr(n==null?void 0:n.roundingMethod)(r)}function NN(t,e,n){const r=Eu(t,e,n)/7;return wr(n==null?void 0:n.roundingMethod)(r)}function Xw(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=Mn(r,s),o=Math.abs(uo(r,s));r.setFullYear(1584),s.setFullYear(1584);const i=Mn(r,s)===-a,l=a*(o-+i);return l===0?0:l}function Zn(t,e){const[n,r]=Te(t,e.start,e.end);return{start:n,end:r}}function Kw(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(oe(n,o)),o.setDate(o.getDate()+i),o.setHours(0,0,0,0);return s?l.reverse():l}function jN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setMinutes(0,0,0);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(oe(n,o)),o.setHours(o.getHours()+i);return s?l.reverse():l}function IN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);n.setSeconds(0,0);let s=+n>+r;const a=s?+n:+r;let o=s?r:n,i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(oe(n,o)),o=Cu(o,i);return s?l.reverse():l}function AN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0),o.setDate(1);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(oe(n,o)),o.setMonth(o.getMonth()+i);return s?l.reverse():l}function qr(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3;return n.setMonth(s,1),n.setHours(0,0,0,0),n}function RN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+qr(n):+qr(r);let o=qr(s?r:n),i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(oe(n,o)),o=Du(o,i);return s?l.reverse():l}function LN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=bt(s?r:n,e),o=bt(s?n:r,e);a.setHours(15),o.setHours(15);const i=+o.getTime();let l=a,c=(e==null?void 0:e.step)??1;if(!c)return[];c<0&&(c=-c,s=!s);const d=[];for(;+l<=i;)l.setHours(0),d.push(oe(n,l)),l=ul(l,c),l.setHours(15);return s?d.reverse():d}function ju(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t),s=Kw({start:n,end:r},e),a=[];let o=0;for(;o<s.length;){const i=s[o++];Us(i)&&a.push(oe(n,i))}return a}function yl(t,e){const n=Z(t,e==null?void 0:e.in);return n.setDate(1),n.setHours(0,0,0,0),n}function FN(t,e){const n=yl(t,e),r=Nu(t,e);return ju({start:n,end:r},e)}function Gw(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Iu(t,e){const n=Z(t,e==null?void 0:e.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function BN(t,e){const n=Iu(t,e),r=Gw(t,e);return ju({start:n,end:r},e)}function WN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(oe(n,o)),o.setFullYear(o.getFullYear()+i);return s?l.reverse():l}function zN(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=9+Math.floor(r/10)*10;return n.setFullYear(s,11,31),n.setHours(23,59,59,999),n}function HN(t,e){const n=Z(t,e==null?void 0:e.in);return n.setMinutes(59,59,999),n}function Qw(t,e){var i,l,c,d;const n=Ct(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Z(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?-7:0)+6-(a-r);return s.setDate(s.getDate()+o),s.setHours(23,59,59,999),s}function YN(t,e){return Qw(t,{...e,weekStartsOn:1})}function VN(t,e){const n=br(t,e),r=oe((e==null?void 0:e.in)||t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=un(r,e);return s.setMilliseconds(s.getMilliseconds()-1),s}function UN(t,e){const n=Z(t,e==null?void 0:e.in);return n.setSeconds(59,999),n}function XN(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3+3;return n.setMonth(s,0),n.setHours(23,59,59,999),n}function KN(t,e){const n=Z(t,e==null?void 0:e.in);return n.setMilliseconds(999),n}function GN(t){return Tu(Date.now(),t)}function QN(t){const e=st(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=st(t==null?void 0:t.in);return a.setFullYear(n,r,s+1),a.setHours(23,59,59,999),t!=null&&t.in?t.in(a):a}function ZN(t){const e=st(t==null?void 0:t.in),n=oe(t==null?void 0:t.in,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),n.setHours(23,59,59,999),n}const JN={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},qN=(t,e,n)=>{let r;const s=JN[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Gs(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const $N={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ej={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},tj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nj={date:Gs({formats:$N,defaultWidth:"full"}),time:Gs({formats:ej,defaultWidth:"full"}),dateTime:Gs({formats:tj,defaultWidth:"full"})},rj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},sj=(t,e,n,r)=>rj[t];function En(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):o;s=t.formattingValues[i]||t.formattingValues[o]}else{const o=t.defaultWidth,i=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[i]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(e):e;return s[a]}}const aj={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},oj={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ij={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},lj={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},cj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},dj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},uj={ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:En({values:aj,defaultWidth:"wide"}),quarter:En({values:oj,defaultWidth:"wide",argumentCallback:t=>t-1}),month:En({values:ij,defaultWidth:"wide"}),day:En({values:lj,defaultWidth:"wide"}),dayPeriod:En({values:cj,defaultWidth:"wide",formattingValues:dj,defaultFormattingWidth:"wide"})};function Pn(t){return(e,n={})=>{const r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(s);if(!a)return null;const o=a[0],i=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(i)?hj(i,u=>u.test(o)):fj(i,u=>u.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const d=e.slice(o.length);return{value:c,rest:d}}}function fj(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function hj(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function Zw(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const s=r[0],a=e.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const i=e.slice(s.length);return{value:o,rest:i}}}const gj=/^(\d+)(th|st|nd|rd)?/i,mj=/\d+/i,pj={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},bj={any:[/^b/i,/^(a|c)/i]},yj={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},wj={any:[/1/i,/2/i,/3/i,/4/i]},vj={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},xj={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},kj={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},_j={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Sj={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Oj={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Cj={ordinalNumber:Zw({matchPattern:gj,parsePattern:mj,valueCallback:t=>parseInt(t,10)}),era:Pn({matchPatterns:pj,defaultMatchWidth:"wide",parsePatterns:bj,defaultParseWidth:"any"}),quarter:Pn({matchPatterns:yj,defaultMatchWidth:"wide",parsePatterns:wj,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Pn({matchPatterns:vj,defaultMatchWidth:"wide",parsePatterns:xj,defaultParseWidth:"any"}),day:Pn({matchPatterns:kj,defaultMatchWidth:"wide",parsePatterns:_j,defaultParseWidth:"any"}),dayPeriod:Pn({matchPatterns:Sj,defaultMatchWidth:"any",parsePatterns:Oj,defaultParseWidth:"any"})},Qs={code:"en-US",formatDistance:qN,formatLong:nj,formatRelative:sj,localize:uj,match:Cj,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Jw(t,e){const n=Z(t,e==null?void 0:e.in);return Dn(n,Iu(n))+1}function Au(t,e){const n=Z(t,e==null?void 0:e.in),r=+un(n)-+yr(n);return Math.round(r/io)+1}function wl(t,e){var d,u,h,g;const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=Ct(),a=(e==null?void 0:e.firstWeekContainsDate)??((u=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??s.firstWeekContainsDate??((g=(h=s.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,o=oe((e==null?void 0:e.in)||t,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const i=bt(o,e),l=oe((e==null?void 0:e.in)||t,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=bt(l,e);return+n>=+i?r+1:+n>=+c?r:r-1}function vl(t,e){var i,l,c,d;const n=Ct(),r=(e==null?void 0:e.firstWeekContainsDate)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,s=wl(t,e),a=oe((e==null?void 0:e.in)||t,0);return a.setFullYear(s,0,r),a.setHours(0,0,0,0),bt(a,e)}function Ru(t,e){const n=Z(t,e==null?void 0:e.in),r=+bt(n,e)-+vl(n,e);return Math.round(r/io)+1}function ce(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const Tn={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return ce(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):ce(n+1,2)},d(t,e){return ce(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return ce(t.getHours()%12||12,e.length)},H(t,e){return ce(t.getHours(),e.length)},m(t,e){return ce(t.getMinutes(),e.length)},s(t,e){return ce(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return ce(s,e.length)}},Zs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Lu={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Tn.y(t,e)},Y:function(t,e,n,r){const s=wl(t,r),a=s>0?s:1-s;if(e==="YY"){const o=a%100;return ce(o,2)}return e==="Yo"?n.ordinalNumber(a,{unit:"year"}):ce(a,e.length)},R:function(t,e){const n=br(t);return ce(n,e.length)},u:function(t,e){const n=t.getFullYear();return ce(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return ce(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return ce(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return Tn.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return ce(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const s=Ru(t,r);return e==="wo"?n.ordinalNumber(s,{unit:"week"}):ce(s,e.length)},I:function(t,e,n){const r=Au(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):ce(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Tn.d(t,e)},D:function(t,e,n){const r=Jw(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ce(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const s=t.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return ce(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const s=t.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return ce(a,e.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),s=r===0?7:r;switch(e){case"i":return String(s);case"ii":return ce(s,e.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let s;switch(r===12?s=Zs.noon:r===0?s=Zs.midnight:s=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let s;switch(r>=17?s=Zs.evening:r>=12?s=Zs.afternoon:r>=4?s=Zs.morning:s=Zs.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Tn.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Tn.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ce(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):ce(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Tn.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Tn.s(t,e)},S:function(t,e){return Tn.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return $w(r);case"XXXX":case"XX":return $r(r);case"XXXXX":case"XXX":default:return $r(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return $w(r);case"xxxx":case"xx":return $r(r);case"xxxxx":case"xxx":default:return $r(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+qw(r,":");case"OOOO":default:return"GMT"+$r(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+qw(r,":");case"zzzz":default:return"GMT"+$r(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return ce(r,e.length)},T:function(t,e,n){return ce(+t,e.length)}};function qw(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=Math.trunc(r/60),a=r%60;return a===0?n+String(s):n+String(s)+e+ce(a,2)}function $w(t,e){return t%60===0?(t>0?"-":"+")+ce(Math.abs(t)/60,2):$r(t,e)}function $r(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=ce(Math.trunc(r/60),2),a=ce(r%60,2);return n+s+e+a}const ev=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},tv=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},xl={p:tv,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return ev(t,e);let a;switch(r){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",ev(r,e)).replace("{{time}}",tv(s,e))}},Dj=/^D+$/,Mj=/^Y+$/,Ej=["D","DD","YY","YYYY"];function nv(t){return Dj.test(t)}function rv(t){return Mj.test(t)}function Fu(t,e,n){const r=Pj(t,e,n);if(console.warn(r),Ej.includes(t))throw new RangeError(r)}function Pj(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Tj=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Nj=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jj=/^'([^]*?)'?$/,Ij=/''/g,Aj=/[a-zA-Z]/;function kl(t,e,n){var d,u,h,g,m,p,b,y;const r=Ct(),s=(n==null?void 0:n.locale)??r.locale??Qs,a=(n==null?void 0:n.firstWeekContainsDate)??((u=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((p=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((y=(b=r.locale)==null?void 0:b.options)==null?void 0:y.weekStartsOn)??0,i=Z(t,n==null?void 0:n.in);if(!Qn(i))throw new RangeError("Invalid time value");let l=e.match(Nj).map(v=>{const k=v[0];if(k==="p"||k==="P"){const x=xl[k];return x(v,s.formatLong)}return v}).join("").match(Tj).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const k=v[0];if(k==="'")return{isToken:!1,value:Rj(v)};if(Lu[k])return{isToken:!0,value:v};if(k.match(Aj))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");return{isToken:!1,value:v}});s.localize.preprocessor&&(l=s.localize.preprocessor(i,l));const c={firstWeekContainsDate:a,weekStartsOn:o,locale:s};return l.map(v=>{if(!v.isToken)return v.value;const k=v.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&rv(k)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&nv(k))&&Fu(k,e,String(t));const x=Lu[k[0]];return x(i,k,s.localize,c)}).join("")}function Rj(t){const e=t.match(jj);return e?e[1].replace(Ij,"'"):t}function sv(t,e,n){const r=Ct(),s=(n==null?void 0:n.locale)??r.locale??Qs,a=2520,o=Mn(t,e);if(isNaN(o))throw new RangeError("Invalid time value");const i=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:o}),[l,c]=Te(n==null?void 0:n.in,...o>0?[e,t]:[t,e]),d=Ks(c,l),u=(Rt(c)-Rt(l))/1e3,h=Math.round((d-u)/60);let g;if(h<2)return n!=null&&n.includeSeconds?d<5?s.formatDistance("lessThanXSeconds",5,i):d<10?s.formatDistance("lessThanXSeconds",10,i):d<20?s.formatDistance("lessThanXSeconds",20,i):d<40?s.formatDistance("halfAMinute",0,i):d<60?s.formatDistance("lessThanXMinutes",1,i):s.formatDistance("xMinutes",1,i):h===0?s.formatDistance("lessThanXMinutes",1,i):s.formatDistance("xMinutes",h,i);if(h<45)return s.formatDistance("xMinutes",h,i);if(h<90)return s.formatDistance("aboutXHours",1,i);if(h<ll){const m=Math.round(h/60);return s.formatDistance("aboutXHours",m,i)}else{if(h<a)return s.formatDistance("xDays",1,i);if(h<Ys){const m=Math.round(h/ll);return s.formatDistance("xDays",m,i)}else if(h<Ys*2)return g=Math.round(h/Ys),s.formatDistance("aboutXMonths",g,i)}if(g=bl(c,l),g<12){const m=Math.round(h/Ys);return s.formatDistance("xMonths",m,i)}else{const m=g%12,p=Math.trunc(g/12);return m<3?s.formatDistance("aboutXYears",p,i):m<9?s.formatDistance("overXYears",p,i):s.formatDistance("almostXYears",p+1,i)}}function av(t,e,n){const r=Ct(),s=(n==null?void 0:n.locale)??r.locale??Qs,a=Mn(t,e);if(isNaN(a))throw new RangeError("Invalid time value");const o=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a}),[i,l]=Te(n==null?void 0:n.in,...a>0?[e,t]:[t,e]),c=wr((n==null?void 0:n.roundingMethod)??"round"),d=l.getTime()-i.getTime(),u=d/Gn,h=Rt(l)-Rt(i),g=(d-h)/Gn,m=n==null?void 0:n.unit;let p;if(m?p=m:u<1?p="second":u<60?p="minute":u<ll?p="hour":g<Ys?p="day":g<xw?p="month":p="year",p==="second"){const b=c(d/1e3);return s.formatDistance("xSeconds",b,o)}else if(p==="minute"){const b=c(u);return s.formatDistance("xMinutes",b,o)}else if(p==="hour"){const b=c(u/60);return s.formatDistance("xHours",b,o)}else if(p==="day"){const b=c(g/ll);return s.formatDistance("xDays",b,o)}else if(p==="month"){const b=c(g/Ys);return b===12&&m!=="month"?s.formatDistance("xYears",1,o):s.formatDistance("xMonths",b,o)}else{const b=c(g/xw);return s.formatDistance("xYears",b,o)}}function Lj(t,e){return sv(t,st(t),e)}function Fj(t,e){return av(t,st(t),e)}const Bj=["years","months","weeks","days","hours","minutes","seconds"];function Wj(t,e){const n=Ct(),r=(e==null?void 0:e.locale)??n.locale??Qs,s=(e==null?void 0:e.format)??Bj,a=(e==null?void 0:e.zero)??!1,o=(e==null?void 0:e.delimiter)??" ";return r.formatDistance?s.reduce((l,c)=>{const d=`x${c.replace(/(^.)/,h=>h.toUpperCase())}`,u=t[c];return u!==void 0&&(a||t[c])?l.concat(r.formatDistance(d,u)):l},[]).join(o):""}function zj(t,e){const n=Z(t,e==null?void 0:e.in);if(isNaN(+n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.format)??"extended",s=(e==null?void 0:e.representation)??"complete";let a="",o="";const i=r==="extended"?"-":"",l=r==="extended"?":":"";if(s!=="time"){const c=ce(n.getDate(),2),d=ce(n.getMonth()+1,2);a=`${ce(n.getFullYear(),4)}${i}${d}${i}${c}`}if(s!=="date"){const c=n.getTimezoneOffset();if(c!==0){const p=Math.abs(c),b=ce(Math.trunc(p/60),2),y=ce(p%60,2);o=`${c<0?"+":"-"}${b}:${y}`}else o="Z";const d=ce(n.getHours(),2),u=ce(n.getMinutes(),2),h=ce(n.getSeconds(),2),g=a===""?"":"T",m=[d,u,h].join(l);a=`${a}${g}${m}${o}`}return a}function Hj(t,e){const n=Z(t,e==null?void 0:e.in);if(!Qn(n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.format)??"extended",s=(e==null?void 0:e.representation)??"complete";let a="";const o=r==="extended"?"-":"",i=r==="extended"?":":"";if(s!=="time"){const l=ce(n.getDate(),2),c=ce(n.getMonth()+1,2);a=`${ce(n.getFullYear(),4)}${o}${c}${o}${l}`}if(s!=="date"){const l=ce(n.getHours(),2),c=ce(n.getMinutes(),2),d=ce(n.getSeconds(),2);a=`${a}${a===""?"":" "}${l}${i}${c}${i}${d}`}return a}function Yj(t){const{years:e=0,months:n=0,days:r=0,hours:s=0,minutes:a=0,seconds:o=0}=t;return`P${e}Y${n}M${r}DT${s}H${a}M${o}S`}function Vj(t,e){const n=Z(t,e==null?void 0:e.in);if(!Qn(n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.fractionDigits)??0,s=ce(n.getDate(),2),a=ce(n.getMonth()+1,2),o=n.getFullYear(),i=ce(n.getHours(),2),l=ce(n.getMinutes(),2),c=ce(n.getSeconds(),2);let d="";if(r>0){const g=n.getMilliseconds(),m=Math.trunc(g*Math.pow(10,r-3));d="."+ce(m,r)}let u="";const h=n.getTimezoneOffset();if(h!==0){const g=Math.abs(h),m=ce(Math.trunc(g/60),2),p=ce(g%60,2);u=`${h<0?"+":"-"}${m}:${p}`}else u="Z";return`${o}-${a}-${s}T${i}:${l}:${c}${d}${u}`}const Uj=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Xj=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Kj(t){const e=Z(t);if(!Qn(e))throw new RangeError("Invalid time value");const n=Uj[e.getUTCDay()],r=ce(e.getUTCDate(),2),s=Xj[e.getUTCMonth()],a=e.getUTCFullYear(),o=ce(e.getUTCHours(),2),i=ce(e.getUTCMinutes(),2),l=ce(e.getUTCSeconds(),2);return`${n}, ${r} ${s} ${a} ${o}:${i}:${l} GMT`}function Gj(t,e,n){var u,h,g,m;const[r,s]=Te(n==null?void 0:n.in,t,e),a=Ct(),o=(n==null?void 0:n.locale)??a.locale??Qs,i=(n==null?void 0:n.weekStartsOn)??((h=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??a.weekStartsOn??((m=(g=a.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??0,l=Dn(r,s);if(isNaN(l))throw new RangeError("Invalid time value");let c;l<-6?c="other":l<-1?c="lastWeek":l<0?c="yesterday":l<1?c="today":l<2?c="tomorrow":l<7?c="nextWeek":c="other";const d=o.formatRelative(c,r,s,{locale:o,weekStartsOn:i});return kl(r,d,{locale:o,weekStartsOn:i})}function Qj(t,e){return Z(t*1e3,e==null?void 0:e.in)}function ov(t,e){return Z(t,e==null?void 0:e.in).getDate()}function _l(t,e){return Z(t,e==null?void 0:e.in).getDay()}function iv(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=n.getMonth(),a=oe(n,0);return a.setFullYear(r,s+1,0),a.setHours(0,0,0,0),a.getDate()}function lv(t,e){const r=Z(t,e==null?void 0:e.in).getFullYear();return r%400===0||r%4===0&&r%100!==0}function Zj(t,e){const n=Z(t,e==null?void 0:e.in);return Number.isNaN(+n)?NaN:lv(n)?366:365}function Jj(t,e){const r=Z(t,e==null?void 0:e.in).getFullYear();return Math.floor(r/10)*10}function cv(){return Object.assign({},Ct())}function qj(t,e){return Z(t,e==null?void 0:e.in).getHours()}function dv(t,e){const n=Z(t,e==null?void 0:e.in).getDay();return n===0?7:n}function $j(t,e){const n=yr(t,e),s=+yr(ul(n,60))-+n;return Math.round(s/io)}function eI(t){return Z(t).getMilliseconds()}function tI(t,e){return Z(t,e==null?void 0:e.in).getMinutes()}function nI(t,e){return Z(t,e==null?void 0:e.in).getMonth()}function rI(t,e){const[n,r]=[+Z(t.start),+Z(t.end)].sort((u,h)=>u-h),[s,a]=[+Z(e.start),+Z(e.end)].sort((u,h)=>u-h);if(!(n<a&&s<r))return 0;const i=s<n?n:s,l=i-Rt(i),c=a>r?r:a,d=c-Rt(c);return Math.ceil((d-l)/vw)}function sI(t){return Z(t).getSeconds()}function aI(t){return+Z(t)}function oI(t){return Math.trunc(+Z(t)/1e3)}function iI(t,e){var l,c,d,u;const n=Ct(),r=(e==null?void 0:e.weekStartsOn)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,s=ov(Z(t,e==null?void 0:e.in));if(isNaN(s))return NaN;const a=_l(yl(t,e));let o=r-a;o<=0&&(o+=7);const i=s-o;return Math.ceil(i/7)+1}function uv(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),Z(n,e==null?void 0:e.in)}function lI(t,e){const n=Z(t,e==null?void 0:e.in);return gl(uv(n,e),yl(n,e),e)+1}function cI(t,e){return Z(t,e==null?void 0:e.in).getFullYear()}function dI(t){return Math.trunc(t*Jr)}function uI(t){return Math.trunc(t*kw)}function fI(t){return Math.trunc(t*cl)}function hI(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);if(isNaN(+r))throw new TypeError("Start date is invalid");if(isNaN(+s))throw new TypeError("End date is invalid");if(n!=null&&n.assertPositive&&+r>+s)throw new TypeError("End date must be after start date");return{start:r,end:s}}function gI(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t),s={},a=Xw(r,n);a&&(s.years=a);const o=Vs(n,{years:s.years}),i=bl(r,o);i&&(s.months=i);const l=Vs(o,{months:s.months}),c=Eu(r,l);c&&(s.days=c);const d=Vs(l,{days:s.days}),u=ml(r,d);u&&(s.hours=u);const h=Vs(d,{hours:s.hours}),g=pl(r,h);g&&(s.minutes=g);const m=Vs(h,{minutes:s.minutes}),p=Ks(r,m);return p&&(s.seconds=p),s}function mI(t,e,n){let r;return pI(e)?r=e:n=e,new Intl.DateTimeFormat(n==null?void 0:n.locale,r).format(Z(t))}function pI(t){return t!==void 0&&!("locale"in t)}function bI(t,e,n){let r=0,s;const[a,o]=Te(n==null?void 0:n.in,t,e);if(n!=null&&n.unit)s=n==null?void 0:n.unit,s==="second"?r=Ks(a,o):s==="minute"?r=pl(a,o):s==="hour"?r=ml(a,o):s==="day"?r=Dn(a,o):s==="week"?r=gl(a,o):s==="month"?r=fl(a,o):s==="quarter"?r=hl(a,o):s==="year"&&(r=uo(a,o));else{const l=Ks(a,o);Math.abs(l)<Su?(r=Ks(a,o),s="second"):Math.abs(l)<cl?(r=pl(a,o),s="minute"):Math.abs(l)<Ou&&Math.abs(Dn(a,o))<1?(r=ml(a,o),s="hour"):Math.abs(l)<vN&&(r=Dn(a,o))&&Math.abs(r)<7?s="day":Math.abs(l)<Dw?(r=gl(a,o),s="week"):Math.abs(l)<xN?(r=fl(a,o),s="month"):Math.abs(l)<Cw&&hl(a,o)<4?(r=hl(a,o),s="quarter"):(r=uo(a,o),s="year")}return new Intl.RelativeTimeFormat(n==null?void 0:n.locale,{numeric:"auto",...n}).format(r,s)}function yI(t,e){return+Z(t)>+Z(e)}function wI(t,e){return+Z(t)<+Z(e)}function vI(t,e){return+Z(t)==+Z(e)}function xI(t,e,n){const r=new Date(t,e,n);return r.getFullYear()===t&&r.getMonth()===e&&r.getDate()===n}function kI(t,e){return Z(t,e==null?void 0:e.in).getDate()===1}function _I(t,e){return Z(t,e==null?void 0:e.in).getDay()===5}function SI(t){return+Z(t)>Date.now()}function fv(t,e){const n=OI(e)?new e(0):oe(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function OI(t){var e;return typeof t=="function"&&((e=t.prototype)==null?void 0:e.constructor)===t}const CI=10;class hv{constructor(){$(this,"subPriority",0)}validate(e,n){return!0}}class DI extends hv{constructor(e,n,r,s,a){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=s,a&&(this.subPriority=a)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class MI extends hv{constructor(n,r){super();$(this,"priority",CI);$(this,"subPriority",-1);this.context=n||(s=>oe(r,s))}set(n,r){return r.timestampIsSet?n:oe(n,fv(n,this.context))}}class _e{run(e,n,r,s){const a=this.parse(e,n,r,s);return a?{setter:new DI(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,n,r){return!0}}class EI extends _e{constructor(){super(...arguments);$(this,"priority",140);$(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,s){switch(r){case"G":case"GG":case"GGG":return s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"});case"GGGGG":return s.era(n,{width:"narrow"});case"GGGG":default:return s.era(n,{width:"wide"})||s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"})}}set(n,r,s){return r.era=s,n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}const Je={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Nn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function qe(t,e){return t&&{value:e(t.value),rest:t.rest}}function Ye(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function jn(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,s=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(s*Jr+a*Gn+o*_u),rest:e.slice(n[0].length)}}function gv(t){return Ye(Je.anyDigitsSigned,t)}function Xe(t,e){switch(t){case 1:return Ye(Je.singleDigit,e);case 2:return Ye(Je.twoDigits,e);case 3:return Ye(Je.threeDigits,e);case 4:return Ye(Je.fourDigits,e);default:return Ye(new RegExp("^\\d{1,"+t+"}"),e)}}function Sl(t,e){switch(t){case 1:return Ye(Je.singleDigitSigned,e);case 2:return Ye(Je.twoDigitsSigned,e);case 3:return Ye(Je.threeDigitsSigned,e);case 4:return Ye(Je.fourDigitsSigned,e);default:return Ye(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Bu(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function mv(t,e){const n=e>0,r=n?e:1-e;let s;if(r<=50)s=t||100;else{const a=r+50,o=Math.trunc(a/100)*100,i=t>=a%100;s=t+o-(i?100:0)}return n?s:1-s}function pv(t){return t%400===0||t%4===0&&t%100!==0}class PI extends _e{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return qe(Xe(4,n),a);case"yo":return qe(s.ordinalNumber(n,{unit:"year"}),a);default:return qe(Xe(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s){const a=n.getFullYear();if(s.isTwoDigitYear){const i=mv(s.year,a);return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}const o=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class TI extends _e{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return qe(Xe(4,n),a);case"Yo":return qe(s.ordinalNumber(n,{unit:"year"}),a);default:return qe(Xe(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s,a){const o=wl(n,a);if(s.isTwoDigitYear){const l=mv(s.year,o);return n.setFullYear(l,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),bt(n,a)}const i=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(i,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),bt(n,a)}}class NI extends _e{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return Sl(r==="R"?4:r.length,n)}set(n,r,s){const a=oe(n,0);return a.setFullYear(s,0,4),a.setHours(0,0,0,0),un(a)}}class jI extends _e{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return Sl(r==="u"?4:r.length,n)}set(n,r,s){return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class II extends _e{constructor(){super(...arguments);$(this,"priority",120);$(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"Q":case"QQ":return Xe(r.length,n);case"Qo":return s.ordinalNumber(n,{unit:"quarter"});case"QQQ":return s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(n,{width:"wide",context:"formatting"})||s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class AI extends _e{constructor(){super(...arguments);$(this,"priority",120);$(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"q":case"qq":return Xe(r.length,n);case"qo":return s.ordinalNumber(n,{unit:"quarter"});case"qqq":return s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(n,{width:"wide",context:"standalone"})||s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class RI extends _e{constructor(){super(...arguments);$(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);$(this,"priority",110)}parse(n,r,s){const a=o=>o-1;switch(r){case"M":return qe(Ye(Je.month,n),a);case"MM":return qe(Xe(2,n),a);case"Mo":return qe(s.ordinalNumber(n,{unit:"month"}),a);case"MMM":return s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(n,{width:"wide",context:"formatting"})||s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}class LI extends _e{constructor(){super(...arguments);$(this,"priority",110);$(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,s){const a=o=>o-1;switch(r){case"L":return qe(Ye(Je.month,n),a);case"LL":return qe(Xe(2,n),a);case"Lo":return qe(s.ordinalNumber(n,{unit:"month"}),a);case"LLL":return s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(n,{width:"wide",context:"standalone"})||s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}function bv(t,e,n){const r=Z(t,n==null?void 0:n.in),s=Ru(r,n)-e;return r.setDate(r.getDate()-s*7),Z(r,n==null?void 0:n.in)}class FI extends _e{constructor(){super(...arguments);$(this,"priority",100);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,s){switch(r){case"w":return Ye(Je.week,n);case"wo":return s.ordinalNumber(n,{unit:"week"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s,a){return bt(bv(n,s,a),a)}}function yv(t,e,n){const r=Z(t,n==null?void 0:n.in),s=Au(r,n)-e;return r.setDate(r.getDate()-s*7),r}class BI extends _e{constructor(){super(...arguments);$(this,"priority",100);$(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,s){switch(r){case"I":return Ye(Je.week,n);case"Io":return s.ordinalNumber(n,{unit:"week"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s){return un(yv(n,s))}}const WI=[31,28,31,30,31,30,31,31,30,31,30,31],zI=[31,29,31,30,31,30,31,31,30,31,30,31];class HI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"subPriority",1);$(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"d":return Ye(Je.date,n);case"do":return s.ordinalNumber(n,{unit:"date"});default:return Xe(r.length,n)}}validate(n,r){const s=n.getFullYear(),a=pv(s),o=n.getMonth();return a?r>=1&&r<=zI[o]:r>=1&&r<=WI[o]}set(n,r,s){return n.setDate(s),n.setHours(0,0,0,0),n}}class YI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"subpriority",1);$(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,s){switch(r){case"D":case"DD":return Ye(Je.dayOfYear,n);case"Do":return s.ordinalNumber(n,{unit:"date"});default:return Xe(r.length,n)}}validate(n,r){const s=n.getFullYear();return pv(s)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,s){return n.setMonth(0,s),n.setHours(0,0,0,0),n}}function Ol(t,e,n){var u,h,g,m;const r=Ct(),s=(n==null?void 0:n.weekStartsOn)??((h=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??r.weekStartsOn??((m=(g=r.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??0,a=Z(t,n==null?void 0:n.in),o=a.getDay(),l=(e%7+7)%7,c=7-s,d=e<0||e>6?e-(o+c)%7:(l+c)%7-(o+c)%7;return rn(a,d,n)}class VI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"E":case"EE":case"EEE":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Ol(n,s,a),n.setHours(0,0,0,0),n}}class UI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,s,a){const o=i=>{const l=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return qe(Xe(r.length,n),o);case"eo":return qe(s.ordinalNumber(n,{unit:"day"}),o);case"eee":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeeee":return s.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Ol(n,s,a),n.setHours(0,0,0,0),n}}class XI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,s,a){const o=i=>{const l=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return qe(Xe(r.length,n),o);case"co":return qe(s.ordinalNumber(n,{unit:"day"}),o);case"ccc":return s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"ccccc":return s.day(n,{width:"narrow",context:"standalone"});case"cccccc":return s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(n,{width:"wide",context:"standalone"})||s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Ol(n,s,a),n.setHours(0,0,0,0),n}}function wv(t,e,n){const r=Z(t,n==null?void 0:n.in),s=dv(r,n),a=e-s;return rn(r,a,n)}class KI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,s){const a=o=>o===0?7:o;switch(r){case"i":case"ii":return Xe(r.length,n);case"io":return s.ordinalNumber(n,{unit:"day"});case"iii":return qe(s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiii":return qe(s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiiii":return qe(s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiii":default:return qe(s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a)}}validate(n,r){return r>=1&&r<=7}set(n,r,s){return n=wv(n,s),n.setHours(0,0,0,0),n}}class GI extends _e{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,s){switch(r){case"a":case"aa":case"aaa":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Bu(s),0,0,0),n}}class QI extends _e{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,s){switch(r){case"b":case"bb":case"bbb":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Bu(s),0,0,0),n}}class ZI extends _e{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,s){switch(r){case"B":case"BB":case"BBB":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Bu(s),0,0,0),n}}class JI extends _e{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,s){switch(r){case"h":return Ye(Je.hour12h,n);case"ho":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,s){const a=n.getHours()>=12;return a&&s<12?n.setHours(s+12,0,0,0):!a&&s===12?n.setHours(0,0,0,0):n.setHours(s,0,0,0),n}}class qI extends _e{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,s){switch(r){case"H":return Ye(Je.hour23h,n);case"Ho":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,s){return n.setHours(s,0,0,0),n}}class $I extends _e{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,s){switch(r){case"K":return Ye(Je.hour11h,n);case"Ko":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.getHours()>=12&&s<12?n.setHours(s+12,0,0,0):n.setHours(s,0,0,0),n}}class e4 extends _e{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,s){switch(r){case"k":return Ye(Je.hour24h,n);case"ko":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,s){const a=s<=24?s%24:s;return n.setHours(a,0,0,0),n}}class t4 extends _e{constructor(){super(...arguments);$(this,"priority",60);$(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"m":return Ye(Je.minute,n);case"mo":return s.ordinalNumber(n,{unit:"minute"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setMinutes(s,0,0),n}}class n4 extends _e{constructor(){super(...arguments);$(this,"priority",50);$(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"s":return Ye(Je.second,n);case"so":return s.ordinalNumber(n,{unit:"second"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setSeconds(s,0),n}}class r4 extends _e{constructor(){super(...arguments);$(this,"priority",30);$(this,"incompatibleTokens",["t","T"])}parse(n,r){const s=a=>Math.trunc(a*Math.pow(10,-r.length+3));return qe(Xe(r.length,n),s)}set(n,r,s){return n.setMilliseconds(s),n}}class s4 extends _e{constructor(){super(...arguments);$(this,"priority",10);$(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return jn(Nn.basicOptionalMinutes,n);case"XX":return jn(Nn.basic,n);case"XXXX":return jn(Nn.basicOptionalSeconds,n);case"XXXXX":return jn(Nn.extendedOptionalSeconds,n);case"XXX":default:return jn(Nn.extended,n)}}set(n,r,s){return r.timestampIsSet?n:oe(n,n.getTime()-Rt(n)-s)}}class a4 extends _e{constructor(){super(...arguments);$(this,"priority",10);$(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return jn(Nn.basicOptionalMinutes,n);case"xx":return jn(Nn.basic,n);case"xxxx":return jn(Nn.basicOptionalSeconds,n);case"xxxxx":return jn(Nn.extendedOptionalSeconds,n);case"xxx":default:return jn(Nn.extended,n)}}set(n,r,s){return r.timestampIsSet?n:oe(n,n.getTime()-Rt(n)-s)}}class o4 extends _e{constructor(){super(...arguments);$(this,"priority",40);$(this,"incompatibleTokens","*")}parse(n){return gv(n)}set(n,r,s){return[oe(n,s*1e3),{timestampIsSet:!0}]}}class i4 extends _e{constructor(){super(...arguments);$(this,"priority",20);$(this,"incompatibleTokens","*")}parse(n){return gv(n)}set(n,r,s){return[oe(n,s),{timestampIsSet:!0}]}}const vv={G:new EI,y:new PI,Y:new TI,R:new NI,u:new jI,Q:new II,q:new AI,M:new RI,L:new LI,w:new FI,I:new BI,d:new HI,D:new YI,E:new VI,e:new UI,c:new XI,i:new KI,a:new GI,b:new QI,B:new ZI,h:new JI,H:new qI,K:new $I,k:new e4,m:new t4,s:new n4,S:new r4,X:new s4,x:new a4,t:new o4,T:new i4},l4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,c4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,d4=/^'([^]*?)'?$/,u4=/''/g,f4=/\S/,h4=/[a-zA-Z]/;function xv(t,e,n,r){var b,y,v,k,x,w,S,N;const s=()=>oe((r==null?void 0:r.in)||n,NaN),a=cv(),o=(r==null?void 0:r.locale)??a.locale??Qs,i=(r==null?void 0:r.firstWeekContainsDate)??((y=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:y.firstWeekContainsDate)??a.firstWeekContainsDate??((k=(v=a.locale)==null?void 0:v.options)==null?void 0:k.firstWeekContainsDate)??1,l=(r==null?void 0:r.weekStartsOn)??((w=(x=r==null?void 0:r.locale)==null?void 0:x.options)==null?void 0:w.weekStartsOn)??a.weekStartsOn??((N=(S=a.locale)==null?void 0:S.options)==null?void 0:N.weekStartsOn)??0;if(!e)return t?s():Z(n,r==null?void 0:r.in);const c={firstWeekContainsDate:i,weekStartsOn:l,locale:o},d=[new MI(r==null?void 0:r.in,n)],u=e.match(c4).map(M=>{const T=M[0];if(T in xl){const P=xl[T];return P(M,o.formatLong)}return M}).join("").match(l4),h=[];for(let M of u){!(r!=null&&r.useAdditionalWeekYearTokens)&&rv(M)&&Fu(M,e,t),!(r!=null&&r.useAdditionalDayOfYearTokens)&&nv(M)&&Fu(M,e,t);const T=M[0],P=vv[T];if(P){const{incompatibleTokens:z}=P;if(Array.isArray(z)){const O=h.find(C=>z.includes(C.token)||C.token===T);if(O)throw new RangeError(`The format string mustn't contain \`${O.fullToken}\` and \`${M}\` at the same time`)}else if(P.incompatibleTokens==="*"&&h.length>0)throw new RangeError(`The format string mustn't contain \`${M}\` and any other token at the same time`);h.push({token:T,fullToken:M});const F=P.run(t,M,o.match,c);if(!F)return s();d.push(F.setter),t=F.rest}else{if(T.match(h4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");if(M==="''"?M="'":T==="'"&&(M=g4(M)),t.indexOf(M)===0)t=t.slice(M.length);else return s()}}if(t.length>0&&f4.test(t))return s();const g=d.map(M=>M.priority).sort((M,T)=>T-M).filter((M,T,P)=>P.indexOf(M)===T).map(M=>d.filter(T=>T.priority===M).sort((T,P)=>P.subPriority-T.subPriority)).map(M=>M[0]);let m=Z(n,r==null?void 0:r.in);if(isNaN(+m))return s();const p={};for(const M of g){if(!M.validate(m,c))return s();const T=M.set(m,p,c);Array.isArray(T)?(m=T[0],Object.assign(p,T[1])):m=T}return m}function g4(t){return t.match(d4)[1].replace(u4,"'")}function m4(t,e,n){return Qn(xv(t,e,new Date,n))}function p4(t,e){return Z(t,e==null?void 0:e.in).getDay()===1}function b4(t){return+Z(t)<Date.now()}function Wu(t,e){const n=Z(t,e==null?void 0:e.in);return n.setMinutes(0,0,0),n}function kv(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return+Wu(r)==+Wu(s)}function zu(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return+bt(r,n)==+bt(s,n)}function _v(t,e,n){return zu(t,e,{...n,weekStartsOn:1})}function y4(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return+yr(r)==+yr(s)}function Hu(t,e){const n=Z(t,e==null?void 0:e.in);return n.setSeconds(0,0),n}function Sv(t,e){return+Hu(t)==+Hu(e)}function Ov(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return r.getFullYear()===s.getFullYear()&&r.getMonth()===s.getMonth()}function Cv(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return+qr(r)==+qr(s)}function Yu(t,e){const n=Z(t,e==null?void 0:e.in);return n.setMilliseconds(0),n}function Dv(t,e){return+Yu(t)==+Yu(e)}function Mv(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return r.getFullYear()===s.getFullYear()}function w4(t,e){return kv(Z(t,e==null?void 0:e.in),st((e==null?void 0:e.in)||t))}function v4(t,e){return _v(oe((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function x4(t){return Sv(t,st(t))}function k4(t,e){return Ov(oe((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function _4(t,e){return Cv(oe((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function S4(t){return Dv(t,st(t))}function O4(t,e){return zu(oe((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t),e)}function C4(t,e){return Mv(oe((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function D4(t,e){return Z(t,e==null?void 0:e.in).getDay()===4}function M4(t,e){return co(oe((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function E4(t,e){return co(t,rn(st((e==null?void 0:e.in)||t),1),e)}function P4(t,e){return Z(t,e==null?void 0:e.in).getDay()===2}function T4(t,e){return Z(t,e==null?void 0:e.in).getDay()===3}function N4(t,e,n){const r=+Z(t,n==null?void 0:n.in),[s,a]=[+Z(e.start,n==null?void 0:n.in),+Z(e.end,n==null?void 0:n.in)].sort((o,i)=>o-i);return r>=s&&r<=a}function Cl(t,e,n){return rn(t,-e,n)}function j4(t,e){return co(oe((e==null?void 0:e.in)||t,t),Cl(st((e==null?void 0:e.in)||t),1))}function I4(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=9+Math.floor(r/10)*10;return n.setFullYear(s+1,0,0),n.setHours(0,0,0,0),Z(n,e==null?void 0:e.in)}function Ev(t,e){var i,l,c,d;const n=Ct(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Z(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?-7:0)+6-(a-r);return s.setHours(0,0,0,0),s.setDate(s.getDate()+o),s}function A4(t,e){return Ev(t,{...e,weekStartsOn:1})}function R4(t,e){const n=br(t,e),r=oe((e==null?void 0:e.in)||t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=un(r,e);return s.setDate(s.getDate()-1),s}function L4(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3+3;return n.setMonth(s,0),n.setHours(0,0,0,0),n}function F4(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(0,0,0,0),n}const B4=/(\w)\1*|''|'(''|[^'])+('|$)|./g,W4=/^'([^]*?)'?$/,z4=/''/g,H4=/[a-zA-Z]/;function Y4(t,e){const n=Z(t);if(!Qn(n))throw new RangeError("Invalid time value");const r=e.match(B4);return r?r.map(a=>{if(a==="''")return"'";const o=a[0];if(o==="'")return V4(a);const i=Tn[o];if(i)return i(n,a);if(o.match(H4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return a}).join(""):""}function V4(t){const e=t.match(W4);return e?e[1].replace(z4,"'"):t}function U4({years:t,months:e,weeks:n,days:r,hours:s,minutes:a,seconds:o}){let i=0;t&&(i+=t*il),e&&(i+=e*(il/12)),n&&(i+=n*7),r&&(i+=r);let l=i*24*60*60;return s&&(l+=s*60*60),a&&(l+=a*60),o&&(l+=o),Math.trunc(l*1e3)}function X4(t){const e=t/Jr;return Math.trunc(e)}function K4(t){const e=t/Gn;return Math.trunc(e)}function G4(t){const e=t/_u;return Math.trunc(e)}function Q4(t){const e=t/kw;return Math.trunc(e)}function Z4(t){return Math.trunc(t*Gn)}function J4(t){return Math.trunc(t*Su)}function q4(t){const e=t/_w;return Math.trunc(e)}function $4(t){const e=t/Sw;return Math.trunc(e)}function vr(t,e,n){let r=e-_l(t,n);return r<=0&&(r+=7),rn(t,r,n)}function eA(t,e){return vr(t,5,e)}function tA(t,e){return vr(t,1,e)}function nA(t,e){return vr(t,6,e)}function rA(t,e){return vr(t,0,e)}function sA(t,e){return vr(t,4,e)}function aA(t,e){return vr(t,2,e)}function oA(t,e){return vr(t,3,e)}function iA(t,e){const n=()=>oe(e==null?void 0:e.in,NaN),r=(e==null?void 0:e.additionalDigits)??2,s=uA(t);let a;if(s.date){const c=fA(s.date,r);a=hA(c.restDateString,c.year)}if(!a||isNaN(+a))return n();const o=+a;let i=0,l;if(s.time&&(i=gA(s.time),isNaN(i)))return n();if(s.timezone){if(l=mA(s.timezone),isNaN(l))return n()}else{const c=new Date(o+i),d=Z(0,e==null?void 0:e.in);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return Z(o+i+l,e==null?void 0:e.in)}const Dl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},lA=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,cA=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,dA=/^([+-])(\d{2})(?::?(\d{2}))?$/;function uA(t){const e={},n=t.split(Dl.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],Dl.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Dl.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const s=Dl.timezone.exec(r);s?(e.time=r.replace(s[1],""),e.timezone=s[1]):e.time=r}return e}function fA(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const s=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?s:a*100,restDateString:t.slice((r[1]||r[2]).length)}}function hA(t,e){if(e===null)return new Date(NaN);const n=t.match(lA);if(!n)return new Date(NaN);const r=!!n[4],s=fo(n[1]),a=fo(n[2])-1,o=fo(n[3]),i=fo(n[4]),l=fo(n[5])-1;if(r)return vA(e,i,l)?pA(e,i,l):new Date(NaN);{const c=new Date(0);return!yA(e,a,o)||!wA(e,s)?new Date(NaN):(c.setUTCFullYear(e,a,Math.max(s,o)),c)}}function fo(t){return t?parseInt(t):1}function gA(t){const e=t.match(cA);if(!e)return NaN;const n=Vu(e[1]),r=Vu(e[2]),s=Vu(e[3]);return xA(n,r,s)?n*Jr+r*Gn+s*1e3:NaN}function Vu(t){return t&&parseFloat(t.replace(",","."))||0}function mA(t){if(t==="Z")return 0;const e=t.match(dA);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),s=e[3]&&parseInt(e[3])||0;return kA(r,s)?n*(r*Jr+s*Gn):NaN}function pA(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const s=r.getUTCDay()||7,a=(e-1)*7+n+1-s;return r.setUTCDate(r.getUTCDate()+a),r}const bA=[31,null,31,30,31,30,31,31,30,31,30,31];function Pv(t){return t%400===0||t%4===0&&t%100!==0}function yA(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(bA[e]||(Pv(t)?29:28))}function wA(t,e){return e>=1&&e<=(Pv(t)?366:365)}function vA(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function xA(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function kA(t,e){return e>=0&&e<=59}function _A(t,e){const n=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return Z(n?Date.UTC(+n[1],+n[2]-1,+n[3],+n[4]-(+n[9]||0)*(n[8]=="-"?-1:1),+n[5]-(+n[10]||0)*(n[8]=="-"?-1:1),+n[6],+((n[7]||"0")+"00").substring(0,3)):NaN,e==null?void 0:e.in)}function xr(t,e,n){let r=_l(t,n)-e;return r<=0&&(r+=7),Cl(t,r,n)}function SA(t,e){return xr(t,5,e)}function OA(t,e){return xr(t,1,e)}function CA(t,e){return xr(t,6,e)}function DA(t,e){return xr(t,0,e)}function MA(t,e){return xr(t,4,e)}function EA(t,e){return xr(t,2,e)}function PA(t,e){return xr(t,3,e)}function TA(t){return Math.trunc(t*_w)}function NA(t){const e=t/Ow;return Math.trunc(e)}function jA(t,e){const n=(e==null?void 0:e.nearestTo)??1;if(n<1||n>12)return oe((e==null?void 0:e.in)||t,NaN);const r=Z(t,e==null?void 0:e.in),s=r.getMinutes()/60,a=r.getSeconds()/60/60,o=r.getMilliseconds()/1e3/60/60,i=r.getHours()+s+a+o,l=(e==null?void 0:e.roundingMethod)??"round",d=wr(l)(i/n)*n;return r.setHours(d,0,0,0),r}function IA(t,e){const n=(e==null?void 0:e.nearestTo)??1;if(n<1||n>30)return oe(t,NaN);const r=Z(t,e==null?void 0:e.in),s=r.getSeconds()/60,a=r.getMilliseconds()/1e3/60,o=r.getMinutes()+s+a,i=(e==null?void 0:e.roundingMethod)??"round",c=wr(i)(o/n)*n;return r.setMinutes(c,0,0),r}function AA(t){const e=t/cl;return Math.trunc(e)}function RA(t){return t*_u}function LA(t){const e=t/Su;return Math.trunc(e)}function Uu(t,e,n){const r=Z(t,n==null?void 0:n.in),s=r.getFullYear(),a=r.getDate(),o=oe((n==null?void 0:n.in)||t,0);o.setFullYear(s,e,15),o.setHours(0,0,0,0);const i=iv(o);return r.setMonth(e,Math.min(a,i)),r}function FA(t,e,n){let r=Z(t,n==null?void 0:n.in);return isNaN(+r)?oe((n==null?void 0:n.in)||t,NaN):(e.year!=null&&r.setFullYear(e.year),e.month!=null&&(r=Uu(r,e.month)),e.date!=null&&r.setDate(e.date),e.hours!=null&&r.setHours(e.hours),e.minutes!=null&&r.setMinutes(e.minutes),e.seconds!=null&&r.setSeconds(e.seconds),e.milliseconds!=null&&r.setMilliseconds(e.milliseconds),r)}function BA(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setDate(e),r}function WA(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setMonth(0),r.setDate(e),r}function zA(t){const e={},n=Ct();for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]===void 0?delete e[r]:e[r]=t[r]);kN(e)}function HA(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setHours(e),r}function YA(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setMilliseconds(e),r}function VA(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setMinutes(e),r}function UA(t,e,n){const r=Z(t,n==null?void 0:n.in),s=Math.trunc(r.getMonth()/3)+1,a=e-s;return Uu(r,r.getMonth()+a*3)}function XA(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setSeconds(e),r}function KA(t,e,n){var l,c,d,u;const r=Ct(),s=(n==null?void 0:n.firstWeekContainsDate)??((c=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((u=(d=r.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??1,a=Dn(Z(t,n==null?void 0:n.in),vl(t,n),n),o=oe((n==null?void 0:n.in)||t,0);o.setFullYear(e,0,s),o.setHours(0,0,0,0);const i=vl(o,n);return i.setDate(i.getDate()+a),i}function GA(t,e,n){const r=Z(t,n==null?void 0:n.in);return isNaN(+r)?oe((n==null?void 0:n.in)||t,NaN):(r.setFullYear(e),r)}function QA(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=Math.floor(r/10)*10;return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}function ZA(t){return Xs(Date.now(),t)}function JA(t){const e=st(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=oe(t==null?void 0:t.in,0);return a.setFullYear(n,r,s+1),a.setHours(0,0,0,0),a}function qA(t){const e=st(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=st(t==null?void 0:t.in);return a.setFullYear(n,r,s-1),a.setHours(0,0,0,0),a}function Tv(t,e,n){return lo(t,-e,n)}function $A(t,e,n){const{years:r=0,months:s=0,weeks:a=0,days:o=0,hours:i=0,minutes:l=0,seconds:c=0}=e,d=Tv(t,s+r*12,n),u=Cl(d,o+a*7,n),h=l+i*60,m=(c+h*60)*1e3;return oe((n==null?void 0:n.in)||t,+u-m)}function e3(t,e,n){return Tw(t,-e,n)}function t3(t,e,n){return Nw(t,-e,n)}function n3(t,e,n){return dl(t,-e,n)}function r3(t,e,n){return Cu(t,-e,n)}function s3(t,e,n){return Du(t,-e,n)}function a3(t,e,n){return Rw(t,-e,n)}function o3(t,e,n){return ul(t,-e,n)}function i3(t,e,n){return Lw(t,-e,n)}function l3(t){return Math.trunc(t*ww)}function c3(t){return Math.trunc(t*il)}function d3(t){return Math.trunc(t*Sw)}function u3(t){return Math.trunc(t*Ow)}const es=eh(Object.freeze(Object.defineProperty({__proto__:null,add:Vs,addBusinessDays:Tw,addDays:rn,addHours:Nw,addISOWeekYears:Aw,addMilliseconds:dl,addMinutes:Cu,addMonths:lo,addQuarters:Du,addSeconds:Rw,addWeeks:ul,addYears:Lw,areIntervalsOverlapping:_N,clamp:SN,closestIndexTo:Ww,closestTo:ON,compareAsc:Mn,compareDesc:CN,constructFrom:oe,constructNow:st,daysToWeeks:DN,differenceInBusinessDays:MN,differenceInCalendarDays:Dn,differenceInCalendarISOWeekYears:Hw,differenceInCalendarISOWeeks:EN,differenceInCalendarMonths:fl,differenceInCalendarQuarters:hl,differenceInCalendarWeeks:gl,differenceInCalendarYears:uo,differenceInDays:Eu,differenceInHours:ml,differenceInISOWeekYears:PN,differenceInMilliseconds:Pu,differenceInMinutes:pl,differenceInMonths:bl,differenceInQuarters:TN,differenceInSeconds:Ks,differenceInWeeks:NN,differenceInYears:Xw,eachDayOfInterval:Kw,eachHourOfInterval:jN,eachMinuteOfInterval:IN,eachMonthOfInterval:AN,eachQuarterOfInterval:RN,eachWeekOfInterval:LN,eachWeekendOfInterval:ju,eachWeekendOfMonth:FN,eachWeekendOfYear:BN,eachYearOfInterval:WN,endOfDay:Tu,endOfDecade:zN,endOfHour:HN,endOfISOWeek:YN,endOfISOWeekYear:VN,endOfMinute:UN,endOfMonth:Nu,endOfQuarter:XN,endOfSecond:KN,endOfToday:GN,endOfTomorrow:QN,endOfWeek:Qw,endOfYear:Gw,endOfYesterday:ZN,format:kl,formatDate:kl,formatDistance:sv,formatDistanceStrict:av,formatDistanceToNow:Lj,formatDistanceToNowStrict:Fj,formatDuration:Wj,formatISO:zj,formatISO9075:Hj,formatISODuration:Yj,formatRFC3339:Vj,formatRFC7231:Kj,formatRelative:Gj,formatters:Lu,fromUnixTime:Qj,getDate:ov,getDay:_l,getDayOfYear:Jw,getDaysInMonth:iv,getDaysInYear:Zj,getDecade:Jj,getDefaultOptions:cv,getHours:qj,getISODay:dv,getISOWeek:Au,getISOWeekYear:br,getISOWeeksInYear:$j,getMilliseconds:eI,getMinutes:tI,getMonth:nI,getOverlappingDaysInIntervals:rI,getQuarter:Mu,getSeconds:sI,getTime:aI,getUnixTime:oI,getWeek:Ru,getWeekOfMonth:iI,getWeekYear:wl,getWeeksInMonth:lI,getYear:cI,hoursToMilliseconds:dI,hoursToMinutes:uI,hoursToSeconds:fI,interval:hI,intervalToDuration:gI,intlFormat:mI,intlFormatDistance:bI,isAfter:yI,isBefore:wI,isDate:zw,isEqual:vI,isExists:xI,isFirstDayOfMonth:kI,isFriday:_I,isFuture:SI,isLastDayOfMonth:Uw,isLeapYear:lv,isMatch:m4,isMonday:p4,isPast:b4,isSameDay:co,isSameHour:kv,isSameISOWeek:_v,isSameISOWeekYear:y4,isSameMinute:Sv,isSameMonth:Ov,isSameQuarter:Cv,isSameSecond:Dv,isSameWeek:zu,isSameYear:Mv,isSaturday:Ew,isSunday:Pw,isThisHour:w4,isThisISOWeek:v4,isThisMinute:x4,isThisMonth:k4,isThisQuarter:_4,isThisSecond:S4,isThisWeek:O4,isThisYear:C4,isThursday:D4,isToday:M4,isTomorrow:E4,isTuesday:P4,isValid:Qn,isWednesday:T4,isWeekend:Us,isWithinInterval:N4,isYesterday:j4,lastDayOfDecade:I4,lastDayOfISOWeek:A4,lastDayOfISOWeekYear:R4,lastDayOfMonth:uv,lastDayOfQuarter:L4,lastDayOfWeek:Ev,lastDayOfYear:F4,lightFormat:Y4,lightFormatters:Tn,longFormatters:xl,max:Fw,milliseconds:U4,millisecondsToHours:X4,millisecondsToMinutes:K4,millisecondsToSeconds:G4,min:Bw,minutesToHours:Q4,minutesToMilliseconds:Z4,minutesToSeconds:J4,monthsToQuarters:q4,monthsToYears:$4,nextDay:vr,nextFriday:eA,nextMonday:tA,nextSaturday:nA,nextSunday:rA,nextThursday:sA,nextTuesday:aA,nextWednesday:oA,parse:xv,parseISO:iA,parseJSON:_A,parsers:vv,previousDay:xr,previousFriday:SA,previousMonday:OA,previousSaturday:CA,previousSunday:DA,previousThursday:MA,previousTuesday:EA,previousWednesday:PA,quartersToMonths:TA,quartersToYears:NA,roundToNearestHours:jA,roundToNearestMinutes:IA,secondsToHours:AA,secondsToMilliseconds:RA,secondsToMinutes:LA,set:FA,setDate:BA,setDay:Ol,setDayOfYear:WA,setDefaultOptions:zA,setHours:HA,setISODay:wv,setISOWeek:yv,setISOWeekYear:Iw,setMilliseconds:YA,setMinutes:VA,setMonth:Uu,setQuarter:UA,setSeconds:XA,setWeek:bv,setWeekYear:KA,setYear:GA,startOfDay:Xs,startOfDecade:QA,startOfHour:Wu,startOfISOWeek:un,startOfISOWeekYear:yr,startOfMinute:Hu,startOfMonth:yl,startOfQuarter:qr,startOfSecond:Yu,startOfToday:ZA,startOfTomorrow:JA,startOfWeek:bt,startOfWeekYear:vl,startOfYear:Iu,startOfYesterday:qA,sub:$A,subBusinessDays:e3,subDays:Cl,subHours:t3,subISOWeekYears:Vw,subMilliseconds:n3,subMinutes:r3,subMonths:Tv,subQuarters:s3,subSeconds:a3,subWeeks:o3,subYears:i3,toDate:Z,transpose:fv,weeksToDays:l3,yearsToDays:c3,yearsToMonths:d3,yearsToQuarters:u3},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.rangeShape=Kn.default=void 0;var ts=f3(_),be=Nv(Xn),Xu=Nv(sr),Dt=es;function Nv(t){return t&&t.__esModule?t:{default:t}}function jv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(jv=function(r){return r?n:e})(t)}function f3(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=jv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function Ku(){return Ku=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ku.apply(this,arguments)}function ho(t,e,n){return e=h3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h3(t){var e=g3(t,"string");return typeof e=="symbol"?e:String(e)}function g3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Gu extends ts.Component{constructor(e,n){super(e,n),ho(this,"handleKeyEvent",r=>{const{day:s,onMouseDown:a,onMouseUp:o}=this.props;[13,32].includes(r.keyCode)&&(r.type==="keydown"?a(s):o(s))}),ho(this,"handleMouseEvent",r=>{const{day:s,disabled:a,onPreviewChange:o,onMouseEnter:i,onMouseDown:l,onMouseUp:c}=this.props,d={};if(a){o();return}switch(r.type){case"mouseenter":i(s),o(s),d.hover=!0;break;case"blur":case"mouseleave":d.hover=!1;break;case"mousedown":d.active=!0,l(s);break;case"mouseup":r.stopPropagation(),d.active=!1,c(s);break;case"focus":o(s);break}Object.keys(d).length&&this.setState(d)}),ho(this,"getClassNames",()=>{const{isPassive:r,isToday:s,isWeekend:a,isStartOfWeek:o,isEndOfWeek:i,isStartOfMonth:l,isEndOfMonth:c,disabled:d,styles:u}=this.props;return(0,Xu.default)(u.day,{[u.dayPassive]:r,[u.dayDisabled]:d,[u.dayToday]:s,[u.dayWeekend]:a,[u.dayStartOfWeek]:o,[u.dayEndOfWeek]:i,[u.dayStartOfMonth]:l,[u.dayEndOfMonth]:c,[u.dayHovered]:this.state.hover,[u.dayActive]:this.state.active})}),ho(this,"renderPreviewPlaceholder",()=>{const{preview:r,day:s,styles:a}=this.props;if(!r)return null;const o=r.startDate?(0,Dt.endOfDay)(r.startDate):null,i=r.endDate?(0,Dt.startOfDay)(r.endDate):null,l=(!o||(0,Dt.isAfter)(s,o))&&(!i||(0,Dt.isBefore)(s,i)),c=!l&&(0,Dt.isSameDay)(s,o),d=!l&&(0,Dt.isSameDay)(s,i);return ts.default.createElement("span",{className:(0,Xu.default)({[a.dayStartPreview]:c,[a.dayInPreview]:l,[a.dayEndPreview]:d}),style:{color:r.color}})}),ho(this,"renderSelectionPlaceholders",()=>{const{styles:r,ranges:s,day:a}=this.props;return this.props.displayMode==="date"?(0,Dt.isSameDay)(this.props.day,this.props.date)?ts.default.createElement("span",{className:r.selected,style:{color:this.props.color}}):null:s.reduce((i,l)=>{let c=l.startDate,d=l.endDate;c&&d&&(0,Dt.isBefore)(d,c)&&([c,d]=[d,c]),c=c?(0,Dt.endOfDay)(c):null,d=d?(0,Dt.startOfDay)(d):null;const u=(!c||(0,Dt.isAfter)(a,c))&&(!d||(0,Dt.isBefore)(a,d)),h=!u&&(0,Dt.isSameDay)(a,c),g=!u&&(0,Dt.isSameDay)(a,d);return u||h||g?[...i,{isStartEdge:h,isEndEdge:g,isInRange:u,...l}]:i},[]).map((i,l)=>ts.default.createElement("span",{key:l,className:(0,Xu.default)({[r.startEdge]:i.isStartEdge,[r.endEdge]:i.isEndEdge,[r.inRange]:i.isInRange}),style:{color:i.color||this.props.color}}))}),this.state={hover:!1,active:!1}}render(){const{dayContentRenderer:e}=this.props;return ts.default.createElement("button",Ku({type:"button",onMouseEnter:this.handleMouseEvent,onMouseLeave:this.handleMouseEvent,onFocus:this.handleMouseEvent,onMouseDown:this.handleMouseEvent,onMouseUp:this.handleMouseEvent,onBlur:this.handleMouseEvent,onPauseCapture:this.handleMouseEvent,onKeyDown:this.handleKeyEvent,onKeyUp:this.handleKeyEvent,className:this.getClassNames(this.props.styles)},this.props.disabled||this.props.isPassive?{tabIndex:-1}:{},{style:{color:this.props.color}}),this.renderSelectionPlaceholders(),this.renderPreviewPlaceholder(),ts.default.createElement("span",{className:this.props.styles.dayNumber},(e==null?void 0:e(this.props.day))||ts.default.createElement("span",null,(0,Dt.format)(this.props.day,this.props.dayDisplayFormat))))}}Gu.defaultProps={};const m3=Kn.rangeShape=be.default.shape({startDate:be.default.object,endDate:be.default.object,color:be.default.string,key:be.default.string,autoFocus:be.default.bool,disabled:be.default.bool,showDateDisplay:be.default.bool});Gu.propTypes={day:be.default.object.isRequired,dayDisplayFormat:be.default.string,date:be.default.object,ranges:be.default.arrayOf(m3),preview:be.default.shape({startDate:be.default.object,endDate:be.default.object,color:be.default.string}),onPreviewChange:be.default.func,previewColor:be.default.string,disabled:be.default.bool,isPassive:be.default.bool,isToday:be.default.bool,isWeekend:be.default.bool,isStartOfWeek:be.default.bool,isEndOfWeek:be.default.bool,isStartOfMonth:be.default.bool,isEndOfMonth:be.default.bool,color:be.default.string,displayMode:be.default.oneOf(["dateRange","date"]),styles:be.default.object,onMouseDown:be.default.func,onMouseUp:be.default.func,onMouseEnter:be.default.func,dayContentRenderer:be.default.func},Kn.default=Gu;var Ml={},Jn={};Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.calcFocusDate=y3,Jn.findNextRangeIndex=w3,Jn.generateStyles=x3,Jn.getMonthDisplayRange=v3;var p3=b3(sr),qn=es;function b3(t){return t&&t.__esModule?t:{default:t}}function y3(t,e){const{shownDate:n,date:r,months:s,ranges:a,focusedRange:o,displayMode:i}=e;let l;if(i==="dateRange"){const d=a[o[0]]||{};l={start:d.startDate,end:d.endDate}}else l={start:r,end:r};l.start=(0,qn.startOfMonth)(l.start||new Date),l.end=(0,qn.endOfMonth)(l.end||l.start);const c=l.start||l.end||n||new Date;return t?(0,qn.differenceInCalendarMonths)(l.start,l.end)>s?t:c:n||c}function w3(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;const n=t.findIndex((r,s)=>s>e&&r.autoFocus!==!1&&!r.disabled);return n!==-1?n:t.findIndex(r=>r.autoFocus!==!1&&!r.disabled)}function v3(t,e,n){const r=(0,qn.startOfMonth)(t,e),s=(0,qn.endOfMonth)(t,e),a=(0,qn.startOfWeek)(r,e);let o=(0,qn.endOfWeek)(s,e);return n&&(0,qn.differenceInCalendarDays)(o,a)<=34&&(o=(0,qn.addDays)(o,7)),{start:a,end:o,startDateOfMonth:r,endDateOfMonth:s}}function x3(t){return t.length?t.filter(n=>!!n).reduce((n,r)=>(Object.keys(r).forEach(s=>{n[s]=(0,p3.default)(n[s],r[s])}),n),{}):{}}Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.default=void 0;var ns=Rv(_),je=_3(Xn),Iv=Rv(Kn),at=es,k3=Jn;function _3(t){return t&&t.__esModule?t:{default:t}}function Av(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Av=function(r){return r?n:e})(t)}function Rv(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Av(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function Qu(){return Qu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qu.apply(this,arguments)}function S3(t,e,n){const r=new Date;return ns.default.createElement("div",{className:t.weekDays},(0,at.eachDayOfInterval)({start:(0,at.startOfWeek)(r,e),end:(0,at.endOfWeek)(r,e)}).map((s,a)=>ns.default.createElement("span",{className:t.weekDay,key:a},(0,at.format)(s,n,e))))}class Zu extends ns.PureComponent{render(){const e=new Date,{displayMode:n,focusedRange:r,drag:s,styles:a,disabledDates:o,disabledDay:i}=this.props,l=this.props.minDate&&(0,at.startOfDay)(this.props.minDate),c=this.props.maxDate&&(0,at.endOfDay)(this.props.maxDate),d=(0,k3.getMonthDisplayRange)(this.props.month,this.props.dateOptions,this.props.fixedHeight);let u=this.props.ranges;if(n==="dateRange"&&s.status){let{startDate:g,endDate:m}=s.range;u=u.map((p,b)=>b!==r[0]?p:{...p,startDate:g,endDate:m})}const h=this.props.showPreview&&!s.disablePreview;return ns.default.createElement("div",{className:a.month,style:this.props.style},this.props.showMonthName?ns.default.createElement("div",{className:a.monthName},(0,at.format)(this.props.month,this.props.monthDisplayFormat,this.props.dateOptions)):null,this.props.showWeekDays&&S3(a,this.props.dateOptions,this.props.weekdayDisplayFormat),ns.default.createElement("div",{className:a.days,onMouseLeave:this.props.onMouseLeave},(0,at.eachDayOfInterval)({start:d.start,end:d.end}).map((g,m)=>{const p=(0,at.isSameDay)(g,d.startDateOfMonth),b=(0,at.isSameDay)(g,d.endDateOfMonth),y=l&&(0,at.isBefore)(g,l)||c&&(0,at.isAfter)(g,c),v=o.some(x=>(0,at.isSameDay)(x,g)),k=i(g);return ns.default.createElement(Iv.default,Qu({},this.props,{ranges:u,day:g,preview:h?this.props.preview:null,isWeekend:(0,at.isWeekend)(g,this.props.dateOptions),isToday:(0,at.isSameDay)(g,e),isStartOfWeek:(0,at.isSameDay)(g,(0,at.startOfWeek)(g,this.props.dateOptions)),isEndOfWeek:(0,at.isSameDay)(g,(0,at.endOfWeek)(g,this.props.dateOptions)),isStartOfMonth:p,isEndOfMonth:b,key:m,disabled:y||v||k,isPassive:!(0,at.isWithinInterval)(g,{start:d.startDateOfMonth,end:d.endDateOfMonth}),styles:a,onMouseDown:this.props.onDragSelectionStart,onMouseUp:this.props.onDragSelectionEnd,onMouseEnter:this.props.onDragSelectionMove,dragRange:s.range,drag:s.status}))})))}}Zu.defaultProps={},Zu.propTypes={style:je.default.object,styles:je.default.object,month:je.default.object,drag:je.default.object,dateOptions:je.default.object,disabledDates:je.default.array,disabledDay:je.default.func,preview:je.default.shape({startDate:je.default.object,endDate:je.default.object}),showPreview:je.default.bool,displayMode:je.default.oneOf(["dateRange","date"]),minDate:je.default.object,maxDate:je.default.object,ranges:je.default.arrayOf(Iv.rangeShape),focusedRange:je.default.arrayOf(je.default.number),onDragSelectionStart:je.default.func,onDragSelectionEnd:je.default.func,onDragSelectionMove:je.default.func,onMouseLeave:je.default.func,monthDisplayFormat:je.default.string,weekdayDisplayFormat:je.default.string,dayDisplayFormat:je.default.string,showWeekDays:je.default.bool,showMonthName:je.default.bool,fixedHeight:je.default.bool},Ml.default=Zu;var El={};Object.defineProperty(El,"__esModule",{value:!0}),El.default=void 0;var Pl=C3(_),In=Lv(Xn),O3=Lv(sr),go=es;function Lv(t){return t&&t.__esModule?t:{default:t}}function Fv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Fv=function(r){return r?n:e})(t)}function C3(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Fv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function Ju(t,e,n){return e=D3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function D3(t){var e=M3(t,"string");return typeof e=="symbol"?e:String(e)}function M3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class qu extends Pl.PureComponent{constructor(e,n){super(e,n),Ju(this,"onKeyDown",r=>{const{value:s}=this.state;r.key==="Enter"&&this.update(s)}),Ju(this,"onChange",r=>{this.setState({value:r.target.value,changed:!0,invalid:!1})}),Ju(this,"onBlur",()=>{const{value:r}=this.state;this.update(r)}),this.state={invalid:!1,changed:!1,value:this.formatDate(e)}}componentDidUpdate(e){const{value:n}=e;(0,go.isEqual)(n,this.props.value)||this.setState({value:this.formatDate(this.props)})}formatDate(e){let{value:n,dateDisplayFormat:r,dateOptions:s}=e;return n&&(0,go.isValid)(n)?(0,go.format)(n,r,s):""}update(e){const{invalid:n,changed:r}=this.state;if(n||!r||!e)return;const{onChange:s,dateDisplayFormat:a,dateOptions:o}=this.props,i=(0,go.parse)(e,a,new Date,o);(0,go.isValid)(i)?this.setState({changed:!1},()=>s(i)):this.setState({invalid:!0})}render(){const{className:e,readOnly:n,placeholder:r,ariaLabel:s,disabled:a,onFocus:o}=this.props,{value:i,invalid:l}=this.state;return Pl.default.createElement("span",{className:(0,O3.default)("rdrDateInput",e)},Pl.default.createElement("input",{readOnly:n,disabled:a,value:i,placeholder:r,"aria-label":s,onKeyDown:this.onKeyDown,onChange:this.onChange,onBlur:this.onBlur,onFocus:o}),l&&Pl.default.createElement("span",{className:"rdrWarning"},"⚠"))}}qu.propTypes={value:In.default.object,placeholder:In.default.string,disabled:In.default.bool,readOnly:In.default.bool,dateOptions:In.default.object,dateDisplayFormat:In.default.string,ariaLabel:In.default.string,className:In.default.string,onFocus:In.default.func.isRequired,onChange:In.default.func.isRequired},qu.defaultProps={readOnly:!0,disabled:!1,dateDisplayFormat:"MMM D, YYYY"},El.default=qu;var Bv={};(function(t){(function(e,n){n(t,_,f)})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:$k,function(e,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function s(L){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},s(L)}function a(L,R){if(!(L instanceof R))throw new TypeError("Cannot call a class as a function")}function o(L,R){for(var A=0;A<R.length;A++){var D=R[A];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(L,v(D.key),D)}}function i(L,R,A){return R&&o(L.prototype,R),A&&o(L,A),Object.defineProperty(L,"prototype",{writable:!1}),L}function l(L,R,A){return R=h(R),c(L,u()?Reflect.construct(R,A||[],h(L).constructor):R.apply(L,A))}function c(L,R){if(R&&(s(R)=="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(L)}function d(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function u(){try{var L=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u=function(){return!!L})()}function h(L){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)},h(L)}function g(L,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(R&&R.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),R&&m(L,R)}function m(L,R){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,D){return A.__proto__=D,A},m(L,R)}function p(L,R){var A=Object.keys(L);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(L);R&&(D=D.filter(function(Y){return Object.getOwnPropertyDescriptor(L,Y).enumerable})),A.push.apply(A,D)}return A}function b(L){for(var R=1;R<arguments.length;R++){var A=arguments[R]!=null?arguments[R]:{};R%2?p(Object(A),!0).forEach(function(D){y(L,D,A[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(A)):p(Object(A)).forEach(function(D){Object.defineProperty(L,D,Object.getOwnPropertyDescriptor(A,D))})}return L}function y(L,R,A){return(R=v(R))in L?Object.defineProperty(L,R,{value:A,enumerable:!0,configurable:!0,writable:!0}):L[R]=A,L}function v(L){var R=k(L,"string");return s(R)=="symbol"?R:R+""}function k(L,R){if(s(L)!="object"||!L)return L;var A=L[Symbol.toPrimitive];if(A!==void 0){var D=A.call(L,R);if(s(D)!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(L)}var x={x:"clientWidth",y:"clientHeight"},w={x:"clientTop",y:"clientLeft"},S={x:"innerWidth",y:"innerHeight"},N={x:"offsetWidth",y:"offsetHeight"},M={x:"offsetLeft",y:"offsetTop"},T={x:"overflowX",y:"overflowY"},P={x:"scrollWidth",y:"scrollHeight"},z={x:"scrollLeft",y:"scrollTop"},F={x:"width",y:"height"},O=function(){},C=function(){if(typeof window>"u")return!1;var L=!1;try{document.createElement("div").addEventListener("test",O,{get passive(){return L=!0,!1}})}catch{}return L}()?{passive:!0}:!1,E="ReactList failed to reach a stable state.",W=40,U=function(R,A){for(var D in A)if(R[D]!==A[D])return!1;return!0},K=function(R){for(var A=R.props.axis,D=R.getEl(),Y=T[A];D=D.parentElement;)switch(window.getComputedStyle(D)[Y]){case"auto":case"scroll":case"overlay":return D}return window},ee=function(R){var A=R.props.axis,D=R.scrollParent;return D===window?window[S[A]]:D[x[A]]},j=function(R,A){var D=R.length,Y=R.minSize,J=R.type,G=A.from,I=A.size,q=A.itemsPerRow;I=Math.max(I,Y);var te=I%q;return te&&(I+=q-te),I>D&&(I=D),G=J==="simple"||!G?0:Math.max(Math.min(G,D-I),0),(te=G%q)&&(G-=te,I+=te),G===A.from&&I===A.size?A:b(b({},A),{},{from:G,size:I})},V=e.default=function(L){function R(A){var D;return a(this,R),D=l(this,R,[A]),D.state=j(A,{itemsPerRow:1,from:A.initialIndex,size:0}),D.cache={},D.cachedScrollPosition=null,D.prevPrevState={},D.unstable=!1,D.updateCounter=0,D}return g(R,L),i(R,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(D){var Y=this;if(this.props.axis!==D.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>W)return this.unstable=!0,console.error(E);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout(function(){Y.updateCounter=0,delete Y.updateCounterTimeoutId},0)),this.updateFrame()}}},{key:"maybeSetState",value:function(D,Y){if(U(this.state,D))return Y();this.setState(D,Y)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,C),this.scrollParent.removeEventListener("mousewheel",O,C)}},{key:"getOffset",value:function(D){var Y=this.props.axis,J=D[w[Y]]||0,G=M[Y];do J+=D[G]||0;while(D=D.offsetParent);return J}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if(typeof this.cachedScrollPosition=="number")return this.cachedScrollPosition;var D=this.scrollParent,Y=this.props.axis,J=z[Y],G=D===window?document.body[J]||document.documentElement[J]:D[J],I=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),q=Math.max(0,Math.min(G,I)),te=this.getEl();return this.cachedScrollPosition=this.getOffset(D)+q-this.getOffset(te),this.cachedScrollPosition}},{key:"setScroll",value:function(D){var Y=this.scrollParent,J=this.props.axis;if(D+=this.getOffset(this.getEl()),Y===window)return window.scrollTo(0,D);D-=this.getOffset(this.scrollParent),Y[z[J]]=D}},{key:"getScrollSize",value:function(){var D=this.scrollParent,Y=document,J=Y.body,G=Y.documentElement,I=P[this.props.axis];return D===window?Math.max(J[I],G[I]):D[I]}},{key:"hasDeterminateSize",value:function(){var D=this.props,Y=D.itemSizeGetter,J=D.type;return J==="uniform"||Y}},{key:"getStartAndEnd",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.threshold,Y=this.getScrollPosition(),J=Math.max(0,Y-D),G=Y+this.props.scrollParentViewportSizeGetter(this)+D;return this.hasDeterminateSize()&&(G=Math.min(G,this.getSpaceBefore(this.props.length))),{start:J,end:G}}},{key:"getItemSizeAndItemsPerRow",value:function(){var D=this.props,Y=D.axis,J=D.useStaticSize,G=this.state,I=G.itemSize,q=G.itemsPerRow;if(J&&I&&q)return{itemSize:I,itemsPerRow:q};var te=this.items.children;if(!te.length)return{};var B=te[0],re=B[N[Y]],se=Math.abs(re-I);if((isNaN(se)||se>=1)&&(I=re),!I)return{};var ie=M[Y],ge=B[ie];q=1;for(var fe=te[q];fe&&fe[ie]===ge;fe=te[q])++q;return{itemSize:I,itemsPerRow:q}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(D){return this.clearSizeCache(),this.updateFrame(D)}},{key:"updateFrame",value:function(D){switch(this.updateScrollParent(),typeof D!="function"&&(D=O),this.props.type){case"simple":return this.updateSimpleFrame(D);case"variable":return this.updateVariableFrame(D);case"uniform":return this.updateUniformFrame(D)}}},{key:"updateScrollParent",value:function(){var D=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),D!==this.scrollParent&&(D&&(D.removeEventListener("scroll",this.updateFrameAndClearCache),D.removeEventListener("mousewheel",O)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,C),this.scrollParent.addEventListener("mousewheel",O,C))}},{key:"updateSimpleFrame",value:function(D){var Y=this.getStartAndEnd(),J=Y.end,G=this.items.children,I=0;if(G.length){var q=this.props.axis,te=G[0],B=G[G.length-1];I=this.getOffset(B)+B[N[q]]-this.getOffset(te)}if(I>J)return D();var re=this.props,se=re.pageSize,ie=re.length,ge=Math.min(this.state.size+se,ie);this.maybeSetState({size:ge},D)}},{key:"updateVariableFrame",value:function(D){this.props.itemSizeGetter||this.cacheSizes();for(var Y=this.getStartAndEnd(),J=Y.start,G=Y.end,I=this.props,q=I.length,te=I.pageSize,B=0,re=0,se=0,ie=q-1;re<ie;){var ge=this.getSizeOfItem(re);if(ge==null||B+ge>J)break;B+=ge,++re}for(var fe=q-re;se<fe&&B<G;){var ae=this.getSizeOfItem(re+se);if(ae==null){se=Math.min(se+te,fe);break}B+=ae,++se}this.maybeSetState(j(this.props,{from:re,itemsPerRow:1,size:se}),D)}},{key:"updateUniformFrame",value:function(D){var Y=this.getItemSizeAndItemsPerRow(),J=Y.itemSize,G=Y.itemsPerRow;if(!J||!G)return D();var I=this.getStartAndEnd(),q=I.start,te=I.end,B=j(this.props,{from:Math.floor(q/J)*G,size:(Math.ceil((te-q)/J)+1)*G,itemsPerRow:G}),re=B.from,se=B.size;return this.maybeSetState({itemsPerRow:G,from:re,itemSize:J,size:se},D)}},{key:"getSpaceBefore",value:function(D){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Y[D]!=null)return Y[D];var J=this.state,G=J.itemSize,I=J.itemsPerRow;if(G)return Y[D]=Math.floor(D/I)*G;for(var q=D;q>0&&Y[--q]==null;);for(var te=Y[q]||0,B=q;B<D;++B){Y[B]=te;var re=this.getSizeOfItem(B);if(re==null)break;te+=re}return Y[D]=te}},{key:"cacheSizes",value:function(){for(var D=this.cache,Y=this.state.from,J=this.items.children,G=N[this.props.axis],I=0,q=J.length;I<q;++I)D[Y+I]=J[I][G]}},{key:"getSizeOfItem",value:function(D){var Y=this.cache,J=this.items,G=this.props,I=G.axis,q=G.itemSizeGetter,te=G.itemSizeEstimator,B=G.type,re=this.state,se=re.from,ie=re.itemSize,ge=re.size;if(ie)return ie;if(q)return q(D);if(D in Y)return Y[D];if(B==="simple"&&D>=se&&D<se+ge&&J){var fe=J.children[D-se];if(fe)return fe[N[I]]}if(te)return te(D,Y)}},{key:"scrollTo",value:function(D){D!=null&&this.setScroll(this.getSpaceBefore(D))}},{key:"scrollAround",value:function(D){var Y=this.getScrollPosition(),J=this.getSpaceBefore(D),G=J-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(D),I=Math.min(G,J),q=Math.max(G,J);if(Y<=I)return this.setScroll(I);if(Y>q)return this.setScroll(q)}},{key:"getVisibleRange",value:function(){for(var D=this.state,Y=D.from,J=D.size,G=this.getStartAndEnd(0),I=G.start,q=G.end,te={},B,re,se=Y;se<Y+J;++se){var ie=this.getSpaceBefore(se,te),ge=ie+this.getSizeOfItem(se);B==null&&ge>I&&(B=se),B!=null&&ie<q&&(re=se)}return[B,re]}},{key:"renderItems",value:function(){for(var D=this,Y=this.props,J=Y.itemRenderer,G=Y.itemsRenderer,I=this.state,q=I.from,te=I.size,B=[],re=0;re<te;++re)B.push(J(q+re,re));return G(B,function(se){return D.items=se})}},{key:"render",value:function(){var D=this,Y=this.props,J=Y.axis,G=Y.length,I=Y.type,q=Y.useTranslate3d,te=this.state,B=te.from,re=te.itemsPerRow,se=this.renderItems();if(I==="simple")return se;var ie={position:"relative"},ge={},fe=Math.ceil(G/re)*re,ae=this.getSpaceBefore(fe,ge);ae&&(ie[F[J]]=ae,J==="x"&&(ie.overflowX="hidden"));var Ve=this.getSpaceBefore(B,ge),pe=J==="x"?Ve:0,He=J==="y"?Ve:0,Ke=q?"translate3d(".concat(pe,"px, ").concat(He,"px, 0)"):"translate(".concat(pe,"px, ").concat(He,"px)"),$e={msTransform:Ke,WebkitTransform:Ke,transform:Ke};return(0,r.jsx)("div",{style:ie,ref:function(Kt){return D.el=Kt},children:(0,r.jsx)("div",{style:$e,children:se})})}}],[{key:"getDerivedStateFromProps",value:function(D,Y){var J=j(D,Y);return J===Y?null:J}}])}(n.Component);y(V,"displayName","ReactList"),y(V,"defaultProps",{axis:"y",itemRenderer:function(R,A){return(0,r.jsx)("div",{children:R},A)},itemsRenderer:function(R,A){return(0,r.jsx)("div",{ref:A,children:R})},length:0,minSize:1,pageSize:10,scrollParentGetter:K,scrollParentViewportSizeGetter:ee,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1})})})(Bv);function E3(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=Object.keys(t),r=Object.keys(e),s=n.length;if(r.length!==s)return!1;for(var a=0;a<s;a++){var o=n[a];if(t[o]!==e[o]||!Object.prototype.hasOwnProperty.call(e,o))return!1}return!0}function P3(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=t.length;if(e.length!==n)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const T3=eh(Object.freeze(Object.defineProperty({__proto__:null,shallowEqualArrays:P3,shallowEqualObjects:E3},Symbol.toStringTag,{value:"Module"})));var $u={},ef={};ef.formatDistance=void 0;const N3={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},j3=(t,e,n)=>{let r;const s=N3[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};ef.formatDistance=j3;var tf={},Wv={};Wv.buildFormatLongFn=I3;function I3(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}tf.formatLong=void 0;var nf=Wv;const A3={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},R3={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},L3={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};tf.formatLong={date:(0,nf.buildFormatLongFn)({formats:A3,defaultWidth:"full"}),time:(0,nf.buildFormatLongFn)({formats:R3,defaultWidth:"full"}),dateTime:(0,nf.buildFormatLongFn)({formats:L3,defaultWidth:"full"})};var rf={};rf.formatRelative=void 0;const F3={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},B3=(t,e,n,r)=>F3[t];rf.formatRelative=B3;var sf={},zv={};zv.buildLocalizeFn=W3;function W3(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):o;s=t.formattingValues[i]||t.formattingValues[o]}else{const o=t.defaultWidth,i=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[i]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(e):e;return s[a]}}sf.localize=void 0;var mo=zv;const z3={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},H3={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Y3={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},V3={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},U3={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},X3={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},K3=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"};sf.localize={ordinalNumber:K3,era:(0,mo.buildLocalizeFn)({values:z3,defaultWidth:"wide"}),quarter:(0,mo.buildLocalizeFn)({values:H3,defaultWidth:"wide",argumentCallback:t=>t-1}),month:(0,mo.buildLocalizeFn)({values:Y3,defaultWidth:"wide"}),day:(0,mo.buildLocalizeFn)({values:V3,defaultWidth:"wide"}),dayPeriod:(0,mo.buildLocalizeFn)({values:U3,defaultWidth:"wide",formattingValues:X3,defaultFormattingWidth:"wide"})};var af={},Hv={};Hv.buildMatchFn=G3;function G3(t){return(e,n={})=>{const r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(s);if(!a)return null;const o=a[0],i=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(i)?Z3(i,u=>u.test(o)):Q3(i,u=>u.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const d=e.slice(o.length);return{value:c,rest:d}}}function Q3(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function Z3(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}var Yv={};Yv.buildMatchPatternFn=J3;function J3(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const s=r[0],a=e.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const i=e.slice(s.length);return{value:o,rest:i}}}af.match=void 0;var po=Hv,q3=Yv;const $3=/^(\d+)(th|st|nd|rd)?/i,eR=/\d+/i,tR={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},nR={any:[/^b/i,/^(a|c)/i]},rR={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sR={any:[/1/i,/2/i,/3/i,/4/i]},aR={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},oR={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},iR={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},lR={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},cR={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},dR={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};af.match={ordinalNumber:(0,q3.buildMatchPatternFn)({matchPattern:$3,parsePattern:eR,valueCallback:t=>parseInt(t,10)}),era:(0,po.buildMatchFn)({matchPatterns:tR,defaultMatchWidth:"wide",parsePatterns:nR,defaultParseWidth:"any"}),quarter:(0,po.buildMatchFn)({matchPatterns:rR,defaultMatchWidth:"wide",parsePatterns:sR,defaultParseWidth:"any",valueCallback:t=>t+1}),month:(0,po.buildMatchFn)({matchPatterns:aR,defaultMatchWidth:"wide",parsePatterns:oR,defaultParseWidth:"any"}),day:(0,po.buildMatchFn)({matchPatterns:iR,defaultMatchWidth:"wide",parsePatterns:lR,defaultParseWidth:"any"}),dayPeriod:(0,po.buildMatchFn)({matchPatterns:cR,defaultMatchWidth:"any",parsePatterns:dR,defaultParseWidth:"any"})},$u.enUS=void 0;var uR=ef,fR=tf,hR=rf,gR=sf,mR=af;$u.enUS={code:"en-US",formatDistance:uR.formatDistance,formatLong:fR.formatLong,formatRelative:hR.formatRelative,localize:gR.localize,match:mR.match,options:{weekStartsOn:0,firstWeekContainsDate:1}};var rs={};Object.defineProperty(rs,"__esModule",{value:!0}),rs.default=void 0,rs.default={dateRangeWrapper:"rdrDateRangeWrapper",calendarWrapper:"rdrCalendarWrapper",dateDisplay:"rdrDateDisplay",dateDisplayItem:"rdrDateDisplayItem",dateDisplayItemActive:"rdrDateDisplayItemActive",monthAndYearWrapper:"rdrMonthAndYearWrapper",monthAndYearPickers:"rdrMonthAndYearPickers",nextPrevButton:"rdrNextPrevButton",month:"rdrMonth",weekDays:"rdrWeekDays",weekDay:"rdrWeekDay",days:"rdrDays",day:"rdrDay",dayNumber:"rdrDayNumber",dayPassive:"rdrDayPassive",dayToday:"rdrDayToday",dayStartOfWeek:"rdrDayStartOfWeek",dayEndOfWeek:"rdrDayEndOfWeek",daySelected:"rdrDaySelected",dayDisabled:"rdrDayDisabled",dayStartOfMonth:"rdrDayStartOfMonth",dayEndOfMonth:"rdrDayEndOfMonth",dayWeekend:"rdrDayWeekend",dayStartPreview:"rdrDayStartPreview",dayInPreview:"rdrDayInPreview",dayEndPreview:"rdrDayEndPreview",dayHovered:"rdrDayHovered",dayActive:"rdrDayActive",inRange:"rdrInRange",endEdge:"rdrEndEdge",startEdge:"rdrStartEdge",prevButton:"rdrPprevButton",nextButton:"rdrNextButton",selected:"rdrSelected",months:"rdrMonths",monthPicker:"rdrMonthPicker",yearPicker:"rdrYearPicker",dateDisplayWrapper:"rdrDateDisplayWrapper",definedRangesWrapper:"rdrDefinedRangesWrapper",staticRanges:"rdrStaticRanges",staticRange:"rdrStaticRange",inputRanges:"rdrInputRanges",inputRange:"rdrInputRange",inputRangeInput:"rdrInputRangeInput",dateRangePickerWrapper:"rdrDateRangePickerWrapper",staticRangeLabel:"rdrStaticRangeLabel",staticRangeSelected:"rdrStaticRangeSelected",monthName:"rdrMonthName",infiniteMonths:"rdrInfiniteMonths",monthsVertical:"rdrMonthsVertical",monthsHorizontal:"rdrMonthsHorizontal"};var Tl={};Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.ariaLabelsShape=void 0;var $n=pR(Xn);function pR(t){return t&&t.__esModule?t:{default:t}}Tl.ariaLabelsShape=$n.default.shape({dateInput:$n.default.objectOf($n.default.shape({startDate:$n.default.string,endDate:$n.default.string})),monthPicker:$n.default.string,yearPicker:$n.default.string,prevButton:$n.default.string,nextButton:$n.default.string}),Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=void 0;var Ne=_R(_),ue=Js(Xn),bR=Kn,Vv=Js(Ml),Uv=Js(El),Nl=Jn,ss=Js(sr),yR=Js(Bv),wR=T3,We=es,vR=$u,xR=Js(rs),kR=Tl;function Js(t){return t&&t.__esModule?t:{default:t}}function Xv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Xv=function(r){return r?n:e})(t)}function _R(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Xv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function jl(){return jl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},jl.apply(this,arguments)}function sn(t,e,n){return e=SR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function SR(t){var e=OR(t,"string");return typeof e=="symbol"?e:String(e)}function OR(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class qs extends Ne.PureComponent{constructor(e,n){var r;super(e,n),r=this,sn(this,"focusToDate",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.props,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!a.scroll.enabled){if(o&&a.preventSnapRefocus){const c=(0,We.differenceInCalendarMonths)(s,r.state.focusedDate),d=a.calendarFocus==="forwards"&&c>=0,u=a.calendarFocus==="backwards"&&c<=0;if((d||u)&&Math.abs(c)<a.months)return}r.setState({focusedDate:s});return}const i=(0,We.differenceInCalendarMonths)(s,a.minDate,r.dateOptions),l=r.list.getVisibleRange();o&&l.includes(i)||(r.isFirstRender=!0,r.list.scrollTo(i),r.setState({focusedDate:s}))}),sn(this,"updateShownDate",function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r.props;const a=s.scroll.enabled?{...s,months:r.list.getVisibleRange().length}:s,o=(0,Nl.calcFocusDate)(r.state.focusedDate,a);r.focusToDate(o,a)}),sn(this,"updatePreview",s=>{if(!s){this.setState({preview:null});return}const a={startDate:s,endDate:s,color:this.props.color};this.setState({preview:a})}),sn(this,"changeShownDate",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"set";const{focusedDate:o}=r.state,{onShownDateChange:i,minDate:l,maxDate:c}=r.props,d={monthOffset:()=>(0,We.addMonths)(o,s),setMonth:()=>(0,We.setMonth)(o,s),setYear:()=>(0,We.setYear)(o,s),set:()=>s},u=(0,We.min)([(0,We.max)([d[a](),l]),c]);r.focusToDate(u,r.props,!1),i&&i(u)}),sn(this,"handleRangeFocusChange",(s,a)=>{this.props.onRangeFocusChange&&this.props.onRangeFocusChange([s,a])}),sn(this,"handleScroll",()=>{const{onShownDateChange:s,minDate:a}=this.props,{focusedDate:o}=this.state,{isFirstRender:i}=this,l=this.list.getVisibleRange();if(l[0]===void 0)return;const c=(0,We.addMonths)(a,l[0]||0);!(0,We.isSameMonth)(c,o)&&!i&&(this.setState({focusedDate:c}),s&&s(c)),this.isFirstRender=!1}),sn(this,"renderMonthAndYear",(s,a,o)=>{const{showMonthArrow:i,minDate:l,maxDate:c,showMonthAndYearPickers:d,ariaLabels:u}=o,h=(c||qs.defaultProps.maxDate).getFullYear(),g=(l||qs.defaultProps.minDate).getFullYear(),m=this.styles;return Ne.default.createElement("div",{onMouseUp:p=>p.stopPropagation(),className:m.monthAndYearWrapper},i?Ne.default.createElement("button",{type:"button",className:(0,ss.default)(m.nextPrevButton,m.prevButton),onClick:()=>a(-1,"monthOffset"),"aria-label":u.prevButton},Ne.default.createElement("i",null)):null,d?Ne.default.createElement("span",{className:m.monthAndYearPickers},Ne.default.createElement("span",{className:m.monthPicker},Ne.default.createElement("select",{value:s.getMonth(),onChange:p=>a(p.target.value,"setMonth"),"aria-label":u.monthPicker},this.state.monthNames.map((p,b)=>Ne.default.createElement("option",{key:b,value:b},p)))),Ne.default.createElement("span",{className:m.monthAndYearDivider}),Ne.default.createElement("span",{className:m.yearPicker},Ne.default.createElement("select",{value:s.getFullYear(),onChange:p=>a(p.target.value,"setYear"),"aria-label":u.yearPicker},new Array(h-g+1).fill(h).map((p,b)=>{const y=p-b;return Ne.default.createElement("option",{key:y,value:y},y)})))):Ne.default.createElement("span",{className:m.monthAndYearPickers},this.state.monthNames[s.getMonth()]," ",s.getFullYear()),i?Ne.default.createElement("button",{type:"button",className:(0,ss.default)(m.nextPrevButton,m.nextButton),onClick:()=>a(1,"monthOffset"),"aria-label":u.nextButton},Ne.default.createElement("i",null)):null)}),sn(this,"renderDateDisplay",()=>{const{focusedRange:s,color:a,ranges:o,rangeColors:i,dateDisplayFormat:l,editableDateInputs:c,startDatePlaceholder:d,endDatePlaceholder:u,ariaLabels:h}=this.props,g=i[s[0]]||a,m=this.styles;return Ne.default.createElement("div",{className:m.dateDisplayWrapper},o.map((p,b)=>p.showDateDisplay===!1||p.disabled&&!p.showDateDisplay?null:Ne.default.createElement("div",{className:m.dateDisplay,key:b,style:{color:p.color||g}},Ne.default.createElement(Uv.default,{className:(0,ss.default)(m.dateDisplayItem,{[m.dateDisplayItemActive]:s[0]===b&&s[1]===0}),readOnly:!c,disabled:p.disabled,value:p.startDate,placeholder:d,dateOptions:this.dateOptions,dateDisplayFormat:l,ariaLabel:h.dateInput&&h.dateInput[p.key]&&h.dateInput[p.key].startDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(b,0)}),Ne.default.createElement(Uv.default,{className:(0,ss.default)(m.dateDisplayItem,{[m.dateDisplayItemActive]:s[0]===b&&s[1]===1}),readOnly:!c,disabled:p.disabled,value:p.endDate,placeholder:u,dateOptions:this.dateOptions,dateDisplayFormat:l,ariaLabel:h.dateInput&&h.dateInput[p.key]&&h.dateInput[p.key].endDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(b,1)}))))}),sn(this,"onDragSelectionStart",s=>{const{onChange:a,dragSelectionEnabled:o}=this.props;o?this.setState({drag:{status:!0,range:{startDate:s,endDate:s},disablePreview:!0}}):a&&a(s)}),sn(this,"onDragSelectionEnd",s=>{const{updateRange:a,displayMode:o,onChange:i,dragSelectionEnabled:l}=this.props;if(!l)return;if(o==="date"||!this.state.drag.status){i&&i(s);return}const c={startDate:this.state.drag.range.startDate,endDate:s};o!=="dateRange"||(0,We.isSameDay)(c.startDate,s)?this.setState({drag:{status:!1,range:{}}},()=>i&&i(s)):this.setState({drag:{status:!1,range:{}}},()=>{a&&a(c)})}),sn(this,"onDragSelectionMove",s=>{const{drag:a}=this.state;!a.status||!this.props.dragSelectionEnabled||this.setState({drag:{status:a.status,range:{startDate:a.range.startDate,endDate:s},disablePreview:!0}})}),sn(this,"estimateMonthSize",(s,a)=>{const{direction:o,minDate:i}=this.props,{scrollArea:l}=this.state;if(a&&(this.listSizeCache=a,a[s]))return a[s];if(o==="horizontal")return l.monthWidth;const c=(0,We.addMonths)(i,s),{start:d,end:u}=(0,Nl.getMonthDisplayRange)(c,this.dateOptions);return(0,We.differenceInDays)(u,d,this.dateOptions)+1>7*5?l.longMonthHeight:l.monthHeight}),this.dateOptions={locale:e.locale},e.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=e.weekStartsOn),this.styles=(0,Nl.generateStyles)([xR.default,e.classNames]),this.listSizeCache={},this.isFirstRender=!0,this.state={monthNames:this.getMonthNames(),focusedDate:(0,Nl.calcFocusDate)(null,e),drag:{status:!1,range:{startDate:null,endDate:null},disablePreview:!1},scrollArea:this.calcScrollArea(e)}}getMonthNames(){return[...Array(12).keys()].map(e=>this.props.locale.localize.month(e))}calcScrollArea(e){const{direction:n,months:r,scroll:s}=e;if(!s.enabled)return{enabled:!1};const a=s.longMonthHeight||s.monthHeight;return n==="vertical"?{enabled:!0,monthHeight:s.monthHeight||220,longMonthHeight:a||260,calendarWidth:"auto",calendarHeight:(s.calendarHeight||a||240)*r}:{enabled:!0,monthWidth:s.monthWidth||332,calendarWidth:(s.calendarWidth||s.monthWidth||332)*r,monthHeight:a||300,calendarHeight:a||300}}componentDidMount(){this.props.scroll.enabled&&setTimeout(()=>this.focusToDate(this.state.focusedDate))}componentDidUpdate(e){const r={dateRange:"ranges",date:"date"}[this.props.displayMode];this.props[r]!==e[r]&&this.updateShownDate(this.props),(e.locale!==this.props.locale||e.weekStartsOn!==this.props.weekStartsOn)&&(this.dateOptions={locale:this.props.locale},this.props.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=this.props.weekStartsOn),this.setState({monthNames:this.getMonthNames()})),(0,wR.shallowEqualObjects)(e.scroll,this.props.scroll)||this.setState({scrollArea:this.calcScrollArea(this.props)})}renderWeekdays(){const e=new Date;return Ne.default.createElement("div",{className:this.styles.weekDays},(0,We.eachDayOfInterval)({start:(0,We.startOfWeek)(e,this.dateOptions),end:(0,We.endOfWeek)(e,this.dateOptions)}).map((n,r)=>Ne.default.createElement("span",{className:this.styles.weekDay,key:r},(0,We.format)(n,this.props.weekdayDisplayFormat,this.dateOptions))))}render(){const{showDateDisplay:e,onPreviewChange:n,scroll:r,direction:s,disabledDates:a,disabledDay:o,maxDate:i,minDate:l,rangeColors:c,color:d,navigatorRenderer:u,className:h,preview:g}=this.props,{scrollArea:m,focusedDate:p}=this.state,b=s==="vertical",y=u||this.renderMonthAndYear,v=this.props.ranges.map((k,x)=>({...k,color:k.color||c[x]||d}));return Ne.default.createElement("div",{className:(0,ss.default)(this.styles.calendarWrapper,h),onMouseUp:()=>this.setState({drag:{status:!1,range:{}}}),onMouseLeave:()=>{this.setState({drag:{status:!1,range:{}}})}},e&&this.renderDateDisplay(),y(p,this.changeShownDate,this.props),r.enabled?Ne.default.createElement("div",null,b&&this.renderWeekdays(this.dateOptions),Ne.default.createElement("div",{className:(0,ss.default)(this.styles.infiniteMonths,b?this.styles.monthsVertical:this.styles.monthsHorizontal),onMouseLeave:()=>n&&n(),style:{width:m.calendarWidth+11,height:m.calendarHeight+11},onScroll:this.handleScroll},Ne.default.createElement(yR.default,{length:(0,We.differenceInCalendarMonths)((0,We.endOfMonth)(i),(0,We.addDays)((0,We.startOfMonth)(l),-1),this.dateOptions),treshold:500,type:"variable",ref:k=>this.list=k,itemSizeEstimator:this.estimateMonthSize,axis:b?"y":"x",itemRenderer:(k,x)=>{const w=(0,We.addMonths)(l,k);return Ne.default.createElement(Vv.default,jl({},this.props,{onPreviewChange:n||this.updatePreview,preview:g||this.state.preview,ranges:v,key:x,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:a,disabledDay:o,month:w,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>n&&n(),styles:this.styles,style:b?{height:this.estimateMonthSize(k)}:{height:m.monthHeight,width:this.estimateMonthSize(k)},showMonthName:!0,showWeekDays:!b}))}}))):Ne.default.createElement("div",{className:(0,ss.default)(this.styles.months,b?this.styles.monthsVertical:this.styles.monthsHorizontal)},new Array(this.props.months).fill(null).map((k,x)=>{let w=(0,We.addMonths)(this.state.focusedDate,x);return this.props.calendarFocus==="backwards"&&(w=(0,We.subMonths)(this.state.focusedDate,this.props.months-1-x)),Ne.default.createElement(Vv.default,jl({},this.props,{onPreviewChange:n||this.updatePreview,preview:g||this.state.preview,ranges:v,key:x,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:a,disabledDay:o,month:w,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>n&&n(),styles:this.styles,showWeekDays:!b||x===0,showMonthName:!b||x>0}))})))}}qs.defaultProps={showMonthArrow:!0,showMonthAndYearPickers:!0,disabledDates:[],disabledDay:()=>{},classNames:{},locale:vR.enUS,ranges:[],focusedRange:[0,0],dateDisplayFormat:"MMM d, yyyy",monthDisplayFormat:"MMM yyyy",weekdayDisplayFormat:"E",dayDisplayFormat:"d",showDateDisplay:!0,showPreview:!0,displayMode:"date",months:1,color:"#3d91ff",scroll:{enabled:!1},direction:"vertical",maxDate:(0,We.addYears)(new Date,20),minDate:(0,We.addYears)(new Date,-100),rangeColors:["#3d91ff","#3ecf8e","#fed14c"],startDatePlaceholder:"Early",endDatePlaceholder:"Continuous",editableDateInputs:!1,dragSelectionEnabled:!0,fixedHeight:!1,calendarFocus:"forwards",preventSnapRefocus:!1,ariaLabels:{}},qs.propTypes={showMonthArrow:ue.default.bool,showMonthAndYearPickers:ue.default.bool,disabledDates:ue.default.array,disabledDay:ue.default.func,minDate:ue.default.object,maxDate:ue.default.object,date:ue.default.object,onChange:ue.default.func,onPreviewChange:ue.default.func,onRangeFocusChange:ue.default.func,classNames:ue.default.object,locale:ue.default.object,shownDate:ue.default.object,onShownDateChange:ue.default.func,ranges:ue.default.arrayOf(bR.rangeShape),preview:ue.default.shape({startDate:ue.default.object,endDate:ue.default.object,color:ue.default.string}),dateDisplayFormat:ue.default.string,monthDisplayFormat:ue.default.string,weekdayDisplayFormat:ue.default.string,weekStartsOn:ue.default.number,dayDisplayFormat:ue.default.string,focusedRange:ue.default.arrayOf(ue.default.number),initialFocusedRange:ue.default.arrayOf(ue.default.number),months:ue.default.number,className:ue.default.string,showDateDisplay:ue.default.bool,showPreview:ue.default.bool,displayMode:ue.default.oneOf(["dateRange","date"]),color:ue.default.string,updateRange:ue.default.func,scroll:ue.default.shape({enabled:ue.default.bool,monthHeight:ue.default.number,longMonthHeight:ue.default.number,monthWidth:ue.default.number,calendarWidth:ue.default.number,calendarHeight:ue.default.number}),direction:ue.default.oneOf(["vertical","horizontal"]),startDatePlaceholder:ue.default.string,endDatePlaceholder:ue.default.string,navigatorRenderer:ue.default.func,rangeColors:ue.default.arrayOf(ue.default.string),editableDateInputs:ue.default.bool,dragSelectionEnabled:ue.default.bool,fixedHeight:ue.default.bool,calendarFocus:ue.default.string,preventSnapRefocus:ue.default.bool,ariaLabels:kR.ariaLabelsShape},oo.default=qs,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var Kv=ER(_),$s=Il(Xn),Gv=Il(oo),CR=Kn,of=Jn,An=es,DR=Il(sr),MR=Il(rs);function Il(t){return t&&t.__esModule?t:{default:t}}function Qv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Qv=function(r){return r?n:e})(t)}function ER(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Qv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function lf(){return lf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},lf.apply(this,arguments)}function Al(t,e,n){return e=PR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function PR(t){var e=TR(t,"string");return typeof e=="symbol"?e:String(e)}function TR(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class cf extends Kv.Component{constructor(e,n){var r;super(e,n),r=this,Al(this,"calcNewSelection",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const o=r.props.focusedRange||r.state.focusedRange,{ranges:i,onChange:l,maxDate:c,moveRangeOnFirstSelection:d,retainEndDateOnFirstSelection:u,disabledDates:h}=r.props,g=o[0],m=i[g];if(!m||!l)return{};let{startDate:p,endDate:b}=m;const y=new Date;let v;if(!a)p=s.startDate,b=s.endDate;else if(o[1]===0){const w=(0,An.differenceInCalendarDays)(b||y,p),S=()=>d?(0,An.addDays)(s,w):u?!b||(0,An.isBefore)(s,b)?b:s:s||y;p=s,b=S(),c&&(b=(0,An.min)([b,c])),v=[o[0],1]}else b=s;let k=o[1]===0;(0,An.isBefore)(b,p)&&(k=!k,[p,b]=[b,p]);const x=h.filter(w=>(0,An.isWithinInterval)(w,{start:p,end:b}));return x.length>0&&(k?p=(0,An.addDays)((0,An.max)(x),1):b=(0,An.addDays)((0,An.min)(x),-1)),v||(v=[(0,of.findNextRangeIndex)(r.props.ranges,o[0]),0]),{wasValid:!(x.length>0),range:{startDate:p,endDate:b},nextFocusRange:v}}),Al(this,"setSelection",(s,a)=>{const{onChange:o,ranges:i,onRangeFocusChange:l}=this.props,d=(this.props.focusedRange||this.state.focusedRange)[0],u=i[d];if(!u)return;const h=this.calcNewSelection(s,a);o({[u.key||`range${d+1}`]:{...u,...h.range}}),this.setState({focusedRange:h.nextFocusRange,preview:null}),l&&l(h.nextFocusRange)}),Al(this,"handleRangeFocusChange",s=>{this.setState({focusedRange:s}),this.props.onRangeFocusChange&&this.props.onRangeFocusChange(s)}),Al(this,"updatePreview",s=>{var c;if(!s){this.setState({preview:null});return}const{rangeColors:a,ranges:o}=this.props,i=this.props.focusedRange||this.state.focusedRange,l=((c=o[i[0]])==null?void 0:c.color)||a[i[0]]||l;this.setState({preview:{...s.range,color:l}})}),this.state={focusedRange:e.initialFocusedRange||[(0,of.findNextRangeIndex)(e.ranges),0],preview:null},this.styles=(0,of.generateStyles)([MR.default,e.classNames])}render(){return Kv.default.createElement(Gv.default,lf({focusedRange:this.state.focusedRange,onRangeFocusChange:this.handleRangeFocusChange,preview:this.state.preview,onPreviewChange:e=>{this.updatePreview(e?this.calcNewSelection(e):null)}},this.props,{displayMode:"dateRange",className:(0,DR.default)(this.styles.dateRangeWrapper,this.props.className),onChange:this.setSelection,updateRange:e=>this.setSelection(e,!1),ref:e=>{this.calendar=e}}))}}cf.defaultProps={classNames:{},ranges:[],moveRangeOnFirstSelection:!1,retainEndDateOnFirstSelection:!1,rangeColors:["#3d91ff","#3ecf8e","#fed14c"],disabledDates:[]},cf.propTypes={...Gv.default.propTypes,onChange:$s.default.func,onRangeFocusChange:$s.default.func,className:$s.default.string,ranges:$s.default.arrayOf(CR.rangeShape),moveRangeOnFirstSelection:$s.default.bool,retainEndDateOnFirstSelection:$s.default.bool},ao.default=cf;var Rl={},bo={},kr={};Object.defineProperty(kr,"__esModule",{value:!0}),kr.createStaticRanges=Zv,kr.defaultStaticRanges=kr.defaultInputRanges=void 0;var Re=es;const ft={startOfWeek:(0,Re.startOfWeek)(new Date),endOfWeek:(0,Re.endOfWeek)(new Date),startOfLastWeek:(0,Re.startOfWeek)((0,Re.addDays)(new Date,-7)),endOfLastWeek:(0,Re.endOfWeek)((0,Re.addDays)(new Date,-7)),startOfToday:(0,Re.startOfDay)(new Date),endOfToday:(0,Re.endOfDay)(new Date),startOfYesterday:(0,Re.startOfDay)((0,Re.addDays)(new Date,-1)),endOfYesterday:(0,Re.endOfDay)((0,Re.addDays)(new Date,-1)),startOfMonth:(0,Re.startOfMonth)(new Date),endOfMonth:(0,Re.endOfMonth)(new Date),startOfLastMonth:(0,Re.startOfMonth)((0,Re.addMonths)(new Date,-1)),endOfLastMonth:(0,Re.endOfMonth)((0,Re.addMonths)(new Date,-1))},NR={range:{},isSelected(t){const e=this.range();return(0,Re.isSameDay)(t.startDate,e.startDate)&&(0,Re.isSameDay)(t.endDate,e.endDate)}};function Zv(t){return t.map(e=>({...NR,...e}))}kr.defaultStaticRanges=Zv([{label:"Today",range:()=>({startDate:ft.startOfToday,endDate:ft.endOfToday})},{label:"Yesterday",range:()=>({startDate:ft.startOfYesterday,endDate:ft.endOfYesterday})},{label:"This Week",range:()=>({startDate:ft.startOfWeek,endDate:ft.endOfWeek})},{label:"Last Week",range:()=>({startDate:ft.startOfLastWeek,endDate:ft.endOfLastWeek})},{label:"This Month",range:()=>({startDate:ft.startOfMonth,endDate:ft.endOfMonth})},{label:"Last Month",range:()=>({startDate:ft.startOfLastMonth,endDate:ft.endOfLastMonth})}]),kr.defaultInputRanges=[{label:"days up to today",range(t){return{startDate:(0,Re.addDays)(ft.startOfToday,(Math.max(Number(t),1)-1)*-1),endDate:ft.endOfToday}},getCurrentValue(t){return(0,Re.isSameDay)(t.endDate,ft.endOfToday)?t.startDate?(0,Re.differenceInCalendarDays)(ft.endOfToday,t.startDate)+1:"∞":"-"}},{label:"days starting today",range(t){const e=new Date;return{startDate:e,endDate:(0,Re.addDays)(e,Math.max(Number(t),1)-1)}},getCurrentValue(t){return(0,Re.isSameDay)(t.startDate,ft.startOfToday)?t.endDate?(0,Re.differenceInCalendarDays)(t.endDate,ft.startOfToday)+1:"∞":"-"}}];var Ll={};Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.default=void 0;var Fl=IR(_),Lt=jR(Xn);function jR(t){return t&&t.__esModule?t:{default:t}}function Jv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Jv=function(r){return r?n:e})(t)}function IR(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Jv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function AR(t,e,n){return e=RR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function RR(t){var e=LR(t,"string");return typeof e=="symbol"?e:String(e)}function LR(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const qv=0,$v=99999;class df extends Fl.Component{constructor(e,n){super(e,n),AR(this,"onChange",r=>{const{onChange:s}=this.props;let a=parseInt(r.target.value,10);a=isNaN(a)?0:Math.max(Math.min($v,a),qv),s(a)})}shouldComponentUpdate(e){const{value:n,label:r,placeholder:s}=this.props;return n!==e.value||r!==e.label||s!==e.placeholder}render(){const{label:e,placeholder:n,value:r,styles:s,onBlur:a,onFocus:o}=this.props;return Fl.default.createElement("div",{className:s.inputRange},Fl.default.createElement("input",{className:s.inputRangeInput,placeholder:n,value:r,min:qv,max:$v,onChange:this.onChange,onFocus:o,onBlur:a}),Fl.default.createElement("span",{className:s.inputRangeLabel},e))}}df.propTypes={value:Lt.default.oneOfType([Lt.default.string,Lt.default.number]),label:Lt.default.oneOfType([Lt.default.element,Lt.default.node]).isRequired,placeholder:Lt.default.string,styles:Lt.default.shape({inputRange:Lt.default.string,inputRangeInput:Lt.default.string,inputRangeLabel:Lt.default.string}).isRequired,onBlur:Lt.default.func.isRequired,onFocus:Lt.default.func.isRequired,onChange:Lt.default.func.isRequired},df.defaultProps={value:"",placeholder:"-"},Ll.default=df,Object.defineProperty(bo,"__esModule",{value:!0}),bo.default=void 0;var as=WR(_),Ut=Bl(Xn),os=Bl(rs),ex=kr,FR=Kn,BR=Bl(Ll),tx=Bl(sr);function Bl(t){return t&&t.__esModule?t:{default:t}}function nx(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(nx=function(r){return r?n:e})(t)}function WR(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=nx(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function zR(t,e,n){return e=HR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function HR(t){var e=YR(t,"string");return typeof e=="symbol"?e:String(e)}function YR(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class uf extends as.Component{constructor(e){super(e),zR(this,"handleRangeChange",n=>{const{onChange:r,ranges:s,focusedRange:a}=this.props,o=s[a[0]];!r||!o||r({[o.key||`range${a[0]+1}`]:{...o,...n}})}),this.state={rangeOffset:0,focusedInput:-1}}getRangeOptionValue(e){const{ranges:n=[],focusedRange:r=[]}=this.props;if(typeof e.getCurrentValue!="function")return"";const s=n[r[0]]||{};return e.getCurrentValue(s)||""}getSelectedRange(e,n){const r=e.findIndex(a=>!a.startDate||!a.endDate||a.disabled?!1:n.isSelected(a));return{selectedRange:e[r],focusedRangeIndex:r}}render(){const{headerContent:e,footerContent:n,onPreviewChange:r,inputRanges:s,staticRanges:a,ranges:o,renderStaticRangeLabel:i,rangeColors:l,className:c}=this.props;return as.default.createElement("div",{className:(0,tx.default)(os.default.definedRangesWrapper,c)},e,as.default.createElement("div",{className:os.default.staticRanges},a.map((d,u)=>{const{selectedRange:h,focusedRangeIndex:g}=this.getSelectedRange(o,d);let m;return d.hasCustomRendering?m=i(d):m=d.label,as.default.createElement("button",{type:"button",className:(0,tx.default)(os.default.staticRange,{[os.default.staticRangeSelected]:!!h}),style:{color:h?h.color||l[g]:null},key:u,onClick:()=>this.handleRangeChange(d.range(this.props)),onFocus:()=>r&&r(d.range(this.props)),onMouseOver:()=>r&&r(d.range(this.props)),onMouseLeave:()=>{r&&r()}},as.default.createElement("span",{tabIndex:-1,className:os.default.staticRangeLabel},m))})),as.default.createElement("div",{className:os.default.inputRanges},s.map((d,u)=>as.default.createElement(BR.default,{key:u,styles:os.default,label:d.label,onFocus:()=>this.setState({focusedInput:u,rangeOffset:0}),onBlur:()=>this.setState({rangeOffset:0}),onChange:h=>this.handleRangeChange(d.range(h,this.props)),value:this.getRangeOptionValue(d)}))),n)}}uf.propTypes={inputRanges:Ut.default.array,staticRanges:Ut.default.array,ranges:Ut.default.arrayOf(FR.rangeShape),focusedRange:Ut.default.arrayOf(Ut.default.number),onPreviewChange:Ut.default.func,onChange:Ut.default.func,footerContent:Ut.default.any,headerContent:Ut.default.any,rangeColors:Ut.default.arrayOf(Ut.default.string),className:Ut.default.string,renderStaticRangeLabel:Ut.default.func},uf.defaultProps={inputRanges:ex.defaultInputRanges,staticRanges:ex.defaultStaticRanges,ranges:[],rangeColors:["#3d91ff","#3ecf8e","#fed14c"],focusedRange:[0,0]},bo.default=uf,Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.default=void 0;var Wl=KR(_),VR=yo(Xn),rx=yo(ao),sx=yo(bo),ax=Jn,UR=yo(sr),XR=yo(rs);function yo(t){return t&&t.__esModule?t:{default:t}}function ox(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(ox=function(r){return r?n:e})(t)}function KR(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=ox(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function zl(){return zl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},zl.apply(this,arguments)}let ff=class extends Wl.Component{constructor(e){super(e),this.state={focusedRange:[(0,ax.findNextRangeIndex)(e.ranges),0]},this.styles=(0,ax.generateStyles)([XR.default,e.classNames])}render(){const{focusedRange:e}=this.state;return Wl.default.createElement("div",{className:(0,UR.default)(this.styles.dateRangePickerWrapper,this.props.className)},Wl.default.createElement(sx.default,zl({focusedRange:e,onPreviewChange:n=>this.dateRange.updatePreview(n?this.dateRange.calcNewSelection(n,typeof n=="string"):null)},this.props,{range:this.props.ranges[e[0]],className:void 0})),Wl.default.createElement(rx.default,zl({onRangeFocusChange:n=>this.setState({focusedRange:n}),focusedRange:e},this.props,{ref:n=>this.dateRange=n,className:void 0})))}};ff.defaultProps={},ff.propTypes={...rx.default.propTypes,...sx.default.propTypes,className:VR.default.string},Rl.default=ff,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Calendar",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"DateRange",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"DateRangePicker",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"DefinedRange",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"createStaticRanges",{enumerable:!0,get:function(){return a.createStaticRanges}}),Object.defineProperty(t,"defaultInputRanges",{enumerable:!0,get:function(){return a.defaultInputRanges}}),Object.defineProperty(t,"defaultStaticRanges",{enumerable:!0,get:function(){return a.defaultStaticRanges}});var e=o(ao),n=o(oo),r=o(Rl),s=o(bo),a=kr;function o(i){return i&&i.__esModule?i:{default:i}}}(iw);const GR={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},QR=(t,e,n)=>{let r;const s=GR[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},ZR={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},JR={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},qR={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$R={date:Gs({formats:ZR,defaultWidth:"full"}),time:Gs({formats:JR,defaultWidth:"full"}),dateTime:Gs({formats:qR,defaultWidth:"full"})},eL={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},tL={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},nL=(t,e,n,r)=>e.getHours()!==1?tL[t]:eL[t],rL={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},sL={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},aL={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},oL={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},iL={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},lL={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},cL={ordinalNumber:(t,e)=>Number(t)+"º",era:En({values:rL,defaultWidth:"wide"}),quarter:En({values:sL,defaultWidth:"wide",argumentCallback:t=>Number(t)-1}),month:En({values:aL,defaultWidth:"wide"}),day:En({values:oL,defaultWidth:"wide"}),dayPeriod:En({values:iL,defaultWidth:"wide",formattingValues:lL,defaultFormattingWidth:"wide"})},dL=/^(\d+)(º)?/i,uL=/\d+/i,fL={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},hL={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},gL={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},mL={any:[/1/i,/2/i,/3/i,/4/i]},pL={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},bL={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},yL={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},wL={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},vL={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},xL={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},kL={ordinalNumber:Zw({matchPattern:dL,parsePattern:uL,valueCallback:function(t){return parseInt(t,10)}}),era:Pn({matchPatterns:fL,defaultMatchWidth:"wide",parsePatterns:hL,defaultParseWidth:"any"}),quarter:Pn({matchPatterns:gL,defaultMatchWidth:"wide",parsePatterns:mL,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Pn({matchPatterns:pL,defaultMatchWidth:"wide",parsePatterns:bL,defaultParseWidth:"any"}),day:Pn({matchPatterns:yL,defaultMatchWidth:"wide",parsePatterns:wL,defaultParseWidth:"any"}),dayPeriod:Pn({matchPatterns:vL,defaultMatchWidth:"any",parsePatterns:xL,defaultParseWidth:"any"})},_L={code:"es",formatDistance:QR,formatLong:$R,formatRelative:nL,localize:cL,match:kL,options:{weekStartsOn:1,firstWeekContainsDate:1}},er={"date-container":"dateRangePicker-module__date-container__jh9s-","date-input":"dateRangePicker-module__date-input__xt4gs","date-popup":"dateRangePicker-module__date-popup__TQHMh","date-menu":"dateRangePicker-module__date-menu__Nv5nr","date-menuItem":"dateRangePicker-module__date-menuItem__AYJ32","date-menuItemReset":"dateRangePicker-module__date-menuItemReset__J9IdZ","date-calendar":"dateRangePicker-module__date-calendar__M10Iv"},SL=[{label:"Ayer",range:()=>{const t=new Date;return t.setDate(t.getDate()-1),{startDate:t,endDate:t}}},{label:"La semana pasada",range:()=>({startDate:rn(new Date,-6),endDate:new Date})},{label:"El mes pasado",range:()=>{const t=new Date,e=new Date(t.getFullYear(),t.getMonth()-1,1),n=new Date(t.getFullYear(),t.getMonth(),0);return{startDate:e,endDate:n}}}],OL=({value:t,onChange:e,minData:n,maxData:r,quickRanges:s,className:a})=>{const[o,i]=_.useState([{startDate:rn(new Date,-6),endDate:new Date,key:"selection"}]),[l,c]=_.useState(!1),[d,u]=_.useState({}),h=_.useRef(null),g=_.useRef(null),m=s??SL,p=t?[{...t,key:"selection"}]:o;_.useEffect(()=>{if(l&&g.current&&h.current){const x=g.current.getBoundingClientRect(),w=h.current.offsetWidth||700,S=window.innerWidth-x.right,N=x.left,M={right:0,left:"auto"};S<w&&N>=w&&(M.left=0,M.right="auto"),window.innerWidth<w&&(M.left=0,M.right=0,M.width="100vw",M.maxWidth="100vw"),u(M)}},[l]);const b=x=>{t||i([x.selection]),e==null||e(x.selection.startDate,x.selection.endDate)},y=x=>{const{startDate:w,endDate:S}=x();t||i([{startDate:w,endDate:S,key:"selection"}]),e==null||e(w,S),c(!1)},v=()=>{const x=new Date;t||i([{startDate:x,endDate:x,key:"selection"}]),e==null||e(x,x),c(!1)},k=x=>kl(x,"dd MMM yy");return _.useEffect(()=>{if(!l)return;const x=w=>{h.current&&!h.current.contains(w.target)&&g.current&&!g.current.contains(w.target)&&c(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[l]),f.jsxs("div",{className:er["date-container"],children:[f.jsx("input",{ref:g,type:"text",readOnly:!0,value:`${k(p[0].startDate)} - ${k(p[0].endDate)}`,onClick:()=>c(!l),className:`${er["date-input"]} ${a}`}),l&&f.jsxs("div",{ref:h,className:er["date-popup"],style:d,children:[f.jsxs("div",{className:er["date-menu"],children:[m.map((x,w)=>f.jsx("div",{className:er["date-menuItem"]+(w===2?" "+er["date-menuItemActive"]:""),onClick:()=>y(x.range),children:x.label},x.label)),f.jsx("div",{className:er["date-menuItem"]+" "+er["date-menuItemReset"],onClick:v,children:"Reset"})]}),f.jsx("div",{className:er["date-calendar"],children:f.jsx(iw.DateRange,{editableDateInputs:!1,onChange:b,moveRangeOnFirstSelection:!1,ranges:p,rangeColors:["#C0D4FF99"],minDate:n,maxDate:r,locale:_L,dayContentRenderer:x=>{const w=x.getDay(),S={opacity:w===0||w===6?.5:1,color:w===0||w===6?"#999":"inherit"};return f.jsx("span",{style:S,children:x.getDate()})},navigationButtonsPosition:"center"})})]})]})},CL=({minDate:t,maxDate:e})=>f.jsx(ah,{minDate:t,maxDate:e,className:"custom-datepicker"}),is={"loader-wrapper":"loader-module__loader-wrapper__faxmX",container:"loader-module__container__Vj8hl","mathilde-loading":"loader-module__mathilde-loading__qdEVv","loading-1":"loader-module__loading-1__mro54",logo:"loader-module__logo__IXZKs","ball-container":"loader-module__ball-container__qDvi5",ball:"loader-module__ball__MSPUh"},DL=function(){return f.jsx("div",{className:`mth_loader ${is["loader-wrapper"]}`,children:f.jsx("div",{className:is.container,children:f.jsxs("div",{className:is["mathilde-loading"],children:[f.jsx("img",{className:is.logo,src:"https://ftp.mathilde-ads.com/345-38ea95da72fc8edd1d853f315945b449.png",alt:"Logo Mathilde"}),f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:is["loading-1"],children:f.jsx("circle",{cx:"50",cy:"50",r:"40"})}),f.jsx("div",{className:is["ball-container"],children:f.jsx("div",{className:is.ball})})]})})})},ML=({label:t,dismissOnClick:e,items:n,size:r,className:s,styles:a,mode:o="simple",columns:i=2,onSelectionChange:l,selectedItems:c=[],activeChevron:d=!0,icon:u,iconSize:h=20})=>{const[g,m]=_.useState(c),p=(k,x)=>{const w=x?[...g,k]:g.filter(S=>S!==k);m(w),l==null||l(w)},b=()=>n.map(k=>f.jsx(Pc,{...k,href:k.href,children:k.label},k.value||k.label)),y=()=>{const k=i===1?"grid-cols-1":i===2?"grid-cols-2":i===3?"grid-cols-3":i===4?"grid-cols-4":"grid-cols-2";return f.jsx("div",{className:`grid min-w-[200px] gap-2 p-2 ${k}`,children:n.map(x=>{const w=x.value||x.label,S=g.includes(w);return f.jsxs("label",{className:"flex cursor-pointer items-center gap-2 rounded p-2 hover:bg-gray-100",children:[f.jsx("input",{type:"checkbox",checked:S,onChange:N=>p(w,N.target.checked),disabled:x.disabled,className:"size-3 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-blue-500"}),f.jsx("span",{className:`text-xs ${x.disabled?"text-gray-400":"text-black"}`,children:x.label})]},w)})})},v=k=>{if(!k)return null;if(typeof k=="string")return f.jsx("img",{src:k,alt:"icon",width:h,height:h});const x=k;return f.jsx(x,{size:h})};return f.jsx(f.Fragment,{children:f.jsx(w_,{label:t,dismissOnClick:o==="simple"?e:!1,size:r,renderTrigger:()=>f.jsx("button",{className:s,style:a,type:"button",children:f.jsxs("span",{className:"flex items-center gap-2",children:[v(u),t,d&&v(Xl)]})}),className:"left-0",children:o==="simple"?b():y()})})},EL=function({steps:t=[],initialStep:e=1,activeStep:n,onStepChange:r,renderControls:s,onNext:a,onBack:o,onFinish:i}){var b;const l=typeof n=="number",[c,d]=_.useState(e),u=l?n:c,h=()=>{if(u<t.length){const y=u+1;l?(r==null||r(y),a==null||a()):(d(y),a==null||a())}else i==null||i()},g=()=>{if(u>1){const y=u-1;l?(r==null||r(y),o==null||o()):(d(y),o==null||o())}},m=y=>{y!==u&&(y<1||y>t.length||(l?r==null||r(y):d(y)))},p={activeStep:u,stepsLength:t.length,isFirst:u===1,isLast:u===t.length,next:h,back:g,goToStep:m};return f.jsxs("div",{className:"mx-auto flex w-full flex-col md:flex-row",children:[f.jsx("ol",{className:"relative border-s-2 border-[#191960] text-gray-500 dark:border-gray-700 dark:text-gray-400 w-full self-start",children:t.map((y,v)=>{const k=v===t.length-1,x=v+1===u,w=v+1<u;return f.jsxs("li",{className:`ms-4 ${k?"":"mb-8"}`,children:[f.jsx("span",{className:`absolute -start-2 size-3.5 items-center justify-center rounded-full ring-1
581
+ */var pu,uw;function gN(){if(uw)return pu;uw=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},i=0;i<10;i++)o["_"+String.fromCharCode(i)]=i;var l=Object.getOwnPropertyNames(o).map(function(d){return o[d]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return pu=s()?Object.assign:function(a,o){for(var i,l=r(a),c,d=1;d<arguments.length;d++){i=Object(arguments[d]);for(var u in i)e.call(i,u)&&(l[u]=i[u]);if(t){c=t(i);for(var h=0;h<c.length;h++)n.call(i,c[h])&&(l[c[h]]=i[c[h]])}}return l},pu}var bu,fw;function yu(){if(fw)return bu;fw=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return bu=t,bu}var wu,hw;function gw(){return hw||(hw=1,wu=Function.call.bind(Object.prototype.hasOwnProperty)),wu}var vu,mw;function mN(){if(mw)return vu;mw=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=yu(),n={},r=gw();t=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function s(a,o,i,l,c){if(process.env.NODE_ENV!=="production"){for(var d in a)if(r(a,d)){var u;try{if(typeof a[d]!="function"){var h=Error((l||"React class")+": "+i+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}u=a[d](o,d,l,i,null,e)}catch(m){u=m}if(u&&!(u instanceof Error)&&t((l||"React class")+": type specification of "+i+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var g=c?c():"";t("Failed "+i+" type: "+u.message+(g??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},vu=s,vu}var xu,pw;function pN(){if(pw)return xu;pw=1;var t=dw(),e=gN(),n=yu(),r=gw(),s=mN(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(i){var l="Warning: "+i;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return xu=function(i,l){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(j){var V=j&&(c&&j[c]||j[d]);if(typeof V=="function")return V}var h="<<anonymous>>",g={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:v(),arrayOf:k,element:x(),elementType:w(),instanceOf:S,node:P(),objectOf:M,oneOf:N,oneOfType:T,shape:F,exact:O};function m(j,V){return j===V?j!==0||1/j===1/V:j!==j&&V!==V}function p(j,V){this.message=j,this.data=V&&typeof V=="object"?V:{},this.stack=""}p.prototype=Error.prototype;function b(j){if(process.env.NODE_ENV!=="production")var V={},L=0;function R(D,Y,J,K,I,q,te){if(K=K||h,q=q||J,te!==n){if(l){var B=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw B.name="Invariant Violation",B}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var re=K+":"+J;!V[re]&&L<3&&(a("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[re]=!0,L++)}}return Y[J]==null?D?Y[J]===null?new p("The "+I+" `"+q+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new p("The "+I+" `"+q+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:j(Y,J,K,I,q)}var A=R.bind(null,!1);return A.isRequired=R.bind(null,!0),A}function y(j){function V(L,R,A,D,Y,J){var K=L[R],I=W(K);if(I!==j){var q=U(K);return new p("Invalid "+D+" `"+Y+"` of type "+("`"+q+"` supplied to `"+A+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return b(V)}function v(){return b(o)}function k(j){function V(L,R,A,D,Y){if(typeof j!="function")return new p("Property `"+Y+"` of component `"+A+"` has invalid PropType notation inside arrayOf.");var J=L[R];if(!Array.isArray(J)){var K=W(J);return new p("Invalid "+D+" `"+Y+"` of type "+("`"+K+"` supplied to `"+A+"`, expected an array."))}for(var I=0;I<J.length;I++){var q=j(J,I,A,D,Y+"["+I+"]",n);if(q instanceof Error)return q}return null}return b(V)}function x(){function j(V,L,R,A,D){var Y=V[L];if(!i(Y)){var J=W(Y);return new p("Invalid "+A+" `"+D+"` of type "+("`"+J+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return b(j)}function w(){function j(V,L,R,A,D){var Y=V[L];if(!t.isValidElementType(Y)){var J=W(Y);return new p("Invalid "+A+" `"+D+"` of type "+("`"+J+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return b(j)}function S(j){function V(L,R,A,D,Y){if(!(L[R]instanceof j)){var J=j.name||h,K=ee(L[R]);return new p("Invalid "+D+" `"+Y+"` of type "+("`"+K+"` supplied to `"+A+"`, expected ")+("instance of `"+J+"`."))}return null}return b(V)}function N(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function V(L,R,A,D,Y){for(var J=L[R],K=0;K<j.length;K++)if(m(J,j[K]))return null;var I=JSON.stringify(j,function(te,B){var re=U(B);return re==="symbol"?String(B):B});return new p("Invalid "+D+" `"+Y+"` of value `"+String(J)+"` "+("supplied to `"+A+"`, expected one of "+I+"."))}return b(V)}function M(j){function V(L,R,A,D,Y){if(typeof j!="function")return new p("Property `"+Y+"` of component `"+A+"` has invalid PropType notation inside objectOf.");var J=L[R],K=W(J);if(K!=="object")return new p("Invalid "+D+" `"+Y+"` of type "+("`"+K+"` supplied to `"+A+"`, expected an object."));for(var I in J)if(r(J,I)){var q=j(J,I,A,D,Y+"."+I,n);if(q instanceof Error)return q}return null}return b(V)}function T(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var V=0;V<j.length;V++){var L=j[V];if(typeof L!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+G(L)+" at index "+V+"."),o}function R(A,D,Y,J,K){for(var I=[],q=0;q<j.length;q++){var te=j[q],B=te(A,D,Y,J,K,n);if(B==null)return null;B.data&&r(B.data,"expectedType")&&I.push(B.data.expectedType)}var re=I.length>0?", expected one of type ["+I.join(", ")+"]":"";return new p("Invalid "+J+" `"+K+"` supplied to "+("`"+Y+"`"+re+"."))}return b(R)}function P(){function j(V,L,R,A,D){return C(V[L])?null:new p("Invalid "+A+" `"+D+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return b(j)}function z(j,V,L,R,A){return new p((j||"React class")+": "+V+" type `"+L+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+A+"`.")}function F(j){function V(L,R,A,D,Y){var J=L[R],K=W(J);if(K!=="object")return new p("Invalid "+D+" `"+Y+"` of type `"+K+"` "+("supplied to `"+A+"`, expected `object`."));for(var I in j){var q=j[I];if(typeof q!="function")return z(A,D,Y,I,U(q));var te=q(J,I,A,D,Y+"."+I,n);if(te)return te}return null}return b(V)}function O(j){function V(L,R,A,D,Y){var J=L[R],K=W(J);if(K!=="object")return new p("Invalid "+D+" `"+Y+"` of type `"+K+"` "+("supplied to `"+A+"`, expected `object`."));var I=e({},L[R],j);for(var q in I){var te=j[q];if(r(j,q)&&typeof te!="function")return z(A,D,Y,q,U(te));if(!te)return new p("Invalid "+D+" `"+Y+"` key `"+q+"` supplied to `"+A+"`.\nBad object: "+JSON.stringify(L[R],null," ")+`
582
+ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var B=te(J,q,A,D,Y+"."+q,n);if(B)return B}return null}return b(V)}function C(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(C);if(j===null||i(j))return!0;var V=u(j);if(V){var L=V.call(j),R;if(V!==j.entries){for(;!(R=L.next()).done;)if(!C(R.value))return!1}else for(;!(R=L.next()).done;){var A=R.value;if(A&&!C(A[1]))return!1}}else return!1;return!0;default:return!1}}function E(j,V){return j==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function W(j){var V=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":E(V,j)?"symbol":V}function U(j){if(typeof j>"u"||j===null)return""+j;var V=W(j);if(V==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return V}function G(j){var V=U(j);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function ee(j){return!j.constructor||!j.constructor.name?h:j.constructor.name}return g.checkPropTypes=s,g.resetWarningCache=s.resetWarningCache,g.PropTypes=g,g},xu}var ku,bw;function bN(){if(bw)return ku;bw=1;var t=yu();function e(){}function n(){}return n.resetWarningCache=e,ku=function(){function r(o,i,l,c,d,u){if(u!==t){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function s(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:e};return a.PropTypes=a,a},ku}if(process.env.NODE_ENV!=="production"){var yN=dw(),wN=!0;mu.exports=pN()(yN.isElement,wN)}else mu.exports=bN()();var Xn=mu.exports,oo={},Gn={};const yw=7,il=365.2425,io=6048e5,ww=864e5,Kn=6e4,Jr=36e5,_u=1e3,vw=525600,Ys=43200,ll=1440,xw=60,kw=3,_w=12,Sw=4,cl=3600,Su=60,Ou=cl*24,vN=Ou*7,Ow=Ou*il,Cw=Ow/12,xN=Cw*3,Dw=Symbol.for("constructDateFrom");function oe(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Dw in t?t[Dw](e):t instanceof Date?new t.constructor(e):new Date(e)}function Z(t,e){return oe(e||t,t)}function rn(t,e,n){const r=Z(t,n==null?void 0:n.in);return isNaN(e)?oe((n==null?void 0:n.in)||t,NaN):(e&&r.setDate(r.getDate()+e),r)}function lo(t,e,n){const r=Z(t,n==null?void 0:n.in);if(isNaN(e))return oe((n==null?void 0:n.in)||t,NaN);if(!e)return r;const s=r.getDate(),a=oe((n==null?void 0:n.in)||t,r.getTime());a.setMonth(r.getMonth()+e+1,0);const o=a.getDate();return s>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),s),r)}function Vs(t,e,n){const{years:r=0,months:s=0,weeks:a=0,days:o=0,hours:i=0,minutes:l=0,seconds:c=0}=e,d=Z(t,n==null?void 0:n.in),u=s||r?lo(d,s+r*12):d,h=o||a?rn(u,o+a*7):u,g=l+i*60,p=(c+g*60)*1e3;return oe((n==null?void 0:n.in)||t,+h+p)}function Mw(t,e){return Z(t,e==null?void 0:e.in).getDay()===6}function Ew(t,e){return Z(t,e==null?void 0:e.in).getDay()===0}function Us(t,e){const n=Z(t,e==null?void 0:e.in).getDay();return n===0||n===6}function Pw(t,e,n){const r=Z(t,n==null?void 0:n.in),s=Us(r,n);if(isNaN(e))return oe(n==null?void 0:n.in,NaN);const a=r.getHours(),o=e<0?-1:1,i=Math.trunc(e/5);r.setDate(r.getDate()+i*7);let l=Math.abs(e%5);for(;l>0;)r.setDate(r.getDate()+o),Us(r,n)||(l-=1);return s&&Us(r,n)&&e!==0&&(Mw(r,n)&&r.setDate(r.getDate()+(o<0?2:-1)),Ew(r,n)&&r.setDate(r.getDate()+(o<0?1:-2))),r.setHours(a),r}function dl(t,e,n){return oe((n==null?void 0:n.in)||t,+Z(t)+e)}function Tw(t,e,n){return dl(t,e*Jr,n)}let Nw={};function Ct(){return Nw}function kN(t){Nw=t}function bt(t,e){var i,l,c,d;const n=Ct(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Z(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?7:0)+a-r;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function un(t,e){return bt(t,{...e,weekStartsOn:1})}function br(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=oe(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const a=un(s),o=oe(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const i=un(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function Rt(t){const e=Z(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Te(t,...e){const n=oe.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function Xs(t,e){const n=Z(t,e==null?void 0:e.in);return n.setHours(0,0,0,0),n}function Dn(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=Xs(r),o=Xs(s),i=+a-Rt(a),l=+o-Rt(o);return Math.round((i-l)/ww)}function yr(t,e){const n=br(t,e),r=oe((e==null?void 0:e.in)||t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),un(r)}function jw(t,e,n){let r=Z(t,n==null?void 0:n.in);const s=Dn(r,yr(r,n)),a=oe((n==null?void 0:n.in)||t,0);return a.setFullYear(e,0,4),a.setHours(0,0,0,0),r=yr(a),r.setDate(r.getDate()+s),r}function Iw(t,e,n){return jw(t,br(t,n)+e,n)}function Cu(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setTime(r.getTime()+e*Kn),r}function Du(t,e,n){return lo(t,e*3,n)}function Aw(t,e,n){return dl(t,e*1e3,n)}function ul(t,e,n){return rn(t,e*7,n)}function Rw(t,e,n){return lo(t,e*12,n)}function _N(t,e,n){const[r,s]=[+Z(t.start,n==null?void 0:n.in),+Z(t.end,n==null?void 0:n.in)].sort((i,l)=>i-l),[a,o]=[+Z(e.start,n==null?void 0:n.in),+Z(e.end,n==null?void 0:n.in)].sort((i,l)=>i-l);return n!=null&&n.inclusive?r<=o&&a<=s:r<o&&a<s}function Lw(t,e){let n,r=e==null?void 0:e.in;return t.forEach(s=>{!r&&typeof s=="object"&&(r=oe.bind(null,s));const a=Z(s,r);(!n||n<a||isNaN(+a))&&(n=a)}),oe(r,n||NaN)}function Fw(t,e){let n,r=e==null?void 0:e.in;return t.forEach(s=>{!r&&typeof s=="object"&&(r=oe.bind(null,s));const a=Z(s,r);(!n||n>a||isNaN(+a))&&(n=a)}),oe(r,n||NaN)}function SN(t,e,n){const[r,s,a]=Te(n==null?void 0:n.in,t,e.start,e.end);return Fw([Lw([r,s],n),a],n)}function Bw(t,e){const n=+Z(t);if(isNaN(n))return NaN;let r,s;return e.forEach((a,o)=>{const i=Z(a);if(isNaN(+i)){r=NaN,s=NaN;return}const l=Math.abs(n-+i);(r==null||l<s)&&(r=o,s=l)}),r}function ON(t,e,n){const[r,...s]=Te(n==null?void 0:n.in,t,...e),a=Bw(r,s);if(typeof a=="number"&&isNaN(a))return oe(r,NaN);if(a!==void 0)return s[a]}function Mn(t,e){const n=+Z(t)-+Z(e);return n<0?-1:n>0?1:n}function CN(t,e){const n=+Z(t)-+Z(e);return n>0?-1:n<0?1:n}function st(t){return oe(t,Date.now())}function DN(t){const e=Math.trunc(t/yw);return e===0?0:e}function co(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return+Xs(r)==+Xs(s)}function Ww(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Qn(t){return!(!Ww(t)&&typeof t!="number"||isNaN(+Z(t)))}function MN(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);if(!Qn(r)||!Qn(s))return NaN;const a=Dn(r,s),o=a<0?-1:1,i=Math.trunc(a/7);let l=i*5,c=rn(s,i*7);for(;!co(r,c);)l+=Us(c,n)?0:o,c=rn(c,o);return l===0?0:l}function zw(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return br(r,n)-br(s,n)}function EN(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=un(r),o=un(s),i=+a-Rt(a),l=+o-Rt(o);return Math.round((i-l)/io)}function fl(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=r.getFullYear()-s.getFullYear(),o=r.getMonth()-s.getMonth();return a*12+o}function Mu(t,e){const n=Z(t,e==null?void 0:e.in);return Math.trunc(n.getMonth()/3)+1}function hl(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=r.getFullYear()-s.getFullYear(),o=Mu(r)-Mu(s);return a*4+o}function gl(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=bt(r,n),o=bt(s,n),i=+a-Rt(a),l=+o-Rt(o);return Math.round((i-l)/io)}function uo(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return r.getFullYear()-s.getFullYear()}function Eu(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=Hw(r,s),o=Math.abs(Dn(r,s));r.setDate(r.getDate()-a*o);const i=+(Hw(r,s)===-a),l=a*(o-i);return l===0?0:l}function Hw(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function wr(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function ml(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=(+r-+s)/Jr;return wr(n==null?void 0:n.roundingMethod)(a)}function Yw(t,e,n){return Iw(t,-e,n)}function PN(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=Mn(r,s),o=Math.abs(zw(r,s,n)),i=Yw(r,a*o,n),l=+(Mn(i,s)===-a),c=a*(o-l);return c===0?0:c}function Pu(t,e){return+Z(t)-+Z(e)}function pl(t,e,n){const r=Pu(t,e)/Kn;return wr(n==null?void 0:n.roundingMethod)(r)}function Tu(t,e){const n=Z(t,e==null?void 0:e.in);return n.setHours(23,59,59,999),n}function Nu(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Vw(t,e){const n=Z(t,e==null?void 0:e.in);return+Tu(n,e)==+Nu(n,e)}function bl(t,e,n){const[r,s,a]=Te(n==null?void 0:n.in,t,t,e),o=Mn(s,a),i=Math.abs(fl(s,a));if(i<1)return 0;s.getMonth()===1&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-o*i);let l=Mn(s,a)===-o;Vw(r)&&i===1&&Mn(r,a)===1&&(l=!1);const c=o*(i-+l);return c===0?0:c}function TN(t,e,n){const r=bl(t,e,n)/3;return wr(n==null?void 0:n.roundingMethod)(r)}function Gs(t,e,n){const r=Pu(t,e)/1e3;return wr(n==null?void 0:n.roundingMethod)(r)}function NN(t,e,n){const r=Eu(t,e,n)/7;return wr(n==null?void 0:n.roundingMethod)(r)}function Uw(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=Mn(r,s),o=Math.abs(uo(r,s));r.setFullYear(1584),s.setFullYear(1584);const i=Mn(r,s)===-a,l=a*(o-+i);return l===0?0:l}function Zn(t,e){const[n,r]=Te(t,e.start,e.end);return{start:n,end:r}}function Xw(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(oe(n,o)),o.setDate(o.getDate()+i),o.setHours(0,0,0,0);return s?l.reverse():l}function jN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setMinutes(0,0,0);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(oe(n,o)),o.setHours(o.getHours()+i);return s?l.reverse():l}function IN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);n.setSeconds(0,0);let s=+n>+r;const a=s?+n:+r;let o=s?r:n,i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(oe(n,o)),o=Cu(o,i);return s?l.reverse():l}function AN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0),o.setDate(1);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(oe(n,o)),o.setMonth(o.getMonth()+i);return s?l.reverse():l}function qr(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3;return n.setMonth(s,1),n.setHours(0,0,0,0),n}function RN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+qr(n):+qr(r);let o=qr(s?r:n),i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(oe(n,o)),o=Du(o,i);return s?l.reverse():l}function LN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=bt(s?r:n,e),o=bt(s?n:r,e);a.setHours(15),o.setHours(15);const i=+o.getTime();let l=a,c=(e==null?void 0:e.step)??1;if(!c)return[];c<0&&(c=-c,s=!s);const d=[];for(;+l<=i;)l.setHours(0),d.push(oe(n,l)),l=ul(l,c),l.setHours(15);return s?d.reverse():d}function ju(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t),s=Xw({start:n,end:r},e),a=[];let o=0;for(;o<s.length;){const i=s[o++];Us(i)&&a.push(oe(n,i))}return a}function yl(t,e){const n=Z(t,e==null?void 0:e.in);return n.setDate(1),n.setHours(0,0,0,0),n}function FN(t,e){const n=yl(t,e),r=Nu(t,e);return ju({start:n,end:r},e)}function Gw(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Iu(t,e){const n=Z(t,e==null?void 0:e.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function BN(t,e){const n=Iu(t,e),r=Gw(t,e);return ju({start:n,end:r},e)}function WN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(oe(n,o)),o.setFullYear(o.getFullYear()+i);return s?l.reverse():l}function zN(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=9+Math.floor(r/10)*10;return n.setFullYear(s,11,31),n.setHours(23,59,59,999),n}function HN(t,e){const n=Z(t,e==null?void 0:e.in);return n.setMinutes(59,59,999),n}function Kw(t,e){var i,l,c,d;const n=Ct(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Z(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?-7:0)+6-(a-r);return s.setDate(s.getDate()+o),s.setHours(23,59,59,999),s}function YN(t,e){return Kw(t,{...e,weekStartsOn:1})}function VN(t,e){const n=br(t,e),r=oe((e==null?void 0:e.in)||t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=un(r,e);return s.setMilliseconds(s.getMilliseconds()-1),s}function UN(t,e){const n=Z(t,e==null?void 0:e.in);return n.setSeconds(59,999),n}function XN(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3+3;return n.setMonth(s,0),n.setHours(23,59,59,999),n}function GN(t,e){const n=Z(t,e==null?void 0:e.in);return n.setMilliseconds(999),n}function KN(t){return Tu(Date.now(),t)}function QN(t){const e=st(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=st(t==null?void 0:t.in);return a.setFullYear(n,r,s+1),a.setHours(23,59,59,999),t!=null&&t.in?t.in(a):a}function ZN(t){const e=st(t==null?void 0:t.in),n=oe(t==null?void 0:t.in,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),n.setHours(23,59,59,999),n}const JN={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},qN=(t,e,n)=>{let r;const s=JN[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ks(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const $N={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ej={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},tj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nj={date:Ks({formats:$N,defaultWidth:"full"}),time:Ks({formats:ej,defaultWidth:"full"}),dateTime:Ks({formats:tj,defaultWidth:"full"})},rj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},sj=(t,e,n,r)=>rj[t];function En(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):o;s=t.formattingValues[i]||t.formattingValues[o]}else{const o=t.defaultWidth,i=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[i]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(e):e;return s[a]}}const aj={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},oj={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ij={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},lj={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},cj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},dj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},uj={ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:En({values:aj,defaultWidth:"wide"}),quarter:En({values:oj,defaultWidth:"wide",argumentCallback:t=>t-1}),month:En({values:ij,defaultWidth:"wide"}),day:En({values:lj,defaultWidth:"wide"}),dayPeriod:En({values:cj,defaultWidth:"wide",formattingValues:dj,defaultFormattingWidth:"wide"})};function Pn(t){return(e,n={})=>{const r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(s);if(!a)return null;const o=a[0],i=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(i)?hj(i,u=>u.test(o)):fj(i,u=>u.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const d=e.slice(o.length);return{value:c,rest:d}}}function fj(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function hj(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function Qw(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const s=r[0],a=e.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const i=e.slice(s.length);return{value:o,rest:i}}}const gj=/^(\d+)(th|st|nd|rd)?/i,mj=/\d+/i,pj={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},bj={any:[/^b/i,/^(a|c)/i]},yj={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},wj={any:[/1/i,/2/i,/3/i,/4/i]},vj={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},xj={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},kj={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},_j={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Sj={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Oj={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Cj={ordinalNumber:Qw({matchPattern:gj,parsePattern:mj,valueCallback:t=>parseInt(t,10)}),era:Pn({matchPatterns:pj,defaultMatchWidth:"wide",parsePatterns:bj,defaultParseWidth:"any"}),quarter:Pn({matchPatterns:yj,defaultMatchWidth:"wide",parsePatterns:wj,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Pn({matchPatterns:vj,defaultMatchWidth:"wide",parsePatterns:xj,defaultParseWidth:"any"}),day:Pn({matchPatterns:kj,defaultMatchWidth:"wide",parsePatterns:_j,defaultParseWidth:"any"}),dayPeriod:Pn({matchPatterns:Sj,defaultMatchWidth:"any",parsePatterns:Oj,defaultParseWidth:"any"})},Qs={code:"en-US",formatDistance:qN,formatLong:nj,formatRelative:sj,localize:uj,match:Cj,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Zw(t,e){const n=Z(t,e==null?void 0:e.in);return Dn(n,Iu(n))+1}function Au(t,e){const n=Z(t,e==null?void 0:e.in),r=+un(n)-+yr(n);return Math.round(r/io)+1}function wl(t,e){var d,u,h,g;const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=Ct(),a=(e==null?void 0:e.firstWeekContainsDate)??((u=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??s.firstWeekContainsDate??((g=(h=s.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,o=oe((e==null?void 0:e.in)||t,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const i=bt(o,e),l=oe((e==null?void 0:e.in)||t,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=bt(l,e);return+n>=+i?r+1:+n>=+c?r:r-1}function vl(t,e){var i,l,c,d;const n=Ct(),r=(e==null?void 0:e.firstWeekContainsDate)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,s=wl(t,e),a=oe((e==null?void 0:e.in)||t,0);return a.setFullYear(s,0,r),a.setHours(0,0,0,0),bt(a,e)}function Ru(t,e){const n=Z(t,e==null?void 0:e.in),r=+bt(n,e)-+vl(n,e);return Math.round(r/io)+1}function ce(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const Tn={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return ce(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):ce(n+1,2)},d(t,e){return ce(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return ce(t.getHours()%12||12,e.length)},H(t,e){return ce(t.getHours(),e.length)},m(t,e){return ce(t.getMinutes(),e.length)},s(t,e){return ce(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return ce(s,e.length)}},Zs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Lu={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Tn.y(t,e)},Y:function(t,e,n,r){const s=wl(t,r),a=s>0?s:1-s;if(e==="YY"){const o=a%100;return ce(o,2)}return e==="Yo"?n.ordinalNumber(a,{unit:"year"}):ce(a,e.length)},R:function(t,e){const n=br(t);return ce(n,e.length)},u:function(t,e){const n=t.getFullYear();return ce(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return ce(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return ce(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return Tn.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return ce(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const s=Ru(t,r);return e==="wo"?n.ordinalNumber(s,{unit:"week"}):ce(s,e.length)},I:function(t,e,n){const r=Au(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):ce(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Tn.d(t,e)},D:function(t,e,n){const r=Zw(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ce(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const s=t.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return ce(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const s=t.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return ce(a,e.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),s=r===0?7:r;switch(e){case"i":return String(s);case"ii":return ce(s,e.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let s;switch(r===12?s=Zs.noon:r===0?s=Zs.midnight:s=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let s;switch(r>=17?s=Zs.evening:r>=12?s=Zs.afternoon:r>=4?s=Zs.morning:s=Zs.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Tn.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Tn.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ce(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):ce(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Tn.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Tn.s(t,e)},S:function(t,e){return Tn.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return qw(r);case"XXXX":case"XX":return $r(r);case"XXXXX":case"XXX":default:return $r(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return qw(r);case"xxxx":case"xx":return $r(r);case"xxxxx":case"xxx":default:return $r(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Jw(r,":");case"OOOO":default:return"GMT"+$r(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Jw(r,":");case"zzzz":default:return"GMT"+$r(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return ce(r,e.length)},T:function(t,e,n){return ce(+t,e.length)}};function Jw(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=Math.trunc(r/60),a=r%60;return a===0?n+String(s):n+String(s)+e+ce(a,2)}function qw(t,e){return t%60===0?(t>0?"-":"+")+ce(Math.abs(t)/60,2):$r(t,e)}function $r(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=ce(Math.trunc(r/60),2),a=ce(r%60,2);return n+s+e+a}const $w=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},ev=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},xl={p:ev,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return $w(t,e);let a;switch(r){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",$w(r,e)).replace("{{time}}",ev(s,e))}},Dj=/^D+$/,Mj=/^Y+$/,Ej=["D","DD","YY","YYYY"];function tv(t){return Dj.test(t)}function nv(t){return Mj.test(t)}function Fu(t,e,n){const r=Pj(t,e,n);if(console.warn(r),Ej.includes(t))throw new RangeError(r)}function Pj(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Tj=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Nj=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jj=/^'([^]*?)'?$/,Ij=/''/g,Aj=/[a-zA-Z]/;function kl(t,e,n){var d,u,h,g,m,p,b,y;const r=Ct(),s=(n==null?void 0:n.locale)??r.locale??Qs,a=(n==null?void 0:n.firstWeekContainsDate)??((u=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((p=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((y=(b=r.locale)==null?void 0:b.options)==null?void 0:y.weekStartsOn)??0,i=Z(t,n==null?void 0:n.in);if(!Qn(i))throw new RangeError("Invalid time value");let l=e.match(Nj).map(v=>{const k=v[0];if(k==="p"||k==="P"){const x=xl[k];return x(v,s.formatLong)}return v}).join("").match(Tj).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const k=v[0];if(k==="'")return{isToken:!1,value:Rj(v)};if(Lu[k])return{isToken:!0,value:v};if(k.match(Aj))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");return{isToken:!1,value:v}});s.localize.preprocessor&&(l=s.localize.preprocessor(i,l));const c={firstWeekContainsDate:a,weekStartsOn:o,locale:s};return l.map(v=>{if(!v.isToken)return v.value;const k=v.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&nv(k)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&tv(k))&&Fu(k,e,String(t));const x=Lu[k[0]];return x(i,k,s.localize,c)}).join("")}function Rj(t){const e=t.match(jj);return e?e[1].replace(Ij,"'"):t}function rv(t,e,n){const r=Ct(),s=(n==null?void 0:n.locale)??r.locale??Qs,a=2520,o=Mn(t,e);if(isNaN(o))throw new RangeError("Invalid time value");const i=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:o}),[l,c]=Te(n==null?void 0:n.in,...o>0?[e,t]:[t,e]),d=Gs(c,l),u=(Rt(c)-Rt(l))/1e3,h=Math.round((d-u)/60);let g;if(h<2)return n!=null&&n.includeSeconds?d<5?s.formatDistance("lessThanXSeconds",5,i):d<10?s.formatDistance("lessThanXSeconds",10,i):d<20?s.formatDistance("lessThanXSeconds",20,i):d<40?s.formatDistance("halfAMinute",0,i):d<60?s.formatDistance("lessThanXMinutes",1,i):s.formatDistance("xMinutes",1,i):h===0?s.formatDistance("lessThanXMinutes",1,i):s.formatDistance("xMinutes",h,i);if(h<45)return s.formatDistance("xMinutes",h,i);if(h<90)return s.formatDistance("aboutXHours",1,i);if(h<ll){const m=Math.round(h/60);return s.formatDistance("aboutXHours",m,i)}else{if(h<a)return s.formatDistance("xDays",1,i);if(h<Ys){const m=Math.round(h/ll);return s.formatDistance("xDays",m,i)}else if(h<Ys*2)return g=Math.round(h/Ys),s.formatDistance("aboutXMonths",g,i)}if(g=bl(c,l),g<12){const m=Math.round(h/Ys);return s.formatDistance("xMonths",m,i)}else{const m=g%12,p=Math.trunc(g/12);return m<3?s.formatDistance("aboutXYears",p,i):m<9?s.formatDistance("overXYears",p,i):s.formatDistance("almostXYears",p+1,i)}}function sv(t,e,n){const r=Ct(),s=(n==null?void 0:n.locale)??r.locale??Qs,a=Mn(t,e);if(isNaN(a))throw new RangeError("Invalid time value");const o=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a}),[i,l]=Te(n==null?void 0:n.in,...a>0?[e,t]:[t,e]),c=wr((n==null?void 0:n.roundingMethod)??"round"),d=l.getTime()-i.getTime(),u=d/Kn,h=Rt(l)-Rt(i),g=(d-h)/Kn,m=n==null?void 0:n.unit;let p;if(m?p=m:u<1?p="second":u<60?p="minute":u<ll?p="hour":g<Ys?p="day":g<vw?p="month":p="year",p==="second"){const b=c(d/1e3);return s.formatDistance("xSeconds",b,o)}else if(p==="minute"){const b=c(u);return s.formatDistance("xMinutes",b,o)}else if(p==="hour"){const b=c(u/60);return s.formatDistance("xHours",b,o)}else if(p==="day"){const b=c(g/ll);return s.formatDistance("xDays",b,o)}else if(p==="month"){const b=c(g/Ys);return b===12&&m!=="month"?s.formatDistance("xYears",1,o):s.formatDistance("xMonths",b,o)}else{const b=c(g/vw);return s.formatDistance("xYears",b,o)}}function Lj(t,e){return rv(t,st(t),e)}function Fj(t,e){return sv(t,st(t),e)}const Bj=["years","months","weeks","days","hours","minutes","seconds"];function Wj(t,e){const n=Ct(),r=(e==null?void 0:e.locale)??n.locale??Qs,s=(e==null?void 0:e.format)??Bj,a=(e==null?void 0:e.zero)??!1,o=(e==null?void 0:e.delimiter)??" ";return r.formatDistance?s.reduce((l,c)=>{const d=`x${c.replace(/(^.)/,h=>h.toUpperCase())}`,u=t[c];return u!==void 0&&(a||t[c])?l.concat(r.formatDistance(d,u)):l},[]).join(o):""}function zj(t,e){const n=Z(t,e==null?void 0:e.in);if(isNaN(+n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.format)??"extended",s=(e==null?void 0:e.representation)??"complete";let a="",o="";const i=r==="extended"?"-":"",l=r==="extended"?":":"";if(s!=="time"){const c=ce(n.getDate(),2),d=ce(n.getMonth()+1,2);a=`${ce(n.getFullYear(),4)}${i}${d}${i}${c}`}if(s!=="date"){const c=n.getTimezoneOffset();if(c!==0){const p=Math.abs(c),b=ce(Math.trunc(p/60),2),y=ce(p%60,2);o=`${c<0?"+":"-"}${b}:${y}`}else o="Z";const d=ce(n.getHours(),2),u=ce(n.getMinutes(),2),h=ce(n.getSeconds(),2),g=a===""?"":"T",m=[d,u,h].join(l);a=`${a}${g}${m}${o}`}return a}function Hj(t,e){const n=Z(t,e==null?void 0:e.in);if(!Qn(n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.format)??"extended",s=(e==null?void 0:e.representation)??"complete";let a="";const o=r==="extended"?"-":"",i=r==="extended"?":":"";if(s!=="time"){const l=ce(n.getDate(),2),c=ce(n.getMonth()+1,2);a=`${ce(n.getFullYear(),4)}${o}${c}${o}${l}`}if(s!=="date"){const l=ce(n.getHours(),2),c=ce(n.getMinutes(),2),d=ce(n.getSeconds(),2);a=`${a}${a===""?"":" "}${l}${i}${c}${i}${d}`}return a}function Yj(t){const{years:e=0,months:n=0,days:r=0,hours:s=0,minutes:a=0,seconds:o=0}=t;return`P${e}Y${n}M${r}DT${s}H${a}M${o}S`}function Vj(t,e){const n=Z(t,e==null?void 0:e.in);if(!Qn(n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.fractionDigits)??0,s=ce(n.getDate(),2),a=ce(n.getMonth()+1,2),o=n.getFullYear(),i=ce(n.getHours(),2),l=ce(n.getMinutes(),2),c=ce(n.getSeconds(),2);let d="";if(r>0){const g=n.getMilliseconds(),m=Math.trunc(g*Math.pow(10,r-3));d="."+ce(m,r)}let u="";const h=n.getTimezoneOffset();if(h!==0){const g=Math.abs(h),m=ce(Math.trunc(g/60),2),p=ce(g%60,2);u=`${h<0?"+":"-"}${m}:${p}`}else u="Z";return`${o}-${a}-${s}T${i}:${l}:${c}${d}${u}`}const Uj=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Xj=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Gj(t){const e=Z(t);if(!Qn(e))throw new RangeError("Invalid time value");const n=Uj[e.getUTCDay()],r=ce(e.getUTCDate(),2),s=Xj[e.getUTCMonth()],a=e.getUTCFullYear(),o=ce(e.getUTCHours(),2),i=ce(e.getUTCMinutes(),2),l=ce(e.getUTCSeconds(),2);return`${n}, ${r} ${s} ${a} ${o}:${i}:${l} GMT`}function Kj(t,e,n){var u,h,g,m;const[r,s]=Te(n==null?void 0:n.in,t,e),a=Ct(),o=(n==null?void 0:n.locale)??a.locale??Qs,i=(n==null?void 0:n.weekStartsOn)??((h=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??a.weekStartsOn??((m=(g=a.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??0,l=Dn(r,s);if(isNaN(l))throw new RangeError("Invalid time value");let c;l<-6?c="other":l<-1?c="lastWeek":l<0?c="yesterday":l<1?c="today":l<2?c="tomorrow":l<7?c="nextWeek":c="other";const d=o.formatRelative(c,r,s,{locale:o,weekStartsOn:i});return kl(r,d,{locale:o,weekStartsOn:i})}function Qj(t,e){return Z(t*1e3,e==null?void 0:e.in)}function av(t,e){return Z(t,e==null?void 0:e.in).getDate()}function _l(t,e){return Z(t,e==null?void 0:e.in).getDay()}function ov(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=n.getMonth(),a=oe(n,0);return a.setFullYear(r,s+1,0),a.setHours(0,0,0,0),a.getDate()}function iv(t,e){const r=Z(t,e==null?void 0:e.in).getFullYear();return r%400===0||r%4===0&&r%100!==0}function Zj(t,e){const n=Z(t,e==null?void 0:e.in);return Number.isNaN(+n)?NaN:iv(n)?366:365}function Jj(t,e){const r=Z(t,e==null?void 0:e.in).getFullYear();return Math.floor(r/10)*10}function lv(){return Object.assign({},Ct())}function qj(t,e){return Z(t,e==null?void 0:e.in).getHours()}function cv(t,e){const n=Z(t,e==null?void 0:e.in).getDay();return n===0?7:n}function $j(t,e){const n=yr(t,e),s=+yr(ul(n,60))-+n;return Math.round(s/io)}function eI(t){return Z(t).getMilliseconds()}function tI(t,e){return Z(t,e==null?void 0:e.in).getMinutes()}function nI(t,e){return Z(t,e==null?void 0:e.in).getMonth()}function rI(t,e){const[n,r]=[+Z(t.start),+Z(t.end)].sort((u,h)=>u-h),[s,a]=[+Z(e.start),+Z(e.end)].sort((u,h)=>u-h);if(!(n<a&&s<r))return 0;const i=s<n?n:s,l=i-Rt(i),c=a>r?r:a,d=c-Rt(c);return Math.ceil((d-l)/ww)}function sI(t){return Z(t).getSeconds()}function aI(t){return+Z(t)}function oI(t){return Math.trunc(+Z(t)/1e3)}function iI(t,e){var l,c,d,u;const n=Ct(),r=(e==null?void 0:e.weekStartsOn)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,s=av(Z(t,e==null?void 0:e.in));if(isNaN(s))return NaN;const a=_l(yl(t,e));let o=r-a;o<=0&&(o+=7);const i=s-o;return Math.ceil(i/7)+1}function dv(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),Z(n,e==null?void 0:e.in)}function lI(t,e){const n=Z(t,e==null?void 0:e.in);return gl(dv(n,e),yl(n,e),e)+1}function cI(t,e){return Z(t,e==null?void 0:e.in).getFullYear()}function dI(t){return Math.trunc(t*Jr)}function uI(t){return Math.trunc(t*xw)}function fI(t){return Math.trunc(t*cl)}function hI(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);if(isNaN(+r))throw new TypeError("Start date is invalid");if(isNaN(+s))throw new TypeError("End date is invalid");if(n!=null&&n.assertPositive&&+r>+s)throw new TypeError("End date must be after start date");return{start:r,end:s}}function gI(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t),s={},a=Uw(r,n);a&&(s.years=a);const o=Vs(n,{years:s.years}),i=bl(r,o);i&&(s.months=i);const l=Vs(o,{months:s.months}),c=Eu(r,l);c&&(s.days=c);const d=Vs(l,{days:s.days}),u=ml(r,d);u&&(s.hours=u);const h=Vs(d,{hours:s.hours}),g=pl(r,h);g&&(s.minutes=g);const m=Vs(h,{minutes:s.minutes}),p=Gs(r,m);return p&&(s.seconds=p),s}function mI(t,e,n){let r;return pI(e)?r=e:n=e,new Intl.DateTimeFormat(n==null?void 0:n.locale,r).format(Z(t))}function pI(t){return t!==void 0&&!("locale"in t)}function bI(t,e,n){let r=0,s;const[a,o]=Te(n==null?void 0:n.in,t,e);if(n!=null&&n.unit)s=n==null?void 0:n.unit,s==="second"?r=Gs(a,o):s==="minute"?r=pl(a,o):s==="hour"?r=ml(a,o):s==="day"?r=Dn(a,o):s==="week"?r=gl(a,o):s==="month"?r=fl(a,o):s==="quarter"?r=hl(a,o):s==="year"&&(r=uo(a,o));else{const l=Gs(a,o);Math.abs(l)<Su?(r=Gs(a,o),s="second"):Math.abs(l)<cl?(r=pl(a,o),s="minute"):Math.abs(l)<Ou&&Math.abs(Dn(a,o))<1?(r=ml(a,o),s="hour"):Math.abs(l)<vN&&(r=Dn(a,o))&&Math.abs(r)<7?s="day":Math.abs(l)<Cw?(r=gl(a,o),s="week"):Math.abs(l)<xN?(r=fl(a,o),s="month"):Math.abs(l)<Ow&&hl(a,o)<4?(r=hl(a,o),s="quarter"):(r=uo(a,o),s="year")}return new Intl.RelativeTimeFormat(n==null?void 0:n.locale,{numeric:"auto",...n}).format(r,s)}function yI(t,e){return+Z(t)>+Z(e)}function wI(t,e){return+Z(t)<+Z(e)}function vI(t,e){return+Z(t)==+Z(e)}function xI(t,e,n){const r=new Date(t,e,n);return r.getFullYear()===t&&r.getMonth()===e&&r.getDate()===n}function kI(t,e){return Z(t,e==null?void 0:e.in).getDate()===1}function _I(t,e){return Z(t,e==null?void 0:e.in).getDay()===5}function SI(t){return+Z(t)>Date.now()}function uv(t,e){const n=OI(e)?new e(0):oe(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function OI(t){var e;return typeof t=="function"&&((e=t.prototype)==null?void 0:e.constructor)===t}const CI=10;class fv{constructor(){$(this,"subPriority",0)}validate(e,n){return!0}}class DI extends fv{constructor(e,n,r,s,a){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=s,a&&(this.subPriority=a)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class MI extends fv{constructor(n,r){super();$(this,"priority",CI);$(this,"subPriority",-1);this.context=n||(s=>oe(r,s))}set(n,r){return r.timestampIsSet?n:oe(n,uv(n,this.context))}}class _e{run(e,n,r,s){const a=this.parse(e,n,r,s);return a?{setter:new DI(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,n,r){return!0}}class EI extends _e{constructor(){super(...arguments);$(this,"priority",140);$(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,s){switch(r){case"G":case"GG":case"GGG":return s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"});case"GGGGG":return s.era(n,{width:"narrow"});case"GGGG":default:return s.era(n,{width:"wide"})||s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"})}}set(n,r,s){return r.era=s,n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}const Je={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Nn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function qe(t,e){return t&&{value:e(t.value),rest:t.rest}}function Ye(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function jn(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,s=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(s*Jr+a*Kn+o*_u),rest:e.slice(n[0].length)}}function hv(t){return Ye(Je.anyDigitsSigned,t)}function Xe(t,e){switch(t){case 1:return Ye(Je.singleDigit,e);case 2:return Ye(Je.twoDigits,e);case 3:return Ye(Je.threeDigits,e);case 4:return Ye(Je.fourDigits,e);default:return Ye(new RegExp("^\\d{1,"+t+"}"),e)}}function Sl(t,e){switch(t){case 1:return Ye(Je.singleDigitSigned,e);case 2:return Ye(Je.twoDigitsSigned,e);case 3:return Ye(Je.threeDigitsSigned,e);case 4:return Ye(Je.fourDigitsSigned,e);default:return Ye(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Bu(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function gv(t,e){const n=e>0,r=n?e:1-e;let s;if(r<=50)s=t||100;else{const a=r+50,o=Math.trunc(a/100)*100,i=t>=a%100;s=t+o-(i?100:0)}return n?s:1-s}function mv(t){return t%400===0||t%4===0&&t%100!==0}class PI extends _e{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return qe(Xe(4,n),a);case"yo":return qe(s.ordinalNumber(n,{unit:"year"}),a);default:return qe(Xe(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s){const a=n.getFullYear();if(s.isTwoDigitYear){const i=gv(s.year,a);return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}const o=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class TI extends _e{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return qe(Xe(4,n),a);case"Yo":return qe(s.ordinalNumber(n,{unit:"year"}),a);default:return qe(Xe(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s,a){const o=wl(n,a);if(s.isTwoDigitYear){const l=gv(s.year,o);return n.setFullYear(l,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),bt(n,a)}const i=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(i,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),bt(n,a)}}class NI extends _e{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return Sl(r==="R"?4:r.length,n)}set(n,r,s){const a=oe(n,0);return a.setFullYear(s,0,4),a.setHours(0,0,0,0),un(a)}}class jI extends _e{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return Sl(r==="u"?4:r.length,n)}set(n,r,s){return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class II extends _e{constructor(){super(...arguments);$(this,"priority",120);$(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"Q":case"QQ":return Xe(r.length,n);case"Qo":return s.ordinalNumber(n,{unit:"quarter"});case"QQQ":return s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(n,{width:"wide",context:"formatting"})||s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class AI extends _e{constructor(){super(...arguments);$(this,"priority",120);$(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"q":case"qq":return Xe(r.length,n);case"qo":return s.ordinalNumber(n,{unit:"quarter"});case"qqq":return s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(n,{width:"wide",context:"standalone"})||s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class RI extends _e{constructor(){super(...arguments);$(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);$(this,"priority",110)}parse(n,r,s){const a=o=>o-1;switch(r){case"M":return qe(Ye(Je.month,n),a);case"MM":return qe(Xe(2,n),a);case"Mo":return qe(s.ordinalNumber(n,{unit:"month"}),a);case"MMM":return s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(n,{width:"wide",context:"formatting"})||s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}class LI extends _e{constructor(){super(...arguments);$(this,"priority",110);$(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,s){const a=o=>o-1;switch(r){case"L":return qe(Ye(Je.month,n),a);case"LL":return qe(Xe(2,n),a);case"Lo":return qe(s.ordinalNumber(n,{unit:"month"}),a);case"LLL":return s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(n,{width:"wide",context:"standalone"})||s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}function pv(t,e,n){const r=Z(t,n==null?void 0:n.in),s=Ru(r,n)-e;return r.setDate(r.getDate()-s*7),Z(r,n==null?void 0:n.in)}class FI extends _e{constructor(){super(...arguments);$(this,"priority",100);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,s){switch(r){case"w":return Ye(Je.week,n);case"wo":return s.ordinalNumber(n,{unit:"week"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s,a){return bt(pv(n,s,a),a)}}function bv(t,e,n){const r=Z(t,n==null?void 0:n.in),s=Au(r,n)-e;return r.setDate(r.getDate()-s*7),r}class BI extends _e{constructor(){super(...arguments);$(this,"priority",100);$(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,s){switch(r){case"I":return Ye(Je.week,n);case"Io":return s.ordinalNumber(n,{unit:"week"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s){return un(bv(n,s))}}const WI=[31,28,31,30,31,30,31,31,30,31,30,31],zI=[31,29,31,30,31,30,31,31,30,31,30,31];class HI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"subPriority",1);$(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"d":return Ye(Je.date,n);case"do":return s.ordinalNumber(n,{unit:"date"});default:return Xe(r.length,n)}}validate(n,r){const s=n.getFullYear(),a=mv(s),o=n.getMonth();return a?r>=1&&r<=zI[o]:r>=1&&r<=WI[o]}set(n,r,s){return n.setDate(s),n.setHours(0,0,0,0),n}}class YI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"subpriority",1);$(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,s){switch(r){case"D":case"DD":return Ye(Je.dayOfYear,n);case"Do":return s.ordinalNumber(n,{unit:"date"});default:return Xe(r.length,n)}}validate(n,r){const s=n.getFullYear();return mv(s)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,s){return n.setMonth(0,s),n.setHours(0,0,0,0),n}}function Ol(t,e,n){var u,h,g,m;const r=Ct(),s=(n==null?void 0:n.weekStartsOn)??((h=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??r.weekStartsOn??((m=(g=r.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??0,a=Z(t,n==null?void 0:n.in),o=a.getDay(),l=(e%7+7)%7,c=7-s,d=e<0||e>6?e-(o+c)%7:(l+c)%7-(o+c)%7;return rn(a,d,n)}class VI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"E":case"EE":case"EEE":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Ol(n,s,a),n.setHours(0,0,0,0),n}}class UI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,s,a){const o=i=>{const l=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return qe(Xe(r.length,n),o);case"eo":return qe(s.ordinalNumber(n,{unit:"day"}),o);case"eee":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeeee":return s.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Ol(n,s,a),n.setHours(0,0,0,0),n}}class XI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,s,a){const o=i=>{const l=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return qe(Xe(r.length,n),o);case"co":return qe(s.ordinalNumber(n,{unit:"day"}),o);case"ccc":return s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"ccccc":return s.day(n,{width:"narrow",context:"standalone"});case"cccccc":return s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(n,{width:"wide",context:"standalone"})||s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Ol(n,s,a),n.setHours(0,0,0,0),n}}function yv(t,e,n){const r=Z(t,n==null?void 0:n.in),s=cv(r,n),a=e-s;return rn(r,a,n)}class GI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,s){const a=o=>o===0?7:o;switch(r){case"i":case"ii":return Xe(r.length,n);case"io":return s.ordinalNumber(n,{unit:"day"});case"iii":return qe(s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiii":return qe(s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiiii":return qe(s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiii":default:return qe(s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a)}}validate(n,r){return r>=1&&r<=7}set(n,r,s){return n=yv(n,s),n.setHours(0,0,0,0),n}}class KI extends _e{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,s){switch(r){case"a":case"aa":case"aaa":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Bu(s),0,0,0),n}}class QI extends _e{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,s){switch(r){case"b":case"bb":case"bbb":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Bu(s),0,0,0),n}}class ZI extends _e{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,s){switch(r){case"B":case"BB":case"BBB":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Bu(s),0,0,0),n}}class JI extends _e{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,s){switch(r){case"h":return Ye(Je.hour12h,n);case"ho":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,s){const a=n.getHours()>=12;return a&&s<12?n.setHours(s+12,0,0,0):!a&&s===12?n.setHours(0,0,0,0):n.setHours(s,0,0,0),n}}class qI extends _e{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,s){switch(r){case"H":return Ye(Je.hour23h,n);case"Ho":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,s){return n.setHours(s,0,0,0),n}}class $I extends _e{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,s){switch(r){case"K":return Ye(Je.hour11h,n);case"Ko":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.getHours()>=12&&s<12?n.setHours(s+12,0,0,0):n.setHours(s,0,0,0),n}}class e4 extends _e{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,s){switch(r){case"k":return Ye(Je.hour24h,n);case"ko":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,s){const a=s<=24?s%24:s;return n.setHours(a,0,0,0),n}}class t4 extends _e{constructor(){super(...arguments);$(this,"priority",60);$(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"m":return Ye(Je.minute,n);case"mo":return s.ordinalNumber(n,{unit:"minute"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setMinutes(s,0,0),n}}class n4 extends _e{constructor(){super(...arguments);$(this,"priority",50);$(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"s":return Ye(Je.second,n);case"so":return s.ordinalNumber(n,{unit:"second"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setSeconds(s,0),n}}class r4 extends _e{constructor(){super(...arguments);$(this,"priority",30);$(this,"incompatibleTokens",["t","T"])}parse(n,r){const s=a=>Math.trunc(a*Math.pow(10,-r.length+3));return qe(Xe(r.length,n),s)}set(n,r,s){return n.setMilliseconds(s),n}}class s4 extends _e{constructor(){super(...arguments);$(this,"priority",10);$(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return jn(Nn.basicOptionalMinutes,n);case"XX":return jn(Nn.basic,n);case"XXXX":return jn(Nn.basicOptionalSeconds,n);case"XXXXX":return jn(Nn.extendedOptionalSeconds,n);case"XXX":default:return jn(Nn.extended,n)}}set(n,r,s){return r.timestampIsSet?n:oe(n,n.getTime()-Rt(n)-s)}}class a4 extends _e{constructor(){super(...arguments);$(this,"priority",10);$(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return jn(Nn.basicOptionalMinutes,n);case"xx":return jn(Nn.basic,n);case"xxxx":return jn(Nn.basicOptionalSeconds,n);case"xxxxx":return jn(Nn.extendedOptionalSeconds,n);case"xxx":default:return jn(Nn.extended,n)}}set(n,r,s){return r.timestampIsSet?n:oe(n,n.getTime()-Rt(n)-s)}}class o4 extends _e{constructor(){super(...arguments);$(this,"priority",40);$(this,"incompatibleTokens","*")}parse(n){return hv(n)}set(n,r,s){return[oe(n,s*1e3),{timestampIsSet:!0}]}}class i4 extends _e{constructor(){super(...arguments);$(this,"priority",20);$(this,"incompatibleTokens","*")}parse(n){return hv(n)}set(n,r,s){return[oe(n,s),{timestampIsSet:!0}]}}const wv={G:new EI,y:new PI,Y:new TI,R:new NI,u:new jI,Q:new II,q:new AI,M:new RI,L:new LI,w:new FI,I:new BI,d:new HI,D:new YI,E:new VI,e:new UI,c:new XI,i:new GI,a:new KI,b:new QI,B:new ZI,h:new JI,H:new qI,K:new $I,k:new e4,m:new t4,s:new n4,S:new r4,X:new s4,x:new a4,t:new o4,T:new i4},l4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,c4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,d4=/^'([^]*?)'?$/,u4=/''/g,f4=/\S/,h4=/[a-zA-Z]/;function vv(t,e,n,r){var b,y,v,k,x,w,S,N;const s=()=>oe((r==null?void 0:r.in)||n,NaN),a=lv(),o=(r==null?void 0:r.locale)??a.locale??Qs,i=(r==null?void 0:r.firstWeekContainsDate)??((y=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:y.firstWeekContainsDate)??a.firstWeekContainsDate??((k=(v=a.locale)==null?void 0:v.options)==null?void 0:k.firstWeekContainsDate)??1,l=(r==null?void 0:r.weekStartsOn)??((w=(x=r==null?void 0:r.locale)==null?void 0:x.options)==null?void 0:w.weekStartsOn)??a.weekStartsOn??((N=(S=a.locale)==null?void 0:S.options)==null?void 0:N.weekStartsOn)??0;if(!e)return t?s():Z(n,r==null?void 0:r.in);const c={firstWeekContainsDate:i,weekStartsOn:l,locale:o},d=[new MI(r==null?void 0:r.in,n)],u=e.match(c4).map(M=>{const T=M[0];if(T in xl){const P=xl[T];return P(M,o.formatLong)}return M}).join("").match(l4),h=[];for(let M of u){!(r!=null&&r.useAdditionalWeekYearTokens)&&nv(M)&&Fu(M,e,t),!(r!=null&&r.useAdditionalDayOfYearTokens)&&tv(M)&&Fu(M,e,t);const T=M[0],P=wv[T];if(P){const{incompatibleTokens:z}=P;if(Array.isArray(z)){const O=h.find(C=>z.includes(C.token)||C.token===T);if(O)throw new RangeError(`The format string mustn't contain \`${O.fullToken}\` and \`${M}\` at the same time`)}else if(P.incompatibleTokens==="*"&&h.length>0)throw new RangeError(`The format string mustn't contain \`${M}\` and any other token at the same time`);h.push({token:T,fullToken:M});const F=P.run(t,M,o.match,c);if(!F)return s();d.push(F.setter),t=F.rest}else{if(T.match(h4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");if(M==="''"?M="'":T==="'"&&(M=g4(M)),t.indexOf(M)===0)t=t.slice(M.length);else return s()}}if(t.length>0&&f4.test(t))return s();const g=d.map(M=>M.priority).sort((M,T)=>T-M).filter((M,T,P)=>P.indexOf(M)===T).map(M=>d.filter(T=>T.priority===M).sort((T,P)=>P.subPriority-T.subPriority)).map(M=>M[0]);let m=Z(n,r==null?void 0:r.in);if(isNaN(+m))return s();const p={};for(const M of g){if(!M.validate(m,c))return s();const T=M.set(m,p,c);Array.isArray(T)?(m=T[0],Object.assign(p,T[1])):m=T}return m}function g4(t){return t.match(d4)[1].replace(u4,"'")}function m4(t,e,n){return Qn(vv(t,e,new Date,n))}function p4(t,e){return Z(t,e==null?void 0:e.in).getDay()===1}function b4(t){return+Z(t)<Date.now()}function Wu(t,e){const n=Z(t,e==null?void 0:e.in);return n.setMinutes(0,0,0),n}function xv(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return+Wu(r)==+Wu(s)}function zu(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return+bt(r,n)==+bt(s,n)}function kv(t,e,n){return zu(t,e,{...n,weekStartsOn:1})}function y4(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return+yr(r)==+yr(s)}function Hu(t,e){const n=Z(t,e==null?void 0:e.in);return n.setSeconds(0,0),n}function _v(t,e){return+Hu(t)==+Hu(e)}function Sv(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return r.getFullYear()===s.getFullYear()&&r.getMonth()===s.getMonth()}function Ov(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return+qr(r)==+qr(s)}function Yu(t,e){const n=Z(t,e==null?void 0:e.in);return n.setMilliseconds(0),n}function Cv(t,e){return+Yu(t)==+Yu(e)}function Dv(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return r.getFullYear()===s.getFullYear()}function w4(t,e){return xv(Z(t,e==null?void 0:e.in),st((e==null?void 0:e.in)||t))}function v4(t,e){return kv(oe((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function x4(t){return _v(t,st(t))}function k4(t,e){return Sv(oe((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function _4(t,e){return Ov(oe((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function S4(t){return Cv(t,st(t))}function O4(t,e){return zu(oe((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t),e)}function C4(t,e){return Dv(oe((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function D4(t,e){return Z(t,e==null?void 0:e.in).getDay()===4}function M4(t,e){return co(oe((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function E4(t,e){return co(t,rn(st((e==null?void 0:e.in)||t),1),e)}function P4(t,e){return Z(t,e==null?void 0:e.in).getDay()===2}function T4(t,e){return Z(t,e==null?void 0:e.in).getDay()===3}function N4(t,e,n){const r=+Z(t,n==null?void 0:n.in),[s,a]=[+Z(e.start,n==null?void 0:n.in),+Z(e.end,n==null?void 0:n.in)].sort((o,i)=>o-i);return r>=s&&r<=a}function Cl(t,e,n){return rn(t,-e,n)}function j4(t,e){return co(oe((e==null?void 0:e.in)||t,t),Cl(st((e==null?void 0:e.in)||t),1))}function I4(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=9+Math.floor(r/10)*10;return n.setFullYear(s+1,0,0),n.setHours(0,0,0,0),Z(n,e==null?void 0:e.in)}function Mv(t,e){var i,l,c,d;const n=Ct(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Z(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?-7:0)+6-(a-r);return s.setHours(0,0,0,0),s.setDate(s.getDate()+o),s}function A4(t,e){return Mv(t,{...e,weekStartsOn:1})}function R4(t,e){const n=br(t,e),r=oe((e==null?void 0:e.in)||t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=un(r,e);return s.setDate(s.getDate()-1),s}function L4(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3+3;return n.setMonth(s,0),n.setHours(0,0,0,0),n}function F4(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(0,0,0,0),n}const B4=/(\w)\1*|''|'(''|[^'])+('|$)|./g,W4=/^'([^]*?)'?$/,z4=/''/g,H4=/[a-zA-Z]/;function Y4(t,e){const n=Z(t);if(!Qn(n))throw new RangeError("Invalid time value");const r=e.match(B4);return r?r.map(a=>{if(a==="''")return"'";const o=a[0];if(o==="'")return V4(a);const i=Tn[o];if(i)return i(n,a);if(o.match(H4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return a}).join(""):""}function V4(t){const e=t.match(W4);return e?e[1].replace(z4,"'"):t}function U4({years:t,months:e,weeks:n,days:r,hours:s,minutes:a,seconds:o}){let i=0;t&&(i+=t*il),e&&(i+=e*(il/12)),n&&(i+=n*7),r&&(i+=r);let l=i*24*60*60;return s&&(l+=s*60*60),a&&(l+=a*60),o&&(l+=o),Math.trunc(l*1e3)}function X4(t){const e=t/Jr;return Math.trunc(e)}function G4(t){const e=t/Kn;return Math.trunc(e)}function K4(t){const e=t/_u;return Math.trunc(e)}function Q4(t){const e=t/xw;return Math.trunc(e)}function Z4(t){return Math.trunc(t*Kn)}function J4(t){return Math.trunc(t*Su)}function q4(t){const e=t/kw;return Math.trunc(e)}function $4(t){const e=t/_w;return Math.trunc(e)}function vr(t,e,n){let r=e-_l(t,n);return r<=0&&(r+=7),rn(t,r,n)}function eA(t,e){return vr(t,5,e)}function tA(t,e){return vr(t,1,e)}function nA(t,e){return vr(t,6,e)}function rA(t,e){return vr(t,0,e)}function sA(t,e){return vr(t,4,e)}function aA(t,e){return vr(t,2,e)}function oA(t,e){return vr(t,3,e)}function iA(t,e){const n=()=>oe(e==null?void 0:e.in,NaN),r=(e==null?void 0:e.additionalDigits)??2,s=uA(t);let a;if(s.date){const c=fA(s.date,r);a=hA(c.restDateString,c.year)}if(!a||isNaN(+a))return n();const o=+a;let i=0,l;if(s.time&&(i=gA(s.time),isNaN(i)))return n();if(s.timezone){if(l=mA(s.timezone),isNaN(l))return n()}else{const c=new Date(o+i),d=Z(0,e==null?void 0:e.in);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return Z(o+i+l,e==null?void 0:e.in)}const Dl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},lA=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,cA=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,dA=/^([+-])(\d{2})(?::?(\d{2}))?$/;function uA(t){const e={},n=t.split(Dl.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],Dl.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Dl.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const s=Dl.timezone.exec(r);s?(e.time=r.replace(s[1],""),e.timezone=s[1]):e.time=r}return e}function fA(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const s=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?s:a*100,restDateString:t.slice((r[1]||r[2]).length)}}function hA(t,e){if(e===null)return new Date(NaN);const n=t.match(lA);if(!n)return new Date(NaN);const r=!!n[4],s=fo(n[1]),a=fo(n[2])-1,o=fo(n[3]),i=fo(n[4]),l=fo(n[5])-1;if(r)return vA(e,i,l)?pA(e,i,l):new Date(NaN);{const c=new Date(0);return!yA(e,a,o)||!wA(e,s)?new Date(NaN):(c.setUTCFullYear(e,a,Math.max(s,o)),c)}}function fo(t){return t?parseInt(t):1}function gA(t){const e=t.match(cA);if(!e)return NaN;const n=Vu(e[1]),r=Vu(e[2]),s=Vu(e[3]);return xA(n,r,s)?n*Jr+r*Kn+s*1e3:NaN}function Vu(t){return t&&parseFloat(t.replace(",","."))||0}function mA(t){if(t==="Z")return 0;const e=t.match(dA);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),s=e[3]&&parseInt(e[3])||0;return kA(r,s)?n*(r*Jr+s*Kn):NaN}function pA(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const s=r.getUTCDay()||7,a=(e-1)*7+n+1-s;return r.setUTCDate(r.getUTCDate()+a),r}const bA=[31,null,31,30,31,30,31,31,30,31,30,31];function Ev(t){return t%400===0||t%4===0&&t%100!==0}function yA(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(bA[e]||(Ev(t)?29:28))}function wA(t,e){return e>=1&&e<=(Ev(t)?366:365)}function vA(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function xA(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function kA(t,e){return e>=0&&e<=59}function _A(t,e){const n=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return Z(n?Date.UTC(+n[1],+n[2]-1,+n[3],+n[4]-(+n[9]||0)*(n[8]=="-"?-1:1),+n[5]-(+n[10]||0)*(n[8]=="-"?-1:1),+n[6],+((n[7]||"0")+"00").substring(0,3)):NaN,e==null?void 0:e.in)}function xr(t,e,n){let r=_l(t,n)-e;return r<=0&&(r+=7),Cl(t,r,n)}function SA(t,e){return xr(t,5,e)}function OA(t,e){return xr(t,1,e)}function CA(t,e){return xr(t,6,e)}function DA(t,e){return xr(t,0,e)}function MA(t,e){return xr(t,4,e)}function EA(t,e){return xr(t,2,e)}function PA(t,e){return xr(t,3,e)}function TA(t){return Math.trunc(t*kw)}function NA(t){const e=t/Sw;return Math.trunc(e)}function jA(t,e){const n=(e==null?void 0:e.nearestTo)??1;if(n<1||n>12)return oe((e==null?void 0:e.in)||t,NaN);const r=Z(t,e==null?void 0:e.in),s=r.getMinutes()/60,a=r.getSeconds()/60/60,o=r.getMilliseconds()/1e3/60/60,i=r.getHours()+s+a+o,l=(e==null?void 0:e.roundingMethod)??"round",d=wr(l)(i/n)*n;return r.setHours(d,0,0,0),r}function IA(t,e){const n=(e==null?void 0:e.nearestTo)??1;if(n<1||n>30)return oe(t,NaN);const r=Z(t,e==null?void 0:e.in),s=r.getSeconds()/60,a=r.getMilliseconds()/1e3/60,o=r.getMinutes()+s+a,i=(e==null?void 0:e.roundingMethod)??"round",c=wr(i)(o/n)*n;return r.setMinutes(c,0,0),r}function AA(t){const e=t/cl;return Math.trunc(e)}function RA(t){return t*_u}function LA(t){const e=t/Su;return Math.trunc(e)}function Uu(t,e,n){const r=Z(t,n==null?void 0:n.in),s=r.getFullYear(),a=r.getDate(),o=oe((n==null?void 0:n.in)||t,0);o.setFullYear(s,e,15),o.setHours(0,0,0,0);const i=ov(o);return r.setMonth(e,Math.min(a,i)),r}function FA(t,e,n){let r=Z(t,n==null?void 0:n.in);return isNaN(+r)?oe((n==null?void 0:n.in)||t,NaN):(e.year!=null&&r.setFullYear(e.year),e.month!=null&&(r=Uu(r,e.month)),e.date!=null&&r.setDate(e.date),e.hours!=null&&r.setHours(e.hours),e.minutes!=null&&r.setMinutes(e.minutes),e.seconds!=null&&r.setSeconds(e.seconds),e.milliseconds!=null&&r.setMilliseconds(e.milliseconds),r)}function BA(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setDate(e),r}function WA(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setMonth(0),r.setDate(e),r}function zA(t){const e={},n=Ct();for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]===void 0?delete e[r]:e[r]=t[r]);kN(e)}function HA(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setHours(e),r}function YA(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setMilliseconds(e),r}function VA(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setMinutes(e),r}function UA(t,e,n){const r=Z(t,n==null?void 0:n.in),s=Math.trunc(r.getMonth()/3)+1,a=e-s;return Uu(r,r.getMonth()+a*3)}function XA(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setSeconds(e),r}function GA(t,e,n){var l,c,d,u;const r=Ct(),s=(n==null?void 0:n.firstWeekContainsDate)??((c=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((u=(d=r.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??1,a=Dn(Z(t,n==null?void 0:n.in),vl(t,n),n),o=oe((n==null?void 0:n.in)||t,0);o.setFullYear(e,0,s),o.setHours(0,0,0,0);const i=vl(o,n);return i.setDate(i.getDate()+a),i}function KA(t,e,n){const r=Z(t,n==null?void 0:n.in);return isNaN(+r)?oe((n==null?void 0:n.in)||t,NaN):(r.setFullYear(e),r)}function QA(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=Math.floor(r/10)*10;return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}function ZA(t){return Xs(Date.now(),t)}function JA(t){const e=st(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=oe(t==null?void 0:t.in,0);return a.setFullYear(n,r,s+1),a.setHours(0,0,0,0),a}function qA(t){const e=st(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=st(t==null?void 0:t.in);return a.setFullYear(n,r,s-1),a.setHours(0,0,0,0),a}function Pv(t,e,n){return lo(t,-e,n)}function $A(t,e,n){const{years:r=0,months:s=0,weeks:a=0,days:o=0,hours:i=0,minutes:l=0,seconds:c=0}=e,d=Pv(t,s+r*12,n),u=Cl(d,o+a*7,n),h=l+i*60,m=(c+h*60)*1e3;return oe((n==null?void 0:n.in)||t,+u-m)}function e3(t,e,n){return Pw(t,-e,n)}function t3(t,e,n){return Tw(t,-e,n)}function n3(t,e,n){return dl(t,-e,n)}function r3(t,e,n){return Cu(t,-e,n)}function s3(t,e,n){return Du(t,-e,n)}function a3(t,e,n){return Aw(t,-e,n)}function o3(t,e,n){return ul(t,-e,n)}function i3(t,e,n){return Rw(t,-e,n)}function l3(t){return Math.trunc(t*yw)}function c3(t){return Math.trunc(t*il)}function d3(t){return Math.trunc(t*_w)}function u3(t){return Math.trunc(t*Sw)}const es=$f(Object.freeze(Object.defineProperty({__proto__:null,add:Vs,addBusinessDays:Pw,addDays:rn,addHours:Tw,addISOWeekYears:Iw,addMilliseconds:dl,addMinutes:Cu,addMonths:lo,addQuarters:Du,addSeconds:Aw,addWeeks:ul,addYears:Rw,areIntervalsOverlapping:_N,clamp:SN,closestIndexTo:Bw,closestTo:ON,compareAsc:Mn,compareDesc:CN,constructFrom:oe,constructNow:st,daysToWeeks:DN,differenceInBusinessDays:MN,differenceInCalendarDays:Dn,differenceInCalendarISOWeekYears:zw,differenceInCalendarISOWeeks:EN,differenceInCalendarMonths:fl,differenceInCalendarQuarters:hl,differenceInCalendarWeeks:gl,differenceInCalendarYears:uo,differenceInDays:Eu,differenceInHours:ml,differenceInISOWeekYears:PN,differenceInMilliseconds:Pu,differenceInMinutes:pl,differenceInMonths:bl,differenceInQuarters:TN,differenceInSeconds:Gs,differenceInWeeks:NN,differenceInYears:Uw,eachDayOfInterval:Xw,eachHourOfInterval:jN,eachMinuteOfInterval:IN,eachMonthOfInterval:AN,eachQuarterOfInterval:RN,eachWeekOfInterval:LN,eachWeekendOfInterval:ju,eachWeekendOfMonth:FN,eachWeekendOfYear:BN,eachYearOfInterval:WN,endOfDay:Tu,endOfDecade:zN,endOfHour:HN,endOfISOWeek:YN,endOfISOWeekYear:VN,endOfMinute:UN,endOfMonth:Nu,endOfQuarter:XN,endOfSecond:GN,endOfToday:KN,endOfTomorrow:QN,endOfWeek:Kw,endOfYear:Gw,endOfYesterday:ZN,format:kl,formatDate:kl,formatDistance:rv,formatDistanceStrict:sv,formatDistanceToNow:Lj,formatDistanceToNowStrict:Fj,formatDuration:Wj,formatISO:zj,formatISO9075:Hj,formatISODuration:Yj,formatRFC3339:Vj,formatRFC7231:Gj,formatRelative:Kj,formatters:Lu,fromUnixTime:Qj,getDate:av,getDay:_l,getDayOfYear:Zw,getDaysInMonth:ov,getDaysInYear:Zj,getDecade:Jj,getDefaultOptions:lv,getHours:qj,getISODay:cv,getISOWeek:Au,getISOWeekYear:br,getISOWeeksInYear:$j,getMilliseconds:eI,getMinutes:tI,getMonth:nI,getOverlappingDaysInIntervals:rI,getQuarter:Mu,getSeconds:sI,getTime:aI,getUnixTime:oI,getWeek:Ru,getWeekOfMonth:iI,getWeekYear:wl,getWeeksInMonth:lI,getYear:cI,hoursToMilliseconds:dI,hoursToMinutes:uI,hoursToSeconds:fI,interval:hI,intervalToDuration:gI,intlFormat:mI,intlFormatDistance:bI,isAfter:yI,isBefore:wI,isDate:Ww,isEqual:vI,isExists:xI,isFirstDayOfMonth:kI,isFriday:_I,isFuture:SI,isLastDayOfMonth:Vw,isLeapYear:iv,isMatch:m4,isMonday:p4,isPast:b4,isSameDay:co,isSameHour:xv,isSameISOWeek:kv,isSameISOWeekYear:y4,isSameMinute:_v,isSameMonth:Sv,isSameQuarter:Ov,isSameSecond:Cv,isSameWeek:zu,isSameYear:Dv,isSaturday:Mw,isSunday:Ew,isThisHour:w4,isThisISOWeek:v4,isThisMinute:x4,isThisMonth:k4,isThisQuarter:_4,isThisSecond:S4,isThisWeek:O4,isThisYear:C4,isThursday:D4,isToday:M4,isTomorrow:E4,isTuesday:P4,isValid:Qn,isWednesday:T4,isWeekend:Us,isWithinInterval:N4,isYesterday:j4,lastDayOfDecade:I4,lastDayOfISOWeek:A4,lastDayOfISOWeekYear:R4,lastDayOfMonth:dv,lastDayOfQuarter:L4,lastDayOfWeek:Mv,lastDayOfYear:F4,lightFormat:Y4,lightFormatters:Tn,longFormatters:xl,max:Lw,milliseconds:U4,millisecondsToHours:X4,millisecondsToMinutes:G4,millisecondsToSeconds:K4,min:Fw,minutesToHours:Q4,minutesToMilliseconds:Z4,minutesToSeconds:J4,monthsToQuarters:q4,monthsToYears:$4,nextDay:vr,nextFriday:eA,nextMonday:tA,nextSaturday:nA,nextSunday:rA,nextThursday:sA,nextTuesday:aA,nextWednesday:oA,parse:vv,parseISO:iA,parseJSON:_A,parsers:wv,previousDay:xr,previousFriday:SA,previousMonday:OA,previousSaturday:CA,previousSunday:DA,previousThursday:MA,previousTuesday:EA,previousWednesday:PA,quartersToMonths:TA,quartersToYears:NA,roundToNearestHours:jA,roundToNearestMinutes:IA,secondsToHours:AA,secondsToMilliseconds:RA,secondsToMinutes:LA,set:FA,setDate:BA,setDay:Ol,setDayOfYear:WA,setDefaultOptions:zA,setHours:HA,setISODay:yv,setISOWeek:bv,setISOWeekYear:jw,setMilliseconds:YA,setMinutes:VA,setMonth:Uu,setQuarter:UA,setSeconds:XA,setWeek:pv,setWeekYear:GA,setYear:KA,startOfDay:Xs,startOfDecade:QA,startOfHour:Wu,startOfISOWeek:un,startOfISOWeekYear:yr,startOfMinute:Hu,startOfMonth:yl,startOfQuarter:qr,startOfSecond:Yu,startOfToday:ZA,startOfTomorrow:JA,startOfWeek:bt,startOfWeekYear:vl,startOfYear:Iu,startOfYesterday:qA,sub:$A,subBusinessDays:e3,subDays:Cl,subHours:t3,subISOWeekYears:Yw,subMilliseconds:n3,subMinutes:r3,subMonths:Pv,subQuarters:s3,subSeconds:a3,subWeeks:o3,subYears:i3,toDate:Z,transpose:uv,weeksToDays:l3,yearsToDays:c3,yearsToMonths:d3,yearsToQuarters:u3},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.rangeShape=Gn.default=void 0;var ts=f3(_),be=Tv(Xn),Xu=Tv(sr),Dt=es;function Tv(t){return t&&t.__esModule?t:{default:t}}function Nv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Nv=function(r){return r?n:e})(t)}function f3(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Nv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function Gu(){return Gu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Gu.apply(this,arguments)}function ho(t,e,n){return e=h3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h3(t){var e=g3(t,"string");return typeof e=="symbol"?e:String(e)}function g3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Ku extends ts.Component{constructor(e,n){super(e,n),ho(this,"handleKeyEvent",r=>{const{day:s,onMouseDown:a,onMouseUp:o}=this.props;[13,32].includes(r.keyCode)&&(r.type==="keydown"?a(s):o(s))}),ho(this,"handleMouseEvent",r=>{const{day:s,disabled:a,onPreviewChange:o,onMouseEnter:i,onMouseDown:l,onMouseUp:c}=this.props,d={};if(a){o();return}switch(r.type){case"mouseenter":i(s),o(s),d.hover=!0;break;case"blur":case"mouseleave":d.hover=!1;break;case"mousedown":d.active=!0,l(s);break;case"mouseup":r.stopPropagation(),d.active=!1,c(s);break;case"focus":o(s);break}Object.keys(d).length&&this.setState(d)}),ho(this,"getClassNames",()=>{const{isPassive:r,isToday:s,isWeekend:a,isStartOfWeek:o,isEndOfWeek:i,isStartOfMonth:l,isEndOfMonth:c,disabled:d,styles:u}=this.props;return(0,Xu.default)(u.day,{[u.dayPassive]:r,[u.dayDisabled]:d,[u.dayToday]:s,[u.dayWeekend]:a,[u.dayStartOfWeek]:o,[u.dayEndOfWeek]:i,[u.dayStartOfMonth]:l,[u.dayEndOfMonth]:c,[u.dayHovered]:this.state.hover,[u.dayActive]:this.state.active})}),ho(this,"renderPreviewPlaceholder",()=>{const{preview:r,day:s,styles:a}=this.props;if(!r)return null;const o=r.startDate?(0,Dt.endOfDay)(r.startDate):null,i=r.endDate?(0,Dt.startOfDay)(r.endDate):null,l=(!o||(0,Dt.isAfter)(s,o))&&(!i||(0,Dt.isBefore)(s,i)),c=!l&&(0,Dt.isSameDay)(s,o),d=!l&&(0,Dt.isSameDay)(s,i);return ts.default.createElement("span",{className:(0,Xu.default)({[a.dayStartPreview]:c,[a.dayInPreview]:l,[a.dayEndPreview]:d}),style:{color:r.color}})}),ho(this,"renderSelectionPlaceholders",()=>{const{styles:r,ranges:s,day:a}=this.props;return this.props.displayMode==="date"?(0,Dt.isSameDay)(this.props.day,this.props.date)?ts.default.createElement("span",{className:r.selected,style:{color:this.props.color}}):null:s.reduce((i,l)=>{let c=l.startDate,d=l.endDate;c&&d&&(0,Dt.isBefore)(d,c)&&([c,d]=[d,c]),c=c?(0,Dt.endOfDay)(c):null,d=d?(0,Dt.startOfDay)(d):null;const u=(!c||(0,Dt.isAfter)(a,c))&&(!d||(0,Dt.isBefore)(a,d)),h=!u&&(0,Dt.isSameDay)(a,c),g=!u&&(0,Dt.isSameDay)(a,d);return u||h||g?[...i,{isStartEdge:h,isEndEdge:g,isInRange:u,...l}]:i},[]).map((i,l)=>ts.default.createElement("span",{key:l,className:(0,Xu.default)({[r.startEdge]:i.isStartEdge,[r.endEdge]:i.isEndEdge,[r.inRange]:i.isInRange}),style:{color:i.color||this.props.color}}))}),this.state={hover:!1,active:!1}}render(){const{dayContentRenderer:e}=this.props;return ts.default.createElement("button",Gu({type:"button",onMouseEnter:this.handleMouseEvent,onMouseLeave:this.handleMouseEvent,onFocus:this.handleMouseEvent,onMouseDown:this.handleMouseEvent,onMouseUp:this.handleMouseEvent,onBlur:this.handleMouseEvent,onPauseCapture:this.handleMouseEvent,onKeyDown:this.handleKeyEvent,onKeyUp:this.handleKeyEvent,className:this.getClassNames(this.props.styles)},this.props.disabled||this.props.isPassive?{tabIndex:-1}:{},{style:{color:this.props.color}}),this.renderSelectionPlaceholders(),this.renderPreviewPlaceholder(),ts.default.createElement("span",{className:this.props.styles.dayNumber},(e==null?void 0:e(this.props.day))||ts.default.createElement("span",null,(0,Dt.format)(this.props.day,this.props.dayDisplayFormat))))}}Ku.defaultProps={};const m3=Gn.rangeShape=be.default.shape({startDate:be.default.object,endDate:be.default.object,color:be.default.string,key:be.default.string,autoFocus:be.default.bool,disabled:be.default.bool,showDateDisplay:be.default.bool});Ku.propTypes={day:be.default.object.isRequired,dayDisplayFormat:be.default.string,date:be.default.object,ranges:be.default.arrayOf(m3),preview:be.default.shape({startDate:be.default.object,endDate:be.default.object,color:be.default.string}),onPreviewChange:be.default.func,previewColor:be.default.string,disabled:be.default.bool,isPassive:be.default.bool,isToday:be.default.bool,isWeekend:be.default.bool,isStartOfWeek:be.default.bool,isEndOfWeek:be.default.bool,isStartOfMonth:be.default.bool,isEndOfMonth:be.default.bool,color:be.default.string,displayMode:be.default.oneOf(["dateRange","date"]),styles:be.default.object,onMouseDown:be.default.func,onMouseUp:be.default.func,onMouseEnter:be.default.func,dayContentRenderer:be.default.func},Gn.default=Ku;var Ml={},Jn={};Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.calcFocusDate=y3,Jn.findNextRangeIndex=w3,Jn.generateStyles=x3,Jn.getMonthDisplayRange=v3;var p3=b3(sr),qn=es;function b3(t){return t&&t.__esModule?t:{default:t}}function y3(t,e){const{shownDate:n,date:r,months:s,ranges:a,focusedRange:o,displayMode:i}=e;let l;if(i==="dateRange"){const d=a[o[0]]||{};l={start:d.startDate,end:d.endDate}}else l={start:r,end:r};l.start=(0,qn.startOfMonth)(l.start||new Date),l.end=(0,qn.endOfMonth)(l.end||l.start);const c=l.start||l.end||n||new Date;return t?(0,qn.differenceInCalendarMonths)(l.start,l.end)>s?t:c:n||c}function w3(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;const n=t.findIndex((r,s)=>s>e&&r.autoFocus!==!1&&!r.disabled);return n!==-1?n:t.findIndex(r=>r.autoFocus!==!1&&!r.disabled)}function v3(t,e,n){const r=(0,qn.startOfMonth)(t,e),s=(0,qn.endOfMonth)(t,e),a=(0,qn.startOfWeek)(r,e);let o=(0,qn.endOfWeek)(s,e);return n&&(0,qn.differenceInCalendarDays)(o,a)<=34&&(o=(0,qn.addDays)(o,7)),{start:a,end:o,startDateOfMonth:r,endDateOfMonth:s}}function x3(t){return t.length?t.filter(n=>!!n).reduce((n,r)=>(Object.keys(r).forEach(s=>{n[s]=(0,p3.default)(n[s],r[s])}),n),{}):{}}Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.default=void 0;var ns=Av(_),je=_3(Xn),jv=Av(Gn),at=es,k3=Jn;function _3(t){return t&&t.__esModule?t:{default:t}}function Iv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Iv=function(r){return r?n:e})(t)}function Av(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Iv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function Qu(){return Qu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qu.apply(this,arguments)}function S3(t,e,n){const r=new Date;return ns.default.createElement("div",{className:t.weekDays},(0,at.eachDayOfInterval)({start:(0,at.startOfWeek)(r,e),end:(0,at.endOfWeek)(r,e)}).map((s,a)=>ns.default.createElement("span",{className:t.weekDay,key:a},(0,at.format)(s,n,e))))}class Zu extends ns.PureComponent{render(){const e=new Date,{displayMode:n,focusedRange:r,drag:s,styles:a,disabledDates:o,disabledDay:i}=this.props,l=this.props.minDate&&(0,at.startOfDay)(this.props.minDate),c=this.props.maxDate&&(0,at.endOfDay)(this.props.maxDate),d=(0,k3.getMonthDisplayRange)(this.props.month,this.props.dateOptions,this.props.fixedHeight);let u=this.props.ranges;if(n==="dateRange"&&s.status){let{startDate:g,endDate:m}=s.range;u=u.map((p,b)=>b!==r[0]?p:{...p,startDate:g,endDate:m})}const h=this.props.showPreview&&!s.disablePreview;return ns.default.createElement("div",{className:a.month,style:this.props.style},this.props.showMonthName?ns.default.createElement("div",{className:a.monthName},(0,at.format)(this.props.month,this.props.monthDisplayFormat,this.props.dateOptions)):null,this.props.showWeekDays&&S3(a,this.props.dateOptions,this.props.weekdayDisplayFormat),ns.default.createElement("div",{className:a.days,onMouseLeave:this.props.onMouseLeave},(0,at.eachDayOfInterval)({start:d.start,end:d.end}).map((g,m)=>{const p=(0,at.isSameDay)(g,d.startDateOfMonth),b=(0,at.isSameDay)(g,d.endDateOfMonth),y=l&&(0,at.isBefore)(g,l)||c&&(0,at.isAfter)(g,c),v=o.some(x=>(0,at.isSameDay)(x,g)),k=i(g);return ns.default.createElement(jv.default,Qu({},this.props,{ranges:u,day:g,preview:h?this.props.preview:null,isWeekend:(0,at.isWeekend)(g,this.props.dateOptions),isToday:(0,at.isSameDay)(g,e),isStartOfWeek:(0,at.isSameDay)(g,(0,at.startOfWeek)(g,this.props.dateOptions)),isEndOfWeek:(0,at.isSameDay)(g,(0,at.endOfWeek)(g,this.props.dateOptions)),isStartOfMonth:p,isEndOfMonth:b,key:m,disabled:y||v||k,isPassive:!(0,at.isWithinInterval)(g,{start:d.startDateOfMonth,end:d.endDateOfMonth}),styles:a,onMouseDown:this.props.onDragSelectionStart,onMouseUp:this.props.onDragSelectionEnd,onMouseEnter:this.props.onDragSelectionMove,dragRange:s.range,drag:s.status}))})))}}Zu.defaultProps={},Zu.propTypes={style:je.default.object,styles:je.default.object,month:je.default.object,drag:je.default.object,dateOptions:je.default.object,disabledDates:je.default.array,disabledDay:je.default.func,preview:je.default.shape({startDate:je.default.object,endDate:je.default.object}),showPreview:je.default.bool,displayMode:je.default.oneOf(["dateRange","date"]),minDate:je.default.object,maxDate:je.default.object,ranges:je.default.arrayOf(jv.rangeShape),focusedRange:je.default.arrayOf(je.default.number),onDragSelectionStart:je.default.func,onDragSelectionEnd:je.default.func,onDragSelectionMove:je.default.func,onMouseLeave:je.default.func,monthDisplayFormat:je.default.string,weekdayDisplayFormat:je.default.string,dayDisplayFormat:je.default.string,showWeekDays:je.default.bool,showMonthName:je.default.bool,fixedHeight:je.default.bool},Ml.default=Zu;var El={};Object.defineProperty(El,"__esModule",{value:!0}),El.default=void 0;var Pl=C3(_),In=Rv(Xn),O3=Rv(sr),go=es;function Rv(t){return t&&t.__esModule?t:{default:t}}function Lv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Lv=function(r){return r?n:e})(t)}function C3(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Lv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function Ju(t,e,n){return e=D3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function D3(t){var e=M3(t,"string");return typeof e=="symbol"?e:String(e)}function M3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class qu extends Pl.PureComponent{constructor(e,n){super(e,n),Ju(this,"onKeyDown",r=>{const{value:s}=this.state;r.key==="Enter"&&this.update(s)}),Ju(this,"onChange",r=>{this.setState({value:r.target.value,changed:!0,invalid:!1})}),Ju(this,"onBlur",()=>{const{value:r}=this.state;this.update(r)}),this.state={invalid:!1,changed:!1,value:this.formatDate(e)}}componentDidUpdate(e){const{value:n}=e;(0,go.isEqual)(n,this.props.value)||this.setState({value:this.formatDate(this.props)})}formatDate(e){let{value:n,dateDisplayFormat:r,dateOptions:s}=e;return n&&(0,go.isValid)(n)?(0,go.format)(n,r,s):""}update(e){const{invalid:n,changed:r}=this.state;if(n||!r||!e)return;const{onChange:s,dateDisplayFormat:a,dateOptions:o}=this.props,i=(0,go.parse)(e,a,new Date,o);(0,go.isValid)(i)?this.setState({changed:!1},()=>s(i)):this.setState({invalid:!0})}render(){const{className:e,readOnly:n,placeholder:r,ariaLabel:s,disabled:a,onFocus:o}=this.props,{value:i,invalid:l}=this.state;return Pl.default.createElement("span",{className:(0,O3.default)("rdrDateInput",e)},Pl.default.createElement("input",{readOnly:n,disabled:a,value:i,placeholder:r,"aria-label":s,onKeyDown:this.onKeyDown,onChange:this.onChange,onBlur:this.onBlur,onFocus:o}),l&&Pl.default.createElement("span",{className:"rdrWarning"},"⚠"))}}qu.propTypes={value:In.default.object,placeholder:In.default.string,disabled:In.default.bool,readOnly:In.default.bool,dateOptions:In.default.object,dateDisplayFormat:In.default.string,ariaLabel:In.default.string,className:In.default.string,onFocus:In.default.func.isRequired,onChange:In.default.func.isRequired},qu.defaultProps={readOnly:!0,disabled:!1,dateDisplayFormat:"MMM D, YYYY"},El.default=qu;var Fv={};(function(t){(function(e,n){n(t,_,f)})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:qk,function(e,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function s(L){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},s(L)}function a(L,R){if(!(L instanceof R))throw new TypeError("Cannot call a class as a function")}function o(L,R){for(var A=0;A<R.length;A++){var D=R[A];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(L,v(D.key),D)}}function i(L,R,A){return R&&o(L.prototype,R),A&&o(L,A),Object.defineProperty(L,"prototype",{writable:!1}),L}function l(L,R,A){return R=h(R),c(L,u()?Reflect.construct(R,A||[],h(L).constructor):R.apply(L,A))}function c(L,R){if(R&&(s(R)=="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(L)}function d(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function u(){try{var L=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u=function(){return!!L})()}function h(L){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)},h(L)}function g(L,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(R&&R.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),R&&m(L,R)}function m(L,R){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,D){return A.__proto__=D,A},m(L,R)}function p(L,R){var A=Object.keys(L);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(L);R&&(D=D.filter(function(Y){return Object.getOwnPropertyDescriptor(L,Y).enumerable})),A.push.apply(A,D)}return A}function b(L){for(var R=1;R<arguments.length;R++){var A=arguments[R]!=null?arguments[R]:{};R%2?p(Object(A),!0).forEach(function(D){y(L,D,A[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(A)):p(Object(A)).forEach(function(D){Object.defineProperty(L,D,Object.getOwnPropertyDescriptor(A,D))})}return L}function y(L,R,A){return(R=v(R))in L?Object.defineProperty(L,R,{value:A,enumerable:!0,configurable:!0,writable:!0}):L[R]=A,L}function v(L){var R=k(L,"string");return s(R)=="symbol"?R:R+""}function k(L,R){if(s(L)!="object"||!L)return L;var A=L[Symbol.toPrimitive];if(A!==void 0){var D=A.call(L,R);if(s(D)!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(L)}var x={x:"clientWidth",y:"clientHeight"},w={x:"clientTop",y:"clientLeft"},S={x:"innerWidth",y:"innerHeight"},N={x:"offsetWidth",y:"offsetHeight"},M={x:"offsetLeft",y:"offsetTop"},T={x:"overflowX",y:"overflowY"},P={x:"scrollWidth",y:"scrollHeight"},z={x:"scrollLeft",y:"scrollTop"},F={x:"width",y:"height"},O=function(){},C=function(){if(typeof window>"u")return!1;var L=!1;try{document.createElement("div").addEventListener("test",O,{get passive(){return L=!0,!1}})}catch{}return L}()?{passive:!0}:!1,E="ReactList failed to reach a stable state.",W=40,U=function(R,A){for(var D in A)if(R[D]!==A[D])return!1;return!0},G=function(R){for(var A=R.props.axis,D=R.getEl(),Y=T[A];D=D.parentElement;)switch(window.getComputedStyle(D)[Y]){case"auto":case"scroll":case"overlay":return D}return window},ee=function(R){var A=R.props.axis,D=R.scrollParent;return D===window?window[S[A]]:D[x[A]]},j=function(R,A){var D=R.length,Y=R.minSize,J=R.type,K=A.from,I=A.size,q=A.itemsPerRow;I=Math.max(I,Y);var te=I%q;return te&&(I+=q-te),I>D&&(I=D),K=J==="simple"||!K?0:Math.max(Math.min(K,D-I),0),(te=K%q)&&(K-=te,I+=te),K===A.from&&I===A.size?A:b(b({},A),{},{from:K,size:I})},V=e.default=function(L){function R(A){var D;return a(this,R),D=l(this,R,[A]),D.state=j(A,{itemsPerRow:1,from:A.initialIndex,size:0}),D.cache={},D.cachedScrollPosition=null,D.prevPrevState={},D.unstable=!1,D.updateCounter=0,D}return g(R,L),i(R,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(D){var Y=this;if(this.props.axis!==D.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>W)return this.unstable=!0,console.error(E);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout(function(){Y.updateCounter=0,delete Y.updateCounterTimeoutId},0)),this.updateFrame()}}},{key:"maybeSetState",value:function(D,Y){if(U(this.state,D))return Y();this.setState(D,Y)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,C),this.scrollParent.removeEventListener("mousewheel",O,C)}},{key:"getOffset",value:function(D){var Y=this.props.axis,J=D[w[Y]]||0,K=M[Y];do J+=D[K]||0;while(D=D.offsetParent);return J}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if(typeof this.cachedScrollPosition=="number")return this.cachedScrollPosition;var D=this.scrollParent,Y=this.props.axis,J=z[Y],K=D===window?document.body[J]||document.documentElement[J]:D[J],I=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),q=Math.max(0,Math.min(K,I)),te=this.getEl();return this.cachedScrollPosition=this.getOffset(D)+q-this.getOffset(te),this.cachedScrollPosition}},{key:"setScroll",value:function(D){var Y=this.scrollParent,J=this.props.axis;if(D+=this.getOffset(this.getEl()),Y===window)return window.scrollTo(0,D);D-=this.getOffset(this.scrollParent),Y[z[J]]=D}},{key:"getScrollSize",value:function(){var D=this.scrollParent,Y=document,J=Y.body,K=Y.documentElement,I=P[this.props.axis];return D===window?Math.max(J[I],K[I]):D[I]}},{key:"hasDeterminateSize",value:function(){var D=this.props,Y=D.itemSizeGetter,J=D.type;return J==="uniform"||Y}},{key:"getStartAndEnd",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.threshold,Y=this.getScrollPosition(),J=Math.max(0,Y-D),K=Y+this.props.scrollParentViewportSizeGetter(this)+D;return this.hasDeterminateSize()&&(K=Math.min(K,this.getSpaceBefore(this.props.length))),{start:J,end:K}}},{key:"getItemSizeAndItemsPerRow",value:function(){var D=this.props,Y=D.axis,J=D.useStaticSize,K=this.state,I=K.itemSize,q=K.itemsPerRow;if(J&&I&&q)return{itemSize:I,itemsPerRow:q};var te=this.items.children;if(!te.length)return{};var B=te[0],re=B[N[Y]],se=Math.abs(re-I);if((isNaN(se)||se>=1)&&(I=re),!I)return{};var ie=M[Y],ge=B[ie];q=1;for(var fe=te[q];fe&&fe[ie]===ge;fe=te[q])++q;return{itemSize:I,itemsPerRow:q}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(D){return this.clearSizeCache(),this.updateFrame(D)}},{key:"updateFrame",value:function(D){switch(this.updateScrollParent(),typeof D!="function"&&(D=O),this.props.type){case"simple":return this.updateSimpleFrame(D);case"variable":return this.updateVariableFrame(D);case"uniform":return this.updateUniformFrame(D)}}},{key:"updateScrollParent",value:function(){var D=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),D!==this.scrollParent&&(D&&(D.removeEventListener("scroll",this.updateFrameAndClearCache),D.removeEventListener("mousewheel",O)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,C),this.scrollParent.addEventListener("mousewheel",O,C))}},{key:"updateSimpleFrame",value:function(D){var Y=this.getStartAndEnd(),J=Y.end,K=this.items.children,I=0;if(K.length){var q=this.props.axis,te=K[0],B=K[K.length-1];I=this.getOffset(B)+B[N[q]]-this.getOffset(te)}if(I>J)return D();var re=this.props,se=re.pageSize,ie=re.length,ge=Math.min(this.state.size+se,ie);this.maybeSetState({size:ge},D)}},{key:"updateVariableFrame",value:function(D){this.props.itemSizeGetter||this.cacheSizes();for(var Y=this.getStartAndEnd(),J=Y.start,K=Y.end,I=this.props,q=I.length,te=I.pageSize,B=0,re=0,se=0,ie=q-1;re<ie;){var ge=this.getSizeOfItem(re);if(ge==null||B+ge>J)break;B+=ge,++re}for(var fe=q-re;se<fe&&B<K;){var ae=this.getSizeOfItem(re+se);if(ae==null){se=Math.min(se+te,fe);break}B+=ae,++se}this.maybeSetState(j(this.props,{from:re,itemsPerRow:1,size:se}),D)}},{key:"updateUniformFrame",value:function(D){var Y=this.getItemSizeAndItemsPerRow(),J=Y.itemSize,K=Y.itemsPerRow;if(!J||!K)return D();var I=this.getStartAndEnd(),q=I.start,te=I.end,B=j(this.props,{from:Math.floor(q/J)*K,size:(Math.ceil((te-q)/J)+1)*K,itemsPerRow:K}),re=B.from,se=B.size;return this.maybeSetState({itemsPerRow:K,from:re,itemSize:J,size:se},D)}},{key:"getSpaceBefore",value:function(D){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Y[D]!=null)return Y[D];var J=this.state,K=J.itemSize,I=J.itemsPerRow;if(K)return Y[D]=Math.floor(D/I)*K;for(var q=D;q>0&&Y[--q]==null;);for(var te=Y[q]||0,B=q;B<D;++B){Y[B]=te;var re=this.getSizeOfItem(B);if(re==null)break;te+=re}return Y[D]=te}},{key:"cacheSizes",value:function(){for(var D=this.cache,Y=this.state.from,J=this.items.children,K=N[this.props.axis],I=0,q=J.length;I<q;++I)D[Y+I]=J[I][K]}},{key:"getSizeOfItem",value:function(D){var Y=this.cache,J=this.items,K=this.props,I=K.axis,q=K.itemSizeGetter,te=K.itemSizeEstimator,B=K.type,re=this.state,se=re.from,ie=re.itemSize,ge=re.size;if(ie)return ie;if(q)return q(D);if(D in Y)return Y[D];if(B==="simple"&&D>=se&&D<se+ge&&J){var fe=J.children[D-se];if(fe)return fe[N[I]]}if(te)return te(D,Y)}},{key:"scrollTo",value:function(D){D!=null&&this.setScroll(this.getSpaceBefore(D))}},{key:"scrollAround",value:function(D){var Y=this.getScrollPosition(),J=this.getSpaceBefore(D),K=J-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(D),I=Math.min(K,J),q=Math.max(K,J);if(Y<=I)return this.setScroll(I);if(Y>q)return this.setScroll(q)}},{key:"getVisibleRange",value:function(){for(var D=this.state,Y=D.from,J=D.size,K=this.getStartAndEnd(0),I=K.start,q=K.end,te={},B,re,se=Y;se<Y+J;++se){var ie=this.getSpaceBefore(se,te),ge=ie+this.getSizeOfItem(se);B==null&&ge>I&&(B=se),B!=null&&ie<q&&(re=se)}return[B,re]}},{key:"renderItems",value:function(){for(var D=this,Y=this.props,J=Y.itemRenderer,K=Y.itemsRenderer,I=this.state,q=I.from,te=I.size,B=[],re=0;re<te;++re)B.push(J(q+re,re));return K(B,function(se){return D.items=se})}},{key:"render",value:function(){var D=this,Y=this.props,J=Y.axis,K=Y.length,I=Y.type,q=Y.useTranslate3d,te=this.state,B=te.from,re=te.itemsPerRow,se=this.renderItems();if(I==="simple")return se;var ie={position:"relative"},ge={},fe=Math.ceil(K/re)*re,ae=this.getSpaceBefore(fe,ge);ae&&(ie[F[J]]=ae,J==="x"&&(ie.overflowX="hidden"));var Ve=this.getSpaceBefore(B,ge),pe=J==="x"?Ve:0,He=J==="y"?Ve:0,Ge=q?"translate3d(".concat(pe,"px, ").concat(He,"px, 0)"):"translate(".concat(pe,"px, ").concat(He,"px)"),$e={msTransform:Ge,WebkitTransform:Ge,transform:Ge};return(0,r.jsx)("div",{style:ie,ref:function(Gt){return D.el=Gt},children:(0,r.jsx)("div",{style:$e,children:se})})}}],[{key:"getDerivedStateFromProps",value:function(D,Y){var J=j(D,Y);return J===Y?null:J}}])}(n.Component);y(V,"displayName","ReactList"),y(V,"defaultProps",{axis:"y",itemRenderer:function(R,A){return(0,r.jsx)("div",{children:R},A)},itemsRenderer:function(R,A){return(0,r.jsx)("div",{ref:A,children:R})},length:0,minSize:1,pageSize:10,scrollParentGetter:G,scrollParentViewportSizeGetter:ee,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1})})})(Fv);function E3(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=Object.keys(t),r=Object.keys(e),s=n.length;if(r.length!==s)return!1;for(var a=0;a<s;a++){var o=n[a];if(t[o]!==e[o]||!Object.prototype.hasOwnProperty.call(e,o))return!1}return!0}function P3(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=t.length;if(e.length!==n)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const T3=$f(Object.freeze(Object.defineProperty({__proto__:null,shallowEqualArrays:P3,shallowEqualObjects:E3},Symbol.toStringTag,{value:"Module"})));var $u={},ef={};ef.formatDistance=void 0;const N3={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},j3=(t,e,n)=>{let r;const s=N3[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};ef.formatDistance=j3;var tf={},Bv={};Bv.buildFormatLongFn=I3;function I3(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}tf.formatLong=void 0;var nf=Bv;const A3={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},R3={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},L3={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};tf.formatLong={date:(0,nf.buildFormatLongFn)({formats:A3,defaultWidth:"full"}),time:(0,nf.buildFormatLongFn)({formats:R3,defaultWidth:"full"}),dateTime:(0,nf.buildFormatLongFn)({formats:L3,defaultWidth:"full"})};var rf={};rf.formatRelative=void 0;const F3={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},B3=(t,e,n,r)=>F3[t];rf.formatRelative=B3;var sf={},Wv={};Wv.buildLocalizeFn=W3;function W3(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):o;s=t.formattingValues[i]||t.formattingValues[o]}else{const o=t.defaultWidth,i=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[i]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(e):e;return s[a]}}sf.localize=void 0;var mo=Wv;const z3={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},H3={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Y3={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},V3={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},U3={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},X3={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},G3=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"};sf.localize={ordinalNumber:G3,era:(0,mo.buildLocalizeFn)({values:z3,defaultWidth:"wide"}),quarter:(0,mo.buildLocalizeFn)({values:H3,defaultWidth:"wide",argumentCallback:t=>t-1}),month:(0,mo.buildLocalizeFn)({values:Y3,defaultWidth:"wide"}),day:(0,mo.buildLocalizeFn)({values:V3,defaultWidth:"wide"}),dayPeriod:(0,mo.buildLocalizeFn)({values:U3,defaultWidth:"wide",formattingValues:X3,defaultFormattingWidth:"wide"})};var af={},zv={};zv.buildMatchFn=K3;function K3(t){return(e,n={})=>{const r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(s);if(!a)return null;const o=a[0],i=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(i)?Z3(i,u=>u.test(o)):Q3(i,u=>u.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const d=e.slice(o.length);return{value:c,rest:d}}}function Q3(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function Z3(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}var Hv={};Hv.buildMatchPatternFn=J3;function J3(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const s=r[0],a=e.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const i=e.slice(s.length);return{value:o,rest:i}}}af.match=void 0;var po=zv,q3=Hv;const $3=/^(\d+)(th|st|nd|rd)?/i,eR=/\d+/i,tR={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},nR={any:[/^b/i,/^(a|c)/i]},rR={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sR={any:[/1/i,/2/i,/3/i,/4/i]},aR={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},oR={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},iR={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},lR={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},cR={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},dR={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};af.match={ordinalNumber:(0,q3.buildMatchPatternFn)({matchPattern:$3,parsePattern:eR,valueCallback:t=>parseInt(t,10)}),era:(0,po.buildMatchFn)({matchPatterns:tR,defaultMatchWidth:"wide",parsePatterns:nR,defaultParseWidth:"any"}),quarter:(0,po.buildMatchFn)({matchPatterns:rR,defaultMatchWidth:"wide",parsePatterns:sR,defaultParseWidth:"any",valueCallback:t=>t+1}),month:(0,po.buildMatchFn)({matchPatterns:aR,defaultMatchWidth:"wide",parsePatterns:oR,defaultParseWidth:"any"}),day:(0,po.buildMatchFn)({matchPatterns:iR,defaultMatchWidth:"wide",parsePatterns:lR,defaultParseWidth:"any"}),dayPeriod:(0,po.buildMatchFn)({matchPatterns:cR,defaultMatchWidth:"any",parsePatterns:dR,defaultParseWidth:"any"})},$u.enUS=void 0;var uR=ef,fR=tf,hR=rf,gR=sf,mR=af;$u.enUS={code:"en-US",formatDistance:uR.formatDistance,formatLong:fR.formatLong,formatRelative:hR.formatRelative,localize:gR.localize,match:mR.match,options:{weekStartsOn:0,firstWeekContainsDate:1}};var rs={};Object.defineProperty(rs,"__esModule",{value:!0}),rs.default=void 0,rs.default={dateRangeWrapper:"rdrDateRangeWrapper",calendarWrapper:"rdrCalendarWrapper",dateDisplay:"rdrDateDisplay",dateDisplayItem:"rdrDateDisplayItem",dateDisplayItemActive:"rdrDateDisplayItemActive",monthAndYearWrapper:"rdrMonthAndYearWrapper",monthAndYearPickers:"rdrMonthAndYearPickers",nextPrevButton:"rdrNextPrevButton",month:"rdrMonth",weekDays:"rdrWeekDays",weekDay:"rdrWeekDay",days:"rdrDays",day:"rdrDay",dayNumber:"rdrDayNumber",dayPassive:"rdrDayPassive",dayToday:"rdrDayToday",dayStartOfWeek:"rdrDayStartOfWeek",dayEndOfWeek:"rdrDayEndOfWeek",daySelected:"rdrDaySelected",dayDisabled:"rdrDayDisabled",dayStartOfMonth:"rdrDayStartOfMonth",dayEndOfMonth:"rdrDayEndOfMonth",dayWeekend:"rdrDayWeekend",dayStartPreview:"rdrDayStartPreview",dayInPreview:"rdrDayInPreview",dayEndPreview:"rdrDayEndPreview",dayHovered:"rdrDayHovered",dayActive:"rdrDayActive",inRange:"rdrInRange",endEdge:"rdrEndEdge",startEdge:"rdrStartEdge",prevButton:"rdrPprevButton",nextButton:"rdrNextButton",selected:"rdrSelected",months:"rdrMonths",monthPicker:"rdrMonthPicker",yearPicker:"rdrYearPicker",dateDisplayWrapper:"rdrDateDisplayWrapper",definedRangesWrapper:"rdrDefinedRangesWrapper",staticRanges:"rdrStaticRanges",staticRange:"rdrStaticRange",inputRanges:"rdrInputRanges",inputRange:"rdrInputRange",inputRangeInput:"rdrInputRangeInput",dateRangePickerWrapper:"rdrDateRangePickerWrapper",staticRangeLabel:"rdrStaticRangeLabel",staticRangeSelected:"rdrStaticRangeSelected",monthName:"rdrMonthName",infiniteMonths:"rdrInfiniteMonths",monthsVertical:"rdrMonthsVertical",monthsHorizontal:"rdrMonthsHorizontal"};var Tl={};Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.ariaLabelsShape=void 0;var $n=pR(Xn);function pR(t){return t&&t.__esModule?t:{default:t}}Tl.ariaLabelsShape=$n.default.shape({dateInput:$n.default.objectOf($n.default.shape({startDate:$n.default.string,endDate:$n.default.string})),monthPicker:$n.default.string,yearPicker:$n.default.string,prevButton:$n.default.string,nextButton:$n.default.string}),Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=void 0;var Ne=_R(_),ue=Js(Xn),bR=Gn,Yv=Js(Ml),Vv=Js(El),Nl=Jn,ss=Js(sr),yR=Js(Fv),wR=T3,We=es,vR=$u,xR=Js(rs),kR=Tl;function Js(t){return t&&t.__esModule?t:{default:t}}function Uv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Uv=function(r){return r?n:e})(t)}function _R(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Uv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function jl(){return jl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},jl.apply(this,arguments)}function sn(t,e,n){return e=SR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function SR(t){var e=OR(t,"string");return typeof e=="symbol"?e:String(e)}function OR(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class qs extends Ne.PureComponent{constructor(e,n){var r;super(e,n),r=this,sn(this,"focusToDate",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.props,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!a.scroll.enabled){if(o&&a.preventSnapRefocus){const c=(0,We.differenceInCalendarMonths)(s,r.state.focusedDate),d=a.calendarFocus==="forwards"&&c>=0,u=a.calendarFocus==="backwards"&&c<=0;if((d||u)&&Math.abs(c)<a.months)return}r.setState({focusedDate:s});return}const i=(0,We.differenceInCalendarMonths)(s,a.minDate,r.dateOptions),l=r.list.getVisibleRange();o&&l.includes(i)||(r.isFirstRender=!0,r.list.scrollTo(i),r.setState({focusedDate:s}))}),sn(this,"updateShownDate",function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r.props;const a=s.scroll.enabled?{...s,months:r.list.getVisibleRange().length}:s,o=(0,Nl.calcFocusDate)(r.state.focusedDate,a);r.focusToDate(o,a)}),sn(this,"updatePreview",s=>{if(!s){this.setState({preview:null});return}const a={startDate:s,endDate:s,color:this.props.color};this.setState({preview:a})}),sn(this,"changeShownDate",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"set";const{focusedDate:o}=r.state,{onShownDateChange:i,minDate:l,maxDate:c}=r.props,d={monthOffset:()=>(0,We.addMonths)(o,s),setMonth:()=>(0,We.setMonth)(o,s),setYear:()=>(0,We.setYear)(o,s),set:()=>s},u=(0,We.min)([(0,We.max)([d[a](),l]),c]);r.focusToDate(u,r.props,!1),i&&i(u)}),sn(this,"handleRangeFocusChange",(s,a)=>{this.props.onRangeFocusChange&&this.props.onRangeFocusChange([s,a])}),sn(this,"handleScroll",()=>{const{onShownDateChange:s,minDate:a}=this.props,{focusedDate:o}=this.state,{isFirstRender:i}=this,l=this.list.getVisibleRange();if(l[0]===void 0)return;const c=(0,We.addMonths)(a,l[0]||0);!(0,We.isSameMonth)(c,o)&&!i&&(this.setState({focusedDate:c}),s&&s(c)),this.isFirstRender=!1}),sn(this,"renderMonthAndYear",(s,a,o)=>{const{showMonthArrow:i,minDate:l,maxDate:c,showMonthAndYearPickers:d,ariaLabels:u}=o,h=(c||qs.defaultProps.maxDate).getFullYear(),g=(l||qs.defaultProps.minDate).getFullYear(),m=this.styles;return Ne.default.createElement("div",{onMouseUp:p=>p.stopPropagation(),className:m.monthAndYearWrapper},i?Ne.default.createElement("button",{type:"button",className:(0,ss.default)(m.nextPrevButton,m.prevButton),onClick:()=>a(-1,"monthOffset"),"aria-label":u.prevButton},Ne.default.createElement("i",null)):null,d?Ne.default.createElement("span",{className:m.monthAndYearPickers},Ne.default.createElement("span",{className:m.monthPicker},Ne.default.createElement("select",{value:s.getMonth(),onChange:p=>a(p.target.value,"setMonth"),"aria-label":u.monthPicker},this.state.monthNames.map((p,b)=>Ne.default.createElement("option",{key:b,value:b},p)))),Ne.default.createElement("span",{className:m.monthAndYearDivider}),Ne.default.createElement("span",{className:m.yearPicker},Ne.default.createElement("select",{value:s.getFullYear(),onChange:p=>a(p.target.value,"setYear"),"aria-label":u.yearPicker},new Array(h-g+1).fill(h).map((p,b)=>{const y=p-b;return Ne.default.createElement("option",{key:y,value:y},y)})))):Ne.default.createElement("span",{className:m.monthAndYearPickers},this.state.monthNames[s.getMonth()]," ",s.getFullYear()),i?Ne.default.createElement("button",{type:"button",className:(0,ss.default)(m.nextPrevButton,m.nextButton),onClick:()=>a(1,"monthOffset"),"aria-label":u.nextButton},Ne.default.createElement("i",null)):null)}),sn(this,"renderDateDisplay",()=>{const{focusedRange:s,color:a,ranges:o,rangeColors:i,dateDisplayFormat:l,editableDateInputs:c,startDatePlaceholder:d,endDatePlaceholder:u,ariaLabels:h}=this.props,g=i[s[0]]||a,m=this.styles;return Ne.default.createElement("div",{className:m.dateDisplayWrapper},o.map((p,b)=>p.showDateDisplay===!1||p.disabled&&!p.showDateDisplay?null:Ne.default.createElement("div",{className:m.dateDisplay,key:b,style:{color:p.color||g}},Ne.default.createElement(Vv.default,{className:(0,ss.default)(m.dateDisplayItem,{[m.dateDisplayItemActive]:s[0]===b&&s[1]===0}),readOnly:!c,disabled:p.disabled,value:p.startDate,placeholder:d,dateOptions:this.dateOptions,dateDisplayFormat:l,ariaLabel:h.dateInput&&h.dateInput[p.key]&&h.dateInput[p.key].startDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(b,0)}),Ne.default.createElement(Vv.default,{className:(0,ss.default)(m.dateDisplayItem,{[m.dateDisplayItemActive]:s[0]===b&&s[1]===1}),readOnly:!c,disabled:p.disabled,value:p.endDate,placeholder:u,dateOptions:this.dateOptions,dateDisplayFormat:l,ariaLabel:h.dateInput&&h.dateInput[p.key]&&h.dateInput[p.key].endDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(b,1)}))))}),sn(this,"onDragSelectionStart",s=>{const{onChange:a,dragSelectionEnabled:o}=this.props;o?this.setState({drag:{status:!0,range:{startDate:s,endDate:s},disablePreview:!0}}):a&&a(s)}),sn(this,"onDragSelectionEnd",s=>{const{updateRange:a,displayMode:o,onChange:i,dragSelectionEnabled:l}=this.props;if(!l)return;if(o==="date"||!this.state.drag.status){i&&i(s);return}const c={startDate:this.state.drag.range.startDate,endDate:s};o!=="dateRange"||(0,We.isSameDay)(c.startDate,s)?this.setState({drag:{status:!1,range:{}}},()=>i&&i(s)):this.setState({drag:{status:!1,range:{}}},()=>{a&&a(c)})}),sn(this,"onDragSelectionMove",s=>{const{drag:a}=this.state;!a.status||!this.props.dragSelectionEnabled||this.setState({drag:{status:a.status,range:{startDate:a.range.startDate,endDate:s},disablePreview:!0}})}),sn(this,"estimateMonthSize",(s,a)=>{const{direction:o,minDate:i}=this.props,{scrollArea:l}=this.state;if(a&&(this.listSizeCache=a,a[s]))return a[s];if(o==="horizontal")return l.monthWidth;const c=(0,We.addMonths)(i,s),{start:d,end:u}=(0,Nl.getMonthDisplayRange)(c,this.dateOptions);return(0,We.differenceInDays)(u,d,this.dateOptions)+1>7*5?l.longMonthHeight:l.monthHeight}),this.dateOptions={locale:e.locale},e.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=e.weekStartsOn),this.styles=(0,Nl.generateStyles)([xR.default,e.classNames]),this.listSizeCache={},this.isFirstRender=!0,this.state={monthNames:this.getMonthNames(),focusedDate:(0,Nl.calcFocusDate)(null,e),drag:{status:!1,range:{startDate:null,endDate:null},disablePreview:!1},scrollArea:this.calcScrollArea(e)}}getMonthNames(){return[...Array(12).keys()].map(e=>this.props.locale.localize.month(e))}calcScrollArea(e){const{direction:n,months:r,scroll:s}=e;if(!s.enabled)return{enabled:!1};const a=s.longMonthHeight||s.monthHeight;return n==="vertical"?{enabled:!0,monthHeight:s.monthHeight||220,longMonthHeight:a||260,calendarWidth:"auto",calendarHeight:(s.calendarHeight||a||240)*r}:{enabled:!0,monthWidth:s.monthWidth||332,calendarWidth:(s.calendarWidth||s.monthWidth||332)*r,monthHeight:a||300,calendarHeight:a||300}}componentDidMount(){this.props.scroll.enabled&&setTimeout(()=>this.focusToDate(this.state.focusedDate))}componentDidUpdate(e){const r={dateRange:"ranges",date:"date"}[this.props.displayMode];this.props[r]!==e[r]&&this.updateShownDate(this.props),(e.locale!==this.props.locale||e.weekStartsOn!==this.props.weekStartsOn)&&(this.dateOptions={locale:this.props.locale},this.props.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=this.props.weekStartsOn),this.setState({monthNames:this.getMonthNames()})),(0,wR.shallowEqualObjects)(e.scroll,this.props.scroll)||this.setState({scrollArea:this.calcScrollArea(this.props)})}renderWeekdays(){const e=new Date;return Ne.default.createElement("div",{className:this.styles.weekDays},(0,We.eachDayOfInterval)({start:(0,We.startOfWeek)(e,this.dateOptions),end:(0,We.endOfWeek)(e,this.dateOptions)}).map((n,r)=>Ne.default.createElement("span",{className:this.styles.weekDay,key:r},(0,We.format)(n,this.props.weekdayDisplayFormat,this.dateOptions))))}render(){const{showDateDisplay:e,onPreviewChange:n,scroll:r,direction:s,disabledDates:a,disabledDay:o,maxDate:i,minDate:l,rangeColors:c,color:d,navigatorRenderer:u,className:h,preview:g}=this.props,{scrollArea:m,focusedDate:p}=this.state,b=s==="vertical",y=u||this.renderMonthAndYear,v=this.props.ranges.map((k,x)=>({...k,color:k.color||c[x]||d}));return Ne.default.createElement("div",{className:(0,ss.default)(this.styles.calendarWrapper,h),onMouseUp:()=>this.setState({drag:{status:!1,range:{}}}),onMouseLeave:()=>{this.setState({drag:{status:!1,range:{}}})}},e&&this.renderDateDisplay(),y(p,this.changeShownDate,this.props),r.enabled?Ne.default.createElement("div",null,b&&this.renderWeekdays(this.dateOptions),Ne.default.createElement("div",{className:(0,ss.default)(this.styles.infiniteMonths,b?this.styles.monthsVertical:this.styles.monthsHorizontal),onMouseLeave:()=>n&&n(),style:{width:m.calendarWidth+11,height:m.calendarHeight+11},onScroll:this.handleScroll},Ne.default.createElement(yR.default,{length:(0,We.differenceInCalendarMonths)((0,We.endOfMonth)(i),(0,We.addDays)((0,We.startOfMonth)(l),-1),this.dateOptions),treshold:500,type:"variable",ref:k=>this.list=k,itemSizeEstimator:this.estimateMonthSize,axis:b?"y":"x",itemRenderer:(k,x)=>{const w=(0,We.addMonths)(l,k);return Ne.default.createElement(Yv.default,jl({},this.props,{onPreviewChange:n||this.updatePreview,preview:g||this.state.preview,ranges:v,key:x,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:a,disabledDay:o,month:w,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>n&&n(),styles:this.styles,style:b?{height:this.estimateMonthSize(k)}:{height:m.monthHeight,width:this.estimateMonthSize(k)},showMonthName:!0,showWeekDays:!b}))}}))):Ne.default.createElement("div",{className:(0,ss.default)(this.styles.months,b?this.styles.monthsVertical:this.styles.monthsHorizontal)},new Array(this.props.months).fill(null).map((k,x)=>{let w=(0,We.addMonths)(this.state.focusedDate,x);return this.props.calendarFocus==="backwards"&&(w=(0,We.subMonths)(this.state.focusedDate,this.props.months-1-x)),Ne.default.createElement(Yv.default,jl({},this.props,{onPreviewChange:n||this.updatePreview,preview:g||this.state.preview,ranges:v,key:x,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:a,disabledDay:o,month:w,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>n&&n(),styles:this.styles,showWeekDays:!b||x===0,showMonthName:!b||x>0}))})))}}qs.defaultProps={showMonthArrow:!0,showMonthAndYearPickers:!0,disabledDates:[],disabledDay:()=>{},classNames:{},locale:vR.enUS,ranges:[],focusedRange:[0,0],dateDisplayFormat:"MMM d, yyyy",monthDisplayFormat:"MMM yyyy",weekdayDisplayFormat:"E",dayDisplayFormat:"d",showDateDisplay:!0,showPreview:!0,displayMode:"date",months:1,color:"#3d91ff",scroll:{enabled:!1},direction:"vertical",maxDate:(0,We.addYears)(new Date,20),minDate:(0,We.addYears)(new Date,-100),rangeColors:["#3d91ff","#3ecf8e","#fed14c"],startDatePlaceholder:"Early",endDatePlaceholder:"Continuous",editableDateInputs:!1,dragSelectionEnabled:!0,fixedHeight:!1,calendarFocus:"forwards",preventSnapRefocus:!1,ariaLabels:{}},qs.propTypes={showMonthArrow:ue.default.bool,showMonthAndYearPickers:ue.default.bool,disabledDates:ue.default.array,disabledDay:ue.default.func,minDate:ue.default.object,maxDate:ue.default.object,date:ue.default.object,onChange:ue.default.func,onPreviewChange:ue.default.func,onRangeFocusChange:ue.default.func,classNames:ue.default.object,locale:ue.default.object,shownDate:ue.default.object,onShownDateChange:ue.default.func,ranges:ue.default.arrayOf(bR.rangeShape),preview:ue.default.shape({startDate:ue.default.object,endDate:ue.default.object,color:ue.default.string}),dateDisplayFormat:ue.default.string,monthDisplayFormat:ue.default.string,weekdayDisplayFormat:ue.default.string,weekStartsOn:ue.default.number,dayDisplayFormat:ue.default.string,focusedRange:ue.default.arrayOf(ue.default.number),initialFocusedRange:ue.default.arrayOf(ue.default.number),months:ue.default.number,className:ue.default.string,showDateDisplay:ue.default.bool,showPreview:ue.default.bool,displayMode:ue.default.oneOf(["dateRange","date"]),color:ue.default.string,updateRange:ue.default.func,scroll:ue.default.shape({enabled:ue.default.bool,monthHeight:ue.default.number,longMonthHeight:ue.default.number,monthWidth:ue.default.number,calendarWidth:ue.default.number,calendarHeight:ue.default.number}),direction:ue.default.oneOf(["vertical","horizontal"]),startDatePlaceholder:ue.default.string,endDatePlaceholder:ue.default.string,navigatorRenderer:ue.default.func,rangeColors:ue.default.arrayOf(ue.default.string),editableDateInputs:ue.default.bool,dragSelectionEnabled:ue.default.bool,fixedHeight:ue.default.bool,calendarFocus:ue.default.string,preventSnapRefocus:ue.default.bool,ariaLabels:kR.ariaLabelsShape},oo.default=qs,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var Xv=ER(_),$s=Il(Xn),Gv=Il(oo),CR=Gn,of=Jn,An=es,DR=Il(sr),MR=Il(rs);function Il(t){return t&&t.__esModule?t:{default:t}}function Kv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Kv=function(r){return r?n:e})(t)}function ER(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Kv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function lf(){return lf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},lf.apply(this,arguments)}function Al(t,e,n){return e=PR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function PR(t){var e=TR(t,"string");return typeof e=="symbol"?e:String(e)}function TR(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class cf extends Xv.Component{constructor(e,n){var r;super(e,n),r=this,Al(this,"calcNewSelection",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const o=r.props.focusedRange||r.state.focusedRange,{ranges:i,onChange:l,maxDate:c,moveRangeOnFirstSelection:d,retainEndDateOnFirstSelection:u,disabledDates:h}=r.props,g=o[0],m=i[g];if(!m||!l)return{};let{startDate:p,endDate:b}=m;const y=new Date;let v;if(!a)p=s.startDate,b=s.endDate;else if(o[1]===0){const w=(0,An.differenceInCalendarDays)(b||y,p),S=()=>d?(0,An.addDays)(s,w):u?!b||(0,An.isBefore)(s,b)?b:s:s||y;p=s,b=S(),c&&(b=(0,An.min)([b,c])),v=[o[0],1]}else b=s;let k=o[1]===0;(0,An.isBefore)(b,p)&&(k=!k,[p,b]=[b,p]);const x=h.filter(w=>(0,An.isWithinInterval)(w,{start:p,end:b}));return x.length>0&&(k?p=(0,An.addDays)((0,An.max)(x),1):b=(0,An.addDays)((0,An.min)(x),-1)),v||(v=[(0,of.findNextRangeIndex)(r.props.ranges,o[0]),0]),{wasValid:!(x.length>0),range:{startDate:p,endDate:b},nextFocusRange:v}}),Al(this,"setSelection",(s,a)=>{const{onChange:o,ranges:i,onRangeFocusChange:l}=this.props,d=(this.props.focusedRange||this.state.focusedRange)[0],u=i[d];if(!u)return;const h=this.calcNewSelection(s,a);o({[u.key||`range${d+1}`]:{...u,...h.range}}),this.setState({focusedRange:h.nextFocusRange,preview:null}),l&&l(h.nextFocusRange)}),Al(this,"handleRangeFocusChange",s=>{this.setState({focusedRange:s}),this.props.onRangeFocusChange&&this.props.onRangeFocusChange(s)}),Al(this,"updatePreview",s=>{var c;if(!s){this.setState({preview:null});return}const{rangeColors:a,ranges:o}=this.props,i=this.props.focusedRange||this.state.focusedRange,l=((c=o[i[0]])==null?void 0:c.color)||a[i[0]]||l;this.setState({preview:{...s.range,color:l}})}),this.state={focusedRange:e.initialFocusedRange||[(0,of.findNextRangeIndex)(e.ranges),0],preview:null},this.styles=(0,of.generateStyles)([MR.default,e.classNames])}render(){return Xv.default.createElement(Gv.default,lf({focusedRange:this.state.focusedRange,onRangeFocusChange:this.handleRangeFocusChange,preview:this.state.preview,onPreviewChange:e=>{this.updatePreview(e?this.calcNewSelection(e):null)}},this.props,{displayMode:"dateRange",className:(0,DR.default)(this.styles.dateRangeWrapper,this.props.className),onChange:this.setSelection,updateRange:e=>this.setSelection(e,!1),ref:e=>{this.calendar=e}}))}}cf.defaultProps={classNames:{},ranges:[],moveRangeOnFirstSelection:!1,retainEndDateOnFirstSelection:!1,rangeColors:["#3d91ff","#3ecf8e","#fed14c"],disabledDates:[]},cf.propTypes={...Gv.default.propTypes,onChange:$s.default.func,onRangeFocusChange:$s.default.func,className:$s.default.string,ranges:$s.default.arrayOf(CR.rangeShape),moveRangeOnFirstSelection:$s.default.bool,retainEndDateOnFirstSelection:$s.default.bool},ao.default=cf;var Rl={},bo={},kr={};Object.defineProperty(kr,"__esModule",{value:!0}),kr.createStaticRanges=Qv,kr.defaultStaticRanges=kr.defaultInputRanges=void 0;var Re=es;const ft={startOfWeek:(0,Re.startOfWeek)(new Date),endOfWeek:(0,Re.endOfWeek)(new Date),startOfLastWeek:(0,Re.startOfWeek)((0,Re.addDays)(new Date,-7)),endOfLastWeek:(0,Re.endOfWeek)((0,Re.addDays)(new Date,-7)),startOfToday:(0,Re.startOfDay)(new Date),endOfToday:(0,Re.endOfDay)(new Date),startOfYesterday:(0,Re.startOfDay)((0,Re.addDays)(new Date,-1)),endOfYesterday:(0,Re.endOfDay)((0,Re.addDays)(new Date,-1)),startOfMonth:(0,Re.startOfMonth)(new Date),endOfMonth:(0,Re.endOfMonth)(new Date),startOfLastMonth:(0,Re.startOfMonth)((0,Re.addMonths)(new Date,-1)),endOfLastMonth:(0,Re.endOfMonth)((0,Re.addMonths)(new Date,-1))},NR={range:{},isSelected(t){const e=this.range();return(0,Re.isSameDay)(t.startDate,e.startDate)&&(0,Re.isSameDay)(t.endDate,e.endDate)}};function Qv(t){return t.map(e=>({...NR,...e}))}kr.defaultStaticRanges=Qv([{label:"Today",range:()=>({startDate:ft.startOfToday,endDate:ft.endOfToday})},{label:"Yesterday",range:()=>({startDate:ft.startOfYesterday,endDate:ft.endOfYesterday})},{label:"This Week",range:()=>({startDate:ft.startOfWeek,endDate:ft.endOfWeek})},{label:"Last Week",range:()=>({startDate:ft.startOfLastWeek,endDate:ft.endOfLastWeek})},{label:"This Month",range:()=>({startDate:ft.startOfMonth,endDate:ft.endOfMonth})},{label:"Last Month",range:()=>({startDate:ft.startOfLastMonth,endDate:ft.endOfLastMonth})}]),kr.defaultInputRanges=[{label:"days up to today",range(t){return{startDate:(0,Re.addDays)(ft.startOfToday,(Math.max(Number(t),1)-1)*-1),endDate:ft.endOfToday}},getCurrentValue(t){return(0,Re.isSameDay)(t.endDate,ft.endOfToday)?t.startDate?(0,Re.differenceInCalendarDays)(ft.endOfToday,t.startDate)+1:"∞":"-"}},{label:"days starting today",range(t){const e=new Date;return{startDate:e,endDate:(0,Re.addDays)(e,Math.max(Number(t),1)-1)}},getCurrentValue(t){return(0,Re.isSameDay)(t.startDate,ft.startOfToday)?t.endDate?(0,Re.differenceInCalendarDays)(t.endDate,ft.startOfToday)+1:"∞":"-"}}];var Ll={};Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.default=void 0;var Fl=IR(_),Lt=jR(Xn);function jR(t){return t&&t.__esModule?t:{default:t}}function Zv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Zv=function(r){return r?n:e})(t)}function IR(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Zv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function AR(t,e,n){return e=RR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function RR(t){var e=LR(t,"string");return typeof e=="symbol"?e:String(e)}function LR(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const Jv=0,qv=99999;class df extends Fl.Component{constructor(e,n){super(e,n),AR(this,"onChange",r=>{const{onChange:s}=this.props;let a=parseInt(r.target.value,10);a=isNaN(a)?0:Math.max(Math.min(qv,a),Jv),s(a)})}shouldComponentUpdate(e){const{value:n,label:r,placeholder:s}=this.props;return n!==e.value||r!==e.label||s!==e.placeholder}render(){const{label:e,placeholder:n,value:r,styles:s,onBlur:a,onFocus:o}=this.props;return Fl.default.createElement("div",{className:s.inputRange},Fl.default.createElement("input",{className:s.inputRangeInput,placeholder:n,value:r,min:Jv,max:qv,onChange:this.onChange,onFocus:o,onBlur:a}),Fl.default.createElement("span",{className:s.inputRangeLabel},e))}}df.propTypes={value:Lt.default.oneOfType([Lt.default.string,Lt.default.number]),label:Lt.default.oneOfType([Lt.default.element,Lt.default.node]).isRequired,placeholder:Lt.default.string,styles:Lt.default.shape({inputRange:Lt.default.string,inputRangeInput:Lt.default.string,inputRangeLabel:Lt.default.string}).isRequired,onBlur:Lt.default.func.isRequired,onFocus:Lt.default.func.isRequired,onChange:Lt.default.func.isRequired},df.defaultProps={value:"",placeholder:"-"},Ll.default=df,Object.defineProperty(bo,"__esModule",{value:!0}),bo.default=void 0;var as=WR(_),Ut=Bl(Xn),os=Bl(rs),$v=kr,FR=Gn,BR=Bl(Ll),ex=Bl(sr);function Bl(t){return t&&t.__esModule?t:{default:t}}function tx(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(tx=function(r){return r?n:e})(t)}function WR(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=tx(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function zR(t,e,n){return e=HR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function HR(t){var e=YR(t,"string");return typeof e=="symbol"?e:String(e)}function YR(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class uf extends as.Component{constructor(e){super(e),zR(this,"handleRangeChange",n=>{const{onChange:r,ranges:s,focusedRange:a}=this.props,o=s[a[0]];!r||!o||r({[o.key||`range${a[0]+1}`]:{...o,...n}})}),this.state={rangeOffset:0,focusedInput:-1}}getRangeOptionValue(e){const{ranges:n=[],focusedRange:r=[]}=this.props;if(typeof e.getCurrentValue!="function")return"";const s=n[r[0]]||{};return e.getCurrentValue(s)||""}getSelectedRange(e,n){const r=e.findIndex(a=>!a.startDate||!a.endDate||a.disabled?!1:n.isSelected(a));return{selectedRange:e[r],focusedRangeIndex:r}}render(){const{headerContent:e,footerContent:n,onPreviewChange:r,inputRanges:s,staticRanges:a,ranges:o,renderStaticRangeLabel:i,rangeColors:l,className:c}=this.props;return as.default.createElement("div",{className:(0,ex.default)(os.default.definedRangesWrapper,c)},e,as.default.createElement("div",{className:os.default.staticRanges},a.map((d,u)=>{const{selectedRange:h,focusedRangeIndex:g}=this.getSelectedRange(o,d);let m;return d.hasCustomRendering?m=i(d):m=d.label,as.default.createElement("button",{type:"button",className:(0,ex.default)(os.default.staticRange,{[os.default.staticRangeSelected]:!!h}),style:{color:h?h.color||l[g]:null},key:u,onClick:()=>this.handleRangeChange(d.range(this.props)),onFocus:()=>r&&r(d.range(this.props)),onMouseOver:()=>r&&r(d.range(this.props)),onMouseLeave:()=>{r&&r()}},as.default.createElement("span",{tabIndex:-1,className:os.default.staticRangeLabel},m))})),as.default.createElement("div",{className:os.default.inputRanges},s.map((d,u)=>as.default.createElement(BR.default,{key:u,styles:os.default,label:d.label,onFocus:()=>this.setState({focusedInput:u,rangeOffset:0}),onBlur:()=>this.setState({rangeOffset:0}),onChange:h=>this.handleRangeChange(d.range(h,this.props)),value:this.getRangeOptionValue(d)}))),n)}}uf.propTypes={inputRanges:Ut.default.array,staticRanges:Ut.default.array,ranges:Ut.default.arrayOf(FR.rangeShape),focusedRange:Ut.default.arrayOf(Ut.default.number),onPreviewChange:Ut.default.func,onChange:Ut.default.func,footerContent:Ut.default.any,headerContent:Ut.default.any,rangeColors:Ut.default.arrayOf(Ut.default.string),className:Ut.default.string,renderStaticRangeLabel:Ut.default.func},uf.defaultProps={inputRanges:$v.defaultInputRanges,staticRanges:$v.defaultStaticRanges,ranges:[],rangeColors:["#3d91ff","#3ecf8e","#fed14c"],focusedRange:[0,0]},bo.default=uf,Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.default=void 0;var Wl=GR(_),VR=yo(Xn),nx=yo(ao),rx=yo(bo),sx=Jn,UR=yo(sr),XR=yo(rs);function yo(t){return t&&t.__esModule?t:{default:t}}function ax(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(ax=function(r){return r?n:e})(t)}function GR(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=ax(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function zl(){return zl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},zl.apply(this,arguments)}let ff=class extends Wl.Component{constructor(e){super(e),this.state={focusedRange:[(0,sx.findNextRangeIndex)(e.ranges),0]},this.styles=(0,sx.generateStyles)([XR.default,e.classNames])}render(){const{focusedRange:e}=this.state;return Wl.default.createElement("div",{className:(0,UR.default)(this.styles.dateRangePickerWrapper,this.props.className)},Wl.default.createElement(rx.default,zl({focusedRange:e,onPreviewChange:n=>this.dateRange.updatePreview(n?this.dateRange.calcNewSelection(n,typeof n=="string"):null)},this.props,{range:this.props.ranges[e[0]],className:void 0})),Wl.default.createElement(nx.default,zl({onRangeFocusChange:n=>this.setState({focusedRange:n}),focusedRange:e},this.props,{ref:n=>this.dateRange=n,className:void 0})))}};ff.defaultProps={},ff.propTypes={...nx.default.propTypes,...rx.default.propTypes,className:VR.default.string},Rl.default=ff,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Calendar",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"DateRange",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"DateRangePicker",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"DefinedRange",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"createStaticRanges",{enumerable:!0,get:function(){return a.createStaticRanges}}),Object.defineProperty(t,"defaultInputRanges",{enumerable:!0,get:function(){return a.defaultInputRanges}}),Object.defineProperty(t,"defaultStaticRanges",{enumerable:!0,get:function(){return a.defaultStaticRanges}});var e=o(ao),n=o(oo),r=o(Rl),s=o(bo),a=kr;function o(i){return i&&i.__esModule?i:{default:i}}}(ow);const KR={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},QR=(t,e,n)=>{let r;const s=KR[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},ZR={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},JR={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},qR={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$R={date:Ks({formats:ZR,defaultWidth:"full"}),time:Ks({formats:JR,defaultWidth:"full"}),dateTime:Ks({formats:qR,defaultWidth:"full"})},eL={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},tL={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},nL=(t,e,n,r)=>e.getHours()!==1?tL[t]:eL[t],rL={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},sL={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},aL={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},oL={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},iL={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},lL={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},cL={ordinalNumber:(t,e)=>Number(t)+"º",era:En({values:rL,defaultWidth:"wide"}),quarter:En({values:sL,defaultWidth:"wide",argumentCallback:t=>Number(t)-1}),month:En({values:aL,defaultWidth:"wide"}),day:En({values:oL,defaultWidth:"wide"}),dayPeriod:En({values:iL,defaultWidth:"wide",formattingValues:lL,defaultFormattingWidth:"wide"})},dL=/^(\d+)(º)?/i,uL=/\d+/i,fL={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},hL={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},gL={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},mL={any:[/1/i,/2/i,/3/i,/4/i]},pL={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},bL={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},yL={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},wL={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},vL={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},xL={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},kL={ordinalNumber:Qw({matchPattern:dL,parsePattern:uL,valueCallback:function(t){return parseInt(t,10)}}),era:Pn({matchPatterns:fL,defaultMatchWidth:"wide",parsePatterns:hL,defaultParseWidth:"any"}),quarter:Pn({matchPatterns:gL,defaultMatchWidth:"wide",parsePatterns:mL,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Pn({matchPatterns:pL,defaultMatchWidth:"wide",parsePatterns:bL,defaultParseWidth:"any"}),day:Pn({matchPatterns:yL,defaultMatchWidth:"wide",parsePatterns:wL,defaultParseWidth:"any"}),dayPeriod:Pn({matchPatterns:vL,defaultMatchWidth:"any",parsePatterns:xL,defaultParseWidth:"any"})},_L={code:"es",formatDistance:QR,formatLong:$R,formatRelative:nL,localize:cL,match:kL,options:{weekStartsOn:1,firstWeekContainsDate:1}},er={"date-container":"dateRangePicker-module__date-container__jh9s-","date-input":"dateRangePicker-module__date-input__xt4gs","date-popup":"dateRangePicker-module__date-popup__TQHMh","date-menu":"dateRangePicker-module__date-menu__Nv5nr","date-menuItem":"dateRangePicker-module__date-menuItem__AYJ32","date-menuItemReset":"dateRangePicker-module__date-menuItemReset__J9IdZ","date-calendar":"dateRangePicker-module__date-calendar__M10Iv"},SL=[{label:"Ayer",range:()=>{const t=new Date;return t.setDate(t.getDate()-1),{startDate:t,endDate:t}}},{label:"La semana pasada",range:()=>({startDate:rn(new Date,-6),endDate:new Date})},{label:"El mes pasado",range:()=>{const t=new Date,e=new Date(t.getFullYear(),t.getMonth()-1,1),n=new Date(t.getFullYear(),t.getMonth(),0);return{startDate:e,endDate:n}}}],OL=({value:t,onChange:e,minData:n,maxData:r,quickRanges:s,className:a})=>{const[o,i]=_.useState([{startDate:rn(new Date,-6),endDate:new Date,key:"selection"}]),[l,c]=_.useState(!1),[d,u]=_.useState({}),h=_.useRef(null),g=_.useRef(null),m=s??SL,p=t?[{...t,key:"selection"}]:o;_.useEffect(()=>{if(l&&g.current&&h.current){const x=g.current.getBoundingClientRect(),w=h.current.offsetWidth||700,S=window.innerWidth-x.right,N=x.left,M={right:0,left:"auto"};S<w&&N>=w&&(M.left=0,M.right="auto"),window.innerWidth<w&&(M.left=0,M.right=0,M.width="100vw",M.maxWidth="100vw"),u(M)}},[l]);const b=x=>{t||i([x.selection]),e==null||e(x.selection.startDate,x.selection.endDate)},y=x=>{const{startDate:w,endDate:S}=x();t||i([{startDate:w,endDate:S,key:"selection"}]),e==null||e(w,S),c(!1)},v=()=>{const x=new Date;t||i([{startDate:x,endDate:x,key:"selection"}]),e==null||e(x,x),c(!1)},k=x=>kl(x,"dd MMM yy");return _.useEffect(()=>{if(!l)return;const x=w=>{h.current&&!h.current.contains(w.target)&&g.current&&!g.current.contains(w.target)&&c(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[l]),f.jsxs("div",{className:er["date-container"],children:[f.jsx("input",{ref:g,type:"text",readOnly:!0,value:`${k(p[0].startDate)} - ${k(p[0].endDate)}`,onClick:()=>c(!l),className:`${er["date-input"]} ${a}`}),l&&f.jsxs("div",{ref:h,className:er["date-popup"],style:d,children:[f.jsxs("div",{className:er["date-menu"],children:[m.map((x,w)=>f.jsx("div",{className:er["date-menuItem"]+(w===2?" "+er["date-menuItemActive"]:""),onClick:()=>y(x.range),children:x.label},x.label)),f.jsx("div",{className:er["date-menuItem"]+" "+er["date-menuItemReset"],onClick:v,children:"Reset"})]}),f.jsx("div",{className:er["date-calendar"],children:f.jsx(ow.DateRange,{editableDateInputs:!1,onChange:b,moveRangeOnFirstSelection:!1,ranges:p,rangeColors:["#C0D4FF99"],minDate:n,maxDate:r,locale:_L,dayContentRenderer:x=>{const w=x.getDay(),S={opacity:w===0||w===6?.5:1,color:w===0||w===6?"#999":"inherit"};return f.jsx("span",{style:S,children:x.getDate()})},navigationButtonsPosition:"center"})})]})]})},CL=({minDate:t,maxDate:e})=>f.jsx(sh,{minDate:t,maxDate:e,className:"custom-datepicker"}),is={"loader-wrapper":"loader-module__loader-wrapper__faxmX",container:"loader-module__container__Vj8hl","mathilde-loading":"loader-module__mathilde-loading__qdEVv","loading-1":"loader-module__loading-1__mro54",logo:"loader-module__logo__IXZKs","ball-container":"loader-module__ball-container__qDvi5",ball:"loader-module__ball__MSPUh"},DL=function(){return f.jsx("div",{className:`mth_loader ${is["loader-wrapper"]}`,children:f.jsx("div",{className:is.container,children:f.jsxs("div",{className:is["mathilde-loading"],children:[f.jsx("img",{className:is.logo,src:"https://ftp.mathilde-ads.com/345-38ea95da72fc8edd1d853f315945b449.png",alt:"Logo Mathilde"}),f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:is["loading-1"],children:f.jsx("circle",{cx:"50",cy:"50",r:"40"})}),f.jsx("div",{className:is["ball-container"],children:f.jsx("div",{className:is.ball})})]})})})},ML=({label:t,dismissOnClick:e,items:n,size:r,className:s,styles:a,mode:o="simple",columns:i=2,onSelectionChange:l,selectedItems:c=[],activeChevron:d=!0,icon:u,iconSize:h=20})=>{const[g,m]=_.useState(c),p=(k,x)=>{const w=x?[...g,k]:g.filter(S=>S!==k);m(w),l==null||l(w)},b=()=>n.map(k=>f.jsx(Pc,{...k,href:k.href,children:k.label},k.value||k.label)),y=()=>{const k=i===1?"grid-cols-1":i===2?"grid-cols-2":i===3?"grid-cols-3":i===4?"grid-cols-4":"grid-cols-2";return f.jsx("div",{className:`grid min-w-[200px] gap-2 p-2 ${k}`,children:n.map(x=>{const w=x.value||x.label,S=g.includes(w);return f.jsxs("label",{className:"flex cursor-pointer items-center gap-2 rounded p-2 hover:bg-gray-100",children:[f.jsx("input",{type:"checkbox",checked:S,onChange:N=>p(w,N.target.checked),disabled:x.disabled,className:"size-3 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-blue-500"}),f.jsx("span",{className:`text-xs ${x.disabled?"text-gray-400":"text-black"}`,children:x.label})]},w)})})},v=k=>{if(!k)return null;if(typeof k=="string")return f.jsx("img",{src:k,alt:"icon",width:h,height:h});const x=k;return f.jsx(x,{size:h})};return f.jsx(f.Fragment,{children:f.jsx(y_,{label:t,dismissOnClick:o==="simple"?e:!1,size:r,renderTrigger:()=>f.jsx("button",{className:s,style:a,type:"button",children:f.jsxs("span",{className:"flex items-center gap-2",children:[v(u),t,d&&v(Xl)]})}),className:"left-0",children:o==="simple"?b():y()})})},EL=function({steps:t=[],initialStep:e=1,activeStep:n,onStepChange:r,renderControls:s,onNext:a,onBack:o,onFinish:i}){var b;const l=typeof n=="number",[c,d]=_.useState(e),u=l?n:c,h=()=>{if(u<t.length){const y=u+1;l?(r==null||r(y),a==null||a()):(d(y),a==null||a())}else i==null||i()},g=()=>{if(u>1){const y=u-1;l?(r==null||r(y),o==null||o()):(d(y),o==null||o())}},m=y=>{y!==u&&(y<1||y>t.length||(l?r==null||r(y):d(y)))},p={activeStep:u,stepsLength:t.length,isFirst:u===1,isLast:u===t.length,next:h,back:g,goToStep:m};return f.jsxs("div",{className:"mx-auto flex w-full flex-col md:flex-row",children:[f.jsx("ol",{className:"relative border-s-2 border-[#191960] text-gray-500 dark:border-gray-700 dark:text-gray-400 w-full self-start",children:t.map((y,v)=>{const k=v===t.length-1,x=v+1===u,w=v+1<u;return f.jsxs("li",{className:`ms-4 ${k?"":"mb-8"}`,children:[f.jsx("span",{className:`absolute -start-2 size-3.5 items-center justify-center rounded-full ring-1
583
583
  ${w||x?"bg-[#191960] ring-[#191960]":"bg-[#C0D4FF] ring-[#C0D4FF]"}`}),f.jsx("h3",{className:`text-sm font-medium leading-tight transition-colors duration-300
584
- ${w||x?"text-black":"text-gray-600"}`,children:y.title})]},y.title)})}),f.jsxs("div",{className:"w-full mt-6 ml-10 flex flex-col justify-between border-l-[1px] border-[#8B8B8B] md:mt-0 transition-all duration-300",children:[f.jsx("div",{children:((b=t[u-1])==null?void 0:b.content)||f.jsx("p",{children:"No hay contenido."})}),f.jsx("div",{className:"bottom-0 left-0 w-full",children:f.jsx("div",{className:"flex justify-end gap-2",children:s?f.jsx("div",{className:"w-full flex justify-end",children:s(p)}):f.jsxs(f.Fragment,{children:[f.jsx(tr,{typeButton:"white",txtBtn:"Atrás",disabled:u===1,onClick:g,type:"button",full:!1}),u<t.length?f.jsx(tr,{typeButton:"blue",txtBtn:"Siguiente",onClick:h,type:"button",full:!1}):f.jsx(tr,{typeButton:"blue",txtBtn:"Finalizar",onClick:i,type:"button",full:!1})]})})})]})]})};function hf({content:t,trigger:e,children:n}){return f.jsx("div",{className:"flex",children:f.jsx(Qo,{content:t,trigger:e,className:"p-4 z-50 bg-[#191960] text-white text-xs font-semibold max-w-[280px]",children:n})})}const PL=({label:t,options:e,classNameRadio:n,classNameLabel:r,className:s,onChange:a})=>f.jsxs("div",{className:`flex max-w-md flex-col gap-2 ${s??""}`,children:[t?f.jsx("div",{className:"text-sm font-medium text-gray-900",children:t}):null,f.jsx("div",{className:"flex items-center gap-4",children:e==null?void 0:e.map(o=>f.jsxs("div",{className:"flex items-center gap-x-1.5",children:[f.jsx(Hg,{id:o.id,value:o.value,name:o.name,onChange:a,defaultChecked:o.checked,disabled:o.disabled,className:`ring-1 ring-[#C4C4C4] focus:ring-[#C0D4FF] cursor-pointer size-5 ${n??""}`}),f.jsx(Tc,{htmlFor:o.id,className:`text-sm font-medium text-gray-900 ${r??""}`,children:o.label}),o.tooltip?f.jsx(hf,{content:o.tooltip,trigger:o.tooltipTrigger??"hover",children:o.tooltipChildren??f.jsx("button",{type:"button","aria-label":"Más información",className:"inline-flex size-4 items-center justify-center rounded-full border border-gray-300 text-[10px] leading-none text-gray-600 hover:bg-gray-50",children:"i"})}):null]},o.id))})]});function ix(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=ix(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function ls(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=ix(t))&&(r&&(r+=" "),r+=e);return r}const wo=({id:t,title:e,children:n,isOpen:r,onToggle:s,variant:a="minimal",icon:o,iconPosition:i="right",classes:l,titleClasses:c})=>{const d=ls({minimal:"",bordered:"border border-gray-300 dark:border-gray-600",shadow:"shadow-md",ghost:"bg-transparent"}[a]);return f.jsxs("div",{id:t,className:ls("rounded-lg w-full",d),children:[f.jsxs("button",{onClick:s,className:ls("flex w-full items-center justify-between px-5 cursor-pointer text-left ",l||"p-4"),children:[f.jsxs("div",{className:"flex items-center gap-2",children:[o&&i==="left"&&f.jsx("span",{className:ls("transition-transform text-[#191960]",r&&"rotate-90"),children:o}),f.jsx("span",{className:ls(c||"text-base font-semibold"),children:e})]}),o&&i==="right"&&f.jsx("span",{className:ls("transition-transform text-[#191960]",r&&"rotate-90"),children:o})]}),r&&f.jsx("div",{className:"overflow-hidden",children:f.jsx("div",{className:"px-4 pb-3 text-gray-700 dark:text-gray-300",children:n})},"content")]})},lx=({items:t,mode:e="multi",defaultOpen:n=[],className:r})=>{const[s,a]=_.useState(n),o=i=>{a(e==="multi"?l=>l.includes(i)?l.filter(c=>c!==i):[...l,i]:l=>l.includes(i)?[]:[i])};return f.jsx("div",{className:r,children:t.map(i=>f.jsx("div",{className:ls("mb-2 rounded-[10px]",i.containerButtonClasses?i.containerButtonClasses:"border-[1px] border-[#C4C4C4]"),children:f.jsx(wo,{id:i.id,title:i.title,isOpen:s.includes(i.id),onToggle:()=>o(i.id),variant:i.variant,icon:i.icon,iconPosition:i.iconPosition,classes:i.classes??"p-5",titleClasses:i.titleClasses,children:i.content})},i.id))})},TL=({onSelect:t,items:e=[],placeholder:n="Buscar país, región o ciudad",fetchItems:r,minCharsToSearch:s=3,debounceMs:a=300,classIncludes:o,iconSearch:i=!1,disabled:l=!1})=>{const[c,d]=_.useState(!1),[u,h]=_.useState(""),[g,m]=_.useState(e),p=_.useRef(null);_.useEffect(()=>{m(e)},[e]),_.useEffect(()=>{if(!r)return;if(u.trim().length<s){m([]);return}const y=new AbortController,v=setTimeout(async()=>{try{const k=await r(u.trim());m(k)}catch{m([])}},a);return()=>{clearTimeout(v),y.abort()}},[u,r,a,s]);const b=y=>{t(y),h(y.label),d(!1)};return f.jsxs("div",{ref:p,className:o,children:[f.jsx(pa,{classInclude:`rounded-[10px] w-min-290px ${l?"opacity-80 cursor-not-allowed":"border border-[#19196080]"}`,type:"search",placeholder:n,name:"search",value:u,onChange:y=>{h(y.target.value),d(!0)},onFocus:()=>d(!0),onBlur:()=>{d(!1)},icon:i,autoComplete:"off",disabled:l}),c&&g.length>0&&f.jsx("ul",{style:{background:"#FFFFFF",border:"1px solid #e6e6e6",borderRadius:8,listStyle:"none",padding:6,width:290,maxHeight:220,position:"absolute",zIndex:9999},children:g.map(y=>f.jsx("li",{onMouseDown:v=>{v.preventDefault(),v.stopPropagation(),b(y)},style:{padding:6,cursor:"pointer",borderRadius:6},children:f.jsx("div",{className:"text-xs",children:y.label})},y.id))})]})},NL=({items:t,title:e,onRemove:n,colors:r={},className:s="",containerClassName:a="",titleClassName:o="",showTitle:i=!0})=>{const c={...{backgroundColor:"#EEEEEE",textColor:"#191960",closeButtonBackgroundColor:"#191960",closeButtonTextColor:"#FFFFFF",borderRadius:20},...r},d={borderRadius:`${c.borderRadius}px`,backgroundColor:c.backgroundColor},u={color:c.textColor},h={backgroundColor:c.closeButtonBackgroundColor,color:c.closeButtonTextColor};return f.jsxs("div",{className:`${s}`,children:[i&&e&&f.jsx("h2",{className:`${o}`,children:e}),f.jsx("div",{className:`${a}`,style:{marginTop:6},children:f.jsx("div",{children:t.map(g=>f.jsxs("div",{className:"mb-1 ml-1 inline-flex items-center gap-2 bg-[#EEEEEE] px-2 py-1",style:d,children:[f.jsx("span",{className:"text-xs text-[#191960]",style:u,children:g.name}),f.jsx("button",{className:"flex size-4 items-center justify-center rounded-full font-semibold",style:h,onClick:()=>n(g.id),"aria-label":`Eliminar ${g.name}`,type:"button",children:"×"})]},g.id))})})]})},jL=({isOpen:t,onConfirm:e,onCancel:n,onClose:r,...s})=>(_.useEffect(()=>{t&&Hs.fire(s).then(a=>{a.isConfirmed&&e&&e(),a.isDismissed&&n&&n(),r&&r()})},[t,n,r,e,s]),null),gf={"mth-parent-row":"collapsibleTable-module__mth-parent-row__X3y2O","mth-sub-row":"collapsibleTable-module__mth-sub-row__WQDui","mth-sub-empty-cell":"collapsibleTable-module__mth-sub-empty-cell__d0dCJ"},IL=({columns:t,data:e,showSearch:n=!1,itemsPerPage:r=5,title:s,classesHeadTable:a,classesBodyTable:o,showPagination:i=!0,showCheckboxes:l=!1,selectedRows:c=new Set,onToggleChange:d,onRowSelect:u,onSelectAll:h,collapsible:g=!1,collapseMode:m="multi",defaultOpenRows:p=[],onCollapseChange:b,openRowIds:y,getSubRows:v,collapseToggleColumnKey:k="id",collapseButtonClassName:x,parentRowClassName:w,subRowClassName:S})=>{const[N,M]=H.useState(""),[T,P]=H.useState(1),[z,F]=H.useState(null),[O,C]=H.useState(p),E=y??O,W=I=>{if(y)return b==null?void 0:b(I);C(I),b==null||b(I)},U=I=>{g&&W(m==="multi"?E.includes(I)?E.filter(q=>q!==I):[...E,I]:E.includes(I)?[]:[I])},K=H.useMemo(()=>z?[...e].sort((I,q)=>{const te=I[z.key],B=q[z.key];return te==null||B==null?0:typeof te=="string"&&typeof B=="string"?z.direction==="asc"?te.localeCompare(B):B.localeCompare(te):z.direction==="asc"?Number(te)-Number(B):Number(B)-Number(te)}):e,[e,z]),ee=H.useMemo(()=>{if(!N.trim())return K;const I=N.toLowerCase().trim();return K.filter(q=>t.some(te=>{const B=q[te.relation];return B!=null&&String(B).toLowerCase().includes(I)}))},[K,N,t]),j=H.useMemo(()=>{const I=(T-1)*r,q=I+r;return ee.slice(I,q)},[ee,T,r]),V=Math.ceil(ee.length/r),L=()=>{if(!h)return;const I=j.length>0&&j.every(q=>c.has(q.id));h(!I)},R=I=>{if(!u)return;const q=c.has(I);u(I,!q)},A=j.length>0&&j.every(I=>c.has(I.id)),D=c.size>0&&c.size<j.length,Y=I=>{F(q=>!q||q.key!==I?{key:I,direction:"asc"}:{key:I,direction:q.direction==="asc"?"desc":"asc"})},J=(I,q)=>{const te=q[I.relation];if(I.isToggle){const B=!!te;return f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Xd,{checked:B,onChange:re=>d==null?void 0:d({rowId:q.id,checked:re,row:q,columnKey:I.relation}),disabled:!1}),I.toggleText&&f.jsx("span",{className:"text-sm text-gray-600",children:B?I.toggleText.active:I.toggleText.inactive})]})}if(I.badgeConfig)return f.jsx(qb,{value:te,config:I.badgeConfig});if(I.cell)return I.cell(q);if(I.component){const B=I.component;return H.createElement(B,{row:q,value:te,...I.cellProps||{}})}return te??""},G=(I,q,te,B)=>f.jsxs("div",{className:"flex items-center gap-1",children:[te?f.jsx("button",{type:"button",onClick:()=>U(q.id),className:x??"mth-collapse-btn","aria-label":B?"Colapsar fila":"Expandir fila",children:B?f.jsx(xs,{className:"size-3 text-[#191960] -ml-4"}):f.jsx(k_,{className:"size-3 text-[#191960] -ml-4"})}):f.jsx("span",{className:"mth-collapse-spacer"}),J(I,q)]});return f.jsxs("div",{className:"w-full",children:[f.jsx("div",{className:"mb-2 flex items-center justify-between",children:s&&f.jsx("h2",{className:"text-base font-bold",children:s})}),f.jsx("div",{className:"flex",children:n&&f.jsx("div",{className:"w-1/2",children:f.jsx(ds,{rightIcon:_f,placeholder:"Buscar",value:N,onChange:I=>{M(I.target.value),P(1)}})})}),f.jsxs("div",{className:"mt-0",children:[f.jsx("div",{className:"overflow-x-auto",children:f.jsxs(tt,{children:[f.jsxs(tt.Head,{className:`mth_head_table ${a}`,children:[l&&f.jsx(tt.HeadCell,{children:f.jsx(aa,{className:"bg-transparent",checked:A,ref:I=>{I&&(I.indeterminate=D)},onChange:L})},"checkbox-head"),t.map((I,q)=>f.jsx(tt.HeadCell,{className:"cursor-pointer text-xs",onClick:()=>I.sortable!==!1&&Y(I.relation),children:f.jsxs("div",{className:"flex items-center gap-1",children:[I.header,I.sortable!==!1&&f.jsx("span",{children:(z==null?void 0:z.key)===I.relation?z.direction==="desc"?f.jsx(xs,{className:"size-3"}):f.jsx(jc,{className:"size-3"}):f.jsx(xs,{className:"size-3 opacity-50"})})]})},`column-${q}-${I.relation}`))]}),f.jsx(tt.Body,{className:`divide-y text-xs md:text-base lg:text-base mth_body_table ${o}`,children:j.map(I=>{const q=v?v(I):[],te=g&&q.length>0,B=te&&E.includes(I.id);return f.jsxs(H.Fragment,{children:[f.jsxs(tt.Row,{className:`${B?gf["mth-parent-row"]:""} ${w}`,children:[l&&f.jsx(tt.Cell,{children:f.jsx(aa,{className:"bg-transparent",checked:c.has(I.id),onChange:()=>R(I.id)})}),t.map((re,se)=>re.relation===k?f.jsx(tt.Cell,{className:"whitespace-nowrap font-medium ",children:G(re,I,te,B)},`${I.id}-${se}`):f.jsx(tt.Cell,{className:"whitespace-nowrap font-medium text-gray-900",children:J(re,I)},`${I.id}-${se}`))]}),te&&B&&q.map((re,se)=>f.jsxs(tt.Row,{className:`${B?gf["mth-sub-row"]:""} ${S}`,children:[l&&f.jsx(tt.Cell,{className:`${B?gf["mth-sub-empty-cell"]:""}`}),t.map((ie,ge)=>f.jsx(tt.Cell,{className:"whitespace-nowrap font-normal text-gray-900",children:J(ie,re)},`${I.id}-sub-${se}-${ge}`))]},`${I.id}-sub-${se}`))]},I.id)})})]})}),i&&V>1&&f.jsx("div",{className:"mt-2 flex w-full justify-end",children:f.jsx(Ud,{currentPage:T,totalPages:V,onPageChange:P})})]})]})};function Hl(t){return De({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M2 4.75A.75.75 0 012.75 4h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 4.75zM2 10a.75.75 0 01.75-.75h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 10zm0 5.25a.75.75 0 01.75-.75h14.5a.75.75 0 010 1.5H2.75a.75.75 0 01-.75-.75z",clipRule:"evenodd"},child:[]}]})(t)}function AL(t){return De({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"},child:[]}]})(t)}function Yl(t){return De({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 18 15 12 9 6"},child:[]}]})(t)}const ea=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,RL=({item:t,categoryId:e})=>f.jsx("div",{className:"px-4 py-1 w-fit text-black font-light rounded-[10px] text-sm cursor-move hover:bg-[#C0D4FF] border border-[#c4c4c4] flex flex-col items-center",draggable:!0,onDragStart:n=>{n.dataTransfer.effectAllowed="copy",n.dataTransfer.setData("application/json",JSON.stringify({categoryId:e,itemId:t.id,label:t.label}))},children:f.jsxs("span",{className:"select-none flex items-center gap-2 text-sm",children:[f.jsx(Hl,{className:"w-4 h-4 text-[#191960]"}),t.label]})}),LL=({groupId:t,conditions:e,onDrop:n,onRemoveCondition:r})=>{const[s,a]=_.useState(!1),o=c=>{c.preventDefault(),c.dataTransfer.dropEffect="copy",a(!0)},i=()=>{a(!1)},l=c=>{c.preventDefault(),a(!1);try{const d=JSON.parse(c.dataTransfer.getData("application/json")),u={id:ea(),categoryId:d.categoryId,itemId:d.itemId,label:d.label};n(t,u)}catch(d){console.error("Error al procesar el drop:",d)}};return f.jsx("div",{className:`min-h-[40px] p-2 border-[1px] rounded-[10px] transition-colors ${s?"border-[#191960] bg-[#C0D4FF]":"border-[#C4C4C4] bg-gray-50"}`,onDragOver:o,onDragLeave:i,onDrop:l,children:e.length===0?f.jsx("div",{className:"text-gray-400 text-sm text-center",children:"Arrastra elementos aquí"}):f.jsx("div",{className:"flex flex-wrap gap-2 max-h-[200px] overflow-y-auto",children:e.map((c,d)=>f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsxs("div",{className:"px-2 py-1 border border-[#C4C4C4] rounded-[10px] text-sm inline-flex items-center gap-2",children:[f.jsx(Hl,{className:"w-4 h-4 text-[#191960]"}),f.jsx("span",{children:c.label}),f.jsx(tr,{leftIcon:Zb,iconSize:16,txtBtn:"",typeButton:"red",full:!1,type:"button",onClick:()=>r(t,c.id),classes:"px-1 py-0.5 rounded-[10px]"})]}),d<e.length-1&&f.jsx("span",{className:"text-xs font-semibold text-gray-500 px-1",children:"AND"})]},c.id))})})},FL=({categories:t,onQueryChange:e,maxGroups:n=3,titleCategories:r="Buscar categorías"})=>{const[s,a]=_.useState([]),[o,i]=_.useState([{id:ea(),title:"Incluir",groups:[{id:ea(),conditions:[],operator:"AND"}]},{id:ea(),title:"Excluir",groups:[{id:ea(),conditions:[],operator:"AND"}]}]),l=g=>{a(m=>m.includes(g)?m.filter(p=>p!==g):[...m,g])},c=(g,m,p)=>{const b=o.map(y=>{if(y.id===g){const v=y.groups.map(k=>k.id===m?k.conditions.some(w=>w.categoryId===p.categoryId&&w.itemId===p.itemId)?k:{...k,conditions:[...k.conditions,p]}:k);return{...y,groups:v}}return y});i(b),e==null||e(b)},d=(g,m,p)=>{const b=o.map(y=>{if(y.id===g){const v=y.groups.map(k=>k.id===m?{...k,conditions:k.conditions.filter(x=>x.id!==p)}:k);return{...y,groups:v}}return y});i(b),e==null||e(b)},u=g=>{const m=o.map(p=>p.id===g&&p.groups.length<n?{...p,groups:[...p.groups,{id:ea(),conditions:[],operator:"OR"}]}:p);i(m),e==null||e(m)},h=(g,m)=>{const p=o.map(b=>b.id===g&&b.groups.length>1?{...b,groups:b.groups.filter(y=>y.id!==m)}:b);i(p),e==null||e(p)};return f.jsxs("div",{className:"flex gap-4 w-full h-full",children:[f.jsxs("div",{className:"w-1/4 bg-white p-4 overflow-y-auto",children:[f.jsx("h3",{className:"text-sm font-semibold mb-2 text-gray-700",children:r||"Categorías"}),f.jsx("div",{className:"bg-white mb-2 overflow-y-auto",children:f.jsx(pa,{type:"search",placeholder:"Buscar",classInclude:"w-full py-0 rounded-[10px]",className:"mb-2",icon:!1})}),f.jsx("div",{className:"space-y-1 border rounded-[10px] p-5",children:t.map(g=>f.jsx(wo,{id:g.id,title:g.title,isOpen:s.includes(g.id),onToggle:()=>l(g.id),icon:f.jsx(Yl,{className:"w-5 h-5"}),iconPosition:"right",classes:"p-2",children:f.jsx("div",{className:"space-y-1",children:f.jsx("div",{className:"space-y-1",children:g.items.map(m=>f.jsx(RL,{item:m,categoryId:g.id},m.id))})},g.id)},g.id))})]}),f.jsx("div",{className:"flex-1 bg-white border border-gray-200 rounded-lg p-4 overflow-y-auto",children:f.jsx("div",{className:"space-y-2",children:o.map(g=>f.jsx(wo,{id:g.id,title:g.title,isOpen:s.includes(g.id),onToggle:()=>l(g.id),variant:"bordered",icon:f.jsx(Yl,{className:"w-5 h-5"}),iconPosition:"right",classes:"p-4",children:f.jsxs("div",{className:"space-y-2",children:[g.groups.map((m,p)=>f.jsxs("div",{children:[p>0&&f.jsx("div",{className:"flex justify-center my-2",children:f.jsx("span",{className:"px-2 py-1 bg-[#191960] text-white text-xs font-semibold rounded",children:"OR"})}),f.jsxs("div",{className:"flex flex-row space-y-1",children:[f.jsx("div",{className:"w-11/12",children:f.jsx(LL,{groupId:m.id,conditions:m.conditions,onDrop:(b,y)=>c(g.id,b,y),onRemoveCondition:(b,y)=>d(g.id,b,y)})}),f.jsx("div",{className:"w-1/12",children:g.groups.length>1&&p>0&&f.jsx("div",{className:"flex justify-end",children:f.jsx(tr,{leftIcon:"https://ftp.mathilde-ads.com/382-6986b247c2c7729fb231da467b8e913c.svg",iconSize:14,txtBtn:"",typeButton:"blue",full:!1,type:"button",onClick:()=>h(g.id,m.id),classes:"px-1 rounded-[10px] text-white w-8 h-8"})})})]})]},m.id)),g.groups.length<n&&f.jsx("div",{className:"flex mt-3",children:f.jsx(tr,{leftIcon:O_,iconSize:14,txtBtn:"",typeButton:"blue",full:!1,type:"button",onClick:()=>u(g.id),classes:"px-2 py-2 rounded-[10px]"})})]})},g.id))})})]})},mf=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,cx=(t,e)=>t.some(n=>n.categoryId===e.categoryId&&n.itemId===e.itemId),dx=(t,e,n)=>t.map(r=>r.id===e?{...r,conditions:[...r.conditions,n]}:r),BL=(t,e,n,r,s)=>t.map(a=>{if(a.id!==e)return a;if(n){const i=a.groups.find(l=>l.id===n);return!i||cx(i.conditions,r)?a:{...a,groups:dx(a.groups,n,r)}}const o=a.groups.find(i=>i.conditions.length>0&&i.conditions[0].categoryId===r.categoryId);return o?cx(o.conditions,r)?a:{...a,groups:dx(a.groups,o.id,r)}:a.groups.length>=s?a:{...a,groups:[...a.groups,{id:mf(),conditions:[r],operator:"OR"}]}}),WL=(t,e,n,r)=>t.map(s=>{if(s.id!==e)return s;const a=s.groups.map(o=>o.id===n?{...o,conditions:o.conditions.filter(i=>i.id!==r)}:o).filter(o=>o.conditions.length>0);return{...s,groups:a}}),zL=({categories:t,onQueryChange:e,maxGroups:n})=>{const[r,s]=_.useState([]),[a,o]=_.useState(null),[i,l]=_.useState(null),[c,d]=_.useState(()=>[{id:mf(),title:"Configuración de audiencia",operator:"AND",groups:[]}]);return _.useEffect(()=>{s(p=>p.length===0&&c.length>0?[c[0].id]:p)},[]),{filterSections:c,openCategoryId:i,openAccordions:r,dragData:a,setDragData:o,toggleAccordion:p=>{s(b=>b.includes(p)?b.filter(y=>y!==p):[...b,p])},handleDrop:(p,b,y)=>{const v=BL(c,p,b,y,n);d(v),e==null||e(v)},handleRemoveCondition:(p,b,y)=>{const v=WL(c,p,b,y);d(v),e==null||e(v)},handleSearch:p=>{if(!p){l(null);return}const b=t.find(y=>y.title.toLowerCase().includes(p.toLowerCase()));l(b?b.id:null)}}},ux=_.createContext({dragData:null,setDragData:()=>{}}),fx=()=>_.useContext(ux),HL=({item:t,categoryId:e})=>{const[n,r]=_.useState(!1),{setDragData:s}=fx(),a={categoryId:e,itemId:t.id,label:t.label};return f.jsx("div",{className:`px-4 py-1 w-fit text-black font-light rounded-[5px] text-[15px] hover:bg-qb-chip-hover border border-qb-border flex flex-col items-center transition-all ${n?"cursor-grabbing opacity-50":"cursor-grab"}`,draggable:!0,onDragStart:o=>{r(!0),s(a),o.dataTransfer.effectAllowed="copy",o.dataTransfer.setData("application/json",JSON.stringify(a));const i=document.createElement("style");i.id="drag-cursor-override",i.textContent="* { cursor: grabbing !important; }",document.head.appendChild(i);const l=o.currentTarget.cloneNode(!0);l.style.position="absolute",l.style.top="-9999px",l.style.left="-9999px",l.style.opacity="0.9",l.style.transform="rotate(3deg)",l.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.15)",document.body.appendChild(l);const c=o.currentTarget.getBoundingClientRect();o.dataTransfer.setDragImage(l,c.width/2,c.height/2),setTimeout(()=>{document.body.contains(l)&&document.body.removeChild(l)},0)},onDragEnd:()=>{r(!1),s(null);const o=document.getElementById("drag-cursor-override");o&&o.remove()},children:f.jsxs("span",{className:"select-none flex items-center gap-2 text-sm",children:[f.jsx(Hl,{className:"w-4 h-4 text-qb-primary"}),t.label]})})},YL=({title:t,categories:e,openCategoryId:n,onSearch:r})=>f.jsxs("div",{className:"w-1/3 bg-white p-4 overflow-y-auto",children:[f.jsx("h3",{className:"text-base font-semibold mb-2 text-black",children:t||"Categorías"}),f.jsx("div",{className:"bg-white mb-2 overflow-y-auto",children:f.jsx(pa,{type:"search",placeholder:"Buscar",classInclude:"w-full py-0 rounded-[10px]",className:"mb-2",icon:!1,onChange:s=>r(s.target.value)})}),f.jsx("div",{className:"border border-qb-border rounded-[10px] p-2",children:f.jsx(lx,{mode:"single",defaultOpen:n?[n]:e.length>0?[e[0].id]:[],items:e.map(s=>({id:s.id,title:s.title,icon:f.jsx(Yl,{className:"w-5 h-5"}),iconPosition:"right",classes:"p-1",titleClasses:"text-sm",containerButtonClasses:"border-none",content:f.jsx("div",{className:"space-y-1",children:s.items.map(a=>f.jsx(HL,{item:a,categoryId:s.id},a.id))})}))},n??"accordion-categories")})]}),pf=({groupId:t,conditions:e,onDrop:n,onRemoveCondition:r,categoryId:s})=>{const[a,o]=_.useState(!1),{dragData:i}=fx(),l=u=>{u.preventDefault();const h=(i==null?void 0:i.categoryId)??null;if(e.length>0&&s&&h&&h!==s){u.dataTransfer.dropEffect="none",o(!1);return}u.dataTransfer.dropEffect="copy",o(!0)},c=()=>{o(!1)},d=u=>{u.preventDefault(),o(!1);let h=null;const g=u.dataTransfer.getData("application/json");if(g!=null&&g.trim())try{h=JSON.parse(g)}catch(p){console.error("Error al procesar el drop:",p);return}else i&&(h=i);if(!h||e.length>0&&s&&h.categoryId!==s)return;const m={id:mf(),categoryId:h.categoryId,itemId:h.itemId,label:h.label};n(t||null,m)};return f.jsx("div",{className:`min-h-[30px] transition-colors ${a?"bg-qb-drop-bg border-qb-primary":""}`,onDragOver:l,onDragLeave:c,onDrop:d,children:f.jsx("div",{className:"flex flex-col gap-2 overflow-y-auto",children:e.map(u=>f.jsx("div",{className:"flex items-center gap-1",children:f.jsxs("div",{className:"px-3 py-1 border border-qb-border rounded-[5px] text-sm inline-flex items-center gap-1",children:[f.jsx(Hl,{className:"w-4 h-4 text-qb-primary"}),f.jsx("span",{children:u.label}),f.jsx(tr,{leftIcon:Zb,iconSize:18,txtBtn:"",typeButton:"red",full:!1,type:"button",onClick:()=>r(t||"",u.id),classes:"text-black"})]})},u.id))})})},VL=({filterSections:t,openAccordions:e,maxGroups:n,sectionTitle:r,onToggleAccordion:s,onDrop:a,onRemoveCondition:o})=>f.jsx("div",{className:"flex-1 bg-white px-1 py-4 overflow-y-auto",children:f.jsx("div",{className:"space-y-2 mt-8",children:t.map(i=>f.jsx(wo,{id:i.id,title:r,isOpen:e.includes(i.id),onToggle:()=>s(i.id),variant:"bordered",icon:f.jsx(Yl,{className:"w-5 h-5"}),iconPosition:"right",classes:"p-5",children:f.jsx("div",{className:"border border-qb-border rounded-[10px] p-2.5",children:f.jsx("div",{className:"flex flex-col items-start lg:flex-row lg:flex-wrap lg:gap-1",children:i.groups.length===0?f.jsxs("div",{className:"w-full",children:[f.jsx("span",{className:"text-sm text-[#9F9F9F] font-normal",children:"Selecciona las opciones y arrastra hasta aquí."}),f.jsx(pf,{conditions:[],categoryId:void 0,onDrop:(l,c)=>a(i.id,null,c),onRemoveCondition:()=>{}})]}):f.jsxs(f.Fragment,{children:[i.groups.map((l,c)=>f.jsxs(_.Fragment,{children:[c>0&&f.jsx("div",{className:"flex items-center justify-center my-2 lg:my-0 lg:px-2",children:f.jsx("span",{className:"px-2 py-1 bg-qb-primary text-white text-xs font-semibold rounded",children:"AND"})}),f.jsx("div",{className:"shrink-0 w-full lg:min-w-[90px]",children:f.jsx(pf,{groupId:l.id,conditions:l.conditions,categoryId:l.conditions.length>0?l.conditions[0].categoryId:void 0,onDrop:(d,u)=>a(i.id,d||l.id,u),onRemoveCondition:(d,u)=>o(i.id,d||l.id,u)})})]},l.id)),i.groups.length<n&&f.jsx("div",{className:"shrink-0 w-full lg:min-w-[120px]",children:f.jsx(pf,{conditions:[],categoryId:void 0,onDrop:(l,c)=>a(i.id,null,c),onRemoveCondition:()=>{}})})]})})})},i.id))})}),UL=({categories:t,onQueryChange:e,maxGroups:n=3,titleCategories:r="Buscar categorías",isToolTipOpen:s=!1,toolTipContent:a="Configuración de audiencia"})=>{const{filterSections:o,openCategoryId:i,openAccordions:l,dragData:c,setDragData:d,toggleAccordion:u,handleDrop:h,handleRemoveCondition:g,handleSearch:m}=zL({categories:t,onQueryChange:e,maxGroups:n}),p=s?f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{children:"Configuración de audiencia"}),f.jsx(hf,{content:a,trigger:"hover",children:f.jsx(AL,{className:"size-4 text-qb-primary"})})]}):"Configuración de audiencia";return f.jsx(ux.Provider,{value:{dragData:c,setDragData:d},children:f.jsxs("div",{className:"flex w-full",children:[f.jsx(YL,{title:r,categories:t,openCategoryId:i,onSearch:m}),f.jsx(VL,{filterSections:o,openAccordions:l,maxGroups:n,sectionTitle:p,onToggleAccordion:u,onDrop:h,onRemoveCondition:g})]})})},ct={"audience-loading":"spinnerMth-module__audience-loading__LEgdv",spinner:"spinnerMth-module__spinner__fFqhw","spinner-center":"spinnerMth-module__spinner-center__GyDhh","spinner-segment":"spinnerMth-module__spinner-segment__gU-wW","segment-1":"spinnerMth-module__segment-1__sSDuK","segment-2":"spinnerMth-module__segment-2__9W-CH","segment-3":"spinnerMth-module__segment-3__fyp4E","segment-4":"spinnerMth-module__segment-4__hMDSa","segment-5":"spinnerMth-module__segment-5__0b-Ow","segment-6":"spinnerMth-module__segment-6__-u1-Q","segment-7":"spinnerMth-module__segment-7__UD-7L","segment-8":"spinnerMth-module__segment-8__6-wy2"},XL=({description:t=""})=>f.jsx(f.Fragment,{children:f.jsxs("div",{className:ct["audience-loading"],children:[f.jsxs("div",{className:ct.spinner,children:[f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-1"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-2"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-3"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-4"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-5"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-6"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-7"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-8"]}`}),f.jsx("div",{className:ct["spinner-center"]})]}),t&&f.jsx("p",{className:"audience-text",dangerouslySetInnerHTML:{__html:t}})]})});le.Accordion=wo,le.AccordionGroup=lx,le.Alert=jL,le.ButtonFormat=tr,le.Card=Yd,le.CardIndicator=z_,le.Checkbox=mx,le.ChipList=NL,le.CollapsibleTable=IL,le.CustomPagination=Ud,le.DatePicker=CL,le.DateRangePicker=OL,le.DragAndDrop=UL,le.DropdownButton=ML,le.DropdownList=TL,le.Dropzone=iN,le.ImageFormat=Or,le.InputForm=pa,le.LayoutOutside=y5,le.ListFile=cN,le.Loader=DL,le.ModalFormat=y0,le.MyDoughnutChart=hD,le.PasswordInput=Wc,le.PasswordValidationList=$b,le.ProgressBar=Mm,le.QueryBuilder=FL,le.RadioButton=PL,le.SelectForm=Em,le.SidebarPro=u5,le.Spinner=dN,le.SpinnerMth=XL,le.Stepper=EL,le.TableComponent=p5,le.TableOfContents=k5,le.TabsComponent=uN,le.Tag=Kd,le.TermsCheckbox=w5,le.Toggle=Xd,le.TooltipComponent=hf,le.ValidationPassword=x5,Object.defineProperty(le,Symbol.toStringTag,{value:"Module"})});
584
+ ${w||x?"text-black":"text-gray-600"}`,children:y.title})]},y.title)})}),f.jsxs("div",{className:"w-full mt-6 ml-10 flex flex-col justify-between border-l-[1px] border-[#8B8B8B] md:mt-0 transition-all duration-300",children:[f.jsx("div",{children:((b=t[u-1])==null?void 0:b.content)||f.jsx("p",{children:"No hay contenido."})}),f.jsx("div",{className:"bottom-0 left-0 w-full",children:f.jsx("div",{className:"flex justify-end gap-2",children:s?f.jsx("div",{className:"w-full flex justify-end",children:s(p)}):f.jsxs(f.Fragment,{children:[f.jsx(tr,{typeButton:"white",txtBtn:"Atrás",disabled:u===1,onClick:g,type:"button",full:!1}),u<t.length?f.jsx(tr,{typeButton:"blue",txtBtn:"Siguiente",onClick:h,type:"button",full:!1}):f.jsx(tr,{typeButton:"blue",txtBtn:"Finalizar",onClick:i,type:"button",full:!1})]})})})]})]})};function hf({content:t,trigger:e,children:n}){return f.jsx("div",{className:"flex",children:f.jsx(Qo,{content:t,trigger:e,className:"p-4 z-50 bg-[#191960] text-white text-xs font-semibold max-w-[280px]",children:n})})}const PL=({label:t,options:e,classNameRadio:n,classNameLabel:r,className:s,onChange:a})=>f.jsxs("div",{className:`flex max-w-md flex-col gap-2 ${s??""}`,children:[t?f.jsx("div",{className:"text-sm font-medium text-gray-900",children:t}):null,f.jsx("div",{className:"flex items-center gap-4",children:e==null?void 0:e.map(o=>f.jsxs("div",{className:"flex items-center gap-x-1.5",children:[f.jsx(zg,{id:o.id,value:o.value,name:o.name,onChange:a,defaultChecked:o.checked,disabled:o.disabled,className:`ring-1 ring-[#C4C4C4] focus:ring-[#C0D4FF] cursor-pointer size-5 ${n??""}`}),f.jsx(Tc,{htmlFor:o.id,className:`text-sm font-medium text-gray-900 ${r??""}`,children:o.label}),o.tooltip?f.jsx(hf,{content:o.tooltip,trigger:o.tooltipTrigger??"hover",children:o.tooltipChildren??f.jsx("button",{type:"button","aria-label":"Más información",className:"inline-flex size-4 items-center justify-center rounded-full border border-gray-300 text-[10px] leading-none text-gray-600 hover:bg-gray-50",children:"i"})}):null]},o.id))})]});function ox(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=ox(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function ls(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=ox(t))&&(r&&(r+=" "),r+=e);return r}const wo=({id:t,title:e,children:n,isOpen:r,onToggle:s,variant:a="minimal",icon:o,iconPosition:i="right",classes:l,titleClasses:c})=>{const d=ls({minimal:"",bordered:"border border-gray-300 dark:border-gray-600",shadow:"shadow-md",ghost:"bg-transparent"}[a]);return f.jsxs("div",{id:t,className:ls("rounded-lg w-full",d),children:[f.jsxs("button",{onClick:s,className:ls("flex w-full items-center justify-between px-5 cursor-pointer text-left ",l||"p-4"),children:[f.jsxs("div",{className:"flex items-center gap-2",children:[o&&i==="left"&&f.jsx("span",{className:ls("transition-transform text-[#191960]",r&&"rotate-90"),children:o}),f.jsx("span",{className:ls(c||"text-base font-semibold"),children:e})]}),o&&i==="right"&&f.jsx("span",{className:ls("transition-transform text-[#191960]",r&&"rotate-90"),children:o})]}),r&&f.jsx("div",{className:"overflow-hidden",children:f.jsx("div",{className:"px-4 pb-3 text-gray-700 dark:text-gray-300",children:n})},"content")]})},ix=({items:t,mode:e="multi",defaultOpen:n=[],className:r})=>{const[s,a]=_.useState(n),o=i=>{a(e==="multi"?l=>l.includes(i)?l.filter(c=>c!==i):[...l,i]:l=>l.includes(i)?[]:[i])};return f.jsx("div",{className:r,children:t.map(i=>f.jsx("div",{className:ls("mb-2 rounded-[10px]",i.containerButtonClasses?i.containerButtonClasses:"border-[1px] border-[#C4C4C4]"),children:f.jsx(wo,{id:i.id,title:i.title,isOpen:s.includes(i.id),onToggle:()=>o(i.id),variant:i.variant,icon:i.icon,iconPosition:i.iconPosition,classes:i.classes??"p-5",titleClasses:i.titleClasses,children:i.content})},i.id))})},TL=({onSelect:t,items:e=[],placeholder:n="Buscar país, región o ciudad",fetchItems:r,minCharsToSearch:s=3,debounceMs:a=300,classIncludes:o,iconSearch:i=!1,disabled:l=!1})=>{const[c,d]=_.useState(!1),[u,h]=_.useState(""),[g,m]=_.useState(e),p=_.useRef(null);_.useEffect(()=>{m(e)},[e]),_.useEffect(()=>{if(!r)return;if(u.trim().length<s){m([]);return}const y=new AbortController,v=setTimeout(async()=>{try{const k=await r(u.trim());m(k)}catch{m([])}},a);return()=>{clearTimeout(v),y.abort()}},[u,r,a,s]);const b=y=>{t(y),h(y.label),d(!1)};return f.jsxs("div",{ref:p,className:o,children:[f.jsx(pa,{classInclude:`rounded-[10px] w-min-290px ${l?"opacity-80 cursor-not-allowed":"border border-[#19196080]"}`,type:"search",placeholder:n,name:"search",value:u,onChange:y=>{h(y.target.value),d(!0)},onFocus:()=>d(!0),onBlur:()=>{d(!1)},icon:i,autoComplete:"off",disabled:l}),c&&g.length>0&&f.jsx("ul",{style:{background:"#FFFFFF",border:"1px solid #e6e6e6",borderRadius:8,listStyle:"none",padding:6,width:290,maxHeight:220,position:"absolute",zIndex:9999},children:g.map(y=>f.jsx("li",{onMouseDown:v=>{v.preventDefault(),v.stopPropagation(),b(y)},style:{padding:6,cursor:"pointer",borderRadius:6},children:f.jsx("div",{className:"text-xs",children:y.label})},y.id))})]})},NL=({items:t,title:e,onRemove:n,colors:r={},className:s="",containerClassName:a="",titleClassName:o="",showTitle:i=!0})=>{const c={...{backgroundColor:"#EEEEEE",textColor:"#191960",closeButtonBackgroundColor:"#191960",closeButtonTextColor:"#FFFFFF",borderRadius:20},...r},d={borderRadius:`${c.borderRadius}px`,backgroundColor:c.backgroundColor},u={color:c.textColor},h={backgroundColor:c.closeButtonBackgroundColor,color:c.closeButtonTextColor};return f.jsxs("div",{className:`${s}`,children:[i&&e&&f.jsx("h2",{className:`${o}`,children:e}),f.jsx("div",{className:`${a}`,style:{marginTop:6},children:f.jsx("div",{children:t.map(g=>f.jsxs("div",{className:"mb-1 ml-1 inline-flex items-center gap-2 bg-[#EEEEEE] px-2 py-1",style:d,children:[f.jsx("span",{className:"text-xs text-[#191960]",style:u,children:g.name}),f.jsx("button",{className:"flex size-4 items-center justify-center rounded-full font-semibold",style:h,onClick:()=>n(g.id),"aria-label":`Eliminar ${g.name}`,type:"button",children:"×"})]},g.id))})})]})},jL=({isOpen:t,onConfirm:e,onCancel:n,onClose:r,...s})=>(_.useEffect(()=>{t&&Hs.fire(s).then(a=>{a.isConfirmed&&e&&e(),a.isDismissed&&n&&n(),r&&r()})},[t,n,r,e,s]),null),gf={"mth-parent-row":"collapsibleTable-module__mth-parent-row__X3y2O","mth-sub-row":"collapsibleTable-module__mth-sub-row__WQDui","mth-sub-empty-cell":"collapsibleTable-module__mth-sub-empty-cell__d0dCJ"},IL=({columns:t,data:e,showSearch:n=!1,itemsPerPage:r=5,title:s,classesHeadTable:a,classesBodyTable:o,showPagination:i=!0,showCheckboxes:l=!1,selectedRows:c=new Set,onToggleChange:d,onRowSelect:u,onSelectAll:h,collapsible:g=!1,collapseMode:m="multi",defaultOpenRows:p=[],onCollapseChange:b,openRowIds:y,getSubRows:v,collapseToggleColumnKey:k="id",collapseButtonClassName:x,parentRowClassName:w,subRowClassName:S})=>{const[N,M]=H.useState(""),[T,P]=H.useState(1),[z,F]=H.useState(null),[O,C]=H.useState(p),E=y??O,W=I=>{if(y)return b==null?void 0:b(I);C(I),b==null||b(I)},U=I=>{g&&W(m==="multi"?E.includes(I)?E.filter(q=>q!==I):[...E,I]:E.includes(I)?[]:[I])},G=H.useMemo(()=>z?[...e].sort((I,q)=>{const te=I[z.key],B=q[z.key];return te==null||B==null?0:typeof te=="string"&&typeof B=="string"?z.direction==="asc"?te.localeCompare(B):B.localeCompare(te):z.direction==="asc"?Number(te)-Number(B):Number(B)-Number(te)}):e,[e,z]),ee=H.useMemo(()=>{if(!N.trim())return G;const I=N.toLowerCase().trim();return G.filter(q=>t.some(te=>{const B=q[te.relation];return B!=null&&String(B).toLowerCase().includes(I)}))},[G,N,t]),j=H.useMemo(()=>{const I=(T-1)*r,q=I+r;return ee.slice(I,q)},[ee,T,r]),V=Math.ceil(ee.length/r),L=()=>{if(!h)return;const I=j.length>0&&j.every(q=>c.has(q.id));h(!I)},R=I=>{if(!u)return;const q=c.has(I);u(I,!q)},A=j.length>0&&j.every(I=>c.has(I.id)),D=c.size>0&&c.size<j.length,Y=I=>{F(q=>!q||q.key!==I?{key:I,direction:"asc"}:{key:I,direction:q.direction==="asc"?"desc":"asc"})},J=(I,q)=>{const te=q[I.relation];if(I.isToggle){const B=!!te;return f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Xd,{checked:B,onChange:re=>d==null?void 0:d({rowId:q.id,checked:re,row:q,columnKey:I.relation}),disabled:!1}),I.toggleText&&f.jsx("span",{className:"text-sm text-gray-600",children:B?I.toggleText.active:I.toggleText.inactive})]})}if(I.badgeConfig)return f.jsx(Jb,{value:te,config:I.badgeConfig});if(I.cell)return I.cell(q);if(I.component){const B=I.component;return H.createElement(B,{row:q,value:te,...I.cellProps||{}})}return te??""},K=(I,q,te,B)=>f.jsxs("div",{className:"flex items-center gap-1",children:[te?f.jsx("button",{type:"button",onClick:()=>U(q.id),className:x??"mth-collapse-btn","aria-label":B?"Colapsar fila":"Expandir fila",children:B?f.jsx(xs,{className:"size-3 text-[#191960] -ml-3"}):f.jsx(x_,{className:"size-3 text-[#191960] -ml-3"})}):f.jsx("span",{className:"mth-collapse-spacer"}),J(I,q)]});return f.jsxs("div",{className:"w-full",children:[f.jsx("div",{className:"mb-2 flex items-center justify-between",children:s&&f.jsx("h2",{className:"text-base font-bold",children:s})}),f.jsx("div",{className:"flex",children:n&&f.jsx("div",{className:"w-1/2",children:f.jsx(ds,{rightIcon:kf,placeholder:"Buscar",value:N,onChange:I=>{M(I.target.value),P(1)}})})}),f.jsxs("div",{className:"mt-0",children:[f.jsx("div",{className:"overflow-x-auto",children:f.jsxs(tt,{children:[f.jsxs(tt.Head,{className:`mth_head_table ${a}`,children:[l&&f.jsx(tt.HeadCell,{children:f.jsx(aa,{className:"bg-transparent",checked:A,ref:I=>{I&&(I.indeterminate=D)},onChange:L})},"checkbox-head"),t.map((I,q)=>f.jsx(tt.HeadCell,{className:"cursor-pointer text-xs",onClick:()=>I.sortable!==!1&&Y(I.relation),children:f.jsxs("div",{className:"flex items-center gap-1",children:[I.header,I.sortable!==!1&&f.jsx("span",{children:(z==null?void 0:z.key)===I.relation?z.direction==="desc"?f.jsx(xs,{className:"size-3"}):f.jsx(jc,{className:"size-3"}):f.jsx(xs,{className:"size-3 opacity-50"})})]})},`column-${q}-${I.relation}`))]}),f.jsx(tt.Body,{className:`divide-y text-xs md:text-base lg:text-base mth_body_table ${o}`,children:j.map(I=>{const q=v?v(I):[],te=g&&q.length>0,B=te&&E.includes(I.id);return f.jsxs(H.Fragment,{children:[f.jsxs(tt.Row,{className:`${B?gf["mth-parent-row"]:""} ${w}`,children:[l&&f.jsx(tt.Cell,{children:f.jsx(aa,{className:"bg-transparent",checked:c.has(I.id),onChange:()=>R(I.id)})}),t.map((re,se)=>re.relation===k?f.jsx(tt.Cell,{className:"whitespace-nowrap font-medium ",children:K(re,I,te,B)},`${I.id}-${se}`):f.jsx(tt.Cell,{className:"whitespace-nowrap font-medium text-gray-900",children:J(re,I)},`${I.id}-${se}`))]}),te&&B&&q.map((re,se)=>f.jsxs(tt.Row,{className:`${B?gf["mth-sub-row"]:""} ${S}`,children:[l&&f.jsx(tt.Cell,{className:`${B?gf["mth-sub-empty-cell"]:""}`}),t.map((ie,ge)=>f.jsx(tt.Cell,{className:"whitespace-nowrap font-normal text-gray-900",children:J(ie,re)},`${I.id}-sub-${se}-${ge}`))]},`${I.id}-sub-${se}`))]},I.id)})})]})}),i&&V>1&&f.jsx("div",{className:"mt-2 flex w-full justify-end",children:f.jsx(Ud,{currentPage:T,totalPages:V,onPageChange:P})})]})]})};function Hl(t){return De({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M2 4.75A.75.75 0 012.75 4h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 4.75zM2 10a.75.75 0 01.75-.75h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 10zm0 5.25a.75.75 0 01.75-.75h14.5a.75.75 0 010 1.5H2.75a.75.75 0 01-.75-.75z",clipRule:"evenodd"},child:[]}]})(t)}function AL(t){return De({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"},child:[]}]})(t)}function Yl(t){return De({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 18 15 12 9 6"},child:[]}]})(t)}const ea=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,RL=({item:t,categoryId:e})=>f.jsx("div",{className:"px-4 py-1 w-fit text-black font-light rounded-[10px] text-sm cursor-move hover:bg-[#C0D4FF] border border-[#c4c4c4] flex flex-col items-center",draggable:!0,onDragStart:n=>{n.dataTransfer.effectAllowed="copy",n.dataTransfer.setData("application/json",JSON.stringify({categoryId:e,itemId:t.id,label:t.label}))},children:f.jsxs("span",{className:"select-none flex items-center gap-2 text-sm",children:[f.jsx(Hl,{className:"w-4 h-4 text-[#191960]"}),t.label]})}),LL=({groupId:t,conditions:e,onDrop:n,onRemoveCondition:r})=>{const[s,a]=_.useState(!1),o=c=>{c.preventDefault(),c.dataTransfer.dropEffect="copy",a(!0)},i=()=>{a(!1)},l=c=>{c.preventDefault(),a(!1);try{const d=JSON.parse(c.dataTransfer.getData("application/json")),u={id:ea(),categoryId:d.categoryId,itemId:d.itemId,label:d.label};n(t,u)}catch(d){console.error("Error al procesar el drop:",d)}};return f.jsx("div",{className:`min-h-[40px] p-2 border-[1px] rounded-[10px] transition-colors ${s?"border-[#191960] bg-[#C0D4FF]":"border-[#C4C4C4] bg-gray-50"}`,onDragOver:o,onDragLeave:i,onDrop:l,children:e.length===0?f.jsx("div",{className:"text-gray-400 text-sm text-center",children:"Arrastra elementos aquí"}):f.jsx("div",{className:"flex flex-wrap gap-2 max-h-[200px] overflow-y-auto",children:e.map((c,d)=>f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsxs("div",{className:"px-2 py-1 border border-[#C4C4C4] rounded-[10px] text-sm inline-flex items-center gap-2",children:[f.jsx(Hl,{className:"w-4 h-4 text-[#191960]"}),f.jsx("span",{children:c.label}),f.jsx(tr,{leftIcon:Qb,iconSize:16,txtBtn:"",typeButton:"red",full:!1,type:"button",onClick:()=>r(t,c.id),classes:"px-1 py-0.5 rounded-[10px]"})]}),d<e.length-1&&f.jsx("span",{className:"text-xs font-semibold text-gray-500 px-1",children:"AND"})]},c.id))})})},FL=({categories:t,onQueryChange:e,maxGroups:n=3,titleCategories:r="Buscar categorías"})=>{const[s,a]=_.useState([]),[o,i]=_.useState([{id:ea(),title:"Incluir",groups:[{id:ea(),conditions:[],operator:"AND"}]},{id:ea(),title:"Excluir",groups:[{id:ea(),conditions:[],operator:"AND"}]}]),l=g=>{a(m=>m.includes(g)?m.filter(p=>p!==g):[...m,g])},c=(g,m,p)=>{const b=o.map(y=>{if(y.id===g){const v=y.groups.map(k=>k.id===m?k.conditions.some(w=>w.categoryId===p.categoryId&&w.itemId===p.itemId)?k:{...k,conditions:[...k.conditions,p]}:k);return{...y,groups:v}}return y});i(b),e==null||e(b)},d=(g,m,p)=>{const b=o.map(y=>{if(y.id===g){const v=y.groups.map(k=>k.id===m?{...k,conditions:k.conditions.filter(x=>x.id!==p)}:k);return{...y,groups:v}}return y});i(b),e==null||e(b)},u=g=>{const m=o.map(p=>p.id===g&&p.groups.length<n?{...p,groups:[...p.groups,{id:ea(),conditions:[],operator:"OR"}]}:p);i(m),e==null||e(m)},h=(g,m)=>{const p=o.map(b=>b.id===g&&b.groups.length>1?{...b,groups:b.groups.filter(y=>y.id!==m)}:b);i(p),e==null||e(p)};return f.jsxs("div",{className:"flex gap-4 w-full h-full",children:[f.jsxs("div",{className:"w-1/4 bg-white p-4 overflow-y-auto",children:[f.jsx("h3",{className:"text-sm font-semibold mb-2 text-gray-700",children:r||"Categorías"}),f.jsx("div",{className:"bg-white mb-2 overflow-y-auto",children:f.jsx(pa,{type:"search",placeholder:"Buscar",classInclude:"w-full py-0 rounded-[10px]",className:"mb-2",icon:!1})}),f.jsx("div",{className:"space-y-1 border rounded-[10px] p-5",children:t.map(g=>f.jsx(wo,{id:g.id,title:g.title,isOpen:s.includes(g.id),onToggle:()=>l(g.id),icon:f.jsx(Yl,{className:"w-5 h-5"}),iconPosition:"right",classes:"p-2",children:f.jsx("div",{className:"space-y-1",children:f.jsx("div",{className:"space-y-1",children:g.items.map(m=>f.jsx(RL,{item:m,categoryId:g.id},m.id))})},g.id)},g.id))})]}),f.jsx("div",{className:"flex-1 bg-white border border-gray-200 rounded-lg p-4 overflow-y-auto",children:f.jsx("div",{className:"space-y-2",children:o.map(g=>f.jsx(wo,{id:g.id,title:g.title,isOpen:s.includes(g.id),onToggle:()=>l(g.id),variant:"bordered",icon:f.jsx(Yl,{className:"w-5 h-5"}),iconPosition:"right",classes:"p-4",children:f.jsxs("div",{className:"space-y-2",children:[g.groups.map((m,p)=>f.jsxs("div",{children:[p>0&&f.jsx("div",{className:"flex justify-center my-2",children:f.jsx("span",{className:"px-2 py-1 bg-[#191960] text-white text-xs font-semibold rounded",children:"OR"})}),f.jsxs("div",{className:"flex flex-row space-y-1",children:[f.jsx("div",{className:"w-11/12",children:f.jsx(LL,{groupId:m.id,conditions:m.conditions,onDrop:(b,y)=>c(g.id,b,y),onRemoveCondition:(b,y)=>d(g.id,b,y)})}),f.jsx("div",{className:"w-1/12",children:g.groups.length>1&&p>0&&f.jsx("div",{className:"flex justify-end",children:f.jsx(tr,{leftIcon:"https://ftp.mathilde-ads.com/382-6986b247c2c7729fb231da467b8e913c.svg",iconSize:14,txtBtn:"",typeButton:"blue",full:!1,type:"button",onClick:()=>h(g.id,m.id),classes:"px-1 rounded-[10px] text-white w-8 h-8"})})})]})]},m.id)),g.groups.length<n&&f.jsx("div",{className:"flex mt-3",children:f.jsx(tr,{leftIcon:S_,iconSize:14,txtBtn:"",typeButton:"blue",full:!1,type:"button",onClick:()=>u(g.id),classes:"px-2 py-2 rounded-[10px]"})})]})},g.id))})})]})},mf=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,lx=(t,e)=>t.some(n=>n.categoryId===e.categoryId&&n.itemId===e.itemId),cx=(t,e,n)=>t.map(r=>r.id===e?{...r,conditions:[...r.conditions,n]}:r),BL=(t,e,n,r,s)=>t.map(a=>{if(a.id!==e)return a;if(n){const i=a.groups.find(l=>l.id===n);return!i||lx(i.conditions,r)?a:{...a,groups:cx(a.groups,n,r)}}const o=a.groups.find(i=>i.conditions.length>0&&i.conditions[0].categoryId===r.categoryId);return o?lx(o.conditions,r)?a:{...a,groups:cx(a.groups,o.id,r)}:a.groups.length>=s?a:{...a,groups:[...a.groups,{id:mf(),conditions:[r],operator:"OR"}]}}),WL=(t,e,n,r)=>t.map(s=>{if(s.id!==e)return s;const a=s.groups.map(o=>o.id===n?{...o,conditions:o.conditions.filter(i=>i.id!==r)}:o).filter(o=>o.conditions.length>0);return{...s,groups:a}}),zL=({categories:t,onQueryChange:e,maxGroups:n})=>{const[r,s]=_.useState([]),[a,o]=_.useState(null),[i,l]=_.useState(null),[c,d]=_.useState(()=>[{id:mf(),title:"Configuración de audiencia",operator:"AND",groups:[]}]);return _.useEffect(()=>{s(p=>p.length===0&&c.length>0?[c[0].id]:p)},[]),{filterSections:c,openCategoryId:i,openAccordions:r,dragData:a,setDragData:o,toggleAccordion:p=>{s(b=>b.includes(p)?b.filter(y=>y!==p):[...b,p])},handleDrop:(p,b,y)=>{const v=BL(c,p,b,y,n);d(v),e==null||e(v)},handleRemoveCondition:(p,b,y)=>{const v=WL(c,p,b,y);d(v),e==null||e(v)},handleSearch:p=>{if(!p){l(null);return}const b=t.find(y=>y.title.toLowerCase().includes(p.toLowerCase()));l(b?b.id:null)}}},dx=_.createContext({dragData:null,setDragData:()=>{}}),ux=()=>_.useContext(dx),HL=({item:t,categoryId:e})=>{const[n,r]=_.useState(!1),{setDragData:s}=ux(),a={categoryId:e,itemId:t.id,label:t.label};return f.jsx("div",{className:`px-4 py-1 w-fit text-black font-light rounded-[5px] text-[15px] hover:bg-qb-chip-hover border border-qb-border flex flex-col items-center transition-all ${n?"cursor-grabbing opacity-50":"cursor-grab"}`,draggable:!0,onDragStart:o=>{r(!0),s(a),o.dataTransfer.effectAllowed="copy",o.dataTransfer.setData("application/json",JSON.stringify(a));const i=document.createElement("style");i.id="drag-cursor-override",i.textContent="* { cursor: grabbing !important; }",document.head.appendChild(i);const l=o.currentTarget.cloneNode(!0);l.style.position="absolute",l.style.top="-9999px",l.style.left="-9999px",l.style.opacity="0.9",l.style.transform="rotate(3deg)",l.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.15)",document.body.appendChild(l);const c=o.currentTarget.getBoundingClientRect();o.dataTransfer.setDragImage(l,c.width/2,c.height/2),setTimeout(()=>{document.body.contains(l)&&document.body.removeChild(l)},0)},onDragEnd:()=>{r(!1),s(null);const o=document.getElementById("drag-cursor-override");o&&o.remove()},children:f.jsxs("span",{className:"select-none flex items-center gap-2 text-sm",children:[f.jsx(Hl,{className:"w-4 h-4 text-qb-primary"}),t.label]})})},YL=({title:t,categories:e,openCategoryId:n,onSearch:r})=>f.jsxs("div",{className:"w-1/3 bg-white p-4 overflow-y-auto",children:[f.jsx("h3",{className:"text-base font-semibold mb-2 text-black",children:t||"Categorías"}),f.jsx("div",{className:"bg-white mb-2 overflow-y-auto",children:f.jsx(pa,{type:"search",placeholder:"Buscar",classInclude:"w-full py-0 rounded-[10px]",className:"mb-2",icon:!1,onChange:s=>r(s.target.value)})}),f.jsx("div",{className:"border border-qb-border rounded-[10px] p-2",children:f.jsx(ix,{mode:"single",defaultOpen:n?[n]:e.length>0?[e[0].id]:[],items:e.map(s=>({id:s.id,title:s.title,icon:f.jsx(Yl,{className:"w-5 h-5"}),iconPosition:"right",classes:"p-1",titleClasses:"text-sm",containerButtonClasses:"border-none",content:f.jsx("div",{className:"space-y-1",children:s.items.map(a=>f.jsx(HL,{item:a,categoryId:s.id},a.id))})}))},n??"accordion-categories")})]}),VL=({groupId:t,conditions:e,onRemoveCondition:n})=>f.jsx("div",{className:"flex flex-col gap-2",children:e.map(r=>f.jsx("div",{className:"flex items-center gap-1",children:f.jsxs("div",{className:"inline-flex items-center gap-1 rounded-[5px] border border-qb-border px-3 py-1 text-sm",children:[f.jsx(Hl,{className:"size-4 text-qb-primary"}),f.jsx("span",{children:r.label}),f.jsx(tr,{leftIcon:Qb,iconSize:18,txtBtn:"",typeButton:"red",full:!1,type:"button",onClick:()=>n(t||"",r.id),classes:"text-black"})]})},r.id))}),UL=({section:t,onDrop:e,onRemoveCondition:n})=>{const[r,s]=_.useState(!1),{dragData:a}=ux(),o=t.groups.some(d=>d.conditions.length>0),i=d=>{d.preventDefault(),d.dataTransfer.dropEffect="copy",s(!0)},l=d=>{d.currentTarget.contains(d.relatedTarget)||s(!1)},c=d=>{d.preventDefault(),s(!1);let u=null;const h=d.dataTransfer.getData("application/json");if(h!=null&&h.trim())try{u=JSON.parse(h)}catch(m){console.error("Error al procesar el drop:",m);return}else a&&(u=a);if(!u)return;const g={id:mf(),categoryId:u.categoryId,itemId:u.itemId,label:u.label};e(t.id,null,g)};return f.jsx("div",{className:`border rounded-[10px] p-2.5 min-h-[60px] w-full transition-colors ${r?"bg-qb-drop-bg border-qb-primary":"border-qb-border"}`,onDragOver:i,onDragLeave:l,onDrop:c,children:o?f.jsx("div",{className:"flex flex-col items-start lg:flex-row lg:flex-wrap lg:gap-1",children:t.groups.map((d,u)=>f.jsxs(_.Fragment,{children:[u>0&&f.jsx("div",{className:"flex items-center justify-center my-2 lg:my-0 lg:px-2",children:f.jsx("span",{className:"px-2 py-1 bg-qb-primary text-white text-xs font-semibold rounded",children:"AND"})}),f.jsx("div",{className:"shrink-0",children:f.jsx(VL,{groupId:d.id,conditions:d.conditions,onRemoveCondition:(h,g)=>n(t.id,h||d.id,g)})})]},d.id))}):f.jsx("span",{className:"text-sm text-[#9F9F9F] font-normal",children:"Selecciona las opciones y arrastra hasta aquí."})})},XL=({filterSections:t,openAccordions:e,sectionTitle:n,onToggleAccordion:r,onDrop:s,onRemoveCondition:a})=>f.jsx("div",{className:"flex-1 bg-white px-1 py-4 overflow-y-auto",children:f.jsx("div",{className:"space-y-2 mt-8",children:t.map(o=>f.jsx(wo,{id:o.id,title:n,isOpen:e.includes(o.id),onToggle:()=>r(o.id),variant:"bordered",icon:f.jsx(Yl,{className:"w-5 h-5"}),iconPosition:"right",classes:"p-5",children:f.jsx(UL,{section:o,onDrop:s,onRemoveCondition:a})},o.id))})}),GL=({categories:t,onQueryChange:e,maxGroups:n=3,titleCategories:r="Buscar categorías",isToolTipOpen:s=!1,toolTipContent:a="Configuración de audiencia"})=>{const{filterSections:o,openCategoryId:i,openAccordions:l,dragData:c,setDragData:d,toggleAccordion:u,handleDrop:h,handleRemoveCondition:g,handleSearch:m}=zL({categories:t,onQueryChange:e,maxGroups:n}),p=s?f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{children:"Configuración de audiencia"}),f.jsx(hf,{content:a,trigger:"hover",children:f.jsx(AL,{className:"size-4 text-qb-primary"})})]}):"Configuración de audiencia";return f.jsx(dx.Provider,{value:{dragData:c,setDragData:d},children:f.jsxs("div",{className:"flex w-full",children:[f.jsx(YL,{title:r,categories:t,openCategoryId:i,onSearch:m}),f.jsx(XL,{filterSections:o,openAccordions:l,maxGroups:n,sectionTitle:p,onToggleAccordion:u,onDrop:h,onRemoveCondition:g})]})})},ct={"audience-loading":"spinnerMth-module__audience-loading__LEgdv",spinner:"spinnerMth-module__spinner__fFqhw","spinner-center":"spinnerMth-module__spinner-center__GyDhh","spinner-segment":"spinnerMth-module__spinner-segment__gU-wW","segment-1":"spinnerMth-module__segment-1__sSDuK","segment-2":"spinnerMth-module__segment-2__9W-CH","segment-3":"spinnerMth-module__segment-3__fyp4E","segment-4":"spinnerMth-module__segment-4__hMDSa","segment-5":"spinnerMth-module__segment-5__0b-Ow","segment-6":"spinnerMth-module__segment-6__-u1-Q","segment-7":"spinnerMth-module__segment-7__UD-7L","segment-8":"spinnerMth-module__segment-8__6-wy2"},KL=({description:t=""})=>f.jsx(f.Fragment,{children:f.jsxs("div",{className:ct["audience-loading"],children:[f.jsxs("div",{className:ct.spinner,children:[f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-1"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-2"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-3"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-4"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-5"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-6"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-7"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-8"]}`}),f.jsx("div",{className:ct["spinner-center"]})]}),t&&f.jsx("p",{className:"audience-text",dangerouslySetInnerHTML:{__html:t}})]})});le.Accordion=wo,le.AccordionGroup=ix,le.Alert=jL,le.ButtonFormat=tr,le.Card=Yd,le.CardIndicator=W_,le.Checkbox=gx,le.ChipList=NL,le.CollapsibleTable=IL,le.CustomPagination=Ud,le.DatePicker=CL,le.DateRangePicker=OL,le.DragAndDrop=GL,le.DropdownButton=ML,le.DropdownList=TL,le.Dropzone=iN,le.ImageFormat=Or,le.InputForm=pa,le.LayoutOutside=yP,le.ListFile=cN,le.Loader=DL,le.ModalFormat=b0,le.MyDoughnutChart=fD,le.PasswordInput=Wc,le.PasswordValidationList=qb,le.ProgressBar=Dm,le.QueryBuilder=FL,le.RadioButton=PL,le.SelectForm=Mm,le.SidebarPro=dP,le.Spinner=dN,le.SpinnerMth=KL,le.Stepper=EL,le.TableComponent=pP,le.TableOfContents=kP,le.TabsComponent=uN,le.Tag=Gd,le.TermsCheckbox=wP,le.Toggle=Xd,le.TooltipComponent=hf,le.ValidationPassword=xP,Object.defineProperty(le,Symbol.toStringTag,{value:"Module"})});